From 205b420074f383b8ecd24be6761cd83041c8894d Mon Sep 17 00:00:00 2001 From: "DESKTOP-6C3NK6N\\WXS" <815034831@qq.com> Date: Thu, 5 Sep 2024 09:09:13 +0800 Subject: [PATCH 1/2] 1 --- src/api/load.js | 8 ++ .../uploadDicomAndNonedicom/index.vue | 18 +++- .../uploadDicomAndNonedicom/nonedicomFile.vue | 95 +++++++++++++++++++ src/utils/stream.js | 12 +-- 4 files changed, 121 insertions(+), 12 deletions(-) diff --git a/src/api/load.js b/src/api/load.js index 3bc426ca..91981151 100644 --- a/src/api/load.js +++ b/src/api/load.js @@ -63,4 +63,12 @@ export function getIRReadingDownloadStudyInfo(data) { method: 'post', data }) +} +// 获取ir阅片和任务非dicom上传列表 +export function getIRUploadTaskNoneDicomStudyList(data) { + return request({ + url: '/DownloadAndUpload/getIRUploadTaskNoneDicomStudyList', + method: 'post', + data + }) } \ No newline at end of file diff --git a/src/components/uploadDicomAndNonedicom/index.vue b/src/components/uploadDicomAndNonedicom/index.vue index 58355b3a..c258168a 100644 --- a/src/components/uploadDicomAndNonedicom/index.vue +++ b/src/components/uploadDicomAndNonedicom/index.vue @@ -12,7 +12,11 @@ - + @@ -29,10 +33,20 @@ export default { type: Boolean, default: false, }, - visitId: { + SubjectId: { type: String, default: '', }, + SubjectCode: { + type: String, + default: '', + }, + Criterion: { + type: Object, + default: () => { + return {} + }, + }, }, data() { return { diff --git a/src/components/uploadDicomAndNonedicom/nonedicomFile.vue b/src/components/uploadDicomAndNonedicom/nonedicomFile.vue index e69de29b..3bf44785 100644 --- a/src/components/uploadDicomAndNonedicom/nonedicomFile.vue +++ b/src/components/uploadDicomAndNonedicom/nonedicomFile.vue @@ -0,0 +1,95 @@ + + + + {{ $t('upload:nonedicom:title') }} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/utils/stream.js b/src/utils/stream.js index de27a281..eef180e7 100644 --- a/src/utils/stream.js +++ b/src/utils/stream.js @@ -17,11 +17,7 @@ function zipFiles(zipName, files) { } else { let { name, url } = fileInfo.value; url = decodeUtf8(url); - return fetch(url, { - headers: { - 'Cross-Origin-Embedder-Policy': 'unsafe-none' - } - }).then(res => { + return fetch(url).then(res => { ctrl.enqueue({ name, stream: () => res.body @@ -46,11 +42,7 @@ async function updateFile(file, name) { store.dispatch('trials/setUnLock', true) const fileOutputStream = streamSaver.createWriteStream(name); file = decodeUtf8(file); - let res = await fetch(file, { - headers: { - 'Cross-Origin-Embedder-Policy': 'unsafe-none' - } - }); + let res = await fetch(file); res.body.pipeTo(fileOutputStream).then(() => { store.dispatch('trials/setUnLock', true) }); From e24b1cc722eea67b5d1a14716ae4181b9d4f44aa Mon Sep 17 00:00:00 2001 From: "DESKTOP-6C3NK6N\\WXS" <815034831@qq.com> Date: Thu, 5 Sep 2024 10:44:32 +0800 Subject: [PATCH 2/2] =?UTF-8?q?ir=E4=B8=8A=E4=BC=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../downloadDicomAndNonedicom/index.vue | 5 + .../uploadDicomAndNonedicom/index.vue | 14 +- .../uploadDicomAndNonedicom/nonedicomFile.vue | 139 ++++++++++++++++-- .../reading/reading-task/index.vue | 3 + 4 files changed, 145 insertions(+), 16 deletions(-) diff --git a/src/components/downloadDicomAndNonedicom/index.vue b/src/components/downloadDicomAndNonedicom/index.vue index 659c5c40..0564608d 100644 --- a/src/components/downloadDicomAndNonedicom/index.vue +++ b/src/components/downloadDicomAndNonedicom/index.vue @@ -44,6 +44,7 @@ v-adaptive="{ bottomOffset: 85 }" height="100" :data="list" + :loading="loading" class="dicomFiles-table" @sort-change="handleSortByColumn" :default-sort="{ prop: 'TaskBlindName', order: 'descending' }" @@ -185,6 +186,7 @@ export default { data() { return { title: null, + loading: false, list: [], searchData: defaultSearchData(), btnLoading: false, @@ -220,13 +222,16 @@ export default { this.searchData.TrialReadingCriterionId = this.Criterion.TrialReadingCriterionId this.searchData.SubjectCode = this.SubjectCode + this.loading = true let res = await getSubjectImageDownloadSelectList(this.searchData) + this.loading = false if (res.IsSuccess) { this.list = res.Result this.hasDicom = this.list.some((item) => item.IsDicom) this.hasNonedicom = this.list.some((item) => !item.IsDicom) } } catch (err) { + this.loading = false console.log(err) } }, diff --git a/src/components/uploadDicomAndNonedicom/index.vue b/src/components/uploadDicomAndNonedicom/index.vue index c258168a..67bad8bc 100644 --- a/src/components/uploadDicomAndNonedicom/index.vue +++ b/src/components/uploadDicomAndNonedicom/index.vue @@ -7,12 +7,19 @@ class="uploadDicomAndNonedicom" > {{ title }} - - + + - + 01001 >Timepoint', + activeName: 'dicom', } }, methods: { diff --git a/src/components/uploadDicomAndNonedicom/nonedicomFile.vue b/src/components/uploadDicomAndNonedicom/nonedicomFile.vue index 3bf44785..7b2e343c 100644 --- a/src/components/uploadDicomAndNonedicom/nonedicomFile.vue +++ b/src/components/uploadDicomAndNonedicom/nonedicomFile.vue @@ -7,7 +7,7 @@ @@ -22,52 +22,128 @@ /> + > + + + + + + + + + {{ $t('trials:audit:button:nonDicomsPreview') }} + + + + + + + {{ scope.row.FileCount }} + + + + {{ scope.row.FileCount }} + + + + + + + + +