diff --git a/src/utils/parseDicom.js b/src/utils/parseDicom.js
index c8861bf9..4d7f7c0f 100644
--- a/src/utils/parseDicom.js
+++ b/src/utils/parseDicom.js
@@ -68,6 +68,8 @@ let dicom = {
};
// 需要设置默认值
let defaultKey = ['Rows', 'Columns', 'SliceLocation', 'NumberOfFrames'];
+let uintKey = ['Rows', 'Columns'];
+let intStringKey = ['SliceLocation', 'NumberOfFrames'];
// 需要格式解析
let pormatParseKey = ['PatientName', 'SeriesDescription', 'StudyDescription'];
// 解析dicom文件
@@ -81,28 +83,19 @@ export const parseDicom = (file, name = false) => {
if (name && Array.isArray(name)) {
name.forEach((item) => {
if (dicom[item]) {
- res[item] = data.string(dicom[item]) || data.uint16(dicom[item]) || data.intString(dicom[item]) || '';
- }
- if (item === 'SliceLocation') {
- res[item] = data.intString(dicom[item])
+ res[item] = data.string(dicom[item]) || '';
}
});
} else if (name) {
if (dicom[name]) {
- res[name] = data.string(dicom[name]) || data.uint16(dicom[name]) || data.intString(dicom[name]) || '';
- if (name === 'SliceLocation') {
- res[name] = data.intString(dicom[name])
- }
+ res[name] = data.string(dicom[name]) || '';
} else {
console.log("name is inexistence");
resolve(false)
}
} else {
Object.keys(dicom).forEach((key) => {
- res[key] = data.string(dicom[key]) || data.uint16(dicom[key]) || data.intString(dicom[key]) || '';
- if (key === 'SliceLocation') {
- res[key] = data.intString(dicom[key])
- }
+ res[key] = data.string(dicom[key]) || '';
});
}
pormatParseKey.forEach(key => {
@@ -119,6 +112,12 @@ export const parseDicom = (file, name = false) => {
);
}
})
+ uintKey.forEach(key => {
+ res[key] = data.uint16(dicom[key])
+ })
+ intStringKey.forEach(key => {
+ res[key] = data.intString(dicom[key])
+ })
defaultKey.forEach(key => {
if (!res[key] && res.hasOwnProperty(key)) {
res[key] = 0;
diff --git a/src/views/trials/trials-panel/site/index.vue b/src/views/trials/trials-panel/site/index.vue
index a1882476..eda57c3b 100644
--- a/src/views/trials/trials-panel/site/index.vue
+++ b/src/views/trials/trials-panel/site/index.vue
@@ -250,7 +250,7 @@ export default {
this.currentRow = { ...row };
this.crc_model.visible = true;
this.userListLoading = true;
- getTrialSiteCRCList(this.trialId, this.currentRow.SiteId)
+ getTrialSiteCRCList(this.trialId, this.currentRow.TrialSiteId)
.then((res) => {
this.userListLoading = false;
this.userList = res.Result;
diff --git a/src/views/trials/trials-panel/visit/crc-upload/components/historyChat.vue b/src/views/trials/trials-panel/visit/crc-upload/components/historyChat.vue
index 10ed613b..aa660e92 100644
--- a/src/views/trials/trials-panel/visit/crc-upload/components/historyChat.vue
+++ b/src/views/trials/trials-panel/visit/crc-upload/components/historyChat.vue
@@ -128,13 +128,20 @@
>
-
+
-
+
+
+
+
@@ -158,250 +165,296 @@
diff --git a/src/views/trials/trials-panel/visit/crc-upload/index.vue b/src/views/trials/trials-panel/visit/crc-upload/index.vue
index 36e12734..279b95a2 100644
--- a/src/views/trials/trials-panel/visit/crc-upload/index.vue
+++ b/src/views/trials/trials-panel/visit/crc-upload/index.vue
@@ -592,7 +592,7 @@
-
+