手术名称 修改

This commit is contained in:
shidongli 2024-03-06 09:33:28 +08:00
parent 7408b9dab0
commit 4e68ebba7f

View File

@ -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;