From 4e68ebba7faf6c44d9ef4517514f20548d7b1bf5 Mon Sep 17 00:00:00 2001 From: shidongli Date: Wed, 6 Mar 2024 09:33:28 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=8B=E6=9C=AF=E5=90=8D=E7=A7=B0=20?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/operationInfo/operationInfo/index.vue | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/views/operationInfo/operationInfo/index.vue b/src/views/operationInfo/operationInfo/index.vue index 330fd13..04c8060 100644 --- a/src/views/operationInfo/operationInfo/index.vue +++ b/src/views/operationInfo/operationInfo/index.vue @@ -353,7 +353,7 @@ export default { // 表单重置 reset() { this.form = { - // id: null, + id: null, // departmentId: null, // departmentName: null, operationName: null, @@ -414,8 +414,7 @@ export default { }, /** 修改按钮操作 */ handleUpdate(row) { - - // this.reset() + this.reset() this.form.operationInfo = ''; this.open = true; const id = row.id || this.ids @@ -424,6 +423,7 @@ export default { this.form.operationName= response.data.operationName; this.form.departmentId= response.data.departmentId; this.form.departmentName= response.data.departmentName; + this.form.id= response.data.id; this.open = true; this.title = "修改手术信息"; if (this.title == "修改手术信息") { @@ -436,7 +436,8 @@ export default { submitForm() { this.$refs["form"].validate(valid => { if (valid) { - if (this.form.id != null) { + console.log(this.form,'00000') + if (this.form.id) { updateOperationInfo(this.form).then(response => { this.$modal.msgSuccess("修改成功"); this.open = false;