ソースを参照

新指挥中心交互

Shannon_mu 2 年 前
コミット
0ea5297ccc
1 ファイル変更11 行追加5 行削除
  1. 11 5
      commandCenter/src/components/common/Header.vue

+ 11 - 5
commandCenter/src/components/common/Header.vue

@@ -139,14 +139,20 @@ export default {
             this.time.thisTime = this.$moment().format('YYYY/MM/DD');
         },
         communityNameList() {
-            this.$http.get('/sc-community/assets/community/list').then(({ data, msg, status }) => {
+            this.$http.get('/sc-community/assets/tree/community/findCompanyCommunityTree').then(({ data, msg, status }) => {
                 if (status == 0) {
-                    this.communityList = data;
-                    // this.communityId = data[0].id;
-                    // this.$store.commit('setHomeCommunityAll', this.communityId);
-                    this.$store.commit('setAreaSelect', data);
+                    // this.communityList = data;
+                    // this.$store.commit('setAreaSelect', data);
+                    console.log(data)
                 }
             });
+
+            // this.$http.get('/sc-community/assets/community/list').then(({ data, msg, status }) => {
+            //     if (status == 0) {
+            //         this.communityList = data;
+            //         this.$store.commit('setAreaSelect', data);
+            //     }
+            // });
         },
         selectTab(item, index) {
             this.tagTabIndex = index;