diff --git a/src/views/components/dialog/index.vue b/src/views/components/dialog/index.vue index 97fd1ca..435291a 100644 --- a/src/views/components/dialog/index.vue +++ b/src/views/components/dialog/index.vue @@ -397,7 +397,7 @@ export default { array[ind] = dictzh[item]; }); // console.log(array.join(",")); - return array.join(","); + return array.join(",") || "/"; }, }, methods: { @@ -579,8 +579,8 @@ export default { this.dialogVisible = true; // let data = await this.$api.yingji.tree(); // this.district = data.data; - let treeData = JSON.parse(localStorage.getItem("TREE_DATA")) - this.district = treeData + let treeData = JSON.parse(localStorage.getItem("TREE_DATA")); + this.district = treeData; this.commentData(this.district, dept); this.bPlanEnterprise(); this.filtrate(); diff --git a/src/views/yingji/enterprise.vue b/src/views/yingji/enterprise.vue index 73414ba..cadd4e5 100644 --- a/src/views/yingji/enterprise.vue +++ b/src/views/yingji/enterprise.vue @@ -316,7 +316,7 @@ export default { array[ind] = dictzh[item]; }); // console.log(array.join(",")); - return array.join(","); + return array.join(",") || "/"; }, }, methods: {