From a7c90f4a5ed7619a6682f22665338acfed22564e Mon Sep 17 00:00:00 2001 From: qinxianzhangyao <11053546+qinxianzhangyao@user.noreply.gitee.com> Date: 星期四, 14 十二月 2023 18:07:52 +0800 Subject: [PATCH] qxtj --- src/views/hosp/project/index.vue | 23 ++++++++++++++++------- 1 files changed, 16 insertions(+), 7 deletions(-) diff --git a/src/views/hosp/project/index.vue b/src/views/hosp/project/index.vue index 3749c75..5bdb7ba 100644 --- a/src/views/hosp/project/index.vue +++ b/src/views/hosp/project/index.vue @@ -553,6 +553,7 @@ this.open = true; this.title = "浣撴椤圭洰淇℃伅缁存姢"; this.form.deptId = this.queryParams.deptId + this.form.proCheckMethod = "N" if (this.key = "Y") { gettreeList().then((response) => { this.deptOptionstree = response.data; @@ -563,21 +564,29 @@ // 鎵撳紑input寮规 getDetailed() { - - if (this.form.proParentId == 0) { - this.dialogTableVisible = false; - } else if (this.form.proParentId != 0) { - this.dialogTableVisible = true; - this.getlistSfxm() + if (this.selectList) { + if (this.selectList.proName === "涓荤被鐩�") { + this.dialogTableVisible = false; + }else{ + this.dialogTableVisible = true; + this.getlistSfxm() + } + } else if (this.form.proParentId) { + if (this.form.proParentId != 0) { + this.dialogTableVisible = true; + this.getlistSfxm() + } else if (this.form.proParentId == 0) { + this.dialogTableVisible = false; + } } else { this.$message.error("璇烽�夋嫨涓婚」鍚嶇О"); } - }, obtain(vals) { if (this.projectOptions) { this.selectList = vals; + console.log(this.selectList) } if (this.selectList.proName === "涓荤被鐩�") { this.showPrise = true; -- Gitblit v1.8.0