From 13a9015a85303de6e6dd4379f31621b0877672a3 Mon Sep 17 00:00:00 2001 From: qinxianzhangyao <11053546+qinxianzhangyao@user.noreply.gitee.com> Date: 星期二, 27 二月 2024 09:08:55 +0800 Subject: [PATCH] qxtj --- src/views/hosp/project/index.vue | 21 ++++++++++++++------- 1 files changed, 14 insertions(+), 7 deletions(-) diff --git a/src/views/hosp/project/index.vue b/src/views/hosp/project/index.vue index 11f1921..7eed577 100644 --- a/src/views/hosp/project/index.vue +++ b/src/views/hosp/project/index.vue @@ -1099,8 +1099,6 @@ }else{ this.form.deptId = null } - - console.log(this.form.deptId) // this.form.proId = this.queryParams.proId; this.form.proCheckMethod = "N"; @@ -1222,7 +1220,6 @@ getDeptList() { listDept(this.queryParams).then((response) => { this.parentNameList = response.data; - console.log(this.parentNameList) this.deptList = this.handleTree(response.data, "proId"); }); }, @@ -1497,7 +1494,6 @@ this.proParent =false getProject(proId).then((response) => { this.form = response.data; - console.log( this.form) if (this.form.proParentId === "0") { this.showPrise = true; this.showRentPrise = false; @@ -1563,7 +1559,6 @@ }); }, changeValue(value) { - console.log(value) // this.form.deptName = value; this.form.deptId = value; }, @@ -1634,8 +1629,14 @@ this.form.lisXmbm = this.form.lisXmbm; updateProject(this.form).then((response) => { this.$modal.msgSuccess("淇敼鎴愬姛"); - this.cancel(); + if(this.proParent == true){ + this.getDeptTree(); + this.cancel(); + }else{ + this.cancel(); this.getList(); + } + }); } else { if (this.form.proParentId === 0) { @@ -1698,8 +1699,14 @@ this.form.lisXmbm = this.form.lisXmbm; updateProject(this.form).then((response) => { this.$modal.msgSuccess("淇敼鎴愬姛"); - this.cancel(); + if(this.proParent == true){ + this.getDeptTree(); + this.cancel(); + }else{ + this.cancel(); this.getList(); + } + }); } else { if (this.form.proParentId === 0) { -- Gitblit v1.8.0