From 4fa85505cfda0803cbeb162f6d8168872bb1cff9 Mon Sep 17 00:00:00 2001 From: Esacpe <1113279529@qq.com> Date: Sun, 6 Jul 2025 17:23:11 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../MyComponents/DepartmentTree/index.vue | 15 +- src/utils/tools.js | 39 +++ .../RlStatisticalAnalysis/index.vue | 2 +- .../StatisticalAnalysis/index.vue | 237 ++++++++++-------- 4 files changed, 173 insertions(+), 120 deletions(-) diff --git a/src/components/MyComponents/DepartmentTree/index.vue b/src/components/MyComponents/DepartmentTree/index.vue index 389c0c1..83dab0a 100644 --- a/src/components/MyComponents/DepartmentTree/index.vue +++ b/src/components/MyComponents/DepartmentTree/index.vue @@ -125,20 +125,11 @@ const nodeClick = (node) => { }else{ emits("update:modelValue", node.orgCode); } + emits("change", node); }; -const emits = defineEmits(["update:modelValue"]); -const handleChange = (e) => { - if (props.multiple === true) { - const data = e.map((item) => { - return item[item.length - 1]; - }); - emits("update:modelValue", data); - } else { - const data = e[0]; - emits("update:modelValue", data); - } -}; +const emits = defineEmits(["update:modelValue",'change']); +