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