From 68179f421486546a7847281efcab77db3337e0a4 Mon Sep 17 00:00:00 2001 From: caiyiling <1321909229@qq.com> Date: Tue, 24 Sep 2024 13:27:47 +0800 Subject: [PATCH] =?UTF-8?q?ivus=E6=B5=8B=E9=87=8F=E5=80=BC=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E5=AF=BC=E5=85=A5=E6=95=B0=E6=8D=AE=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/reading.js | 8 ++ .../dicoms/components/IVUS/QuestionList.vue | 28 ++++- .../dicoms/components/IVUS/UploadExcel.vue | 117 ++++++++++++++++++ 3 files changed, 151 insertions(+), 2 deletions(-) create mode 100644 src/views/trials/trials-panel/reading/dicoms/components/IVUS/UploadExcel.vue diff --git a/src/api/reading.js b/src/api/reading.js index 42df353e..94bfd803 100644 --- a/src/api/reading.js +++ b/src/api/reading.js @@ -209,3 +209,11 @@ export function getIVUSTemplate(param) { data: param }) } +export function uploadIVUSTemplate(param) { + return request({ + url: `/IVUSCalculate/uploadIVUSTemplate`, + method: 'post', + data: param + }) +} + diff --git a/src/views/trials/trials-panel/reading/dicoms/components/IVUS/QuestionList.vue b/src/views/trials/trials-panel/reading/dicoms/components/IVUS/QuestionList.vue index 2396454c..cceebfd4 100644 --- a/src/views/trials/trials-panel/reading/dicoms/components/IVUS/QuestionList.vue +++ b/src/views/trials/trials-panel/reading/dicoms/components/IVUS/QuestionList.vue @@ -49,7 +49,7 @@
- @@ -209,11 +222,13 @@ import store from '@/store' import { mapGetters } from 'vuex' import Questions from './../Questions' import QuestionTableFormItem from './QuestionTableFormItem' +import UploadExcel from './UploadExcel' export default { name: 'MeasurementList', components: { Questions, - QuestionTableFormItem + QuestionTableFormItem, + UploadExcel }, props: { isShow: { @@ -254,6 +269,7 @@ export default { formChanged: false, digitPlaces: 2, addOrEdit: { visible: false, title: '' }, + upload: { visible: false, title: '导入' }, qsList: [], answersList: [], qsForm: {}, @@ -669,6 +685,9 @@ export default { console.log(e) } }, + uploadTpl() { + this.upload.visible = true + }, async downloadTpl() { try { const params = { @@ -679,6 +698,11 @@ export default { console.log(e) } }, + async uploadDlgClose() { + await this.getReadingQuestionAndAnswer(this.visitTaskId) + DicomEvent.$emit('getReportInfo', true) + this.upload.visible = false + }, renderHeader(h, { column, $index }) { const span = document.createElement('span') span.innerText = column.label diff --git a/src/views/trials/trials-panel/reading/dicoms/components/IVUS/UploadExcel.vue b/src/views/trials/trials-panel/reading/dicoms/components/IVUS/UploadExcel.vue new file mode 100644 index 00000000..360f29dc --- /dev/null +++ b/src/views/trials/trials-panel/reading/dicoms/components/IVUS/UploadExcel.vue @@ -0,0 +1,117 @@ + +