const res = { "success": true, "code": 200, "message": "请求成功", "data": { "id": "142307070910551", "account": "superAdmin", "nickName": "superAdmin", "name": "超级管理员", "avatar": "188632919339077", "birthday": "1753-01-01 00:00:00", "sex": 1, "email": null, "phone": "18020030720", "tel": null, "adminType": 1, "lastLoginIp": "192.168.31.159", "lastLoginTime": "2022-05-11 15:01:27", "lastLoginAddress": null, "lastLoginBrowser": "Edge101", "lastLoginOs": "Windows10", "loginEmpInfo": { "id": "142307070910551", "jobNum": null, "orgId": "177325089079365", "orgName": "系统机构", "extOrgPos": [], "positions": [] }, "apps": [ { "id": "0", "name": "系统总览", "code": "overview", "icon":"home", "active": false, "sort": 0 }, // { // "id": "0", // "name": "故障树", // "code": "home", // "icon":"home", // "active": true, // "sort": 0 // }, { "id": "0", "name": "数据监测", "code": "vibration", "icon":"signal", "active": false, "sort": 0 }, { "id": "0", "name": "健康评价", "code": "health", "icon":"calendar-plus-o", "active": false, "sort": 0 }, { "id": "0", "name": "故障诊断", "code": "fault", "icon":"gavel", "active": false, "sort": 0 }, { "id": "0", "name": "趋势分析", "code": "trend", "icon":"line-chart", "active": false, "sort": 0 }, ], "roles": [], "permissions": [ "sysUser:page", "sysUser:edit", "sysUser:add", "sysUser:delete", "sysUser:detail", "sysUser:export", "sysUser:selector", "sysUser:grantRole", "sysUser:ownRole", "sysUser:grantData", "sysUser:ownData", "sysUser:updateInfo", "sysUser:updatePwd", "sysUser:changeStatus", "sysUser:updateAvatar", "sysUser:resetPwd", "sysOrg:page", "sysOrg:list", "sysOrg:add", "sysOrg:edit", "sysOrg:delete", "sysOrg:detail", "sysOrg:tree", "sysPos:page", "sysPos:list", "sysExLog:page", "sysExLog:delete", "sysPos:add", "sysPos:edit", "sysPos:delete", "sysPos:detail", "sysApp:page", "sysApp:list", "sysApp:add", "sysApp:edit", "sysApp:delete", "sysApp:detail", "sysApp:setAsDefault", "sysMenu:list", "sysMenu:add", "sysMenu:edit", "sysMenu:delete", "sysMenu:detail", "sysMenu:treeForGrant", "sysMenu:tree", "sysMenu:change", "sysRole:page", "sysRole:add", "sysRole:edit", "sysRole:delete", "sysRole:detail", "sysRole:dropDown", "sysRole:grantMenu", "sysRole:ownMenu", "sysRole:grantData", "sysRole:ownData", "sysConfig:page", "sysConfig:list", "sysConfig:add", "sysConfig:edit", "sysConfig:delete", "sysConfig:detail", "sysApp:setAsDefault", "email:sendEmail", "email:sendEmailHtml", "sms:page", "sms:sendLoginMessage", "sms:validateMessage", "sysDictType:page", "sysDictType:list", "sysDictType:add", "sysDictType:delete", "sysDictType:edit", "sysDictType:detail", "sysDictType:dropDown", "sysDictType:changeStatus", "sysDictData:page", "sysDictData:list", "sysDictData:add", "sysDictData:delete", "sysDictData:edit", "sysDictData:detail", "sysDictData:changeStatus", "sysVisLog:page", "sysVisLog:delete", "sysOpLog:page", "sysOpLog:delete", "sysMachine:query", "sysOnlineUser:list", "sysOnlineUser:forceExist", "sysNotice:page", "sysNotice:add", "sysNotice:edit", "sysNotice:delete", "sysNotice:detail", "sysNotice:changeStatus", "sysNotice:received", "sysFileInfo:page", "sysFileInfo:list", "sysFileInfo:delete", "sysFileInfo:detail", "sysFileInfo:upload", "sysFileInfo:download", "sysFileInfo:preview", "sysTimers:page", "sysTimers:list", "sysTimers:detail", "sysTimers:add", "sysTimers:delete", "sysTimers:edit", "sysTimers:getActionClasses", "sysTimers:start", "sysTimers:stop", "sysTenant:page", "sysTenant:detail", "sysTenant:add", "sysTenant:delete", "sysTenant:edit", "sysTenant:grantMenu", "sysTenant:resetPwd", "sysFileInfo:uploadAvatar", "sysFileInfo:uploadDocument", "sysFileInfo:uploadShop", "table:add", "table:edit", "table:delete", "column:add", "column:edit", "column:delete", "codeGenerate:add", "codeGenerate:edit", "codeGenerate:delete", "codeGenerate:runDown", "codeGenerate:runLocal", "codeGenerate:config", "dataBase:tableInfoList", "dataBase:columnInfoList", "codeGenerate:page", "sysCodeGenerateConfig:list", "flcForm:page", "flcForm:add", "flcForm:edit", "flcForm:delete", "flcForm:detail", "flcForm:list", "flcForm:design", "flcFlowscheme:page", "flcFlowscheme:detail", "flcFlowscheme:add", "flcFlowscheme:delete", "flcFlowscheme:edit", "flcFlowscheme:list", "flcFlowscheme:design", "flcFlowscheme:preview", "flcForm:preview", "flcFlowinstance:add", "flcFlowscheme:page", "flcFlowinstance:page", "flcFlowinstance:page", "flcFlowinstance:page", "flcFlowinstance:detail", "flcFlowinstance:detail", "flcFlowinstance:verification", "flcFlowinstance:edit", "flcFlowinstance:delete", "flcFlowinstance:cancle", "flcFlowscheme:changeStatus", "Document:page", "Document:detail", "Document:add", "Document:delete", "Document:edit", "simulationTenantLogin", "Trash:page", "Trash:detail", "Trash:add", "Trash:delete", "Trash:edit", "Document:download" ], "menus": [ { "application": "home", "id": "home_1", "pid": "0", "name": "home_1", "component": "RouteView", "redirect": "", "meta": { "title": "故障树", "icon": "book", "show": true, "target": "", "link": null, "belongid": "home" }, "path": "/home/group1", "hidden": false }, { "application": "home", "id": "home_1_3", "pid": "home_1", "name": "home_1_3", "component": "main/flow-x6/index", "redirect": "", "meta": { "title": "x6图形编辑", "icon": "", "show": true, "target": "", "link": null, "belongid": "home" }, "path": "/x6_edit", "hidden": false }, { "application": "home", "id": "home_1_4", "pid": "home_1", "name": "home_1_4", "component": "main/istation/viewFlowX6", "redirect": "", "meta": { "title": "x6图形查看", "icon": "", "show": true, "target": "", "link": null, "belongid": "home" }, "path": "/x6_view", "hidden": false }, { "application": "vibration", "id": "vibration_1", "pid": "0", "name": "vibration_1", "component": "RouteView", "redirect": "", "meta": { "title": "状态监测", "icon": "book", "show": true, "target": "", "link": null, "belongid": "vibration" }, "path": "/vibration/group1", "hidden": true }, { "application": "vibration", "id": "vibration_1_1", "pid": "vibration_1", "name": "vibration_1_1", "component": "main/istation/vibration/index", "redirect": "", "meta": { "title": "列表监测", "icon": "", "show": true, "target": "", "link": null, "belongid": "vibration" }, "path": "/list_view", "hidden": true }, { "application": "vibration", "id": "vibration_1_2", "pid": "vibration_1", "name": "vibration_1_2", "component": "main/istation/vibration/barStack", "redirect": "", "meta": { "title": "棒图监测", "icon": "", "show": true, "target": "", "link": null, "belongid": "vibration" }, "path": "/barStack_view", "hidden": true }, { "application": "vibration", "id": "vibration_1_3", "pid": "vibration_1", "name": "vibration_1_3", "component": "main/istation/vibration/pump", "redirect": "", "meta": { "title": "机组监测", "icon": "", "show": true, "target": "", "link": null, "belongid": "vibration" }, "path": "/pumpMonitor_view", "hidden": true }, { "application": "vibration", "id": "vibration_2", "pid": "0", "name": "vibration_2", "component": "RouteView", "redirect": "", "meta": { "title": "信号分析", "icon": "book", "show": true, "target": "", "link": null, "belongid": "vibration" }, "path": "/vibration/group2", "hidden": true }, { "application": "vibration", "id": "vibration_2_1", "pid": "vibration_2", "name": "vibration_2_1", "component": "main/istation/vibration/vibration", "redirect": "", "meta": { "title": "振动分析", "icon": "", "show": true, "target": "", "link": null, "belongid": "vibration" }, "path": "/vibration_view", "hidden": true }, { "application": "vibration", "id": "vibration_3", "pid": "0", "name": "vibration_3", "component": "RouteView", "redirect": "", "meta": { "title": "报表监测", "icon": "book", "show": true, "target": "", "link": null, "belongid": "vibration" }, "path": "/vibration/group3", "hidden": true }, { "application": "vibration", "id": "vibration_3_1", "pid": "vibration_3", "name": "vibration_3_1", "component": "main/istation/vibration/alarmList", "redirect": "", "meta": { "title": "报警列表", "icon": "", "show": true, "target": "", "link": null, "belongid": "vibration" }, "path": "/alarmList_view", "hidden": true }, { "application": "vibration", "id": "vibration_3_2", "pid": "vibration_3", "name": "vibration_3_2", "component": "main/istation/vibration/curveQuery", "redirect": "", "meta": { "title": "曲线查询", "icon": "", "show": true, "target": "", "link": null, "belongid": "vibration" }, "path": "/curveQuery_view", "hidden": true }, { "application": "health", "id": "health_1_1", "pid": "0", "name": "health_1_1", "component": "main/istation/health/sysManage", "redirect": "", "meta": { "title": "体系管理", "icon": "", "show": true, "target": "", "link": null, "belongid": "health" }, "path": "/health/sysManage", "hidden": true }, { "application": "health", "id": "health_2", "pid": "0", "name": "health_2", "component": "RouteView", "redirect": "", "meta": { "title": "指标评价", "icon": "book", "show": true, "target": "", "link": null, "belongid": "health" }, "path": "/health/indexEvaluation", "hidden": true }, { "application": "health", "id": "health_2_1", "pid": "health_2", "name": "health_2_1", "component": "main/istation/health/evaluationModel", "redirect": "", "meta": { "title": "评价模型", "icon": "", "show": true, "target": "", "link": null, "belongid": "health" }, "path": "/health/evaluationModel", "hidden": true }, { "application": "health", "id": "health_2_2", "pid": "health_2", "name": "health_2_2", "component": "main/istation/health/modelBinding", "redirect": "", "meta": { "title": "模型绑定", "icon": "", "show": true, "target": "", "link": null, "belongid": "health" }, "path": "/health/modelBinding", "hidden": true }, { "application": "health", "id": "health_3", "pid": "0", "name": "health_3", "component": "RouteView", "redirect": "", "meta": { "title": "标准评价", "icon": "book", "show": true, "target": "", "link": null, "belongid": "health" }, "path": "/health/standardEvaluation", "hidden": true }, { "application": "health", "id": "health_1_2", "pid": "0", "name": "health_1_2", "component": "main/istation/health/compreEvaluate", "redirect": "", "meta": { "title": "综合评价", "icon": "", "show": true, "target": "", "link": null, "belongid": "health" }, "path": "/health/compreEvaluate", "hidden": true }, { "application": "health", "id": "health_3_1", "pid": "health_3", "name": "health_3_1", "component": "main/istation/health/evaluationModelManage", "redirect": "", "meta": { "title": "模型管理", "icon": "", "show": true, "target": "", "link": null, "belongid": "health" }, "path": "/health/evaluationModelManage", "hidden": true }, { "application": "health", "id": "health_3_2", "pid": "health_3", "name": "health_3_2", "component": "main/istation/health/evaluationModelBinding", "redirect": "", "meta": { "title": "模型绑定", "icon": "", "show": true, "target": "", "link": null, "belongid": "health" }, "path": "/health/evaluationModelBinding", "hidden": true }, { "application": "health", "id": "health_4", "pid": "0", "name": "health_4", "component": "RouteView", "redirect": "", "meta": { "title": "评价结果", "icon": "book", "show": true, "target": "", "link": null, "belongid": "health" }, "path": "/health/evaluationResult", "hidden": true }, { "application": "health", "id": "health_4_1", "pid": "health_4", "name": "health_4_1", "component": "main/istation/health/realTimeEvaluation", "redirect": "", "meta": { "title": "实时评价", "icon": "", "show": true, "target": "", "link": null, "belongid": "health" }, "path": "/health/realTimeEvaluation", "hidden": true }, { "application": "health", "id": "health_4_2", "pid": "health_4", "name": "health_4_2", "component": "main/istation/health/historyEvaluation", "redirect": "", "meta": { "title": "历史评价", "icon": "", "show": true, "target": "", "link": null, "belongid": "health" }, "path": "/health/historyEvaluation", "hidden": true }, { "application": "overview", "id": "index_1_1", "pid": "0", "name": "index_1_1", "component": "main/istation/overview/index", "redirect": "", "meta": { "title": "首页", "icon": "", "show": true, "target": "", "link": null, "belongid": "overview" }, "path": "/overview/index", "hidden": true }, { "application": "overview", "id": "index_1_2", "pid": "0", "name": "index_1_2", "component": "main/istation/overview/preview", "redirect": "", "meta": { "title": "预览", "icon": "", "show": true, "target": "", "link": null, "belongid": "overview" }, "path": "/overview/preview", "hidden": true }, { "application": "fault", "id": "fault_1", "pid": "0", "name": "fault_1", "component": "RouteView", "redirect": "", "meta": { "title": "故障管理", "icon": "book", "show": true, "target": "", "link": null, "belongid": "fault" }, "path": "/fault/group1", "hidden": true }, { "application": "fault", "id": "fault_1_1", "pid": "fault_1", "name": "fault_1_1", "component": "main/istation/fault/faultSet", "redirect": "", "meta": { "title": "故障定义", "icon": "", "show": true, "target": "", "link": null, "belongid": "fault" }, "path": "/fault/faultSet", "hidden": true }, { "application": "fault", "id": "fault_1_2", "pid": "fault_1", "name": "fault_1_2", "component": "main/istation/fault/faultTreeManage", "redirect": "", "meta": { "title": "版本管理", "icon": "", "show": true, "target": "", "link": null, "belongid": "fault" }, "path": "/fault/faultTreeManage", "hidden": true }, { "application": "fault", "id": "fault_2", "pid": "0", "name": "fault_2", "component": "RouteView", "redirect": "", "meta": { "title": "故障诊断", "icon": "book", "show": true, "target": "", "link": null, "belongid": "fault" }, "path": "/fault/group2", "hidden": true }, { "application": "fault", "id": "fault_2_1", "pid": "fault_2", "name": "fault_2_1", "component": "main/istation/fault/faultDiagnosis", "redirect": "", "meta": { "title": "模型管理", "icon": "", "show": true, "target": "", "link": null, "belongid": "fault" }, "path": "/fault/faultDiagnosis", "hidden": true }, { "application": "fault", "id": "fault_2_2", "pid": "fault_2", "name": "fault_2_2", "component": "main/istation/fault/onlineFaultDiagnosis", "redirect": "", "meta": { "title": "在线诊断", "icon": "", "show": true, "target": "", "link": null, "belongid": "fault" }, "path": "/fault/onlineFaultDiagnosis", "hidden": true }, { "application": "fault", "id": "fault_2_3", "pid": "fault_2", "name": "fault_2_3", "component": "main/istation/fault/faultReport", "redirect": "", "meta": { "title": "诊断报告", "icon": "", "show": true, "target": "", "link": null, "belongid": "fault" }, "path": "/fault/faultReport", "hidden": true }, { "application": "trend", "id": "trend_1", "pid": "0", "name": "trend_1", "component": "RouteView", "redirect": "", "meta": { "title": "趋势分析", "icon": "book", "show": true, "target": "", "link": null, "belongid": "trend" }, "path": "/trend/group1", "hidden": true }, { "application": "trend", "id": "trend_1_1", "pid": "trend_1", "name": "trend_1_1", "component": "main/istation/trend/trendFun", "redirect": "", "meta": { "title": "分析方法定义", "icon": "", "show": true, "target": "", "link": null, "belongid": "trend" }, "path": "/trend/trendFun", "hidden": true }, { "application": "trend", "id": "trend_2", "pid": "0", "name": "trend_2", "component": "RouteView", "redirect": "", "meta": { "title": "时序趋势分析", "icon": "book", "show": true, "target": "", "link": null, "belongid": "trend" }, "path": "/trend/group2", "hidden": true }, { "application": "trend", "id": "trend_2_1", "pid": "trend_2", "name": "trend_2_1", "component": "main/istation/trend/sequenceModel", "redirect": "", "meta": { "title": "趋势预警模型", "icon": "", "show": true, "target": "", "link": null, "belongid": "trend" }, "path": "/trend/sequenceModel", "hidden": true }, { "application": "trend", "id": "trend_2_2", "pid": "trend_2", "name": "trend_2_2", "component": "main/istation/trend/sequenceRecord", "redirect": "", "meta": { "title": "趋势预警记录", "icon": "", "show": true, "target": "", "link": null, "belongid": "trend" }, "path": "/trend/sequenceRecord", "hidden": true }, { "application": "trend", "id": "trend_3", "pid": "0", "name": "trend_3", "component": "RouteView", "redirect": "", "meta": { "title": "专家趋势分析", "icon": "book", "show": true, "target": "", "link": null, "belongid": "trend" }, "path": "/trend/group3", "hidden": true }, { "application": "trend", "id": "trend_3_1", "pid": "trend_3", "name": "trend_3_1", "component": "main/istation/trend/onLineSequenceModel", "redirect": "", "meta": { "title": "在线趋势预警", "icon": "", "show": true, "target": "", "link": null, "belongid": "trend" }, "path": "/trend/onLineSequenceModel", "hidden": true }, { "application": "trend", "id": "trend_3_2", "pid": "trend_3", "name": "trend_3_2", "component": "main/istation/trend/sequenceRecord2", "redirect": "", "meta": { "title": "趋势预警记录", "icon": "", "show": true, "target": "", "link": null, "belongid": "trend" }, "path": "/trend/sequenceRecord2", "hidden": true }, ], "dataScopes": [ "142307070910551", "177325484421189", "182314279026757" ] }, "extras": null, "timestamp": "162" } // let temp = [] // res.data.menus.forEach(x => { // x.meta.belongid = x.application // temp.push(x) // }) // console.log(JSON.stringify(temp)) let tempdata = res.data.apps // tempdata.push( { // "id": "0", // "name": "登录日志", // "code": "monitor", // "icon":"home", // "active": false, // "sort": 0 // }, // { // "id": "0", // "name": "登录日志1", // "code": "energy", // "icon":"home", // "active": false, // "sort": 0 // }, // { // "id": "0", // "name": "登录日志2", // "code": "repair", // "icon":"home", // "active": false, // "sort": 0 // }, // { // "id": "0", // "name": "登录日志3", // "code": "sys", // "icon":"home", // "active": false, // "sort": 0 // },) // tempdata.forEach((item,index)=>{ // if(index!=0){ // for(var i=0;i<5;i++){ // res.data.menus.push({ // "application": item.code, // "id": item.code+'_'+(i+3), // "pid": "0", // "name": item.code+'_'+(i+3), // "component": "main/istation/test", // "redirect": "", // "meta": { // "title": "测试测试测试"+(i+3), // "icon": "", // "show": true, // "target": "", // "link": null, // "belongid": item.code // }, // "path":'/'+ item.code+"/Index"+(i+3), // "hidden": true // },) // } // } // }) export default res