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; }, }, };