diff --git a/src/views/manage/message/index.vue b/src/views/manage/message/index.vue index faf2581..e6b4c4d 100644 --- a/src/views/manage/message/index.vue +++ b/src/views/manage/message/index.vue @@ -844,10 +844,8 @@ export default { }, /** 修改按钮操作 */ handleUpdate(row) { - if (!this.itemname) { - this.$modal.msgError("请先选择科室"); - } else { - // this.reset(); + + this.reset(); const id = row.id || this.ids // this.getDisease(); getMessage(id).then(response => { @@ -858,7 +856,7 @@ export default { this.open = true; this.title = "修改短信模板信息"; }); - } + }, /** 提交按钮 */ submitForm() { diff --git a/src/views/manage/script/index.vue b/src/views/manage/script/index.vue index b6294d0..989d6b4 100644 --- a/src/views/manage/script/index.vue +++ b/src/views/manage/script/index.vue @@ -986,10 +986,8 @@ export default { }, /** 修改按钮操作 */ handleUpdate(row) { - if (!this.itemname) { - this.$modal.msgError("请先选择科室"); - } else { - // this.reset(); + + this.reset(); const id = row.id || this.ids // this.getDisease(); getScript(id).then(response => { @@ -999,7 +997,7 @@ export default { this.open = true; this.title = "修改话术信息"; }); - } + }, /** 提交按钮 */ submitForm() { diff --git a/src/views/manage/template/index.vue b/src/views/manage/template/index.vue index d2ef07e..ec08982 100644 --- a/src/views/manage/template/index.vue +++ b/src/views/manage/template/index.vue @@ -771,10 +771,8 @@ export default { }, /** 修改按钮操作 */ handleUpdate(row) { - if (!this.itemname) { - this.$modal.msgError("请先选择科室"); - } else { - // this.reset(); + + this.reset(); const id = row.id || this.ids // this.getDisease(); this.typelistdata(); @@ -786,7 +784,7 @@ export default { this.open = true; this.title = "修改信息"; }); - } + }, /** 提交按钮 */ submitForm() { diff --git a/src/views/operationInfo/operationInfo/index.vue b/src/views/operationInfo/operationInfo/index.vue index 0017b10..330fd13 100644 --- a/src/views/operationInfo/operationInfo/index.vue +++ b/src/views/operationInfo/operationInfo/index.vue @@ -414,9 +414,7 @@ export default { }, /** 修改按钮操作 */ handleUpdate(row) { - if (!this.itemname) { - this.$modal.msgError("请先选择科室"); - } else { + // this.reset() this.form.operationInfo = ''; this.open = true; @@ -425,6 +423,7 @@ export default { this.form.operationInfo= response.data.operationInfo; this.form.operationName= response.data.operationName; this.form.departmentId= response.data.departmentId; + this.form.departmentName= response.data.departmentName; this.open = true; this.title = "修改手术信息"; if (this.title == "修改手术信息") { @@ -432,7 +431,6 @@ export default { } }); - } }, /** 提交按钮 */ submitForm() {