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/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 58355b3a..67bad8bc 100644 --- a/src/components/uploadDicomAndNonedicom/index.vue +++ b/src/components/uploadDicomAndNonedicom/index.vue @@ -7,12 +7,23 @@ class="uploadDicomAndNonedicom" > {{ title }} - - + + - - + + @@ -29,14 +40,25 @@ export default { type: Boolean, default: false, }, - visitId: { + SubjectId: { type: String, default: '', }, + SubjectCode: { + type: String, + default: '', + }, + Criterion: { + type: Object, + default: () => { + return {} + }, + }, }, data() { return { title: 'Upload Images:01 > 01001 >Timepoint', + activeName: 'dicom', } }, methods: { diff --git a/src/components/uploadDicomAndNonedicom/nonedicomFile.vue b/src/components/uploadDicomAndNonedicom/nonedicomFile.vue index e69de29b..7b2e343c 100644 --- a/src/components/uploadDicomAndNonedicom/nonedicomFile.vue +++ b/src/components/uploadDicomAndNonedicom/nonedicomFile.vue @@ -0,0 +1,208 @@ + + + \ 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) }); diff --git a/src/views/trials/trials-panel/reading/reading-task/index.vue b/src/views/trials/trials-panel/reading/reading-task/index.vue index f3564d0e..1685355e 100644 --- a/src/views/trials/trials-panel/reading/reading-task/index.vue +++ b/src/views/trials/trials-panel/reading/reading-task/index.vue @@ -271,6 +271,9 @@ /> -->