|
@@ -43,6 +43,7 @@
|
|
:contactinfo="master.contactinfo"
|
|
:contactinfo="master.contactinfo"
|
|
:content="site.content"
|
|
:content="site.content"
|
|
:companytop="master.companytop"
|
|
:companytop="master.companytop"
|
|
|
|
+ :companylist="corpList"
|
|
:unittop="master.unittop"
|
|
:unittop="master.unittop"
|
|
:unitlist="coopList"
|
|
:unitlist="coopList"
|
|
:footinfo="site"
|
|
:footinfo="site"
|
|
@@ -94,6 +95,7 @@ export default {
|
|
linkList: [],
|
|
linkList: [],
|
|
//master数据
|
|
//master数据
|
|
master: { ...masterInfo },
|
|
master: { ...masterInfo },
|
|
|
|
+ corpList: [],
|
|
}),
|
|
}),
|
|
async created() {
|
|
async created() {
|
|
await this.checkUser();
|
|
await this.checkUser();
|
|
@@ -117,11 +119,12 @@ export default {
|
|
'columnOperation',
|
|
'columnOperation',
|
|
'linkOperation',
|
|
'linkOperation',
|
|
'menuOperation',
|
|
'menuOperation',
|
|
|
|
+ 'corpListOperation',
|
|
]),
|
|
]),
|
|
//检查用户身份
|
|
//检查用户身份
|
|
checkUser() {
|
|
checkUser() {
|
|
let schId = sessionStorage.getItem('schId');
|
|
let schId = sessionStorage.getItem('schId');
|
|
- if (schId !== 'master') {
|
|
|
|
|
|
+ if (schId === 'master') {
|
|
this.$set(this, `user`, schId);
|
|
this.$set(this, `user`, schId);
|
|
}
|
|
}
|
|
},
|
|
},
|
|
@@ -314,8 +317,14 @@ export default {
|
|
}
|
|
}
|
|
},
|
|
},
|
|
//主站信息组合
|
|
//主站信息组合
|
|
- masterData() {
|
|
|
|
|
|
+ async masterData() {
|
|
this.$set(this.master, `bannerinfo`, { banner: this.site.banner });
|
|
this.$set(this.master, `bannerinfo`, { banner: this.site.banner });
|
|
|
|
+ //获取入驻企业
|
|
|
|
+ let result = await this.corpListOperation();
|
|
|
|
+ console.log(result);
|
|
|
|
+ if (`${result.errcode}` === '0') {
|
|
|
|
+ this.$set(this, `corpList`, result.data);
|
|
|
|
+ }
|
|
},
|
|
},
|
|
},
|
|
},
|
|
};
|
|
};
|