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 @@
-
+
@@ -198,6 +198,19 @@ + + + +
@@ -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 @@ + + + +