// 菜单测试数据
let data = [
    {
        name: "基础信息维护",
        menuType: "1",
        status: "1",
        children: [
            {
                name: "计量单位信息维护",
                menuType: "4",
                menuUrl: "./basicInformation.html#/measurementUnit",
                status: "1"
            }, {
                name: "能介大类信息维护",
                menuType: "4",
                menuUrl: "./basicInformation.html#/energyMediumClass",
                status: "1"
            }, {
                name: "能介信息维护",
                menuType: "4",
                menuUrl: "./basicInformation.html#/energyMedium",
                status: "1"
            },
            {
                name: "工厂信息维护",
                menuType: "4",
                menuUrl: "./basicInformation.html#/factoryInformation",
                status: "1"
            },
            {
                name: "工序信息维护",
                menuType: "4",
                menuUrl: "./basicInformation.html#/processInformation",
                status: "1"
            },
            {
                name: "位置单元维护",
                menuType: "4",
                menuUrl: "./basicInformation.html#/locationUnit",
                status: "1"
            },
            {
                name: "能源属性维护",
                menuType: "4",
                menuUrl: "./basicInformation.html#/energyAttribute",
                status: "1"
            },
            {
                name: "计量点信息维护",
                menuType: "4",
                menuUrl: "./basicInformation.html#/measurementPlace",
                status: "1"
            },
            {
                name: "站所信息维护",
                menuType: "4",
                menuUrl: "./basicInformation.html#/siteInformation",
                status: "1"
            },
            {
                name: "时间粒度维护",
                menuType: "4",
                menuUrl: "./basicInformation.html#/timeGranularity",
                status: "1"
            },
            {
                name: "时间序列维护",
                menuType: "4",
                menuUrl: "./basicInformation.html#/timeSeries",
                status: "1"
            },
            {
                name: "配置关系维护",
                menuType: "1",
                status: "1",
                children: [
                    {
                        name: "产品信息维护",
                        menuType: "4",
                        menuUrl: "./basicInformation.html#/productInformation",
                        status: "1"
                    },
                    {
                        name: "原材料信息维护",
                        menuType: "4",
                        menuUrl: "./basicInformation.html#/rawMaterial",
                        status: "1"
                    },
                    {
                        name: "工序与原材料关联",
                        menuType: "4",
                        menuUrl: "./basicInformation.html#/processAndMaterial",
                        status: "1"
                    },
                    {
                        name: "实绩工序与产品关联",
                        menuType: "4",
                        menuUrl: "./basicInformation.html#/processAndProduct",
                        status: "1"
                    },
                    {
                        name: "计划工序与产品关联",
                        menuType: "4",
                        menuUrl: "./basicInformation.html#/planProcessAndProduct",
                        status: "1"
                    }
                ]
            }
        ]
    },
    {
        name: "能源计划管理",
        menuType: "1",
        status: "1",
        children: [
            {
                name: "供需计划管理",
                menuType: "1",
                status: "1",
                children: [
                    {
                        name: "计划项目维护",
                        menuType: "4",
                        menuUrl: "./energyPlan.html#/planProject",
                        status: "1"
                    },
                    {
                        name: "计划产量管理",
                        menuType: "4",
                        menuUrl: "./energyPlan.html#/planProduction",
                        status: "1"
                    },
                    {
                        name: "计划项目数据维护",
                        menuType: "4",
                        menuUrl: "./energyPlan.html#/planProjectData",
                        status: "1"
                    }
                ]
            },
            {
                name: "计划值管理",
                menuType: "1",
                status: "1",
                children: [
                    {
                        name: "计划方案维护",
                        menuType: "4",
                        menuUrl: "./energyPlan.html#/plan",
                        status: "1"
                    },
                    {
                        name: "计划项目推荐方案维护",
                        menuType: "4",
                        menuUrl: "./energyPlan.html#/PlanProjectRecommend",
                        status: "1"
                    }
                ]
            }
        ]
    },
    {
        name: "能源调度管理",
        menuType: "1",
        status: "1",
        children: [
            {
                name: "计量点数据管理",
                menuType: "1",
                status: "1",
                children: [
                    {
                        name: "准点数据查询",
                        menuType: "4",
                        menuUrl: "./energyScheduling.html#/measuringLocationQuery",
                        status: "1"
                    },
                    {
                        name: "计量点数据录入",
                        menuType: "4",
                        menuUrl: "./energyScheduling.html#/measuringLocationEntry",
                        status: "1"
                    }
                ]
            },
            {
                name: "调度日志管理",
                menuType: "1",
                status: "1",
                children: [
                    {
                        name: "总值班长调度交接班日志",
                        menuType: "4",
                        menuUrl: "./energyScheduling.html#/squadLeader",
                        status: "1"
                    },
                    {
                        name: "动力调度交接班日志",
                        menuType: "4",
                        menuUrl: "./energyScheduling.html#/power",
                        status: "1"
                    },
                    {
                        name: "电力调度交接班日志",
                        menuType: "4",
                        menuUrl: "./energyScheduling.html#/electric",
                        status: "1"
                    },
                    {
                        name: "水道调度交接班日志",
                        menuType: "4",
                        menuUrl: "./energyScheduling.html#/water",
                        status: "1"
                    },
                    {
                        name: "能源调度日志",
                        menuType: "4",
                        menuUrl: "./energyScheduling.html#/energyDispatch",
                        status: "1"
                    }
                ]
            }
        ]
    },
    {
        name: "能源实绩管理",
        menuType: "1",
        status: "1",
        children: [
            {
                name: "配置关系维护",
                menuType: "1",
                status: "1",
                children: [
                    {
                        name: "数据授权管理",
                        menuType: "4",
                        menuUrl: "./energyPerformance.html#/dataAuthorization",
                        status: "1"
                    },
                    {
                        name: "数据源计算逻辑维护",
                        menuType: "4",
                        menuUrl: "./energyPerformance.html#/dataCalculateLogic",
                        status: "1"
                    }
                ]
            },
            {
                name: "供需实绩管理",
                menuType: "1",
                status: "1",
                children: [
                    {
                        name: "供需项目维护",
                        menuType: "4",
                        menuUrl: "./energyPerformance.html#/Project",
                        status: "1"
                    },
                    {
                        name: "供需项目数据维护",
                        menuType: "4",
                        menuUrl: "./energyPerformance.html#/ProjectData",
                        status: "1"
                    }
                ]
            }
        ]
    },
    {
        name: "能源平衡管理",
        menuType: "1",
        status: "1",
        children: [
            {
                name: "平衡表项目维护",
                menuType: "4",
                menuUrl: "./energyBalance.html#/balanceSheetItem",
                status: "1"
            },
            {
                name: "折算系数维护",
                menuType: "4",
                menuUrl: "./energyBalance.html#/rate",
                status: "1"
            },
            {
                name: "实绩产量管理",
                menuType: "4",
                menuUrl: "./energyBalance.html#/production",
                status: "1"
            },
            {
                name: "平衡表数据维护",
                menuType: "4",
                menuUrl: "./energyBalance.html#/balanceSheetData",
                status: "1"
            },
            {
                name: "工序与原材料数据维护",
                menuType: "4",
                menuUrl: "./energyBalance.html#/processAndRawMaterials",
                status: "1"
            }
        ]
    },
    {
        name: "能源综合分析",
        menuType: "1",
        status: "1",
        children: [
            {
                name: "供需实绩分析",
                menuType: "1",
                status: "1",
                children: [
                    {
                        name: "供需实绩对比分析",
                        menuType: "4",
                        menuUrl: "./energyAnalysis.html#/SDContrastAnalysis",
                        status: "1"
                    },
                    {
                        name: "供需实绩跟踪及趋势分析",
                        menuType: "4",
                        menuUrl: "./energyAnalysis.html#/SDTrackingAndTrend",
                        status: "1"
                    },
                    {
                        name: "工序能耗对比分析",
                        menuType: "4",
                        menuUrl: "./energyAnalysis.html#/PEContrastAnalysis",
                        status: "1"
                    },
                    {
                        name: "工序能耗跟踪及趋势分析",
                        menuType: "4",
                        menuUrl: "./energyAnalysis.html#/PETrackingAndTrend",
                        status: "1"
                    }
                ]
            },
            {
                name: "供需计划分析",
                menuType: "1",
                status: "1",
                children: [
                    {
                        name: "供需计划对比分析",
                        menuType: "4",
                        menuUrl: "./energyAnalysis.html#/SDPContrastAnalysis",
                        status: "1"
                    },
                    {
                        name: "供需计划实绩对比分析",
                        menuType: "4",
                        menuUrl: "./energyAnalysis.html#/SDPPerformanceContrast",
                        status: "1"
                    },
                    {
                        name: "供需计划跟踪及趋势分析",
                        menuType: "4",
                        menuUrl: "./energyAnalysis.html#/SDPTrackingAndTrend",
                        status: "1"
                    }
                ]
            },
            {
                name: "吨钢综合能耗分析",
                menuType: "1",
                status: "1",
                children: [
                    {
                        name: "吨钢综合能耗跟踪及趋势分析",
                        menuType: "4",
                        menuUrl: "./energyAnalysis.html#/steelTrackingAndTrend",
                        status: "1"
                    },
                    {
                        name: "吨钢综合能耗影响因素分析",
                        menuType: "4",
                        menuUrl: "./energyAnalysis.html#/steelFactorsAffecting",
                        status: "1"
                    }
                ]
            },
            {
                name: "经济指标分析",
                menuType: "1",
                status: "1",
                children: [
                    {
                        name: "能耗指标自身对比",
                        menuType: "4",
                        menuUrl: "./energyAnalysis.html#/EIASelfContrast",
                        status: "1"
                    },
                    {
                        name: "能耗指标对比分析",
                        menuType: "4",
                        menuUrl: "./energyAnalysis.html#/EIAContrastAnalysis",
                        status: "1"
                    },
                    {
                        name: "能耗指标跟踪分析",
                        menuType: "4",
                        menuUrl: "./energyAnalysis.html#/EIATrackingAnalysis",
                        status: "1"
                    },
                    {
                        name: "重要指标展示",
                        menuType: "4",
                        menuUrl: "./energyAnalysis.html#/indicatorsShow",
                        status: "1"
                    }
                ]
            },
            {
                name: "指标管理",
                menuType: "1",
                status: "1",
                children: [
                    {
                        name: "指标类型维护",
                        menuType: "4",
                        menuUrl: "./energyAnalysis.html#/indexTypeMaintain",
                        status: "1"
                    },
                    {
                        name: "指标维护",
                        menuType: "4",
                        menuUrl: "./energyAnalysis.html#/indexMaintain",
                        status: "1"
                    },
                    {
                        name: "指标数据维护",
                        menuType: "4",
                        menuUrl: "./energyAnalysis.html#/indexDataMaintain",
                        status: "1"
                    }
                ]
            }
        ]
    },
    {
        name: "能源质量管理",
        menuType: "1",
        status: "1",
        children: [
            {
                name: "水质监测管理",
                menuType: "1",
                status: "1",
                children: [
                    {
                        name: "水质系统维护",
                        menuType: "4",
                        menuUrl: "./energyQuality.html#/waterQualitySystem",
                        status: "1"
                    },
                    {
                        name: "水质监测点维护",
                        menuType: "4",
                        menuUrl: "./energyQuality.html#/waterMonitoringStations",
                        status: "1"
                    },
                    {
                        name: "水质监测项目维护",
                        menuType: "4",
                        menuUrl: "./energyQuality.html#/waterMonitoringItem",
                        status: "1"
                    },
                    {
                        name: "水质监测计划制定",
                        menuType: "4",
                        menuUrl: "./energyQuality.html#/waterMonitoringPlan",
                        status: "1"
                    },
                    {
                        name: "水质标准指标制定",
                        menuType: "4",
                        menuUrl: "./energyQuality.html#/waterStandardIndex",
                        status: "1"
                    },
                    {
                        name: "水质监测日数据录入",
                        menuType: "4",
                        menuUrl: "./energyQuality.html#/waterMonitoringDayData",
                        status: "1"
                    },
                    {
                        name: "水质监测月数据录入",
                        menuType: "4",
                        menuUrl: "./energyQuality.html#/waterMonitoringMonthData",
                        status: "1"
                    },
                    {
                        name: "水质监测数据查询",
                        menuType: "4",
                        menuUrl: "./energyQuality.html#/waterMonitoringDataQuery",
                        status: "1"
                    },
                    {
                        name: "水质历史数据对比分析",
                        menuType: "4",
                        menuUrl: "./energyQuality.html#/waterHistoryContrastAnalysis",
                        status: "1"
                    },
                    {
                        name: "水质质量考核指标统计",
                        menuType: "4",
                        menuUrl: "./energyQuality.html#/waterMonitoringAssessStatistical",
                        status: "1"
                    }
                ]
            },
            {
                name: "动力监测管理",
                menuType: "1",
                status: "1",
                children: [
                    {
                        name: "动力系统维护",
                        menuType: "4",
                        menuUrl: "./energyQuality.html#/powerQualitySystem",
                        status: "1"
                    },
                    {
                        name: "动力监测点维护",
                        menuType: "4",
                        menuUrl: "./energyQuality.html#/powerMonitoringStations",
                        status: "1"
                    },
                    {
                        name: "动力监测项目维护",
                        menuType: "4",
                        menuUrl: "./energyQuality.html#/powerMonitoringItem",
                        status: "1"
                    },
                    {
                        name: "动力监测计划制定",
                        menuType: "4",
                        menuUrl: "./energyQuality.html#/powerMonitoringPlan",
                        status: "1"
                    },
                    {
                        name: "动力标准指标制定",
                        menuType: "4",
                        menuUrl: "./energyQuality.html#/powerStandardIndex",
                        status: "1"
                    },
                    {
                        name: "动力监测日数据录入",
                        menuType: "4",
                        menuUrl: "./energyQuality.html#/powerMonitoringDayData",
                        status: "1"
                    },
                    {
                        name: "动力监测月数据录入",
                        menuType: "4",
                        menuUrl: "./energyQuality.html#/powerMonitoringMonthData",
                        status: "1"
                    },
                    {
                        name: "动力监测数据查询",
                        menuType: "4",
                        menuUrl: "./energyQuality.html#/powerMonitoringDataQuery",
                        status: "1"
                    },
                    {
                        name: "动力历史数据对比分析",
                        menuType: "4",
                        menuUrl: "./energyQuality.html#/powerHistoryContrastAnalysis",
                        status: "1"
                    },
                    {
                        name: "动力质量考核指标统计",
                        menuType: "4",
                        menuUrl: "./energyQuality.html#/powerMonitoringAssessStatistical",
                        status: "1"
                    }
                ]
            }
        ]
    },
    {
        name: "能源运行支持管理",
        menuType: "1",
        status: "1",
        children: [
            {
                name: "停复役单管理",
                menuType: "1",
                status: "1",
                children: [
                    {
                        name: "停复役单编制",
                        menuType: "4",
                        menuUrl: "./energyOperationSupport.html#/SSDCompile",
                        status: "1"
                    },
                    {
                        name: "停复役单审批",
                        menuType: "4",
                        menuUrl: "./energyOperationSupport.html#/SSDApproval",
                        status: "1"
                    },
                    {
                        name: "停复役单查询",
                        menuType: "4",
                        menuUrl: "./energyOperationSupport.html#/SSDQuery",
                        status: "1"
                    }
                ]
            },
            {
                name: "动力/水道运方单管理",
                menuType: "1",
                status: "1",
                children: [
                    {
                        name: "运方单编制",
                        menuType: "4",
                        menuUrl: "./energyOperationSupport.html#/PWODCompile",
                        status: "1"
                    },
                    {
                        name: "运方单签收",
                        menuType: "4",
                        menuUrl: "./energyOperationSupport.html#/PWODSignFor",
                        status: "1"
                    },
                    {
                        name: "运方单执行",
                        menuType: "4",
                        menuUrl: "./energyOperationSupport.html#/PWODPerform",
                        status: "1"
                    },
                    {
                        name: "运方单查询",
                        menuType: "4",
                        menuUrl: "./energyOperationSupport.html#/PWODQuery",
                        status: "1"
                    }
                ]
            },
            {
                name: "电力运方单管理",
                menuType: "1",
                status: "1",
                children: [
                    {
                        name: "电力运方单编制",
                        menuType: "4",
                        menuUrl: "./energyOperationSupport.html#/EODCompile",
                        status: "1"
                    },
                    {
                        name: "电力运方单签收",
                        menuType: "4",
                        menuUrl: "./energyOperationSupport.html#/EODSignFor",
                        status: "1"
                    },
                    {
                        name: "电力运方单执行",
                        menuType: "4",
                        menuUrl: "./energyOperationSupport.html#/EODPerform",
                        status: "1"
                    },
                    {
                        name: "电力运方单查询",
                        menuType: "4",
                        menuUrl: "./energyOperationSupport.html#/EODQuery",
                        status: "1"
                    }
                ]
            },
            {
                name: "事故预案管理",
                menuType: "1",
                status: "1",
                children: [
                    {
                        name: "预案文档目录管理",
                        menuType: "4",
                        menuUrl: "./energyOperationSupport.html#/APDocumentDirectory",
                        status: "1"
                    },
                    {
                        name: "预案文档管理",
                        menuType: "4",
                        menuUrl: "./energyOperationSupport.html#/APDocument",
                        status: "1"
                    }
                ]
            },
            {
                name: "整改处罚管网变更管理",
                menuType: "1",
                status: "1",
                children: [
                    {
                        name: "整改单编制",
                        menuType: "4",
                        menuUrl: "./energyOperationSupport.html#/rectificationCompile",
                        status: "1"
                    },
                    {
                        name: "整改单查询",
                        menuType: "4",
                        menuUrl: "./energyOperationSupport.html#/rectificationQuery",
                        status: "1"
                    },
                    {
                        name: "处罚单编制",
                        menuType: "4",
                        menuUrl: "./energyOperationSupport.html#/punishmentCompile",
                        status: "1"
                    },
                    {
                        name: "处罚单查询",
                        menuType: "4",
                        menuUrl: "./energyOperationSupport.html#/punishmentQuery",
                        status: "1"
                    },
                    {
                        name: "能源介质管网变更编制",
                        menuType: "4",
                        menuUrl: "./energyOperationSupport.html#/tubeCompile",
                        status: "1"
                    },
                    {
                        name: "能源介质管网变更查询",
                        menuType: "4",
                        menuUrl: "./energyOperationSupport.html#/tubeQuery",
                        status: "1"
                    }
                ]
            }
        ]
    },
    {
        name: "能源报表管理",
        menuIcon: 'xs-icons-menu5',
        menuType: "1",
        status: "1",
        children: [
            {
                name: "模板管理",
                menuType: "1",
                status: "1",
                children: [
                    {
                        name: "模版管理",
                        menuType: "4",
                        menuUrl: "",
                        status: "1"
                    },
                    {
                        name: "公式管理",
                        menuType: "4",
                        menuUrl: "",
                        status: "1"
                    },
                    {
                        name: "报表管理模块",
                        menuType: "4",
                        menuUrl: "",
                        status: "1"
                    }
                ]
            },
            {
                name: "计划报表",
                menuType: "1",
                status: "1",
                children: [
                    {
                        name: "计划报表管理",
                        menuType: "4",
                        menuUrl: "",
                        status: "1"
                    }
                ]
            },
            {
                name: "实绩报表",
                menuType: "1",
                status: "1",
                children: [
                    {
                        name: "供需日报表管理",
                        menuType: "4",
                        menuUrl: "",
                        status: "1"
                    },
                    {
                        name: "供需月报表管理",
                        menuType: "4",
                        menuUrl: "",
                        status: "1"
                    },
                    {
                        name: "制氧分厂实绩日报",
                        menuType: "4",
                        menuUrl: "",
                        status: "1"
                    },
                    {
                        name: "制氧分厂实绩月报",
                        menuType: "4",
                        menuUrl: "",
                        status: "1"
                    },
                    {
                        name: "煤气分厂实绩日报",
                        menuType: "4",
                        menuUrl: "",
                        status: "1"
                    },
                    {
                        name: "煤气分厂实绩月报",
                        menuType: "4",
                        menuUrl: "",
                        status: "1"
                    },
                    {
                        name: "供电分厂实绩日报",
                        menuType: "4",
                        menuUrl: "",
                        status: "1"
                    },
                    {
                        name: "供电分厂实绩月报",
                        menuType: "4",
                        menuUrl: "",
                        status: "1"
                    }
                ]
            },
            {
                name: "平衡报表",
                menuType: "1",
                status: "1",
                children: [
                    {
                        name: "平衡报表管理",
                        menuType: "4",
                        menuUrl: "",
                        status: "1"
                    }
                ]
            },
            {
                name: "调度日报",
                menuType: "1",
                status: "1",
                children: [
                    {
                        name: "调度日报",
                        menuType: "4",
                        menuUrl: "",
                        status: "1"
                    },
                    {
                        name: "调度日志及记录",
                        menuType: "4",
                        menuUrl: "",
                        status: "1"
                    }
                ]
            },
            {
                name: "分厂工序能耗报表",
                menuType: "1",
                status: "1",
                children: [
                    {
                        name: "工序能耗报表",
                        menuType: "4",
                        menuUrl: "",
                        status: "1"
                    },
                    {
                        name: "一炼铁工序能耗报表",
                        menuType: "4",
                        menuUrl: "",
                        status: "1"
                    },
                    {
                        name: "二炼铁工序能耗报表",
                        menuType: "4",
                        menuUrl: "",
                        status: "1"
                    },
                    {
                        name: "一炼钢工序能耗报表",
                        menuType: "4",
                        menuUrl: "",
                        status: "1"
                    },
                    {
                        name: "二炼钢工序能耗报表",
                        menuType: "4",
                        menuUrl: "",
                        status: "1"
                    },
                    {
                        name: "特板炼钢工序能耗报表",
                        menuType: "4",
                        menuUrl: "",
                        status: "1"
                    },
                    {
                        name: "三炼钢工序能耗报表",
                        menuType: "4",
                        menuUrl: "",
                        status: "1"
                    },
                    {
                        name: "一轧钢工序能耗报表",
                        menuType: "4",
                        menuUrl: "",
                        status: "1"
                    },
                    {
                        name: "二轧钢工序能耗报表",
                        menuType: "4",
                        menuUrl: "",
                        status: "1"
                    },
                    {
                        name: "三轧钢工序能耗报表",
                        menuType: "4",
                        menuUrl: "",
                        status: "1"
                    }
                ]
            },
            {
                name: "质量报表",
                menuType: "1",
                status: "1",
                children: [
                    {
                        name: "水质报表管理",
                        menuType: "4",
                        menuUrl: "",
                        status: "1"
                    },
                    {
                        name: "煤气报表管理",
                        menuType: "4",
                        menuUrl: "",
                        status: "1"
                    }
                ]
            },
            {
                name: "对外报表",
                menuType: "1",
                status: "1",
                children: []
            }
        ]
    },
    {
        name: "能源SCADA",
        menuIcon: 'xs-icons-menu5',
        menuType: "1",
        status: "1",
        children: []
    },
    {
        name: "系统接口管理",
        menuIcon: 'xs-icons-menu5',
        menuType: "1",
        status: "1",
        children: []
    },
    {
        name: "系统管理",
        menuIcon: 'xs-icons-menu5',
        menuType: "1",
        status: "1",
        children: [
            {
                "children": null,
                "flag": true,
                "id": "480431426513276928",
                "isRelativePath": null,
                "isVisible": null,
                "menuCode": "xtpzgl-jggl",
                "menuIcon": null,
                "menuId": "480431426513276928",
                "name": "机构管理",
                "menuName": "sysorg:view",
                "menuTip": null,
                "menuType": "4",
                "menuUrl": "./systemConfig.html#/organizManage",
                "openMode": "0",
                "pId": "sysmanage",
                "path": "-jggl",
                "privilege": null,
                "rank": 0,
                "seq": 1,
                "status": "1"
            },
            {
                "children": null,
                "flag": true,
                "id": "480432203428401152",
                "isRelativePath": null,
                "isVisible": null,
                "menuCode": "xtpzgl-yhgl",
                "menuIcon": null,
                "menuId": "480432203428401152",
                "name": "用户管理",
                "menuName": "sysorg:view",
                "menuTip": null,
                "menuType": "4",
                "menuUrl": "./systemConfig.html#/usersManage",
                "openMode": "0",
                "pId": "sysmanage",
                "path": null,
                "privilege": null,
                "rank": 2,
                "seq": 2,
                "status": "1"
            },
            {
                "children": null,
                "flag": true,
                "id": "480433253111697408",
                "isRelativePath": null,
                "isVisible": null,
                "menuCode": "xtpzgl-jsgl",
                "menuIcon": null,
                "menuId": "480433253111697408",
                "name": "角色管理",
                "menuName": "sysrole:view",
                "menuTip": null,
                "menuType": "4",
                "menuUrl": "./systemConfig.html#/rolesManage",
                "openMode": "0",
                "pId": "sysmanage",
                "path": "-jsgl",
                "privilege": null,
                "rank": 0,
                "seq": 3,
                "status": "1"
            },
            {
                "children": null,
                "flag": true,
                "id": "491568724827049984",
                "isRelativePath": null,
                "isVisible": null,
                "menuCode": "xtpzgl-cdgl",
                "menuIcon": null,
                "menuId": "491568724827049984",
                "name": "菜单管理",
                "menuName": "sysmenu:view",
                "menuTip": null,
                "menuType": "4",
                "menuUrl": "./systemConfig.html#/functionMain",
                "openMode": "0",
                "pId": "sysmanage",
                "path": null,
                "privilege": null,
                "rank": 0,
                "seq": 4,
                "status": "1"
            },
            {
                "children": null,
                "flag": true,
                "id": "582589282095599616",
                "isRelativePath": null,
                "isVisible": null,
                "menuCode": "xtpzgl-yhgl",
                "menuIcon": "无",
                "menuId": "582589282095599616",
                "name": "用户授权",
                "menuName": "sysorg:view",
                "menuTip": null,
                "menuType": "4",
                "menuUrl": "./systemConfig.html#/userAuth",
                "openMode": null,
                "pId": "sysmanage",
                "path": null,
                "privilege": null,
                "rank": 0,
                "seq": 5,
                "status": "1"
            },
            {
                "children": null,
                "flag": true,
                "id": "601799344865284096",
                "isRelativePath": null,
                "isVisible": null,
                "menuCode": "xtpzgl-yhgl",
                "menuIcon": "无",
                "menuId": "601799344865284096",
                "name": "数据权限",
                "menuName": "sysorg:view",
                "menuTip": null,
                "menuType": "4",
                "menuUrl": "./systemConfig.html#/dataPermission",
                "openMode": null,
                "pId": "sysmanage",
                "path": "/xtpzgl/xtpzgl-yhgl",
                "privilege": null,
                "rank": 2,
                "seq": 6,
                "status": "1"
            },
            {
                "children": null,
                "flag": true,
                "id": "569580281221222400",
                "isRelativePath": null,
                "isVisible": null,
                "menuCode": "xtpzgl-yhgl",
                "menuIcon": "无",
                "menuId": "569580281221222400",
                "name": "数据备份",
                "menuName": "sysorg:view",
                "menuTip": null,
                "menuType": "4",
                "menuUrl": "./systemConfig.html#/backup",
                "openMode": null,
                "pId": "sysmanage",
                "path": "-yhgl",
                "privilege": null,
                "rank": 0,
                "seq": 9,
                "status": "1"
            },
            {
                "children": null,
                "flag": true,
                "id": "581558113983926272",
                "isRelativePath": null,
                "isVisible": null,
                "menuCode": "xtpzgl-jggl",
                "menuIcon": null,
                "menuId": "581558113983926272",
                "name": "数据字典",
                "menuName": "sysorg:view",
                "menuTip": null,
                "menuType": "4",
                "menuUrl": "./systemConfig.html#/dataDictionary",
                "openMode": null,
                "pId": "sysmanage",
                "path": null,
                "privilege": null,
                "rank": null,
                "seq": 10,
                "status": "1"
            }
        ]
    }
];


let diyId = 0;
function addId (arr, index) {
    for (let item of arr) {
        let id = ++diyId;
        item.id = '' + id;
        item.menuId = '' + id;
        if (index) {
            item.pId = '' + index;
        }
        if (item.children && item.children.length) {
            addId(item.children, id);
        }
    }
}

addId(data);

export default data