|
@@ -242,7 +242,13 @@ export default {
|
|
},
|
|
},
|
|
getXzqTreeData() {
|
|
getXzqTreeData() {
|
|
GetXzqhTree().then((res) => {
|
|
GetXzqhTree().then((res) => {
|
|
- this.xzqTreeData = res.data;
|
|
|
|
|
|
+ if (res.data.length > 0) {
|
|
|
|
+ const list = res.data[0].children.filter((item) => {
|
|
|
|
+ return item.label == "三亚市";
|
|
|
|
+ });
|
|
|
|
+ if (list.length > 0) this.xzqTreeData = list[0];
|
|
|
|
+ else this.xzqTreeData = res.data;
|
|
|
|
+ }
|
|
});
|
|
});
|
|
},
|
|
},
|
|
toggleVisibility() {
|
|
toggleVisibility() {
|