|
@@ -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;
|