From 1a586451a18aa1b040460cf0fe632e32ff9834fc Mon Sep 17 00:00:00 2001 From: shidongli Date: Tue, 28 May 2024 15:15:09 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../manage/components/specialDiseaseNodeopen.vue | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/src/views/manage/components/specialDiseaseNodeopen.vue b/src/views/manage/components/specialDiseaseNodeopen.vue index 12ddf96..e90981b 100644 --- a/src/views/manage/components/specialDiseaseNodeopen.vue +++ b/src/views/manage/components/specialDiseaseNodeopen.vue @@ -457,8 +457,8 @@ export default { getById(this.lists[0].list[0].id).then(res => { this.form = res.data if (this.form.taskType) { - this.changeTaskType(this.form.taskType, this.form.taskSubdivision) - } + this.changeTaskType(this.form.taskType, this.form.taskSubdivision) + } }) this.$refs.wangeditor.disable(); }) @@ -551,12 +551,14 @@ export default { }, bottomclickevent(uitem, index, uindex, item) { console.log(uitem, item) - getById(uitem.id).then(res => { - this.form = res.data - if (this.form.taskType) { - this.changeTaskType(this.form.taskType, this.form.taskSubdivision) + if (uitem.id) { + getById(uitem.id).then(res => { + this.form = res.data + if (this.form.taskType) { + this.changeTaskType(this.form.taskType, this.form.taskSubdivision) + } + }) } - }) this.$refs.wangeditor.emit() // this.form = uitem