From 108eb4795a67d7b10fb6a5d56f76d6ef2f752da0 Mon Sep 17 00:00:00 2001 From: unknown Date: Wed, 17 Mar 2021 18:02:01 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=A1=E6=A0=B8=E4=BC=9A=E8=AE=AE=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E5=86=85=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../BiologicalSampleSearch/SampleTable.vue | 7 ++++++ src/components/CaseTable/CaseTable.vue | 15 ++++++++--- src/components/Echarts/Categorymap.vue | 10 ++++---- src/components/Echarts/PatientProgress.vue | 4 +-- src/components/PatientInfo/PatientTable.vue | 6 ++--- src/views/CaseAnalysis/CaseAnalysis.vue | 12 ++++++--- src/views/CaseSearch/CaseSearch.vue | 10 +++++--- src/views/PatientInfo/PatientInfo.vue | 25 ++++++++++++++++--- 8 files changed, 64 insertions(+), 25 deletions(-) diff --git a/src/components/BiologicalSampleSearch/SampleTable.vue b/src/components/BiologicalSampleSearch/SampleTable.vue index a174b3b..c0775cf 100644 --- a/src/components/BiologicalSampleSearch/SampleTable.vue +++ b/src/components/BiologicalSampleSearch/SampleTable.vue @@ -50,6 +50,13 @@ const columns = [ key: 'sampleType', scopedSlots: { customRender: 'sampleType' }, }, + { + title: '修改时间', + align: 'center', + dataIndex: 'updateAt', + key: 'updateAt', + scopedSlots: { customRender: 'updateAt' }, + }, { title: '采集时间', align: 'center', diff --git a/src/components/CaseTable/CaseTable.vue b/src/components/CaseTable/CaseTable.vue index 7f1a64f..d782f27 100644 --- a/src/components/CaseTable/CaseTable.vue +++ b/src/components/CaseTable/CaseTable.vue @@ -17,9 +17,9 @@ @@ -999,6 +1004,8 @@ export default { dateChoose: new Date(), subDateTime: '', getCode: '', + visible: false, + confirmLoading: false, }; }, @@ -1017,16 +1024,23 @@ export default { } }, }, - created() { + async created() { + console.log(this.patientId); this.getCode = ''; this.tabNums = 0; if (this.$route.query && this.$route.query.code) { // vue从路径中获取参数 此处参数名为code this.getCode = this.$route.query.code; } - this.getQuery(); + await this.getQuery(); }, methods: { + showModal() { + this.visible = true; + }, + handleCancel(e) { + this.visible = false; + }, getList(obj) { let arr = []; for (let i = 0; i < obj.length; i++) { @@ -1053,7 +1067,7 @@ export default { const params = { param: { code: this.getCode ? this.getCode : '', - id: localStorage.getItem('patientId') ? localStorage.getItem('patientId') : '', + id: this.patientId ? this.patientId : '', nums: this.tabNums, }, }; @@ -1348,6 +1362,7 @@ export default { // 提交表单 async setData() { try { + this.confirmLoading = true; const params = { param: { list: this.contentList, @@ -1360,12 +1375,14 @@ export default { const { code, msg, data } = res.data; if (code === 200) { this.$message.success('提交成功'); + this.visible = false; } else { this.$message.error('提交失败'); } } catch (error) { this.$message.error('error'); } + this.confirmLoading = false; }, }, };