diff --git a/src/components/360View/afterPart/index-copy.vue b/src/components/360View/afterPart/index-copy.vue index 4b1fe23..919dced 100644 --- a/src/components/360View/afterPart/index-copy.vue +++ b/src/components/360View/afterPart/index-copy.vue @@ -237,6 +237,7 @@ export default { dialogFormVisible: false, dataForm: { id: '', + idList: [], caseId: '', patientId: '', bltOd: '', // 玻璃体 vitreous @@ -639,6 +640,22 @@ export default { if (res.code === 0) { if (res.data) { this.dataForm = this.handleData(res.data) + const idList = this.dataForm.idList || [] + if (idList.length) { + idList.forEach(item => { + this.tableData.forEach(row => { + if (item == row.id) { + row.flag = true + this.$refs.multipleTable.toggleRowSelection(row, true) + } + }) + }) + } else { + this.tableData.forEach(row => { + row.flag = false + this.$refs.multipleTable.toggleRowSelection(row, false) + }) + } } } else { this.$message.error(res.msg) @@ -646,6 +663,13 @@ export default { }, // 点击保存模板后弹框 handleTemplate() { + this.dataForm.idList = [] + this.tableData.forEach(item => { + if (item.flag && item.id) { + this.dataForm.idList.push(item.id) + } + }) + if (!this.dataForm.idList.length) return this.$message.warning('请选择检查项!') this.form.name = '' this.queryTemplate() this.templateFlag = true diff --git a/src/components/360View/afterPart/index.vue b/src/components/360View/afterPart/index.vue index d69d721..8f3a75c 100644 --- a/src/components/360View/afterPart/index.vue +++ b/src/components/360View/afterPart/index.vue @@ -644,6 +644,13 @@ export default { }, // 点击保存模板后弹框 handleTemplate() { + this.dataForm.idList = [] + this.tableData.forEach(item => { + if (item.flag && item.id) { + this.dataForm.idList.push(item.id) + } + }) + if (!this.dataForm.idList.length) return this.$message.warning('请选择检查项!') this.form.name = '' this.queryTemplate() this.templateFlag = true diff --git a/src/components/360View/followUpRecord/formList/invalid.vue b/src/components/360View/followUpRecord/formList/invalid.vue index 7ef0f66..1a5a4cb 100644 --- a/src/components/360View/followUpRecord/formList/invalid.vue +++ b/src/components/360View/followUpRecord/formList/invalid.vue @@ -3,9 +3,9 @@
眼科工作平台