|
|
@ -178,63 +178,70 @@ const actions = { |
|
|
|
_menuList.push(item.substring(item.indexOf('.') + 1,item.length)) |
|
|
|
} |
|
|
|
} |
|
|
|
let _noShowMenus = ['Z.AsnDet']//不显示的菜单
|
|
|
|
// todo-new:接口获取 接口没有走配置文件
|
|
|
|
let _noShowMenus = null//不显示的菜单
|
|
|
|
_noShowMenus = localStorage.getItem('menuHiddenConfig').split(',') |
|
|
|
// 去掉不显示的菜单后全部显示的菜单
|
|
|
|
let _showMenus = _menuList.filter(item1 => !_noShowMenus.some(item2 => item2 === item1)) |
|
|
|
// 数据模拟,todo:接口获取
|
|
|
|
let _treeMenusAll = [ |
|
|
|
{name:"aaaaaaa"}, |
|
|
|
{name:"ExportCustomUserSetting" |
|
|
|
// ,children:[
|
|
|
|
// {name:'OutgoingDataHistory',children:[
|
|
|
|
// {name:'IncomingData',children:[
|
|
|
|
// {name:'OutgoingDataHistory'},
|
|
|
|
// {name:'IncomingData'},
|
|
|
|
// {name:'333333'},
|
|
|
|
// ]},
|
|
|
|
// {name:'eee1111-bbb',children:[
|
|
|
|
// {name:'ExportCustomUserSetting'},
|
|
|
|
// {name:'MessageReceive'},
|
|
|
|
// ]},
|
|
|
|
// ]},
|
|
|
|
// {name:'eee222'},
|
|
|
|
// {name:'eee333'},
|
|
|
|
// {name:'eee444'},
|
|
|
|
// {name:'eee555'},
|
|
|
|
let _showMenus = _noShowMenus && _noShowMenus.length > 0 ? _menuList.filter(item1 => !_noShowMenus.some(item2 => item2 === item1)) : _menuList |
|
|
|
// 数据模拟,todo-new:接口获取
|
|
|
|
let _treeMenusAll = null//树形菜单
|
|
|
|
// _treeMenusAll = [
|
|
|
|
// {name:"aaaaaaa"},
|
|
|
|
// {name:"ExportCustomUserSetting"
|
|
|
|
// // ,children:[
|
|
|
|
// // {name:'OutgoingDataHistory',children:[
|
|
|
|
// // {name:'IncomingData',children:[
|
|
|
|
// // {name:'OutgoingDataHistory'},
|
|
|
|
// // {name:'IncomingData'},
|
|
|
|
// // {name:'333333'},
|
|
|
|
// // ]},
|
|
|
|
// // {name:'eee1111-bbb',children:[
|
|
|
|
// // {name:'ExportCustomUserSetting'},
|
|
|
|
// // {name:'MessageReceive'},
|
|
|
|
// // ]},
|
|
|
|
// // ]},
|
|
|
|
// // {name:'eee222'},
|
|
|
|
// // {name:'eee333'},
|
|
|
|
// // {name:'eee444'},
|
|
|
|
// // {name:'eee555'},
|
|
|
|
// // ]
|
|
|
|
// },
|
|
|
|
// {name:"OutgoingDataHistory"},
|
|
|
|
// {name:"IncomingData"},
|
|
|
|
// {name:"IncomingDataHistory"},
|
|
|
|
// {name:"MesProductL7PartsNote"},
|
|
|
|
// {name:"MessageReceive"},
|
|
|
|
// {name:"OutgoingData"},
|
|
|
|
// {name:"AsnDet"},
|
|
|
|
// {name:"AsnMstr"},
|
|
|
|
// {name:"Bom"},
|
|
|
|
// {name:"CustPart"},
|
|
|
|
// {name:"Cust"},
|
|
|
|
// {name:"Inventory"},
|
|
|
|
// {name:"Loc"},
|
|
|
|
// {name:"Part"},
|
|
|
|
// {name:"PoDet"},
|
|
|
|
// {name:"PoMstr"},
|
|
|
|
// {name:"PrhHist"},
|
|
|
|
// {name:"ProdLine"},
|
|
|
|
// {name:"ReceiptDet"},
|
|
|
|
// {name:"ReceiptMstr"},
|
|
|
|
// {name:"ReturnDet"},
|
|
|
|
// {name:"ReturnMstr"},
|
|
|
|
// {name:"SodDet"},
|
|
|
|
// {name:"VendPart"},
|
|
|
|
// {name:"Vend"},
|
|
|
|
// ]
|
|
|
|
}, |
|
|
|
{name:"OutgoingDataHistory"}, |
|
|
|
{name:"IncomingData"}, |
|
|
|
{name:"IncomingDataHistory"}, |
|
|
|
{name:"MesProductL7PartsNote"}, |
|
|
|
{name:"MessageReceive"}, |
|
|
|
{name:"OutgoingData"}, |
|
|
|
{name:"AsnDet"}, |
|
|
|
{name:"AsnMstr"}, |
|
|
|
{name:"Bom"}, |
|
|
|
{name:"CustPart"}, |
|
|
|
{name:"Cust"}, |
|
|
|
{name:"Inventory"}, |
|
|
|
{name:"Loc"}, |
|
|
|
{name:"Part"}, |
|
|
|
{name:"PoDet"}, |
|
|
|
{name:"PoMstr"}, |
|
|
|
{name:"PrhHist"}, |
|
|
|
{name:"ProdLine"}, |
|
|
|
{name:"ReceiptDet"}, |
|
|
|
{name:"ReceiptMstr"}, |
|
|
|
{name:"ReturnDet"}, |
|
|
|
{name:"ReturnMstr"}, |
|
|
|
{name:"SodDet"}, |
|
|
|
{name:"VendPart"}, |
|
|
|
{name:"Vend"}, |
|
|
|
] |
|
|
|
|
|
|
|
let _initTreeMenus = [] |
|
|
|
if(_treeMenusAll && _treeMenusAll.length > 0){ |
|
|
|
_initTreeMenus = initTreeMenusHandle(_treeMenusAll,_showMenus,_zh,true) |
|
|
|
}else{ |
|
|
|
_initTreeMenus = _showMenus |
|
|
|
let _data = [] |
|
|
|
for(let i in _showMenus){ |
|
|
|
_data.push({name:_showMenus[i]}) |
|
|
|
} |
|
|
|
_initTreeMenus = initTreeMenusHandle(_data,_showMenus,_zh,true) |
|
|
|
} |
|
|
|
// 最后查重+层级查重后的菜单
|
|
|
|
let _initEndMenus = generaMenu(asyncRoutes, _initTreeMenus,true) |
|
|
|