From 321891f4870d60b637b66755cd24053c029cf91e Mon Sep 17 00:00:00 2001 From: WXL <1785969728@qq.com> Date: 星期四, 20 二月 2025 16:57:59 +0800 Subject: [PATCH] 测试完成 --- src/views/knowledge/questionnaire/compilequer/index.vue | 41 +++++++++++++++++++++-------------------- 1 files changed, 21 insertions(+), 20 deletions(-) diff --git a/src/views/knowledge/questionnaire/compilequer/index.vue b/src/views/knowledge/questionnaire/compilequer/index.vue index 5467535..7eba035 100644 --- a/src/views/knowledge/questionnaire/compilequer/index.vue +++ b/src/views/knowledge/questionnaire/compilequer/index.vue @@ -1396,7 +1396,6 @@ valuetype: [], qremark: [], hosplist: [], - deptlist: [], usable: [ { value: "0", label: "鍙敤" }, { value: "1", label: "鍋滅敤" }, @@ -1539,21 +1538,22 @@ }); this.tempDetpRelevanceslist = []; this.tempbelongWards = []; - - depthospgetsonlist(this.queryParamsdept).then((res) => { - if (res.code == 200) { - let arr = res.rows; - arr.forEach((item) => { - if (item.deptType == 1) { - this.deptlist.push(item); - this.tempDetpRelevanceslist.push(item.deptCode); - } else if (item.deptType == 2) { - this.hosplist.push(item); - this.tempbelongWards.push(item.deptCode); - } - }); - } - }); + if (this.queryParamsdept.tempid) { + depthospgetsonlist(this.queryParamsdept).then((res) => { + if (res.code == 200) { + let arr = res.rows; + arr.forEach((item) => { + if (item.deptType == 1) { + this.deptlist.push(item); + this.tempDetpRelevanceslist.push(item.deptCode); + } else if (item.deptType == 2) { + this.hosplist.push(item); + this.tempbelongWards.push(item.deptCode); + } + }); + } + }); + } }, // 鑾峰彇绉戝鏍� getDeptTree() { @@ -1675,22 +1675,23 @@ let result = this.deptlist .filter((item) => item.deptCode == row) .map((item) => item.id); - console.log(result.length); if (result.length) { depthospgetsondel(result).then((res) => { - if (res.code) { + if (res.code == 200) { + this.$modal.msgSuccess("鍒犻櫎绉戝鎴愬姛"); } }); } }, - // 鍒犻櫎鍒犻櫎瑙﹀彂 + // 鍒犻櫎鐥呭尯瑙﹀彂 removehpsp(row) { let result = this.hosplist .filter((item) => item.deptCode == row) .map((item) => item.id); if (result.length) { depthospgetsondel(result).then((res) => { - if (res.code) { + if (res.code == 200) { + this.$modal.msgSuccess("鍒犻櫎鐥呭尯鎴愬姛"); } }); } -- Gitblit v1.9.3