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;