From 107eca865d65849534a086b510b22da788aa4ac9 Mon Sep 17 00:00:00 2001 From: qinjie Date: Wed, 1 Sep 2021 10:31:10 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E7=BB=84=E7=BB=87=E6=9C=BA=E6=9E=84?= =?UTF-8?q?=E6=A0=91=E9=80=89=E6=8B=A9=E7=BB=84=E4=BB=B6=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/OrgTree/Index.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/OrgTree/Index.vue b/src/components/OrgTree/Index.vue index 496a569..70feb80 100644 --- a/src/components/OrgTree/Index.vue +++ b/src/components/OrgTree/Index.vue @@ -114,8 +114,8 @@ export default { methods: { // 点击组织机构数节点时调用 selectTree(selectedKeys, e) { - this.selectKey = e.node.eventKey; - this.selectTitle = e.node.title; + this.selectKey = e.node.dataRef.key; + this.selectTitle = e.node.dataRef.title; this.$emit('getSelectTreeKey', this.selectKey); }, // 展开/收起节点时触发 From 2ade51f1c2b7c76ae455562fa3e7b5d8ea06ce71 Mon Sep 17 00:00:00 2001 From: qinjie Date: Wed, 1 Sep 2021 11:11:39 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E8=A1=A8=E6=A0=BC=E6=90=9C=E7=B4=A2?= =?UTF-8?q?=E7=BB=84=E4=BB=B6=E6=96=B0=E5=A2=9E=E7=BB=84=E7=BB=87=E6=9C=BA?= =?UTF-8?q?=E6=9E=84=E6=A0=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/SearchCom/index.vue | 31 ++++++++++++++++++------------ src/utils/request.js | 4 ++-- 2 files changed, 21 insertions(+), 14 deletions(-) diff --git a/src/components/SearchCom/index.vue b/src/components/SearchCom/index.vue index 044bc94..3393d9e 100644 --- a/src/components/SearchCom/index.vue +++ b/src/components/SearchCom/index.vue @@ -2,9 +2,9 @@ - + - + @@ -17,13 +17,7 @@ - + @@ -31,12 +25,20 @@ 查询 重置 + + + + + +