|
|
@@ -131,6 +131,10 @@ export default {
|
|
|
const noData = data.filter(item => item.isShow === '1')
|
|
|
const noIdList = noData.map((obj, index) => { return obj.id }).join(',').split(',')
|
|
|
const tree = data.filter(item => item.isShow !== '1' && !noIdList.includes(item.parentId))
|
|
|
+ for (const item of tree) {
|
|
|
+ item.authorityName = item.authorityName || '{"chaYue":"","buMen":"","shenCha":"","shenHeZouXiang":"","fenLei":""}'
|
|
|
+ item.authorityObject = item.authorityObject || { chaYue: '', buMen: '', shenCha: '', shenHeZouXiang: '', fenLei: '' }
|
|
|
+ }
|
|
|
this.treeData = tree
|
|
|
}
|
|
|
|