From 7665f769c00f72b1f813606107df16b253dc33c2 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E9=97=AB=E6=99=93=E8=8C=B9?= <1935832701@qq.com>
Date: Tue, 9 Apr 2024 13:32:23 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=9C=BA=E6=9E=84=E9=BB=98?=
=?UTF-8?q?=E8=AE=A4=E9=80=89=E4=B8=AD=E7=AC=AC=E4=B8=80=E8=A1=8C?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/system/agency/index.vue | 22 +++++++++++++++++++---
1 file changed, 19 insertions(+), 3 deletions(-)
diff --git a/src/views/system/agency/index.vue b/src/views/system/agency/index.vue
index de6526c..6b30007 100644
--- a/src/views/system/agency/index.vue
+++ b/src/views/system/agency/index.vue
@@ -79,15 +79,17 @@
+
@@ -581,6 +583,7 @@ export default {
name: "Agency",
data() {
return {
+ checkDefault: [],
arealist: [],
citylist: [],
arealists: [],
@@ -740,6 +743,19 @@ export default {
treeOptions: [],
};
},
+// 默认选中第一行
+watch: {
+ deptOptions: {
+ handler(val) {
+ if(val) {
+ this.$nextTick(() => {
+ document.querySelector('.el-tree-node__content').click()
+ })
+ }
+ },
+ immediate: true
+ },
+},
created() {
this.getaddress();
// this.getTreeselect();
@@ -813,7 +829,7 @@ export default {
// checkStrictly: true,
// lazyLoad: this.lazyLoad,
// };
- console.log(res.data, "58", this.treeOptions);
+ // console.log(res.data, "58", this.treeOptions);
});
},
// 卫生机构类别