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);
});
},
// 卫生机构类别