Commit 65d91094 by caoyanzhi

fix:修复企业信息行业类型展示

parent 2fe0ad49
......@@ -17,7 +17,7 @@
</span>
</el-form-item>
<el-form-item label="企业ID">{{ enterpriseDetail.corpId || '--' }}</el-form-item>
<el-form-item label="行业类型">{{ enterpriseDetail.corpIndustry || '--' }}</el-form-item>
<el-form-item label="行业类型">{{ formatCorpIndustry() }}</el-form-item>
<el-form-item label="应用可见范围">
{{ Array.isArray(enterpriseDetail.displayRange) && enterpriseDetail.displayRange.length > 0 ? enterpriseDetail.displayRange.map(el => el.name).join(',') : '--' }}
</el-form-item>
......@@ -90,7 +90,11 @@ export default {
{ name: '查看' }
],
enterpriseId: '',
enterpriseDetail: {},
enterpriseDetail: {
displayRange: [], // 企业信息-应用可见范围
secret: {}, // 好办自建应用
enterpriseList: [], // 授权信息表格
},
bindInfo: {
show: false,
data: [],
......@@ -110,12 +114,22 @@ export default {
methods: {
getEnterpriseDetail() {
getEnterpriseDetail({ wxEnterpriseId: this.enterpriseId }).then(res => {
this.enterpriseDetail = res.result || {};
Object.assign(this.enterpriseDetail, res.result);
})
},
onRefresh() {
refreshEnterpriseInfo().then(this.getEnterpriseDetail);
},
formatCorpIndustry() {
const result = [];
if (this.enterpriseDetail.corpIndustry) {
result.push(this.enterpriseDetail.corpIndustry);
}
if (this.enterpriseDetail.corpSubIndustry) {
result.push(this.enterpriseDetail.corpSubIndustry);
}
return result.length > 0 ? result.join('/') : '--';
},
getBindDetail(storeData, type) {
const { wxEnterpriseId, enterpriseId } = storeData
const params = {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment