权限角色菜单(后端)
框架使用的ruoyi-cloud框架。
·
框架使用的ruoyi-cloud框架
一、表
角色表(role)
{"authRequest":["/数据1","/数据2","/system/role/list","/system/role/add","/system/role/delete","/system/role/update","/system/role/selRoleId","/system/role/selRoleList","/system/role/init","/basis/module/route/get/all","/system/role/query","/basis/equip/list","/system/equip/delEquip","/basis/equip/selEquipId","/basis/equip/addCard","/basis/equip/updateCard","/basis/equip/type/list","/system/dict/data/selDictData","/basis/equip/unbind","/basis/equip/delEquip","/basis/area/unBindAreaAndDevice","/basis/equip/list","/basis/equip/delEquip","/basis/equip/selEquipId","/basis/equip/addCamera","/basis/equip/updateCamera","/basis/equip/type/list","/system/dict/data/selDictData","/basis/equip/unbind","/basis/equip/delEquip","/basis/equip/list","/system/dict/data/selDictData","/basis/equip/type/list","/basis/equip/updateSense","/basis/equip/addSense","/basis/area/unBindAreaAndDevice","/rocketmq/mq/producer/push","/basis/equip/selEquipId","/rocketmq/hao_en/iot/data/device/list","/basis/equip/unbind","/basis/equip/delEquip","/basis/equip/list","/system/dict/data/selDictData","/basis/equip/type/list","/system/dict/data/selDictData","/basis/equip/updateLocation","/basis/equip/addLocation","/basis/equip/selEquipId","/basis/area/unBindAreaAndDevice","/basis/equip/updateCard","/basis/equip/addCard","/basis/equip/type/list","/basis/equip/type/add","/basis/equip/type/delete","/basis/equip/type/update","/basis/equip/type/selectByEquipTypeId","/basis/equip/type/selectDeviceType","/system/dict/data/selDictData","/system/dict/data/update","/system/dict/type/update","/system/dict/data/selDistCode","/system/dict/type/selDictId","/system/dict/data/delete","/system/dict/type/delete","/system/dict/type/list","/system/dict/data/list","/system/dict/type/optionselect","/system/dict/type/add","/system/dict/data/add","/basis/car/update","/basis/car/add","/basis/car/list","/system/dict/data/selDictData","/basis/car/selCarType","/basis/car/selCarById","/basis/car/delete","/basis/car/selCarType","/basis/car/selCarById","/basis/car/delete","/basis/car/update","/basis/car/add","/basis/car/list","/system/dict/data/selDictData","/basis/car/selCarType","/basis/car/selCarById","/basis/car/delete","/basis/car/update","/basis/car/add","/basis/car/list","/system/dict/data/selDictData","/system/operlog/list","/system/operlog/delete","/system/operlog/clean","/system/logininfor/list","/system/logininfor/delete","/system/logininfor/clean","/basis/area/insertAndUpdateArea","/basis/area/deleteArea","/basis/area/getAreaInfo","/basis/area/selectDeviceByArea","/basis/area/bindAreaAndDevice","/basis/area/unBindAreaAndDevice","/system/dict/data/selDictData","/basis/area/getDeviceByDeviceType","/system/region/type","/basis/area/getAreaBindType","/system/dept/selectDeptPage","/system/dept/addDept","/system/dept/editDept","/system/dept/removeDept","/system/user/list","/system/user/add","/system/user/delete","/system/user/update","/basis/equip/selUserBindEquip","/basis/equip/unbind","/basis/equip/addEquipBind","/basis/equip/selType","/basis/equip/selTypeId","/system/dict/data/selDictData","/system/role/selRoleList","/system/user/selUserId","/system/dept/selectDeptPage","/basis/equip/selType","/basis/equip/selTypeId","/system/dict/data/selDictData","/system/role/selRoleList","/system/user/selUserId","/system/dept/selectDeptPage","/basis/equip/type/list","/system/user/list","/system/user/add","/system/user/delete","/system/user/update","/basis/equip/selUserBindEquip","/basis/equip/unbind","/basis/equip/addEquipBind","/system/notice/list","/system/notice/delete","/system/notice/add","/system/notice/update","/system/notice/selectById","/消防数据1","/消防数据1","/basis/area/getAreaInfo","/basis/camera/getAreaBindCamera","/basis/camera/getCamera","/basis/camera/getVideoOldInfo","/basis/equip/list","/basis/equip/selEquipId","/basis/equip/update","/basis/equip/type/selectByDeviceType","/basis/equip/list","/basis/equip/selEquipId","/basis/equip/update","/basis/equip/type/selectByDeviceType","/rocketmq/hao_en/iot/data/device/list","/basis/equip/device/trackAll","/rocketmq/hao_en/iot/data/device/alarm/list/all","/rocketmq/hao_en/iot/data/device/alarm/update/trigger","/消防数据2","/消防数据3","/basis/equip/list","/basis/equip/selEquipId","/basis/equip/update","/basis/equip/type/selectByDeviceType","/basis/equip/list","/basis/equip/selEquipId","/basis/equip/update","/basis/equip/type/selectByDeviceType","/rocketmq/hao_en/iot/data/device/list","/basis/equip/device/trackAll","/rocketmq/hao_en/iot/data/device/alarm/list/all","/rocketmq/hao_en/iot/data/device/alarm/update/trigger","/消防数据2","/消防数据3","/basis/equip/list","/basis/equip/selEquipId","/basis/equip/update","/basis/equip/type/selectByDeviceType","/basis/equip/list","/basis/equip/selEquipId","/basis/equip/update","/basis/equip/type/selectByDeviceType","/rocketmq/hao_en/iot/data/device/list","/basis/equip/device/trackAll","/rocketmq/hao_en/iot/data/device/alarm/list/all","/rocketmq/hao_en/iot/data/device/alarm/update/trigger","/消防数据2","/消防数据3","/消防数据2","/消防数据3","/消防数据2","/消防数据3","/消防数据2","/消防数据3","/消防数据2","/消防数据3","/消防数据2","/消防数据3","/消防数据2","/消防数据3","/消防数据2","/消防数据3","/消防数据2","/消防数据3","/消防数据2","/消防数据3","/消防数据2","/消防数据3","/消防数据2","/消防数据3","/消防数据2","/消防数据3","/消防数据2","/消防数据3","/消防数据2","/消防数据3","/消防数据2","/消防数据3","/消防数据2","/消防数据3","/消防数据2","/消防数据3","/消防数据2","/消防数据3","/消防数据2","/消防数据3","/消防数据2","/消防数据3","/消防数据2","/消防数据3","/消防数据2","/消防数据3","/消防数据2","/消防数据3","/消防数据2","/消防数据3","/消防数据2","/消防数据3","/消防数据2","/消防数据3","/消防数据2","/消防数据3","/消防数据2","/消防数据3","/消防数据2","/消防数据3","/消防数据2","/消防数据3","/mange","/protection/aggregation/user/list","/protection/aggregation/user/selectByUserId","/mange","/req","/protection/aggregation/getViolationStatisticsByDeviceConditions","/mange","/req","/mange","/req","/basis/area/getAreaInfo","/basis/camera/getAreaBindCamera","/basis/camera/getCamera","/basis/camera/getVideoOldInfo","/mange","/req","/mange","/mange","/req","/mange","/req","/数据分析数据1","/数据分析数据1","/数据分析数据1","/数据分析数据1","/basis/rule/list","/basis/rule/add","/basis/rule/selRuleById","/basis/rule/update","/basis/rule/delete","/basis/rule/list","/basis/rule/add","/basis/rule/selRuleById","/basis/rule/update","/basis/rule/delete","/basis/rule/list","/basis/rule/add","/basis/rule/selRuleById","/basis/rule/update","/basis/rule/delete","/basis/rule/list","/basis/rule/add","/basis/rule/selRuleById","/basis/rule/update","/basis/rule/delete","/能耗数据1","/能耗数据2","/能耗数据3","/能耗数据2","/能耗数据3","/能耗数据2","/能耗数据3","/能耗数据2","/能耗数据3","/能耗数据2","/能耗数据3","/能耗数据2","/能耗数据3"],"authRouter":["baseHome_smartReminder","baseHome_bmap","baseHome_sreen2","baseHome_sreen3","baseHome_index","baseHome_roleEdit","baseHome_roleList","baseHome_device","baseHome_positioningCardEdit","baseHome_positioningCardList","baseHome_cameraEdit","baseHome_cameraList","baseHome_fireSensorsEdit","baseHome_fireSensorsList","baseHome_positionDeviceEdit","baseHome_positionDeviceList","baseHome_deviceTypeEdit","baseHome_deviceTypeList","baseHome_dictionaryEdit","baseHome_dictionaryChildren","baseHome_dictionaryChildrenEdit","baseHome_dictionaryList","baseHome_car","baseHome_carEdite","baseHome_carList","baseHome_visitorCarEdit","baseHome_visitorCarList","baseHome_projectCarEdit","baseHome_projectCarList","baseHome_log","baseHome_opertionLogList","baseHome_logList","baseHome_organization","baseHome_regioEdit","baseHome_regioDeviceEdit","baseHome_regioDeviceBind","baseHome_regioList","baseHome_departmentEdit","baseHome_departmentList","baseHome_person","baseHome_visitorEdit","baseHome_visitorDeviceList","baseHome_visitorDeviceEdit","baseHome_visitorList","baseHome_ceshi","baseHome_personDeviceEdit","baseHome_personEdit","baseHome_personDeviceList","baseHome_personList","baseHome_noticeEdit","baseHome_ceshi","baseHome_noticeList","fireControl_index","fireControl_fireAssets","fireControl_monitoring","fireControl_videoPreview","fireControl_fireSensingSomke","fireControl_fireSensingSomkeList","fireControl_fireSensingSomkeFacilitiesList","fireControl_fireSensingSomkeNowData","fireControl_fireSensingSomkeEmergency","fireControl_fireSensingSomkeLabelList","fireControl_fireSensingHandReport","fireControl_fireSensingHandReportList","fireControl_fireSensingHandReportFacilitiesList","fireControl_fireSensingHandReportNowData","fireControl_fireSensingHandReportEmergency","fireControl_fireSensingHandReportLabelList","fireControl_fireSensingGas","fireControl_fireSensingGasList","fireControl_fireSensingGasFacilitiesList","fireControl_fireSensingGasNowData","fireControl_fireSensingGasEmergency","fireControl_fireSensingGasLabelList","fireControl_fireMonitor","fireControl_fireList","fireControl_fireFacilitiesList","fireControl_fireNowData","fireControl_fireHistoryData","fireControl_fireLogList","fireControl_fireEmergency","fireControl_fireLabelList","fireControl_lighting","fireControl_lightingList","fireControl_lightingFacilitiesList","fireControl_lightingNowData","fireControl_lightingHistoryData","fireControl_lightingLogList","fireControl_lightingEmergency","fireControl_lightingLabelList","fireControl_fireproofDevice","fireControl_fireproofDeviceList","fireControl_fireproofDeviceFacilitiesList","fireControl_fireproofDeviceNowData","fireControl_fireproofDeviceHistoryData","fireControl_fireproofDeviceLogList","fireControl_fireproofDeviceEmergency","fireControl_fireproofDeviceLabelList","fireControl_flammableArea","fireControl_flammableAreaList","fireControl_flammableAreaFacilitiesList","fireControl_flammableAreaNowData","fireControl_flammableAreaHistoryData","fireControl_flammableAreaLogList","fireControl_flammableAreaEmergency","fireControl_flammableAreaLabelList","fireControl_flammableAreaVideoPreview","fireControl_flammableAreaViolation","security_index","security_comprehensive","security_personDetail","security_personList","security_carDetail","security_carList","security_violationList","security_dataStatistics","security_areaList","security_keyPersonList","security_command","security_videoControl","security_signalSource","security_patrolTasks","security_duty","security_scheduling","security_currentDuty","dataAnalysis_dataChart","dataAnalysis_dataSupervision","dataAnalysis_dataAnalysis","dataAnalysis_InfoAnalysis","education_database","education_deviceInfoList","education_regulationsEdit","education_regulationsList","education_deviceKnowledgeEdit","education_deviceKnowledge","education_experienceEdit","education_experience","energy_index","energy_lighting","energy_parameter","energy_alarmList","energy_consumptionList","energy_monitoringList","energy_RelationshipList","energy_controlList"],"mergeRequestArray":[{"id":2,"label":"系统管理","requestList":[{"id":1,"key":"baseHome_index","label":"工作台","requestCheckedKeys":["/数据1","/数据2"],"requestList":[{"id":1,"label":"数据1"},{"id":2,"label":"数据2"}]},{"id":16,"key":"baseHome_roleList","label":"角色管理","requestCheckedKeys":["/system/role/list","/system/role/add","/system/role/delete","/system/role/update","/system/role/selRoleId","/system/role/selRoleList","/system/role/init","/basis/module/route/get/all","/system/role/query"],"requestList":[{"id":30,"label":"角色列表"},{"id":31,"label":"角色添加"},{"id":32,"label":"角色删除"},{"id":33,"label":"角色修改"},{"id":34,"label":"单个角色查询"},{"id":35,"label":"角色id查询"},{"id":36,"label":"批量修改角色 路由地址 接口地址"},{"id":37,"label":"重构角色列表"},{"id":38,"label":"根据角色编号获取详细信息"}]},{"id":19,"key":"baseHome_positioningCardList","label":"卡片定位器","requestCheckedKeys":["/basis/equip/list","/system/equip/delEquip","/basis/equip/selEquipId","/basis/equip/addCard","/basis/equip/updateCard","/basis/equip/type/list","/system/dict/data/selDictData","/basis/equip/unbind","/basis/equip/delEquip","/basis/area/unBindAreaAndDevice"],"requestList":[{"id":39,"label":"设备查询"},{"id":40,"label":"删除设备"},{"id":41,"label":"根据设备ID查询"},{"id":42,"label":"新增定位卡片设备"},{"id":43,"label":"根据设备Id修改定位卡片设备信息"},{"id":44,"label":"获取树形结构"},{"id":45,"label":"卡片的数据字典"},{"id":46,"label":" 解绑设备 传设备id解绑用户"},{"id":47,"label":"根据设备Id删除设备"},{"id":48,"label":"解绑设备 传设备id解绑用户"}]},{"id":21,"key":"baseHome_cameraList","label":"摄像头","requestCheckedKeys":["/basis/equip/list","/basis/equip/delEquip","/basis/equip/selEquipId","/basis/equip/addCamera","/basis/equip/updateCamera","/basis/equip/type/list","/system/dict/data/selDictData"],"requestList":[{"id":49,"label":"设备查询"},{"id":50,"label":"删除设备"},{"id":51,"label":"根据设备ID查询"},{"id":52,"label":"添加摄像头设备"},{"id":53,"label":"修改设备详情"},{"id":54,"label":"获取树形结构"},{"id":55,"label":"摄像头的数据字典"}]},{"id":23,"key":"baseHome_fireSensorsList","label":"消防传感器管理","requestCheckedKeys":["/basis/equip/unbind","/basis/equip/delEquip","/basis/equip/list","/system/dict/data/selDictData","/basis/equip/type/list","/basis/equip/updateSense","/basis/equip/addSense","/basis/area/unBindAreaAndDevice","/rocketmq/mq/producer/push","/basis/equip/selEquipId","/rocketmq/hao_en/iot/data/device/list"],"requestList":[{"id":56,"label":"解绑设备"},{"id":57,"label":"根据设备Id删除设备"},{"id":58,"label":"设备管理全查"},{"id":59,"label":"根据数据字典类别 查询子类的集合"},{"id":60,"label":"获取树形结构"},{"id":61,"label":"编辑传感器设备"},{"id":62,"label":"新增消防传感器"},{"id":63,"label":"解绑设备 传设备id解绑用户"},{"id":64,"label":"調試接口"},{"id":65,"label":"根据设备ID查询"},{"id":66,"label":"豪恩设备数据"}]},{"id":25,"key":"baseHome_positionDeviceList","label":"定位设备资产","requestCheckedKeys":["/basis/equip/unbind","/basis/equip/delEquip","/basis/equip/list","/system/dict/data/selDictData","/basis/equip/type/list","/system/dict/data/selDictData","/basis/equip/updateLocation","/basis/equip/addLocation","/basis/equip/selEquipId","/basis/area/unBindAreaAndDevice","/basis/equip/updateCard","/basis/equip/addCard"],"requestList":[{"id":67,"label":"解绑设备"},{"id":68,"label":"根据设备Id删除设备"},{"id":69,"label":"设备管理全查"},{"id":70,"label":"根据数据字典类别 查询子类的集合"},{"id":71,"label":"设备分类全查"},{"id":72,"label":"定位设备资产的数据字典"},{"id":73,"label":"编辑定位 设备"},{"id":74,"label":"新增定位设备"},{"id":75,"label":"根据设备ID查询"},{"id":76,"label":"解绑设备 传设备id解绑用户"},{"id":77,"label":"根据设备Id修改定位卡片设备信息"},{"id":78,"label":"新增定位卡片设备"}]},{"id":27,"key":"baseHome_deviceTypeList","label":"设备类型管理","requestCheckedKeys":["/basis/equip/type/list","/basis/equip/type/add","/basis/equip/type/delete","/basis/equip/type/update","/basis/equip/type/selectByEquipTypeId","/basis/equip/type/selectDeviceType","/system/dict/data/selDictData"],"requestList":[{"id":79,"label":"设备分类全查"},{"id":80,"label":"新增-设备分类"},{"id":81,"label":"删除-设备分类"},{"id":82,"label":"修改-设备分类"},{"id":83,"label":"根据设备分类ID单查"},{"id":84,"label":"查询一级设备类型"},{"id":85,"label":"设备类型管理的数据字典"}]},{"id":29,"key":"baseHome_dictionaryList","label":"数据字典","requestCheckedKeys":["/system/dict/data/update","/system/dict/type/update","/system/dict/data/selDistCode","/system/dict/type/selDictId","/system/dict/data/delete","/system/dict/type/delete","/system/dict/type/list","/system/dict/data/list","/system/dict/type/optionselect","/system/dict/type/add","/system/dict/data/add"],"requestList":[{"id":86,"label":"修改字典类型(子)"},{"id":87,"label":"修改字典类型(父)"},{"id":88,"label":"查询字典详细(子)"},{"id":89,"label":"查询字典详细(父)"},{"id":90,"label":"删除字典数据(子)"},{"id":91,"label":"删除数据字典(父)"},{"id":92,"label":"数据字典父级查询"},{"id":93,"label":"数据字典子集查询"},{"id":94,"label":"获取字典选择框列表"},{"id":95,"label":"新增数据字典(父)"},{"id":96,"label":"新增字典数据(子)"}]},{"id":34,"key":"baseHome_carList","label":"企业车辆列表","requestCheckedKeys":["/basis/car/update","/basis/car/add","/basis/car/list","/system/dict/data/selDictData","/basis/car/selCarType","/basis/car/selCarById","/basis/car/delete"],"requestList":[{"id":100,"label":"编辑车辆"},{"id":101,"label":"新增车辆"},{"id":102,"label":"车辆管理 全查"},{"id":103,"label":"车辆的数据字典"},{"id":97,"label":"车辆类型查找"},{"id":98,"label":"车辆管理 单查"},{"id":99,"label":"删除车辆"}]},{"id":36,"key":"baseHome_visitorCarList","label":"访客车辆列表","requestCheckedKeys":["/basis/car/selCarType","/basis/car/selCarById","/basis/car/delete","/basis/car/update","/basis/car/add","/basis/car/list","/system/dict/data/selDictData"],"requestList":[{"id":104,"label":"车辆类型查找"},{"id":105,"label":"车辆管理 单查"},{"id":106,"label":"删除车辆"},{"id":107,"label":"编辑车辆"},{"id":108,"label":"新增车辆"},{"id":109,"label":"车辆管理 全查"},{"id":110,"label":"车辆的数据字典"}]},{"id":38,"key":"baseHome_projectCarList","label":"工程车辆列表","requestCheckedKeys":["/basis/car/selCarType","/basis/car/selCarById","/basis/car/delete","/basis/car/update","/basis/car/add","/basis/car/list","/system/dict/data/selDictData"],"requestList":[{"id":111,"label":"车辆类型查找"},{"id":112,"label":"车辆管理 单查"},{"id":113,"label":"删除车辆"},{"id":114,"label":"编辑车辆"},{"id":115,"label":"新增车辆"},{"id":116,"label":"车辆管理 全查"},{"id":117,"label":"车辆的数据字典"}]},{"id":44,"key":"baseHome_opertionLogList","label":"操作日志","requestCheckedKeys":["/system/operlog/list","/system/operlog/delete","/system/operlog/clean"],"requestList":[{"id":123,"label":"操作日志列表"},{"id":124,"label":"操作日志-删除"},{"id":125,"label":"操作日志-清空"}]},{"id":45,"key":"baseHome_logList","label":"登录日志","requestCheckedKeys":["/system/logininfor/list","/system/logininfor/delete","/system/logininfor/clean"],"requestList":[{"id":126,"label":"登录日志-全查"},{"id":127,"label":"登录日志-删除"},{"id":128,"label":"登录日志-清空"}]},{"id":47,"key":"baseHome_regioList","label":"区域场所管理","requestCheckedKeys":["/basis/area/insertAndUpdateArea","/basis/area/deleteArea","/basis/area/getAreaInfo","/basis/area/selectDeviceByArea","/basis/area/bindAreaAndDevice","/basis/area/unBindAreaAndDevice","/system/dict/data/selDictData","/basis/area/getDeviceByDeviceType","/system/region/type","/basis/area/getAreaBindType"],"requestList":[{"id":129,"label":"添加和管理区域管理"},{"id":130,"label":"删除区域管理"},{"id":131,"label":"查询区域列表"},{"id":132,"label":"查询已绑定设备列表"},{"id":133,"label":"绑定设备"},{"id":134,"label":"解除已绑定设备"},{"id":135,"label":"根据数据字典类别 查询子类的集合"},{"id":136,"label":"根据设备类型获取可用设备"},{"id":137,"label":"查询区域类型"},{"id":138,"label":"根据数据字典类别 查询子类的集合"}]},{"id":51,"key":"baseHome_departmentList","label":"部门岗位管理","requestCheckedKeys":["/system/dept/selectDeptPage","/system/dept/addDept","/system/dept/editDept","/system/dept/removeDept"],"requestList":[{"id":139,"label":"查询部门树形分页列表"},{"id":140,"label":"新增部门"},{"id":141,"label":"编辑部门"},{"id":142,"label":"删除部门"}]},{"id":12,"key":"baseHome_visitorList","label":"访客管理","requestCheckedKeys":["/system/user/list","/system/user/add","/system/user/delete","/system/user/update","/basis/equip/selUserBindEquip","/basis/equip/unbind","/basis/equip/addEquipBind","/basis/equip/selType","/basis/equip/selTypeId","/system/dict/data/selDictData","/system/role/selRoleList","/system/user/selUserId","/system/dept/selectDeptPage"],"requestList":[{"id":17,"label":"人员管理列表"},{"id":18,"label":"添加人员"},{"id":19,"label":"删除人员"},{"id":20,"label":"修改人员"},{"id":21,"label":"设备绑定查询"},{"id":22,"label":"解除设备绑定"},{"id":23,"label":"增加设备"},{"id":24,"label":"设备类型查询"},{"id":25,"label":"根据设备类型查找设备编号"},{"id":26,"label":"数据字典"},{"id":27,"label":"数据字典"},{"id":28,"label":"人员id单查"},{"id":29,"label":"获取树形结构级联选择框"}]},{"id":7,"key":"baseHome_personList","label":"员工管理","requestCheckedKeys":["/basis/equip/selType","/basis/equip/selTypeId","/system/dict/data/selDictData","/system/role/selRoleList","/system/user/selUserId","/system/dept/selectDeptPage","/basis/equip/type/list","/system/user/list","/system/user/add","/system/user/delete","/system/user/update","/basis/equip/selUserBindEquip","/basis/equip/unbind","/basis/equip/addEquipBind"],"requestList":[{"id":10,"label":"设备类型查询"},{"id":11,"label":"根据设备类型查找设备编号"},{"id":12,"label":"数据字典"},{"id":13,"label":"数据字典"},{"id":14,"label":"人员id单查"},{"id":15,"label":"获取树形结构级联选择框"},{"id":16,"label":"获取树形结构"},{"id":3,"label":"人员管理列表"},{"id":4,"label":"添加人员"},{"id":5,"label":"删除人员"},{"id":6,"label":"修改人员"},{"id":7,"label":"设备绑定查询"},{"id":8,"label":"解除设备绑定"},{"id":9,"label":"增加设备"}]},{"id":40,"key":"baseHome_noticeList","label":"公告通知","requestCheckedKeys":["/system/notice/list","/system/notice/delete","/system/notice/add","/system/notice/update","/system/notice/selectById"],"requestList":[{"id":118,"label":"通知公告-列表"},{"id":119,"label":"通知公告-删除"},{"id":120,"label":"通知公告-新增"},{"id":121,"label":"通知公告-修改"},{"id":122,"label":"通知公告-单查"}]}],"value":"baseHome"},{"id":3,"label":"智能消防","requestList":[{"id":53,"key":"fireControl_index","label":"消防工作台","requestCheckedKeys":["/消防数据1"],"requestList":[{"id":143,"label":"消防数据1"}]},{"id":54,"key":"fireControl_fireAssets","label":"消防资产图","requestCheckedKeys":["/消防数据1"],"requestList":[{"id":144,"label":"消防数据1"}]},{"id":56,"key":"fireControl_videoPreview","label":"视频预览","requestCheckedKeys":["/basis/area/getAreaInfo","/basis/camera/getAreaBindCamera","/basis/camera/getCamera","/basis/camera/getVideoOldInfo"],"requestList":[{"id":145,"label":"查询区域列表"},{"id":146,"label":"获取区域可绑摄像头类型"},{"id":147,"label":"获取摄像头列表"},{"id":148,"label":"获取当前摄像头回放视频"}]},{"id":58,"key":"fireControl_fireSensingSomkeList","label":"监测首页","requestCheckedKeys":["/basis/equip/list","/basis/equip/selEquipId","/basis/equip/update","/basis/equip/type/selectByDeviceType"],"requestList":[{"id":149,"label":"烟雾全查设施"},{"id":150,"label":"烟雾单查设施"},{"id":151,"label":"烟雾修改设施"},{"id":152,"label":"设施分类列表-下拉框"}]},{"id":59,"key":"fireControl_fireSensingSomkeFacilitiesList","label":"设施","requestCheckedKeys":["/basis/equip/list","/basis/equip/selEquipId","/basis/equip/update","/basis/equip/type/selectByDeviceType","/rocketmq/hao_en/iot/data/device/list"],"requestList":[{"id":153,"label":"烟雾全查设施"},{"id":154,"label":"烟雾单查设施"},{"id":155,"label":"烟雾修改设施"},{"id":156,"label":"烟雾设施分类列表-下拉框"},{"id":157,"label":"获取豪恩下拉框数据"}]},{"id":60,"key":"fireControl_fireSensingSomkeNowData","label":"监测数据","requestCheckedKeys":["/basis/equip/device/trackAll"],"requestList":[{"id":158,"label":"烟雾检测数据-全查"}]},{"id":61,"key":"fireControl_fireSensingSomkeEmergency","label":"报警处理","requestCheckedKeys":["/rocketmq/hao_en/iot/data/device/alarm/list/all","/rocketmq/hao_en/iot/data/device/alarm/update/trigger"],"requestList":[{"id":159,"label":"获取豪恩设备处理报警数据"},{"id":160,"label":"处理豪恩设备报警"}]},{"id":62,"key":"fireControl_fireSensingSomkeLabelList","label":"标签管理","requestCheckedKeys":["/消防数据2","/消防数据3"],"requestList":[{"id":161,"label":"消防数据2"},{"id":162,"label":"消防数据3"}]},{"id":64,"key":"fireControl_fireSensingHandReportList","label":"监测首页","requestCheckedKeys":["/basis/equip/list","/basis/equip/selEquipId","/basis/equip/update","/basis/equip/type/selectByDeviceType"],"requestList":[{"id":163,"label":"烟雾全查设施"},{"id":164,"label":"烟雾单查设施"},{"id":165,"label":"烟雾修改设施"},{"id":166,"label":"设施分类列表-下拉框"}]},{"id":65,"key":"fireControl_fireSensingHandReportFacilitiesList","label":"设施","requestCheckedKeys":["/basis/equip/list","/basis/equip/selEquipId","/basis/equip/update","/basis/equip/type/selectByDeviceType","/rocketmq/hao_en/iot/data/device/list"],"requestList":[{"id":167,"label":"烟雾全查设施"},{"id":168,"label":"烟雾单查设施"},{"id":169,"label":"烟雾修改设施"},{"id":170,"label":"烟雾设施分类列表-下拉框"},{"id":171,"label":"获取豪恩下拉框数据"}]},{"id":66,"key":"fireControl_fireSensingHandReportNowData","label":"监测数据","requestCheckedKeys":["/basis/equip/device/trackAll"],"requestList":[{"id":172,"label":"烟雾检测数据-全查"}]},{"id":67,"key":"fireControl_fireSensingHandReportEmergency","label":"报警处理","requestCheckedKeys":["/rocketmq/hao_en/iot/data/device/alarm/list/all","/rocketmq/hao_en/iot/data/device/alarm/update/trigger"],"requestList":[{"id":173,"label":"获取豪恩设备处理报警数据"},{"id":174,"label":"处理豪恩设备报警"}]},{"id":68,"key":"fireControl_fireSensingHandReportLabelList","label":"标签管理","requestCheckedKeys":["/消防数据2","/消防数据3"],"requestList":[{"id":175,"label":"消防数据2"},{"id":176,"label":"消防数据3"}]},{"id":70,"key":"fireControl_fireSensingGasList","label":"监测首页","requestCheckedKeys":["/basis/equip/list","/basis/equip/selEquipId","/basis/equip/update","/basis/equip/type/selectByDeviceType"],"requestList":[{"id":177,"label":"烟雾全查设施"},{"id":178,"label":"烟雾单查设施"},{"id":179,"label":"烟雾修改设施"},{"id":180,"label":"设施分类列表-下拉框"}]},{"id":71,"key":"fireControl_fireSensingGasFacilitiesList","label":"设施","requestCheckedKeys":["/basis/equip/list","/basis/equip/selEquipId","/basis/equip/update","/basis/equip/type/selectByDeviceType","/rocketmq/hao_en/iot/data/device/list"],"requestList":[{"id":181,"label":"烟雾全查设施"},{"id":182,"label":"烟雾单查设施"},{"id":183,"label":"烟雾修改设施"},{"id":184,"label":"烟雾设施分类列表-下拉框"},{"id":185,"label":"获取豪恩下拉框数据"}]},{"id":72,"key":"fireControl_fireSensingGasNowData","label":"监测数据","requestCheckedKeys":["/basis/equip/device/trackAll"],"requestList":[{"id":186,"label":"烟雾检测数据-全查"}]},{"id":73,"key":"fireControl_fireSensingGasEmergency","label":"报警处理","requestCheckedKeys":["/rocketmq/hao_en/iot/data/device/alarm/list/all","/rocketmq/hao_en/iot/data/device/alarm/update/trigger"],"requestList":[{"id":187,"label":"获取豪恩设备处理报警数据"},{"id":188,"label":"处理豪恩设备报警"}]},{"id":74,"key":"fireControl_fireSensingGasLabelList","label":"标签管理","requestCheckedKeys":["/消防数据2","/消防数据3"],"requestList":[{"id":189,"label":"消防数据2"},{"id":190,"label":"消防数据3"}]},{"id":76,"key":"fireControl_fireList","label":"监测首页","requestCheckedKeys":["/消防数据2","/消防数据3"],"requestList":[{"id":191,"label":"消防数据2"},{"id":192,"label":"消防数据3"}]},{"id":77,"key":"fireControl_fireFacilitiesList","label":"设施","requestCheckedKeys":["/消防数据2","/消防数据3"],"requestList":[{"id":193,"label":"消防数据2"},{"id":194,"label":"消防数据3"}]},{"id":78,"key":"fireControl_fireNowData","label":"监测数据","requestCheckedKeys":["/消防数据2","/消防数据3"],"requestList":[{"id":195,"label":"消防数据2"},{"id":196,"label":"消防数据3"}]},{"id":79,"key":"fireControl_fireHistoryData","label":"历史数据","requestCheckedKeys":["/消防数据2","/消防数据3"],"requestList":[{"id":197,"label":"消防数据2"},{"id":198,"label":"消防数据3"}]},{"id":80,"key":"fireControl_fireLogList","label":"日志管理","requestCheckedKeys":["/消防数据2","/消防数据3"],"requestList":[{"id":199,"label":"消防数据2"},{"id":200,"label":"消防数据3"}]},{"id":81,"key":"fireControl_fireEmergency","label":"应急处理","requestCheckedKeys":["/消防数据2","/消防数据3"],"requestList":[{"id":201,"label":"消防数据2"},{"id":202,"label":"消防数据3"}]},{"id":82,"key":"fireControl_fireLabelList","label":"标签管理","requestCheckedKeys":["/消防数据2","/消防数据3"],"requestList":[{"id":203,"label":"消防数据2"},{"id":204,"label":"消防数据3"}]},{"id":84,"key":"fireControl_lightingList","label":"监测首页","requestCheckedKeys":["/消防数据2","/消防数据3"],"requestList":[{"id":205,"label":"消防数据2"},{"id":206,"label":"消防数据3"}]},{"id":85,"key":"fireControl_lightingFacilitiesList","label":"设施","requestCheckedKeys":["/消防数据2","/消防数据3"],"requestList":[{"id":207,"label":"消防数据2"},{"id":208,"label":"消防数据3"}]},{"id":86,"key":"fireControl_lightingNowData","label":"监测数据","requestCheckedKeys":["/消防数据2","/消防数据3"],"requestList":[{"id":209,"label":"消防数据2"},{"id":210,"label":"消防数据3"}]},{"id":87,"key":"fireControl_lightingHistoryData","label":"历史数据","requestCheckedKeys":["/消防数据2","/消防数据3"],"requestList":[{"id":211,"label":"消防数据2"},{"id":212,"label":"消防数据3"}]},{"id":88,"key":"fireControl_lightingLogList","label":"日志管理","requestCheckedKeys":["/消防数据2","/消防数据3"],"requestList":[{"id":213,"label":"消防数据2"},{"id":214,"label":"消防数据3"}]},{"id":89,"key":"fireControl_lightingEmergency","label":"应急处理","requestCheckedKeys":["/消防数据2","/消防数据3"],"requestList":[{"id":215,"label":"消防数据2"},{"id":216,"label":"消防数据3"}]},{"id":90,"key":"fireControl_lightingLabelList","label":"标签管理","requestCheckedKeys":["/消防数据2","/消防数据3"],"requestList":[{"id":217,"label":"消防数据2"},{"id":218,"label":"消防数据3"}]},{"id":92,"key":"fireControl_fireproofDeviceList","label":"监测首页","requestCheckedKeys":["/消防数据2","/消防数据3"],"requestList":[{"id":219,"label":"消防数据2"},{"id":220,"label":"消防数据3"}]},{"id":93,"key":"fireControl_fireproofDeviceFacilitiesList","label":"设施","requestCheckedKeys":["/消防数据2","/消防数据3"],"requestList":[{"id":221,"label":"消防数据2"},{"id":222,"label":"消防数据3"}]},{"id":94,"key":"fireControl_fireproofDeviceNowData","label":"监测数据","requestCheckedKeys":["/消防数据2","/消防数据3"],"requestList":[{"id":223,"label":"消防数据2"},{"id":224,"label":"消防数据3"}]},{"id":95,"key":"fireControl_fireproofDeviceHistoryData","label":"历史数据","requestCheckedKeys":["/消防数据2","/消防数据3"],"requestList":[{"id":225,"label":"消防数据2"},{"id":226,"label":"消防数据3"}]},{"id":96,"key":"fireControl_fireproofDeviceLogList","label":"日志管理","requestCheckedKeys":["/消防数据2","/消防数据3"],"requestList":[{"id":227,"label":"消防数据2"},{"id":228,"label":"消防数据3"}]},{"id":97,"key":"fireControl_fireproofDeviceEmergency","label":"应急处理","requestCheckedKeys":["/消防数据2","/消防数据3"],"requestList":[{"id":229,"label":"消防数据2"},{"id":230,"label":"消防数据3"}]},{"id":98,"key":"fireControl_fireproofDeviceLabelList","label":"标签管理","requestCheckedKeys":["/消防数据2","/消防数据3"],"requestList":[{"id":231,"label":"消防数据2"},{"id":232,"label":"消防数据3"}]},{"id":100,"key":"fireControl_flammableAreaList","label":"监测首页","requestCheckedKeys":["/消防数据2","/消防数据3"],"requestList":[{"id":233,"label":"消防数据2"},{"id":234,"label":"消防数据3"}]},{"id":101,"key":"fireControl_flammableAreaFacilitiesList","label":"设施","requestCheckedKeys":["/消防数据2","/消防数据3"],"requestList":[{"id":235,"label":"消防数据2"},{"id":236,"label":"消防数据3"}]},{"id":102,"key":"fireControl_flammableAreaNowData","label":"监测数据","requestCheckedKeys":["/消防数据2","/消防数据3"],"requestList":[{"id":237,"label":"消防数据2"},{"id":238,"label":"消防数据3"}]},{"id":103,"key":"fireControl_flammableAreaHistoryData","label":"历史数据","requestCheckedKeys":["/消防数据2","/消防数据3"],"requestList":[{"id":239,"label":"消防数据2"},{"id":240,"label":"消防数据3"}]},{"id":104,"key":"fireControl_flammableAreaLogList","label":"日志管理","requestCheckedKeys":["/消防数据2","/消防数据3"],"requestList":[{"id":241,"label":"消防数据2"},{"id":242,"label":"消防数据3"}]},{"id":105,"key":"fireControl_flammableAreaEmergency","label":"应急处理","requestCheckedKeys":["/消防数据2","/消防数据3"],"requestList":[{"id":243,"label":"消防数据2"},{"id":244,"label":"消防数据3"}]},{"id":106,"key":"fireControl_flammableAreaLabelList","label":"标签管理","requestCheckedKeys":["/消防数据2","/消防数据3"],"requestList":[{"id":245,"label":"消防数据2"},{"id":246,"label":"消防数据3"}]},{"id":107,"key":"fireControl_flammableAreaVideoPreview","label":"视频预览","requestCheckedKeys":["/消防数据2","/消防数据3"],"requestList":[{"id":247,"label":"消防数据2"},{"id":248,"label":"消防数据3"}]},{"id":108,"key":"fireControl_flammableAreaViolation","label":"违规记录","requestCheckedKeys":["/消防数据2","/消防数据3"],"requestList":[{"id":249,"label":"消防数据2"},{"id":250,"label":"消防数据3"}]}],"value":"fireControl"},{"id":4,"label":"安防管控","requestList":[{"id":109,"key":"security_index","label":"安防工作台","requestCheckedKeys":["/mange"],"requestList":[{"id":251,"label":"借口1"}]},{"id":111,"key":"security_personList","label":"人员信息列表","requestCheckedKeys":["/protection/aggregation/user/list","/protection/aggregation/user/selectByUserId"],"requestList":[{"id":252,"label":"综合查询人员信息列表"},{"id":253,"label":"综合查询人员信息列表 根据人员id单查"}]},{"id":113,"key":"security_carList","label":"车辆信息列表","requestCheckedKeys":["/mange","/req"],"requestList":[{"id":254,"label":"借口1"},{"id":255,"label":"借口2"}]},{"id":115,"key":"security_violationList","label":"违规统计","requestCheckedKeys":["/protection/aggregation/getViolationStatisticsByDeviceConditions"],"requestList":[{"id":256,"label":"违规统计列表"}]},{"id":117,"key":"security_areaList","label":"区域信息","requestCheckedKeys":["/mange","/req"],"requestList":[{"id":257,"label":"借口1"},{"id":258,"label":"借口2"}]},{"id":118,"key":"security_keyPersonList","label":"重点人员","requestCheckedKeys":["/mange","/req"],"requestList":[{"id":259,"label":"借口1"},{"id":260,"label":"借口2"}]},{"id":120,"key":"security_videoControl","label":"视频管控","requestCheckedKeys":["/basis/area/getAreaInfo","/basis/camera/getAreaBindCamera","/basis/camera/getCamera","/basis/camera/getVideoOldInfo"],"requestList":[{"id":261,"label":"查询区域列表"},{"id":262,"label":"获取区域可绑摄像头类型"},{"id":263,"label":"获取摄像头列表"},{"id":264,"label":"获取当前摄像头回放视频"}]},{"id":121,"key":"security_signalSource","label":"大屏信号源管理","requestCheckedKeys":["/mange","/req"],"requestList":[{"id":265,"label":"借口1"},{"id":266,"label":"借口2"}]},{"id":125,"key":"security_patrolTasks","label":"巡检管理任务","requestCheckedKeys":["/mange"],"requestList":[{"id":271,"label":"借口1"}]},{"id":123,"key":"security_scheduling","label":"值班排班","requestCheckedKeys":["/mange","/req"],"requestList":[{"id":267,"label":"借口1"},{"id":268,"label":"借口2"}]},{"id":124,"key":"security_currentDuty","label":"当前值班","requestCheckedKeys":["/mange","/req"],"requestList":[{"id":269,"label":"借口1"},{"id":270,"label":"借口2"}]}],"value":"security"},{"id":5,"label":"数据分析","requestList":[{"id":126,"key":"dataAnalysis_dataChart","label":"数据图表","requestCheckedKeys":["/数据分析数据1"],"requestList":[{"id":272,"label":"数据分析数据1"}]},{"id":127,"key":"dataAnalysis_dataSupervision","label":"数据督导","requestCheckedKeys":["/数据分析数据1"],"requestList":[{"id":273,"label":"数据分析数据1"}]},{"id":128,"key":"dataAnalysis_dataAnalysis","label":"数据研判","requestCheckedKeys":["/数据分析数据1"],"requestList":[{"id":274,"label":"数据分析数据1"}]},{"id":129,"key":"dataAnalysis_InfoAnalysis","label":"信息研判","requestCheckedKeys":["/数据分析数据1"],"requestList":[{"id":275,"label":"数据分析数据1"}]}],"value":"dataAnalysis"},{"id":6,"label":"安全教育","requestList":[{"id":131,"key":"education_deviceInfoList","label":"资料库","requestCheckedKeys":["/basis/rule/list","/basis/rule/add","/basis/rule/selRuleById","/basis/rule/update","/basis/rule/delete"],"requestList":[{"id":276,"label":"规章制度列表"},{"id":277,"label":"新增规章制度"},{"id":278,"label":"单查规章"},{"id":279,"label":"修改规章"},{"id":280,"label":"删除规章"}]},{"id":132,"key":"education_regulationsList","label":"规章制度","requestCheckedKeys":["/basis/rule/list","/basis/rule/add","/basis/rule/selRuleById","/basis/rule/update","/basis/rule/delete"],"requestList":[{"id":281,"label":"规章制度列表"},{"id":282,"label":"新增规章制度"},{"id":283,"label":"单查规章"},{"id":284,"label":"修改规章"},{"id":285,"label":"删除规章"}]},{"id":134,"key":"education_deviceKnowledge","label":"设备知识","requestCheckedKeys":["/basis/rule/list","/basis/rule/add","/basis/rule/selRuleById","/basis/rule/update","/basis/rule/delete"],"requestList":[{"id":286,"label":"规章制度列表"},{"id":287,"label":"新增规章制度"},{"id":288,"label":"单查规章"},{"id":289,"label":"修改规章"},{"id":290,"label":"删除规章"}]},{"id":136,"key":"education_experience","label":"维保经验库","requestCheckedKeys":["/basis/rule/list","/basis/rule/add","/basis/rule/selRuleById","/basis/rule/update","/basis/rule/delete"],"requestList":[{"id":291,"label":"规章制度列表"},{"id":292,"label":"新增规章制度"},{"id":293,"label":"单查规章"},{"id":294,"label":"修改规章"},{"id":295,"label":"删除规章"}]}],"value":"education"},{"id":7,"label":"能耗监控","requestList":[{"id":138,"key":"energy_index","label":"工作台","requestCheckedKeys":["/能耗数据1"],"requestList":[{"id":296,"label":"能耗数据1"}]},{"id":140,"key":"energy_parameter","label":"运行参数设置","requestCheckedKeys":["/能耗数据2","/能耗数据3"],"requestList":[{"id":297,"label":"能耗数据2"},{"id":298,"label":"能耗数据3"}]},{"id":141,"key":"energy_alarmList","label":"告警管理","requestCheckedKeys":["/能耗数据2","/能耗数据3"],"requestList":[{"id":299,"label":"能耗数据2"},{"id":300,"label":"能耗数据3"}]},{"id":142,"key":"energy_consumptionList","label":"电能耗TOP10","requestCheckedKeys":["/能耗数据2","/能耗数据3"],"requestList":[{"id":301,"label":"能耗数据2"},{"id":302,"label":"能耗数据3"}]},{"id":143,"key":"energy_monitoringList","label":"数据监测","requestCheckedKeys":["/能耗数据2","/能耗数据3"],"requestList":[{"id":303,"label":"能耗数据2"},{"id":304,"label":"能耗数据3"}]},{"id":144,"key":"energy_RelationshipList","label":"计算关系管理","requestCheckedKeys":["/能耗数据2","/能耗数据3"],"requestList":[{"id":305,"label":"能耗数据2"},{"id":306,"label":"能耗数据3"}]},{"id":145,"key":"energy_controlList","label":"智能控制","requestCheckedKeys":["/能耗数据2","/能耗数据3"],"requestList":[{"id":307,"label":"能耗数据2"},{"id":308,"label":"能耗数据3"}]}],"value":"energy"}],"mergeRouterArray":[{"checkedKeys":["baseHome_smartReminder","baseHome_bmap","baseHome_sreen2","baseHome_sreen3","baseHome_index","baseHome_roleEdit","baseHome_roleList","baseHome_device","baseHome_positioningCardEdit","baseHome_positioningCardList","baseHome_cameraEdit","baseHome_cameraList","baseHome_fireSensorsEdit","baseHome_fireSensorsList","baseHome_positionDeviceEdit","baseHome_positionDeviceList","baseHome_deviceTypeEdit","baseHome_deviceTypeList","baseHome_dictionaryEdit","baseHome_dictionaryChildren","baseHome_dictionaryChildrenEdit","baseHome_dictionaryList","baseHome_car","baseHome_carEdite","baseHome_carList","baseHome_visitorCarEdit","baseHome_visitorCarList","baseHome_projectCarEdit","baseHome_projectCarList","baseHome_log","baseHome_opertionLogList","baseHome_logList","baseHome_organization","baseHome_regioEdit","baseHome_regioDeviceEdit","baseHome_regioDeviceBind","baseHome_regioList","baseHome_departmentEdit","baseHome_departmentList","baseHome_person","baseHome_visitorEdit","baseHome_visitorDeviceList","baseHome_visitorDeviceEdit","baseHome_visitorList","baseHome_ceshi","baseHome_personDeviceEdit","baseHome_personEdit","baseHome_personDeviceList","baseHome_personList","baseHome_noticeEdit","baseHome_ceshi","baseHome_noticeList"],"id":2,"label":"系统管理","value":"baseHome"},{"checkedKeys":["fireControl_index","fireControl_fireAssets","fireControl_monitoring","fireControl_videoPreview","fireControl_fireSensingSomke","fireControl_fireSensingSomkeList","fireControl_fireSensingSomkeFacilitiesList","fireControl_fireSensingSomkeNowData","fireControl_fireSensingSomkeEmergency","fireControl_fireSensingSomkeLabelList","fireControl_fireSensingHandReport","fireControl_fireSensingHandReportList","fireControl_fireSensingHandReportFacilitiesList","fireControl_fireSensingHandReportNowData","fireControl_fireSensingHandReportEmergency","fireControl_fireSensingHandReportLabelList","fireControl_fireSensingGas","fireControl_fireSensingGasList","fireControl_fireSensingGasFacilitiesList","fireControl_fireSensingGasNowData","fireControl_fireSensingGasEmergency","fireControl_fireSensingGasLabelList","fireControl_fireMonitor","fireControl_fireList","fireControl_fireFacilitiesList","fireControl_fireNowData","fireControl_fireHistoryData","fireControl_fireLogList","fireControl_fireEmergency","fireControl_fireLabelList","fireControl_lighting","fireControl_lightingList","fireControl_lightingFacilitiesList","fireControl_lightingNowData","fireControl_lightingHistoryData","fireControl_lightingLogList","fireControl_lightingEmergency","fireControl_lightingLabelList","fireControl_fireproofDevice","fireControl_fireproofDeviceList","fireControl_fireproofDeviceFacilitiesList","fireControl_fireproofDeviceNowData","fireControl_fireproofDeviceHistoryData","fireControl_fireproofDeviceLogList","fireControl_fireproofDeviceEmergency","fireControl_fireproofDeviceLabelList","fireControl_flammableArea","fireControl_flammableAreaList","fireControl_flammableAreaFacilitiesList","fireControl_flammableAreaNowData","fireControl_flammableAreaHistoryData","fireControl_flammableAreaLogList","fireControl_flammableAreaEmergency","fireControl_flammableAreaLabelList","fireControl_flammableAreaVideoPreview","fireControl_flammableAreaViolation"],"id":3,"label":"智能消防","value":"fireControl"},{"checkedKeys":["security_index","security_comprehensive","security_personDetail","security_personList","security_carDetail","security_carList","security_violationList","security_dataStatistics","security_areaList","security_keyPersonList","security_command","security_videoControl","security_signalSource","security_patrolTasks","security_duty","security_scheduling","security_currentDuty"],"id":4,"label":"安防管控","value":"security"},{"checkedKeys":["dataAnalysis_dataChart","dataAnalysis_dataSupervision","dataAnalysis_dataAnalysis","dataAnalysis_InfoAnalysis"],"id":5,"label":"数据分析","value":"dataAnalysis"},{"checkedKeys":["education_database","education_deviceInfoList","education_regulationsEdit","education_regulationsList","education_deviceKnowledgeEdit","education_deviceKnowledge","education_experienceEdit","education_experience"],"id":6,"label":"安全教育","value":"education"},{"checkedKeys":["energy_index","energy_lighting","energy_parameter","energy_alarmList","energy_consumptionList","energy_monitoringList","energy_RelationshipList","energy_controlList"],"id":7,"label":"能耗监控","value":"energy"}],"roleId":"1750689514320465922","roleName":"管理员"}
模块表(module)
路由表(routes)
请求表(requests)
路由-请求 中间表
二、初始化权限
初始化现有的权限 前端会将所拥有的所有模块、路由、请求,拼接成json传传给后端,后端接收到后处理json传,并将数据存入到各个表中 然后查询这些数据返回给前端渲染权限页面,返回两个接口一个是所有模块、路由、请求拼成的json数据格式、另一个则是该角色所拥有的权限就是存在该角色中的merge_role_json_str字段返回前端处理
@ApiOperation(value = "初始化现有的权限")
@PostMapping("/init")
public R init(@Valid @RequestBody InitRoleStringsVO roles) {
List<ModuleVO> initListBean = JSON.parseArray(roles.getRoleStrings(), ModuleVO.class);
if (CollectionUtils.isEmpty(initListBean)) {
throw new InitException("初始化,需要传入约定好的格式参数");
}
return R.ok(roleService.init(initListBean));
}
@Override
public boolean init(List<ModuleVO> moduleVOS) {
R<Boolean> booleanR = remoteModuleService.checkInit();
if(!booleanR.getData()){
return false;
}
// 初始化权限信息
try {
for (ModuleVO moduleVO : moduleVOS) {
String moduleId = remoteCreateModule(moduleVO);
createRoute(moduleVO.getChildren(), moduleId, "0");
}
} catch (Exception e) {
log.error("{}", e);
return false;
}
return true;
}
private String remoteCreateModule(ModuleVO moduleVO) {
Module module = new Module();
module.setModuleName(Optional.ofNullable(moduleVO).map(ModuleVO::getLabel).orElse(""));
module.setValue(Optional.ofNullable(moduleVO).map(ModuleVO::getValue).orElse(""));
module.setChecked(Optional.ofNullable(moduleVO).map(ModuleVO::getChecked).orElse(false));
module.setDescText(Optional.ofNullable(moduleVO).map(ModuleVO::getDescription).orElse(""));
// 初始化插入 模块
R<String> remoteModule = remoteModuleService.addModule(module);
if (remoteModule.getCode() != R.SUCCESS) {
throw new RemotingException("调用basis,创建模块失败!");
}
return remoteModule.getData();
}
private void createRoute(List<RouteVO> childrenList, String moduleId, String parentRouteId) {
if (!CollectionUtils.isEmpty(childrenList)) {
// 初始化创建时, 默认为0
for (RouteVO routeChild : childrenList) {
String routeId = remoteCreateRoute(routeChild, moduleId, parentRouteId);
remoteCreatePathNameV2(routeChild, moduleId, routeId);
// 创建请求列表集合
remoteCreateQuest(routeChild, moduleId, routeId);
createRoute(routeChild.getChildren(), moduleId, routeId);
}
}
}
private String remoteCreateRoute(RouteVO routeChild, String moduleId, String parentRouteId) {
Routes route = new Routes();
route.setCnName(Optional.ofNullable(routeChild).map(RouteVO::getLabel).orElse(""));
route.setKey(Optional.ofNullable(routeChild).map(RouteVO::getKey).orElse(""));
route.setIcon(Optional.ofNullable(routeChild).map(RouteVO::getIcon).orElse(""));
route.setSortNumber(Optional.ofNullable(routeChild).map(RouteVO::getNumber).orElse(0));
route.setParentRouteId(parentRouteId);
route.setModuleId(moduleId);
route.setDisabled(false);
route.setLeafNode(true);
//初始化插入 一级路由
R<String> remoteRoute = remoteRouteService.add(route);
if (remoteRoute.getCode() != R.SUCCESS) {
throw new RemotingException("调用basis,创建路由服务失败!");
}
return remoteRoute.getData();
}
private void remoteCreatePathNameV2(RouteVO routeChild, String moduleId, String routeId) {
List<PathName> pathNames = routeChild.getChildrenpathname();
if (!CollectionUtils.isEmpty(pathNames)) {
List<Routes> routesList = pathNames.stream()
.map(pathName -> {
Routes baseRoute = new Routes();
baseRoute.setCnName(pathName.getLabel());
baseRoute.setKey(pathName.getKey());
baseRoute.setSortNumber(Optional.of(routeChild.getNumber()).orElse(0));
baseRoute.setParentRouteId(routeId);
baseRoute.setModuleId(moduleId);
baseRoute.setDisabled(false);
baseRoute.setLeafNode(false);
return baseRoute;
})
.collect(Collectors.toList());
// 批量插入(假设remoteRouteService有支持批量插入的方法)
// remoteRouteService.batchAdd(routesList);
// 如果没有批量插入API,可以考虑使用并行流进行远程调用以提升性能(取决于服务端是否能有效处理并发请求)
// 注意:开启并行流可能需要根据实际情况评估,因为它会增加服务端的压力,且并非所有场景都能获得性能提升
routesList.parallelStream().forEach(remoteRouteService::add);
}
private void remoteCreateQuest(RouteVO routeChild, String moduleId, String routeId) {
List<RequestVO> requestlist = routeChild.getRequestlist();
if (!CollectionUtils.isEmpty(requestlist)) {
for (RequestVO requestVO : requestlist) {
Requests request = new Requests();
request.setName(requestVO.getLabel());
request.setUrl(requestVO.getValue());
// 初始化插入 请求列表
R<String> remoteQuest = remoteRequestService.add(request);
if (remoteQuest.getCode() != R.SUCCESS) {
throw new RemotingException("调用basis,创建接口服务失败!");
}
String requestId = remoteQuest.getData();
RouteRequest routeRequest = new RouteRequest();
routeRequest.setRouteId(routeId);
routeRequest.setRequestId(requestId);
routeRequest.setModuleId(moduleId);
// 初始化插入 请求列表与路由 的关系
remoteRouteRequestService.add(routeRequest);
}
}
}
private void createRoute(List<RouteVO> childrenList, String moduleId, String parentRouteId) {
if (!CollectionUtils.isEmpty(childrenList)) {
// 初始化创建时, 默认为0
for (RouteVO routeChild : childrenList) {
String routeId = remoteCreateRoute(routeChild, moduleId, parentRouteId);
remoteCreatePathNameV2(routeChild, moduleId, routeId);
// 创建请求列表集合
remoteCreateQuest(routeChild, moduleId, routeId);
createRoute(routeChild.getChildren(), moduleId, routeId);
}
}
}
创建角色时可以编辑该角色所能操作的模块,模块对应路由,路由对应请求
将这些权限数据传给后端,直接将这个对象json化存到merge_role_json_str字段中
初始化完成之后新增还是修改都可以直接更新角色的merge_role_json_str字段
更多推荐
已为社区贡献4条内容
所有评论(0)