Browse Source

添加互动图

master
xh-pan1 9 months ago
parent
commit
83c104ae4d
  1. 32
      src/views/setup/businessMenus/index.vue

32
src/views/setup/businessMenus/index.vue

@ -566,20 +566,28 @@ export default {
async getAll (formInline) {
const res = await businessTabsGetAll(formInline)
let tempData = res.data.list;
tempData.forEach((itemData) => {
if(itemData && itemData.langInfoMap && itemData.langInfoMap['zh']){
itemData.permissionName_ZH = itemData.langInfoMap['zh'].permissionName;
}else{
itemData.permissionName_ZH = "";
}
if(itemData && itemData.langInfoMap && itemData.langInfoMap['en']){
itemData.permissionName_EN = itemData.langInfoMap['en'].permissionName;
}else{
itemData.permissionName_EN = "";
}
});
this.initLangInfo(tempData)
this.tableData = tempData;
this.total = res.data.total;
},
initLangInfo(tempData){
if(tempData && tempData.length > 0){
tempData.forEach((itemData) => {
if(itemData && itemData.langInfoMap && itemData.langInfoMap['zh']){
itemData.permissionName_ZH = itemData.langInfoMap['zh'].permissionName;
}else{
itemData.permissionName_ZH = "";
}
if(itemData && itemData.langInfoMap && itemData.langInfoMap['en']){
itemData.permissionName_EN = itemData.langInfoMap['en'].permissionName;
}else{
itemData.permissionName_EN = "";
}
if(itemData.childs){
this.initLangInfo(itemData.childs)
}
});
}
}
}
}

Loading…
Cancel
Save