From c80c8c0a16e7943cf7faf2caa2f2cb1dda8aeb82 Mon Sep 17 00:00:00 2001 From: wangxiaoshuang <825034831@qq.com> Date: Fri, 14 Jun 2024 15:58:59 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E9=87=8D=E4=BC=A0=E4=B8=B4=E5=BA=8A?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E5=8F=96=E6=B6=88=E5=9F=BA=E7=BA=BF=E9=99=90?= =?UTF-8?q?=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../trials-panel/visit/crc-upload/components/historyChat.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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..79d48135 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,9 +128,9 @@ > - + From 10a2238cba839f2bdf79105ff6b2bb2c93e6487e Mon Sep 17 00:00:00 2001 From: wangxiaoshuang <825034831@qq.com> Date: Fri, 14 Jun 2024 16:12:04 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E9=87=8D=E4=BC=A0=E4=B8=B4=E5=BA=8A?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E5=8F=96=E6=B6=88=E5=9F=BA=E7=BA=BF=E9=99=90?= =?UTF-8?q?=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/trials/trials-panel/site/index.vue | 2 +- .../crc-upload/components/historyChat.vue | 387 ++++++++++-------- .../trials-panel/visit/crc-upload/index.vue | 2 +- 3 files changed, 221 insertions(+), 170 deletions(-) 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 79d48135..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 @@ -130,11 +130,18 @@ - + + + + @@ -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 @@ From 10283bbcebba31d2f462d3a634ee4dc79fa5a99e Mon Sep 17 00:00:00 2001 From: wangxiaoshuang <825034831@qq.com> Date: Fri, 14 Jun 2024 16:26:51 +0800 Subject: [PATCH 3/3] =?UTF-8?q?=E4=B8=8A=E4=BC=A0dicom=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/parseDicom.js | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) 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;