¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.requier.service.impl; |
| | | |
| | | import com.alibaba.fastjson.JSONArray; |
| | | import com.alibaba.fastjson2.JSON; |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.core.toolkit.ObjectUtils; |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.ruoyi.basic.mapper.StructureItemParameterMapper; |
| | | import com.ruoyi.basic.pojo.StructureItemParameter; |
| | | import com.ruoyi.common.core.domain.Result; |
| | | import com.ruoyi.common.core.domain.entity.SysDictData; |
| | | import com.ruoyi.common.core.domain.entity.User; |
| | | import com.ruoyi.common.utils.DictUtils; |
| | | import com.ruoyi.common.utils.QueryWrappers; |
| | | import com.ruoyi.common.utils.SecurityUtils; |
| | | import com.ruoyi.framework.exception.ErrorException; |
| | | import com.ruoyi.requier.dto.ADto; |
| | | import com.ruoyi.requier.dto.BDto; |
| | | import com.ruoyi.requier.dto.DeviceDto; |
| | | import com.ruoyi.requier.mapper.DeviceMapper; |
| | | import com.ruoyi.requier.pojo.DataConfig; |
| | | import com.ruoyi.requier.pojo.Device; |
| | | import com.ruoyi.requier.pojo.DeviceMetricRecord; |
| | | import com.ruoyi.requier.service.DataConfigService; |
| | | import com.ruoyi.requier.service.DeviceService; |
| | | import com.ruoyi.requier.util.DataAcquisition; |
| | | import com.ruoyi.system.mapper.UserMapper; |
| | | import lombok.AllArgsConstructor; |
| | | import org.apache.commons.lang3.StringUtils; |
| | | import org.apache.logging.log4j.util.Strings; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | |
| | | import javax.servlet.http.HttpServletRequest; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.time.LocalDateTime; |
| | | import java.time.ZoneId; |
| | | import java.util.*; |
| | | import java.util.stream.Collectors; |
| | | |
| | | /** |
| | | * 设å¤(Device)表æå¡å®ç°ç±» |
| | | */ |
| | | @Service |
| | | @AllArgsConstructor |
| | | public class DeviceServiceImpl extends ServiceImpl<DeviceMapper, Device> implements DeviceService { |
| | | |
| | | private DeviceMapper deviceMapper; |
| | | |
| | | private UserMapper userMapper; |
| | | |
| | | private StructureItemParameterMapper structureItemParameterMapper; |
| | | |
| | | @Autowired |
| | | private DataConfigService dataConfigService; |
| | | |
| | | @Autowired |
| | | private QrShowServiceImpl qrShowService; |
| | | |
| | | @Override |
| | | public List<User> selectUserList() { |
| | | List<User> users = userMapper.selectList(new LambdaQueryWrapper<User>().like(User::getDepartLimsId, "1")); |
| | | return users; |
| | | } |
| | | |
| | | @Override |
| | | public List<User> selectUserListByDepartLimsId(String departLimsId) { |
| | | List<User> users = userMapper.selectList(new LambdaQueryWrapper<User>().like(User::getDepartLimsId, departLimsId)); |
| | | return users; |
| | | } |
| | | |
| | | @Override |
| | | public IPage<DeviceDto> selectDeviceParameter(Page page, DeviceDto itemParameter, Boolean laboratoryNameIsNull) { |
| | | IPage<DeviceDto> iPage = deviceMapper.selectDeviceParameterPage(page, QueryWrappers.queryWrappers(itemParameter), laboratoryNameIsNull); |
| | | return iPage; |
| | | } |
| | | |
| | | @Override |
| | | public int addDeviceParameter(Device itemParameter) { |
| | | return deviceMapper.insert(itemParameter); |
| | | } |
| | | |
| | | @Override |
| | | public int delDeviceParameter(Integer id) { |
| | | return deviceMapper.deleteById(id); |
| | | } |
| | | |
| | | @Transactional(rollbackFor = Exception.class) |
| | | @Override |
| | | public int upDeviceParameter(Device itemParameter) { |
| | | // å 餿°ééé
ç½®æ°æ® |
| | | dataConfigService.deleteDataConfig(); |
| | | // éè¦åæ¶æ´æ¹ device表 |
| | | |
| | | |
| | | |
| | | |
| | | return deviceMapper.updateById(itemParameter); |
| | | } |
| | | |
| | | @Override |
| | | public List<Device> selectEquipmentOverview() { |
| | | return deviceMapper.selectEquipmentOverview(new Page(1, 10), QueryWrappers.queryWrappers(new Device())); |
| | | } |
| | | |
| | | @Override |
| | | public List<Device> authorizedPerson() { |
| | | return deviceMapper.authorizedPerson(); |
| | | } |
| | | |
| | | @Override |
| | | public List<Device> search(Integer status, String deviceName, String specificationModel, String largeCategory) { |
| | | return deviceMapper.search(status, deviceName, specificationModel, largeCategory); |
| | | } |
| | | |
| | | @Override |
| | | public List<Device> selectDevicePrincipal() { |
| | | return deviceMapper.selectDevicePrincipal(); |
| | | } |
| | | |
| | | @Override |
| | | public List<Device> selectDeviceByCategory(String inspectionItem, String inspectionItemSubclass,String sonLaboratory) { |
| | | // Integer userId = getLook.selectPowerByMethodAndUserId(null).get("userId"); |
| | | // User user = Optional.ofNullable(userMapper.selectById(userId)).orElse(new User()); |
| | | // String departLimsId = user.getDepartLimsId(); |
| | | // if(departLimsId.isEmpty()){ |
| | | // |
| | | // } |
| | | List<Integer> id; |
| | | |
| | | try { |
| | | id = structureItemParameterMapper.selectList(Wrappers.<StructureItemParameter>lambdaQuery() |
| | | .eq(StructureItemParameter::getInspectionItem, inspectionItem) |
| | | .eq(ObjectUtils.isNotEmpty(inspectionItemSubclass),StructureItemParameter::getInspectionItemSubclass, inspectionItemSubclass) |
| | | .eq(ObjectUtils.isNotEmpty(sonLaboratory),StructureItemParameter::getSonLaboratory,sonLaboratory) |
| | | .select(StructureItemParameter::getId)).stream().map(StructureItemParameter::getId).collect(Collectors.toList()); |
| | | // if () { |
| | | //// id = structureItemParameterMapper.selectOne(Wrappers.<StructureItemParameter>lambdaQuery() |
| | | //// .eq(StructureItemParameter::getInspectionItem, inspectionItem) |
| | | //// .last("limit 1").select(StructureItemParameter::getId)).getId(); |
| | | // |
| | | // |
| | | // }else { |
| | | //// id = structureItemParameterMapper.selectOne(Wrappers.<StructureItemParameter>lambdaQuery() |
| | | //// .eq(StructureItemParameter::getInspectionItem, inspectionItem) |
| | | //// .eq(StructureItemParameter::getInspectionItemSubclass, inspectionItemSubclass) |
| | | //// .last("limit 1").select(StructureItemParameter::getId)).getId(); |
| | | // id = structureItemParameterMapper.selectList(Wrappers.<StructureItemParameter>lambdaQuery() |
| | | // .eq(StructureItemParameter::getInspectionItem, inspectionItem) |
| | | // |
| | | // .select(StructureItemParameter::getId)).stream().map(StructureItemParameter::getId).collect(Collectors.toList()); |
| | | // } |
| | | } catch (Exception e) { |
| | | return null; |
| | | } |
| | | List<Device> devices = deviceMapper.selectList(Wrappers.<Device>lambdaQuery() |
| | | .eq(Device::getDeviceStatus, 0) |
| | | .isNotNull(Device::getInsProductIds)); |
| | | List<Device> devices2 = new ArrayList<>(); |
| | | for (Device device : devices) { |
| | | String[] ids = device.getInsProductIds().split(","); |
| | | for (String i : ids) { |
| | | if (ObjectUtils.isNotEmpty(i)) { |
| | | if (id.contains(Integer.parseInt(i))) { |
| | | devices2.add(device); |
| | | break; |
| | | } |
| | | } |
| | | } |
| | | } |
| | | return devices2; |
| | | } |
| | | |
| | | @Override |
| | | public DeviceDto selectDeviceByCode(Integer id) { |
| | | DeviceDto deviceDto = deviceMapper.selectDeviceByCode(id); |
| | | List<Integer> ids = new ArrayList<>(); |
| | | if(Strings.isNotEmpty(deviceDto.getAuthorizedPerson())) { |
| | | if(deviceDto.getAuthorizedPerson().equals("null")) { |
| | | deviceDto.setAuthorizedPerson("[]"); |
| | | } |
| | | ids = JSON.parseArray(deviceDto.getAuthorizedPerson(), Integer.class); |
| | | } |
| | | String name = ""; |
| | | if(!ids.isEmpty()) { |
| | | name = userMapper.selectBatchIds(ids).stream().map(User::getName).collect(Collectors.joining(",")); |
| | | } |
| | | deviceDto.setAuthorizedPersonName(name); |
| | | //æ¥è¯¢è®¾å¤æ ¡åä¿¡æ¯ |
| | | DeviceMetricRecord calibrate = qrShowService.getDeviceMetricRecord(id, "calibrate"); |
| | | //deviceDto.setCalibrationDate(qrShowService.formatDate(calibrate.getCalibrationDate(),"yyyy-MM-dd")); |
| | | deviceDto.setCalibrateNo(calibrate.getCertificateSerialNumber()); |
| | | if(Objects.nonNull(calibrate.getNextCalibrationDate())){ |
| | | deviceDto.setCalibrationServices(calibrate.getUnitOfMeasure()); |
| | | deviceDto.setNextCalibrationDate(calibrate.getNextCalibrationDate().toInstant().atZone(ZoneId.systemDefault()).toLocalDateTime()); |
| | | deviceDto.setLastCalibrationDate(calibrate.getCalibrationDate().toInstant().atZone(ZoneId.systemDefault()).toLocalDateTime()); |
| | | } |
| | | |
| | | // å°äºåç¨æ¥æï¼èªå¨å°ç¶ææ¹ä¸ºåç¨ |
| | | if(Objects.nonNull(deviceDto.getNextCalibrationDate()) && LocalDateTime.now().isAfter(deviceDto.getNextCalibrationDate())) { |
| | | List<SysDictData> enums = DictUtils.getDictCache("设å¤ç¶æ"); |
| | | List<SysDictData> status = enums.stream().filter(item -> item.getDictValue().equals("åç¨")).collect(Collectors.toList()); |
| | | deviceDto.setDeviceStatus(Integer.parseInt(status.get(0).getDictValue())); |
| | | deviceMapper.updateById(deviceDto); |
| | | } |
| | | return deviceDto; |
| | | } |
| | | |
| | | /** |
| | | * |
| | | * @param request å请æ±ä¸çip |
| | | * @param id æ£éªæ ·å 主é®id |
| | | * @param entrustCode å§æç¼å· |
| | | * @param sampleCode æ ·åç¼å· |
| | | * @param fiberOpticRibbon å
纤带ç¼å· |
| | | * @return |
| | | */ |
| | | @Override |
| | | public Result<?> dataAcquisition(HttpServletRequest request, Integer id, String entrustCode, String sampleCode, String fiberOpticRibbon) { |
| | | // 鲿¢åç¯å°åå为IPv6 |
| | | String ip = DataAcquisition.getIp(request); |
| | | List<Device> device = baseMapper.selectList(Wrappers.<Device>lambdaQuery() |
| | | .eq(Device::getIp, ip)); |
| | | // 1ãæ£éª |
| | | if(device.size() > 1) { |
| | | String str = ""; |
| | | for (Device device1 : device) { |
| | | str += device1.getDeviceName() + "ï¼"; |
| | | } |
| | | throw new ErrorException("IPï¼" + ip + "é
ç½®äºè®¾å¤å¤ä¸ªè®¾å¤ï¼" + str + "ï¼æ æ³è¿è¡æ°éï¼"); |
| | | } |
| | | if (ObjectUtils.isEmpty(device)) { |
| | | throw new ErrorException("æªç»è¯¥IPï¼" + ip + "é
置设å¤ï¼æ æ³è¿è¡æ°éï¼"); |
| | | } |
| | | List<Map<String, Object>> inspectionItemSubclass = baseMapper.getInspectionItemSubclass(id); |
| | | if (ObjectUtils.isEmpty(device.get(0).getFileType()) || ObjectUtils.isEmpty(device.get(0).getCollectUrl())) { |
| | | throw new ErrorException("æªç»è¯¥ï¼" + device.get(0).getDeviceName() + "设å¤é
ç½®ééè·¯å¾ææä»¶åç¼ï¼"); |
| | | } |
| | | // 2ãå设å¤å
³èçæ£éªé¡¹ï¼æ£éªå项 |
| | | List<DataConfig> list1 = new ArrayList<>(); |
| | | inspectionItemSubclass.forEach(i -> { |
| | | List<DataConfig> list = dataConfigService.list(Wrappers.<DataConfig>lambdaQuery() |
| | | .eq(DataConfig::getDeviceId, device.get(0).getId()) |
| | | .eq(DataConfig::getInspectionItem, i.get("inspection_item")) |
| | | .eq(DataConfig::getInspectionItemSubclass, i.get("inspection_item_subclass")) |
| | | .orderBy(false, false, DataConfig::getId)); |
| | | list1.addAll(list); |
| | | }); |
| | | List<DataConfig> collect = list1.stream().distinct().collect(Collectors.toList()); |
| | | // 3ãééï¼åæ°æ® |
| | | Map<String, Object> map = DataAcquisition.dataAcquisitionEntrance(collect, device.get(0), entrustCode, sampleCode, ip, fiberOpticRibbon); |
| | | // 4ãé å¾ªç¯æ¬¡æ°ï¼åä¸å
¬å¼è®¡ç® |
| | | if (ObjectUtils.isNotEmpty(map)) { |
| | | Map<String, Object> frequency = DataAcquisition.createFrequency(entrustCode, sampleCode,fiberOpticRibbon, map); |
| | | return Result.success(frequency); |
| | | } else { |
| | | return Result.success(null); |
| | | } |
| | | } |
| | | |
| | | @Override |
| | | public List<ADto> menu() { |
| | | //æ¥è¯¢ææè®¾å¤ä¿¡æ¯ |
| | | List<Device> devices = baseMapper.selectList(null); |
| | | List<String> name = devices.stream().map(Device::getDeviceName).collect(Collectors.toList()); |
| | | |
| | | //æ¥è¯¢ææç¨æ·ä¿¡æ¯ |
| | | List<User> users = userMapper.selectList(null); |
| | | List<String> collect = users.stream().map(User::getName).collect(Collectors.toList()); |
| | | String menu="[\n" + |
| | | "\t{\n" + |
| | | "\t\tk: 0,\n" + |
| | | "\t\tv: \"个人é¦é¡µ\",\n" + |
| | | "\t\ti: \"font icon-shouyefill\",\n" + |
| | | "\t\tself: true,\n" + |
| | | "\t\tc: [{\n" + |
| | | "\t\t\tk: 0,\n" + |
| | | "\t\t\tv: \"个人é¦é¡µ\",\n" + |
| | | "\t\t\ti: \"font icon-shouyefill\",\n" + |
| | | "\t\t\tu: \"index-index\"\n" + |
| | | "\t\t}]\n" + |
| | | "\t},\n" + |
| | | "\t{\n" + |
| | | "\t\tv: \"ä¸å¡ç®¡ç\",\n" + |
| | | "\t\ti: \"font icon-kexueyanjiuheshiyankaifa\",\n" + |
| | | "\t\tp: \"selectInsOrderParameter selectInsOrderPlanList pageInsReport costStatistics selectWarehouse\",\n" + |
| | | "\t\tc: [\n" + |
| | | " {\n" + |
| | | " v: \"åæææ£éªä¸å\",\n" + |
| | | " i: \"font icon-erjidaohang\",\n" + |
| | | " u: \"b1-material-inspection-order\",\n" + |
| | | " p: \"selectInsOrderParameter\"\n" + |
| | | " },\n" + |
| | | " {\n" + |
| | | "\t\t\tv: \"æ£éªä¸å\",\n" + |
| | | "\t\t\ti: \"font icon-erjidaohang\",\n" + |
| | | "\t\t\tu: \"b1-inspection-order\",\n" + |
| | | "\t\t\tp: \"selectInsOrderParameter\"\n" + |
| | | "\t\t}, {\n" + |
| | | "\t\t\tv: \"æ£éªä»»å¡\",\n" + |
| | | "\t\t\ti: \"font icon-erjidaohang\",\n" + |
| | | "\t\t\tu: \"b1-inspect-order-plan\",\n" + |
| | | "\t\t\tp: \"selectInsOrderPlanList\"\n" + |
| | | "\t\t}, {\n" + |
| | | "\t\t\tv: \"æ¥åç¼å¶\",\n" + |
| | | "\t\t\ti: \"font icon-erjidaohang\",\n" + |
| | | "\t\t\tu: \"b1-report-preparation\",\n" + |
| | | "\t\t\tp: \"pageInsReport\"\n" + |
| | | "\t\t}, {\n" + |
| | | "\t\t\tv: \"è´¹ç¨ç»è®¡\",\n" + |
| | | "\t\t\ti: \"font icon-erjidaohang\",\n" + |
| | | "\t\t\tu: \"b1-expenses\",\n" + |
| | | "\t\t\tp: \"costStatistics\"\n" + |
| | | "\t\t}, {\n" + |
| | | "\t\t\tv: \"æ ·å管ç\",\n" + |
| | | "\t\t\ti: \"font icon-erjidaohang\",\n" + |
| | | "\t\t\tu: \"b1-sample\",\n" + |
| | | "\t\t\tp: \"selectWarehouse\"\n" + |
| | | "\t\t},{\n" + |
| | | "\t\t\tv: \"ä¸åæ ¼ç®¡ç\",\n" + |
| | | "\t\t\ti: \"font icon-erjidaohang\",\n" + |
| | | "\t\t\tu: \"b1-unpass\",\n" + |
| | | "\t\t\tp: \"\"\n" + |
| | | "\t\t}\n" + |
| | | "\t]\n" + |
| | | "\t},\n" + |
| | | "\t{\n" + |
| | | "\t\tv: \"æ åé\",\n" + |
| | | "\t\ti: \"font icon-biaozhunji\",\n" + |
| | | "\t\tp: \"selectStandardTreeList selectStandardTemplatePageList\",\n" + |
| | | "\t\tc: [{\n" + |
| | | "\t\t\tv: \"æ ååº\",\n" + |
| | | "\t\t\ti: \"font icon-erjidaohang\",\n" + |
| | | "\t\t\tu: \"b2-standard\",\n" + |
| | | "\t\t\tp: \"selectStandardTreeList\"\n" + |
| | | "\t\t}, {\n" + |
| | | "\t\t\tv: \"åå§è®°å½æ¨¡æ¿\",\n" + |
| | | "\t\t\ti: \"font icon-erjidaohang\",\n" + |
| | | "\t\t\tu: \"b2-standard-template\",\n" + |
| | | "\t\t\tp: \"selectStandardTemplatePageList\"\n" + |
| | | "\t\t}]\n" + |
| | | "\t},\n" + |
| | | "\t{\n" + |
| | | "\t\tv: \"绩æç®¡ç\",\n" + |
| | | "\t\ti: \"font icon-jixiaoguanli\",\n" + |
| | | "\t\tp: \"\",\n" + |
| | | "\t\tc: [{\n" + |
| | | "\t\t\tv: \"å·¥æ¶ç®¡ç\",\n" + |
| | | "\t\t\ti: \"font icon-erjidaohang\",\n" + |
| | | "\t\t\tu: \"b3-work-time-management\",\n" + |
| | | "\t\t\tp: \"selectAuxiliaryWorkingHours\"\n" + |
| | | "\t\t}, {\n" + |
| | | "\t\t\tv: \"人åèå¤\",\n" + |
| | | "\t\t\ti: \"font icon-erjidaohang\",\n" + |
| | | "\t\t\tu: \"\",\n" + |
| | | "\t\t\tp: \"\"\n" + |
| | | "\t\t}, {\n" + |
| | | "\t\t\tv: \"人åèè¯\",\n" + |
| | | "\t\t\ti: \"font icon-erjidaohang\",\n" + |
| | | "\t\t\tu: \"b3-personnel-evaluation\",\n" + |
| | | "\t\t\tp: \"\"\n" + |
| | | "\t\t}, {\n" + |
| | | "\t\t\tv: \"人åèæ ¸\",\n" + |
| | | "\t\t\ti: \"font icon-erjidaohang\",\n" + |
| | | "\t\t\tu: \"\",\n" + |
| | | "\t\t\tp: \"\"\n" + |
| | | "\t\t}, {\n" + |
| | | "\t\t\tv: \"æè½ç级\",\n" + |
| | | "\t\t\ti: \"font icon-erjidaohang\",\n" + |
| | | "\t\t\tu: \"\",\n" + |
| | | "\t\t\tp: \"\"\n" + |
| | | "\t\t}, {\n" + |
| | | "\t\t\tv: \"å·¥èµç»ç®\",\n" + |
| | | "\t\t\ti: \"font icon-erjidaohang\",\n" + |
| | | "\t\t\tu: \"\",\n" + |
| | | "\t\t\tp: \"\"\n" + |
| | | "\t\t}, {\n" + |
| | | "\t\t\tv: \"çæ¬¡\",\n" + |
| | | "\t\t\ti: \"font icon-erjidaohang\",\n" + |
| | | "\t\t\tu: \"b3-classes\",\n" + |
| | | "\t\t\tp: \"performanceShiftPage performanceShiftPageYear\"\n" + |
| | | "\t\t}]\n" + |
| | | "\t},\n" + |
| | | "\t{\n" + |
| | | "\t\tv: \"ç»è®¡å¾è¡¨\",\n" + |
| | | "\t\ti: \"font icon-tongjitubiao\",\n" + |
| | | "\t\tp: \"\",\n" + |
| | | "\t\tc: [{\n" + |
| | | "\t\t\tv: \"å®éªå®¤è¦ç´ \",\n" + |
| | | "\t\t\ti: \"font icon-erjidaohang\",\n" + |
| | | "\t\t\tu: \"\",\n" + |
| | | "\t\t\tp: \"\"\n" + |
| | | "\t\t}, {\n" + |
| | | "\t\t\tv: \"æ¯æ¥ä¸å¡ç»è®¡\",\n" + |
| | | "\t\t\ti: \"font icon-erjidaohang\",\n" + |
| | | "\t\t\tu: \"b4-daily-business-statistics\",\n" + |
| | | "\t\t\tp: \"businessStatisticsByDay\"\n" + |
| | | "\t\t}, {\n" + |
| | | "\t\t\tv: \"æ£æµé¡¹ç®ç»è®¡\",\n" + |
| | | "\t\t\ti: \"font icon-erjidaohang\",\n" + |
| | | "\t\t\tu: \"b4-inspection-item-statistics\",\n" + |
| | | "\t\t\tp: \"testProductByDay\"\n" + |
| | | "\t\t}, {\n" + |
| | | "\t\t\tv: \"æ ·åç¼ºé·ææ°\",\n" + |
| | | "\t\t\ti: \"font icon-erjidaohang\",\n" + |
| | | "\t\t\tu: \"b4-sample-defects\",\n" + |
| | | "\t\t\tp: \"selectSampleDefects\"\n" + |
| | | "\t\t}, {\n" + |
| | | "\t\t\tv: \"èæç»è®¡\",\n" + |
| | | "\t\t\ti: \"font icon-erjidaohang\",\n" + |
| | | "\t\t\tu: \"\",\n" + |
| | | "\t\t\tp: \"\"\n" + |
| | | "\t\t}, {\n" + |
| | | "\t\t\tv: \"人å工使¥è¡¨\",\n" + |
| | | "\t\t\ti: \"font icon-erjidaohang\",\n" + |
| | | "\t\t\tu: \"\",\n" + |
| | | "\t\t\tp: \"\"\n" + |
| | | "\t\t}]\n" + |
| | | "\t},\n" + |
| | | "\t{\n" + |
| | | "\t\tv: \"çµåçæ¿\",\n" + |
| | | "\t\ti: \"font icon-dianzikanban-fan\",\n" + |
| | | "\t\tp: \"\",\n" + |
| | | "\t\tc: [{\n" + |
| | | "\t\t\tv: \"å®¢æ·æ¥å¾
\",\n" + |
| | | "\t\t\ti: \"font icon-erjidaohang\",\n" + |
| | | "\t\t\tu: \"\",\n" + |
| | | "\t\t\tp: \"\"\n" + |
| | | "\t\t}, {\n" + |
| | | "\t\t\tv: \"ä»»å¡å±ç¤º\",\n" + |
| | | "\t\t\ti: \"font icon-erjidaohang\",\n" + |
| | | "\t\t\tu: \"\",\n" + |
| | | "\t\t\tp: \"\"\n" + |
| | | "\t\t}, {\n" + |
| | | "\t\t\tv: \"设å¤ç¶æå饱å度\",\n" + |
| | | "\t\t\ti: \"font icon-erjidaohang\",\n" + |
| | | "\t\t\tu: \"\",\n" + |
| | | "\t\t\tp: \"\"\n" + |
| | | "\t\t}]\n" + |
| | | "\t},\n" + |
| | | "\t{\n" + |
| | | "\t\tv: \"ç³»ç»åè½\",\n" + |
| | | "\t\ti: \"el-icon-s-tools\",\n" + |
| | | "\t\tp: \"\",\n" + |
| | | "\t\tc: [{\n" + |
| | | "\t\t\tv: \"æ°æ®åå
¸\",\n" + |
| | | "\t\t\ti: \"el-icon-s-tools\",\n" + |
| | | "\t\t\tu: \"enums\",\n" + |
| | | "\t\t\tp: \"selectEnumList\"\n" + |
| | | "\t\t}, {\n" + |
| | | "\t\t\tv: \"è§è²ç®¡ç\",\n" + |
| | | "\t\t\ti: \"el-icon-s-tools\",\n" + |
| | | "\t\t\tu: \"role-manage\",\n" + |
| | | "\t\t\tp: \"selectRoleLists\"\n" + |
| | | "\t\t}, {\n" + |
| | | "\t\t\tv: \"ç¨æ·ç®¡ç\",\n" + |
| | | "\t\t\ti: \"el-icon-s-tools\",\n" + |
| | | "\t\t\tu: \"person-manage\",\n" + |
| | | "\t\t\tp: \"selectUserList\"\n" + |
| | | "\t\t}, {\n" + |
| | | "\t\t\tv: \"客æ·ç®¡ç\",\n" + |
| | | "\t\t\ti: \"el-icon-s-tools\",\n" + |
| | | "\t\t\tu: \"custom_manage\",\n" + |
| | | "\t\t\tp: \"selectCustomPageList\"\n" + |
| | | "\t\t}, {\n" + |
| | | "\t\t\tv: \"ç³»ç»æ¥å¿\",\n" + |
| | | "\t\t\ti: \"el-icon-s-tools\",\n" + |
| | | "\t\t\tu: \"system-log\",\n" + |
| | | "\t\t\tp: \"\"\n" + |
| | | "\t\t}, {\n" + |
| | | "\t\t\tv: \"æ¶æ¯è¯¦æ
\",\n" + |
| | | "\t\t\ti: \"el-icon-s-tools\",\n" + |
| | | "\t\t\tu: \"notice-detail\",\n" + |
| | | "\t\t\tp: \"abcd\"\n" + |
| | | "\t\t}]\n" + |
| | | "\t},\n" + |
| | | "\t{\n" + |
| | | "\t\tv: \"4 éç¨è¦æ±\",\n" + |
| | | "\t\ti: \"font icon-tongyongyaoqiu\",\n" + |
| | | "\t\tp: \"\",\n" + |
| | | "\t\tc: [{\n" + |
| | | "\t\t\t\tv: \"éç¨è¦æ±\",\n" + |
| | | "\t\t\t\ti: \"font icon-erjidaohang\",\n" + |
| | | "\t\t\t\tu: \"\",\n" + |
| | | "\t\t\t\tg: \"4 éç¨è¦æ±\",\n" + |
| | | "\t\t\t\tp: \"\"\n" + |
| | | "\t\t\t},\n" + |
| | | "\t\t\t{\n" + |
| | | "\t\t\t\tv: \"å
¬æ£æ§\",\n" + |
| | | "\t\t\t\ti: \"font icon-erjidaohang\",\n" + |
| | | "\t\t\t\tu: \"\",\n" + |
| | | "\t\t\t\tg: \"4.1 å
¬æ£æ§\",\n" + |
| | | "\t\t\t\tp: \"\"\n" + |
| | | "\t\t\t},\n" + |
| | | "\t\t\t{\n" + |
| | | "\t\t\t\tv: \"ä¿å¯æ§\",\n" + |
| | | "\t\t\t\ti: \"font icon-erjidaohang\",\n" + |
| | | "\t\t\t\tu: \"\",\n" + |
| | | "\t\t\t\tg: \"4.2 ä¿å¯æ§\",\n" + |
| | | "\t\t\t\tp: \"\"\n" + |
| | | "\t\t\t}\n" + |
| | | "\t\t]\n" + |
| | | "\t},\n" + |
| | | "\t{\n" + |
| | | "\t\tv: \"5 ç»æè¦æ±\",\n" + |
| | | "\t\ti: \"font icon-jiegouyaoqiu\",\n" + |
| | | "\t\tp: \"\",\n" + |
| | | "\t\tc: [{\n" + |
| | | "\t\t\tv: \"å®éªå®¤çæ³å¾å°ä½\",\n" + |
| | | "\t\t\ti: \"font icon-erjidaohang\",\n" + |
| | | "\t\t\tu: \"\",\n" + |
| | | "\t\t\tg: \"Aå®éªå®¤çæ³å¾å°ä½\",\n" + |
| | | "\t\t\tp: \"\"\n" + |
| | | "\t\t}, {\n" + |
| | | "\t\t\tv: \"å
¨æè´è´£ç管çå±\",\n" + |
| | | "\t\t\ti: \"font icon-erjidaohang\",\n" + |
| | | "\t\t\tu: \"\",\n" + |
| | | "\t\t\tg: \"Bå
¨æè´è´£ç管çå±\",\n" + |
| | | "\t\t\tp: \"\"\n" + |
| | | "\t\t}, {\n" + |
| | | "\t\t\tv: \"å®éªå®¤èµè´¨\",\n" + |
| | | "\t\t\ti: \"font icon-erjidaohang\",\n" + |
| | | "\t\t\tu: \"a5-laboratory-qualifications\",\n" + |
| | | "\t\t\tg: \"Cè½åèå´åèµè´¨\",\n" + |
| | | "\t\t\tp: \"getCertificationDetail\"\n" + |
| | | "\t\t}, {\n" + |
| | | "\t\t\tv: \"è½åèå´\",\n" + |
| | | "\t\t\ti: \"font icon-erjidaohang\",\n" + |
| | | "\t\t\tu: \"a5-capacity-scope\",\n" + |
| | | "\t\t\tg: \"Cè½åèå´åèµè´¨\",\n" + |
| | | "\t\t\tp: \"selectItemParameterList selectTestObjectList\"\n" + |
| | | "\t\t}, {\n" + |
| | | "\t\t\tv: \"åºææè®¾æ½\",\n" + |
| | | "\t\t\ti: \"font icon-erjidaohang\",\n" + |
| | | "\t\t\tu: \"a5-laboratory-management\",\n" + |
| | | "\t\t\tg: \"Dåºææè®¾æ½\",\n" + |
| | | "\t\t\tp: \"selectItemParameter\"\n" + |
| | | "\t\t}, {\n" + |
| | | "\t\t\tv: \"ç»ç»ç¸å
³æä»¶\",\n" + |
| | | "\t\t\ti: \"font icon-erjidaohang\",\n" + |
| | | "\t\t\tu: \"\",\n" + |
| | | "\t\t\tg: \"Eç»ç»ç¸å
³æä»¶\",\n" + |
| | | "\t\t\tp: \"\"\n" + |
| | | "\t\t}, {\n" + |
| | | "\t\t\tv: \"人åå²ä½ä»»è\",\n" + |
| | | "\t\t\ti: \"font icon-erjidaohang\",\n" + |
| | | "\t\t\tu: \"\",\n" + |
| | | "\t\t\tg: \"F人åå²ä½ä»»è\",\n" + |
| | | "\t\t\tp: \"\"\n" + |
| | | "\t\t}, {\n" + |
| | | "\t\t\tv: \"æ²éå宣贯\",\n" + |
| | | "\t\t\ti: \"font icon-erjidaohang\",\n" + |
| | | "\t\t\tu: \"\",\n" + |
| | | "\t\t\tg: \"Gæ²éå宣贯\",\n" + |
| | | "\t\t\tp: \"\"\n" + |
| | | "\t\t}]\n" + |
| | | "\t}, {\n" + |
| | | "\t\tv: \"6 èµæºè¦æ±\",\n" + |
| | | "\t\ti: \"font icon-ziyuanyaoqiu\",\n" + |
| | | "\t\tp: \"\",\n" + |
| | | "\t\tc: [{\n" + |
| | | "\t\t\tv: \"æ»å\",\n" + |
| | | "\t\t\ti: \"font icon-erjidaohang\",\n" + |
| | | "\t\t\tu: \"\",\n" + |
| | | "\t\t\tg: \"6.1 æ»å\",\n" + |
| | | "\t\t\tp: \"\"\n" + |
| | | "\t\t}, {\n" + |
| | | "\t\t\tv: \"äººåæ»è§\",\n" + |
| | | "\t\t\ti: \"font icon-erjidaohang\",\n" + |
| | | "\t\t\tu: \"a6-personnel-overview\",\n" + |
| | | "\t\t\tg: \"6.2 人å\",\n" + |
| | | "\t\t\tp: \"selectPersonnelOverview\"\n" + |
| | | "\t\t}, {\n" + |
| | | "\t\t\tv: \"人åæç»\",\n" + |
| | | "\t\t\ti: \"font icon-erjidaohang\",\n" + |
| | | "\t\t\tu: \"a6-personnel-detail\",\n" + |
| | | "\t\t\tg: \"6.2 人å\",\n" + |
| | | "\t\t\tp: \"selectDepartmentLim\"\n" + |
| | | "\t\t}, {\n" + |
| | | "\t\t\tv: \"人åå¹è®\",\n" + |
| | | "\t\t\ti: \"font icon-erjidaohang\",\n" + |
| | | "\t\t\tu: \"\",\n" + |
| | | "\t\t\tg: \"6.2 人å\",\n" + |
| | | "\t\t\tp: \"\"\n" + |
| | | "\t\t}, {\n" + |
| | | "\t\t\tv: \"人åçç£\",\n" + |
| | | "\t\t\ti: \"font icon-erjidaohang\",\n" + |
| | | "\t\t\tu: \"\",\n" + |
| | | "\t\t\tg: \"6.2 人å\",\n" + |
| | | "\t\t\tp: \"\"\n" + |
| | | "\t\t}, {\n" + |
| | | "\t\t\tv: \"å²ä½èè´£\",\n" + |
| | | "\t\t\ti: \"font icon-erjidaohang\",\n" + |
| | | "\t\t\tu: \"\",\n" + |
| | | "\t\t\tg: \"6.2 人å\",\n" + |
| | | "\t\t\tp: \"\"\n" + |
| | | "\t\t}, {\n" + |
| | | "\t\t\tv: \"人ååºæ¬ä¿¡æ¯\",\n" + |
| | | "\t\t\ti: \"font icon-erjidaohang\",\n" + |
| | | "\t\t\tu: \"\",\n" + |
| | | "\t\t\tg: \"6.2 人å\",\n" + |
| | | "\t\t\tp: \"\"\n" + |
| | | "\t\t}, {\n" + |
| | | "\t\t\tv: \"å·¥ä½å±¥å\",\n" + |
| | | "\t\t\ti: \"font icon-erjidaohang\",\n" + |
| | | "\t\t\tu: \"\",\n" + |
| | | "\t\t\tg: \"6.2 人å\",\n" + |
| | | "\t\t\tp: \"\"\n" + |
| | | "\t\t}, {\n" + |
| | | "\t\t\tv: \"奿©è®°å½\",\n" + |
| | | "\t\t\ti: \"font icon-erjidaohang\",\n" + |
| | | "\t\t\tu: \"\",\n" + |
| | | "\t\t\tg: \"6.2 人å\",\n" + |
| | | "\t\t\tp: \"\"\n" + |
| | | "\t\t}, {\n" + |
| | | "\t\t\tv: \"å¹è®è®°å½\",\n" + |
| | | "\t\t\ti: \"font icon-erjidaohang\",\n" + |
| | | "\t\t\tu: \"\",\n" + |
| | | "\t\t\tg: \"6.2 人å\",\n" + |
| | | "\t\t\tp: \"\"\n" + |
| | | "\t\t}, {\n" + |
| | | "\t\t\tv: \"çç£è®°å½\",\n" + |
| | | "\t\t\ti: \"font icon-erjidaohang\",\n" + |
| | | "\t\t\tu: \"\",\n" + |
| | | "\t\t\tg: \"6.2 人å\",\n" + |
| | | "\t\t\tp: \"\"\n" + |
| | | "\t\t}, {\n" + |
| | | "\t\t\tv: \"ä»»èææè®°å½\",\n" + |
| | | "\t\t\ti: \"font icon-erjidaohang\",\n" + |
| | | "\t\t\tu: \"\",\n" + |
| | | "\t\t\tg: \"6.2 人å\",\n" + |
| | | "\t\t\tp: \"\"\n" + |
| | | "\t\t}, {\n" + |
| | | "\t\t\tv: \"人åè½åçæ§è®°å½\",\n" + |
| | | "\t\t\ti: \"font icon-erjidaohang\",\n" + |
| | | "\t\t\tu: \"\",\n" + |
| | | "\t\t\tg: \"6.2 人å\",\n" + |
| | | "\t\t\tp: \"\"\n" + |
| | | "\t\t}, {\n" + |
| | | "\t\t\tv: \"æ²éè®°å½\",\n" + |
| | | "\t\t\ti: \"font icon-erjidaohang\",\n" + |
| | | "\t\t\tu: \"\",\n" + |
| | | "\t\t\tg: \"6.2 人å\",\n" + |
| | | "\t\t\tp: \"\"\n" + |
| | | "\t\t}, {\n" + |
| | | "\t\t\tv: \"夿¥äººå管ç\",\n" + |
| | | "\t\t\ti: \"font icon-erjidaohang\",\n" + |
| | | "\t\t\tu: \"a6-external-personnel-management\",\n" + |
| | | "\t\t\tg: \"6.3 设æ½åç¯å¢æ¡ä»¶\",\n" + |
| | | "\t\t\tp: \"\"\n" + |
| | | "\t\t}, {\n" + |
| | | "\t\t\tv: \"å®éªå®¤è®¾æ½åºæä¿¡æ¯\",\n" + |
| | | "\t\t\ti: \"font icon-erjidaohang\",\n" + |
| | | "\t\t\tu: \"\",\n" + |
| | | "\t\t\tg: \"6.3 设æ½åç¯å¢æ¡ä»¶\",\n" + |
| | | "\t\t\tp: \"\"\n" + |
| | | "\t\t}, {\n" + |
| | | "\t\t\tv: \"设æ½åç¯å¢æ¡ä»¶è¦æ±\",\n" + |
| | | "\t\t\ti: \"font icon-erjidaohang\",\n" + |
| | | "\t\t\tu: \"\",\n" + |
| | | "\t\t\tg: \"6.3 设æ½åç¯å¢æ¡ä»¶\",\n" + |
| | | "\t\t\tp: \"\"\n" + |
| | | "\t\t}, {\n" + |
| | | "\t\t\tv: \"ç¯å¢æ¡ä»¶å¼ç¨\",\n" + |
| | | "\t\t\ti: \"font icon-erjidaohang\",\n" + |
| | | "\t\t\tu: \"\",\n" + |
| | | "\t\t\tg: \"6.3 设æ½åç¯å¢æ¡ä»¶\",\n" + |
| | | "\t\t\tp: \"\"\n" + |
| | | "\t\t}, {\n" + |
| | | "\t\t\tv: \"å®å
¨åºä»£è¡¨æ£æ¥\",\n" + |
| | | "\t\t\ti: \"font icon-erjidaohang\",\n" + |
| | | "\t\t\tu: \"\",\n" + |
| | | "\t\t\tg: \"6.3 设æ½åç¯å¢æ¡ä»¶\",\n" + |
| | | "\t\t\tp: \"\"\n" + |
| | | "\t\t}, {\n" + |
| | | "\t\t\tv: \"å®å
¨å
å¡\",\n" + |
| | | "\t\t\ti: \"font icon-erjidaohang\",\n" + |
| | | "\t\t\tu: \"\",\n" + |
| | | "\t\t\tg: \"6.3 设æ½åç¯å¢æ¡ä»¶\",\n" + |
| | | "\t\t\tp: \"\"\n" + |
| | | "\t\t}, {\n" + |
| | | "\t\t\tv: \"åºç©å¤ç交æ¥è®°å½\",\n" + |
| | | "\t\t\ti: \"font icon-erjidaohang\",\n" + |
| | | "\t\t\tu: \"a6-waste-handover\",\n" + |
| | | "\t\t\tg: \"6.3 设æ½åç¯å¢æ¡ä»¶\",\n" + |
| | | "\t\t\tp: \"\"\n" + |
| | | "\t\t}, {\n" + |
| | | "\t\t\tv: \"è®¾å¤æ»è§\",\n" + |
| | | "\t\t\ti: \"font icon-erjidaohang\",\n" + |
| | | "\t\t\tu: \"a6-device-overview\",\n" + |
| | | "\t\t\tg: \"6.4 设å¤\",\n" + |
| | | "\t\t\tp: \"selectDeviceParameter\"\n" + |
| | | "\t\t}, {\n" + |
| | | "\t\t\tv: \"设å¤å·¥å
·æç»\",\n" + |
| | | "\t\t\ti: \"font icon-erjidaohang\",\n" + |
| | | "\t\t\tu: \"a6-device-management\",\n" + |
| | | "\t\t\tg: \"6.4 设å¤\",\n" + |
| | | "\t\t\tp: \"selectDeviceParameter\"\n" + |
| | | "\t\t}, {\n" + |
| | | "\t\t\tv: \"èµæºé¢å®\",\n" + |
| | | "\t\t\ti: \"font icon-erjidaohang\",\n" + |
| | | "\t\t\tu: \"\",\n" + |
| | | "\t\t\tg: \"6.4 设å¤\",\n" + |
| | | "\t\t\tp: \"\"\n" + |
| | | "\t\t}, {\n" + |
| | | "\t\t\tv: \"ä½ä¸æå¯¼ä¹¦\",\n" + |
| | | "\t\t\ti: \"font icon-erjidaohang\",\n" + |
| | | "\t\t\tu: \"\",\n" + |
| | | "\t\t\tg: \"6.4 设å¤\",\n" + |
| | | "\t\t\tp: \"\"\n" + |
| | | "\t\t}, {\n" + |
| | | "\t\t\tv: \"设å¤è¿è¡æ»è§\",\n" + |
| | | "\t\t\ti: \"font icon-erjidaohang\",\n" + |
| | | "\t\t\tu: \"\",\n" + |
| | | "\t\t\tg: \"6.4 设å¤\",\n" + |
| | | "\t\t\tp: \"\"\n" + |
| | | "\t\t}, {\n" + |
| | | "\t\t\tv: \"è®¾å¤æ¡£æ¡\",\n" + |
| | | "\t\t\ti: \"font icon-erjidaohang\",\n" + |
| | | "\t\t\tu: \"\",\n" + |
| | | "\t\t\tg: \"6.4 设å¤\",\n" + |
| | | "\t\t\tp: \"\"\n" + |
| | | "\t\t}, {\n" + |
| | | "\t\t\tv: \"设å¤éªæ¶\",\n" + |
| | | "\t\t\ti: \"font icon-erjidaohang\",\n" + |
| | | "\t\t\tu: \"\",\n" + |
| | | "\t\t\tg: \"6.4 设å¤\",\n" + |
| | | "\t\t\tp: \"\"\n" + |
| | | "\t\t}, {\n" + |
| | | "\t\t\tv: \"è®¾å¤æ ¡å\",\n" + |
| | | "\t\t\ti: \"font icon-erjidaohang\",\n" + |
| | | "\t\t\tu: \"\",\n" + |
| | | "\t\t\tg: \"6.4 设å¤\",\n" + |
| | | "\t\t\tp: \"\"\n" + |
| | | "\t\t}, {\n" + |
| | | "\t\t\tv: \"è®¾å¤æ ¸æ¥\",\n" + |
| | | "\t\t\ti: \"font icon-erjidaohang\",\n" + |
| | | "\t\t\tu: \"\",\n" + |
| | | "\t\t\tg: \"6.4 设å¤\",\n" + |
| | | "\t\t\tp: \"\"\n" + |
| | | "\t\t}, {\n" + |
| | | "\t\t\tv: \"设å¤ç»´æ¤\",\n" + |
| | | "\t\t\ti: \"font icon-erjidaohang\",\n" + |
| | | "\t\t\tu: \"\",\n" + |
| | | "\t\t\tg: \"6.4 设å¤\",\n" + |
| | | "\t\t\tp: \"\"\n" + |
| | | "\t\t}, {\n" + |
| | | "\t\t\tv: \"设å¤åç¨\",\n" + |
| | | "\t\t\ti: \"font icon-erjidaohang\",\n" + |
| | | "\t\t\tu: \"\",\n" + |
| | | "\t\t\tg: \"6.4 设å¤\",\n" + |
| | | "\t\t\tp: \"\"\n" + |
| | | "\t\t}, {\n" + |
| | | "\t\t\tv: \"è®¾å¤æ
é\",\n" + |
| | | "\t\t\ti: \"font icon-erjidaohang\",\n" + |
| | | "\t\t\tu: \"\",\n" + |
| | | "\t\t\tg: \"6.4 设å¤\",\n" + |
| | | "\t\t\tp: \"\"\n" + |
| | | "\t\t}, {\n" + |
| | | "\t\t\tv: \"使ç¨è®°å½\",\n" + |
| | | "\t\t\ti: \"font icon-erjidaohang\",\n" + |
| | | "\t\t\tu: \"\",\n" + |
| | | "\t\t\tg: \"6.4 设å¤\",\n" + |
| | | "\t\t\tp: \"\"\n" + |
| | | "\t\t}, {\n" + |
| | | "\t\t\tv: \"设å¤åç¨/å¯ç¨\",\n" + |
| | | "\t\t\ti: \"font icon-erjidaohang\",\n" + |
| | | "\t\t\tu: \"\",\n" + |
| | | "\t\t\tg: \"6.4 设å¤\",\n" + |
| | | "\t\t\tp: \"\"\n" + |
| | | "\t\t}, {\n" + |
| | | "\t\t\tv: \"é弿º¯æºè®¡å\",\n" + |
| | | "\t\t\ti: \"font icon-erjidaohang\",\n" + |
| | | "\t\t\tu: \"\",\n" + |
| | | "\t\t\tg: \"6.5 è®¡éæº¯æºæ§\",\n" + |
| | | "\t\t\tp: \"\"\n" + |
| | | "\t\t}, {\n" + |
| | | "\t\t\tv: \"æ åç©è´¨æ¸
å\",\n" + |
| | | "\t\t\ti: \"font icon-erjidaohang\",\n" + |
| | | "\t\t\tu: \"a6-standard-material-list\",\n" + |
| | | "\t\t\tg: \"6.5 è®¡éæº¯æºæ§\",\n" + |
| | | "\t\t\tp: \"\"\n" + |
| | | "\t\t}, {\n" + |
| | | "\t\t\tv: \"æ åç©è´¨éªæ¶\",\n" + |
| | | "\t\t\ti: \"font icon-erjidaohang\",\n" + |
| | | "\t\t\tu: \"\",\n" + |
| | | "\t\t\tg: \"6.5 è®¡éæº¯æºæ§\",\n" + |
| | | "\t\t\tp: \"\"\n" + |
| | | "\t\t}, {\n" + |
| | | "\t\t\tv: \"æ åç©è´¨é¢ç¨\",\n" + |
| | | "\t\t\ti: \"font icon-erjidaohang\",\n" + |
| | | "\t\t\tu: \"a6-standard-material-requisition\",\n" + |
| | | "\t\t\tg: \"6.5 è®¡éæº¯æºæ§\",\n" + |
| | | "\t\t\tp: \"\"\n" + |
| | | "\t\t}, {\n" + |
| | | "\t\t\tv: \"è¿ææ æ ·å¤ç½®\",\n" + |
| | | "\t\t\ti: \"font icon-erjidaohang\",\n" + |
| | | "\t\t\tu: \"\",\n" + |
| | | "\t\t\tg: \"6.5 è®¡éæº¯æºæ§\",\n" + |
| | | "\t\t\tp: \"\"\n" + |
| | | "\t\t}, {\n" + |
| | | "\t\t\tv: \"æå¡åä¾åºåéè´\",\n" + |
| | | "\t\t\ti: \"font icon-erjidaohang\",\n" + |
| | | "\t\t\tu: \"\",\n" + |
| | | "\t\t\tg: \"6.6 å¤é¨æä¾ç产ååæå¡\",\n" + |
| | | "\t\t\tp: \"\"\n" + |
| | | "\t\t},{\n" + |
| | | "\t\t\tv: \"ä¾åºå管ç\",\n" + |
| | | "\t\t\ti: \"font icon-erjidaohang\",\n" + |
| | | "\t\t\tu: \"\",\n" + |
| | | "\t\t\tg: \"6.6 å¤é¨æä¾ç产ååæå¡\",\n" + |
| | | "\t\t\tp: \"\"\n" + |
| | | "\t\t}]\n" + |
| | | "\t},\n" + |
| | | "\t{\n" + |
| | | "\t\tv: \"7 è¿ç¨è¦æ±\",\n" + |
| | | "\t\ti: \"font icon-guochengyaoqiu\",\n" + |
| | | "\t\tp: \"\",\n" + |
| | | "\t\tc: [{\n" + |
| | | "\t\t\tv: \"æ£éªå§æå\",\n" + |
| | | "\t\t\ti: \"font icon-erjidaohang\",\n" + |
| | | "\t\t\tu: \"\",\n" + |
| | | "\t\t\tg: \"7.1 è¦æ±ãæ 书åååè¯å®¡\",\n" + |
| | | "\t\t\tp: \"\"\n" + |
| | | "\t\t}, {\n" + |
| | | "\t\t\tv: \"ååè¯å®¡\",\n" + |
| | | "\t\t\ti: \"font icon-erjidaohang\",\n" + |
| | | "\t\t\tu: \"\",\n" + |
| | | "\t\t\tg: \"7.1 è¦æ±ãæ 书åååè¯å®¡\",\n" + |
| | | "\t\t\tp: \"\"\n" + |
| | | "\t\t}, {\n" + |
| | | "\t\t\tv: \"å®éªå®¤çæ£æµè½åæ¡£æ¡\",\n" + |
| | | "\t\t\ti: \"font icon-erjidaohang\",\n" + |
| | | "\t\t\tu: \"a7-standard-method\",\n" + |
| | | "\t\t\tg: \"7.2 æ¹æ³çéæ©ãéªè¯å确认\",\n" + |
| | | "\t\t\tp: \"selectStandardMethodList\"\n" + |
| | | "\t\t}, {\n" + |
| | | "\t\t\tv: \"æ 忥æ°\",\n" + |
| | | "\t\t\ti: \"font icon-erjidaohang\",\n" + |
| | | "\t\t\tu: \"\",\n" + |
| | | "\t\t\tg: \"7.2 æ¹æ³çéæ©ãéªè¯å确认\",\n" + |
| | | "\t\t\tp: \"\"\n" + |
| | | "\t\t}, {\n" + |
| | | "\t\t\tv: \"æ åæ¹æ³çåæ´\",\n" + |
| | | "\t\t\ti: \"font icon-erjidaohang\",\n" + |
| | | "\t\t\tu: \"\",\n" + |
| | | "\t\t\tg: \"7.2 æ¹æ³çéæ©ãéªè¯å确认\",\n" + |
| | | "\t\t\tp: \"\"\n" + |
| | | "\t\t}, {\n" + |
| | | "\t\t\tv: \"æ¹æ³éªè¯\",\n" + |
| | | "\t\t\ti: \"font icon-erjidaohang\",\n" + |
| | | "\t\t\tu: \"\",\n" + |
| | | "\t\t\tg: \"7.2 æ¹æ³çéæ©ãéªè¯å确认\",\n" + |
| | | "\t\t\tp: \"\"\n" + |
| | | "\t\t}, {\n" + |
| | | "\t\t\tv: \"æ½æ ·\",\n" + |
| | | "\t\t\ti: \"font icon-erjidaohang\",\n" + |
| | | "\t\t\tu: \"\",\n" + |
| | | "\t\t\tg: \"7.3 æ½æ ·\",\n" + |
| | | "\t\t\tp: \"\"\n" + |
| | | "\t\t}, {\n" + |
| | | "\t\t\tv: \"æ£æµææ ¡åç©åçå¤ç½®\",\n" + |
| | | "\t\t\ti: \"font icon-erjidaohang\",\n" + |
| | | "\t\t\tu: \"\",\n" + |
| | | "\t\t\tg: \"7.4 æ£æµææ ¡åç©åçå¤ç½®\",\n" + |
| | | "\t\t\tp: \"\"\n" + |
| | | "\t\t}, {\n" + |
| | | "\t\t\tv: \"ææ¯è®°å½\",\n" + |
| | | "\t\t\ti: \"font icon-erjidaohang\",\n" + |
| | | "\t\t\tu: \"\",\n" + |
| | | "\t\t\tg: \"7.5 ææ¯è®°å½\",\n" + |
| | | "\t\t\tp: \"\"\n" + |
| | | "\t\t}, {\n" + |
| | | "\t\t\tv: \"æµéä¸ç¡®å®åº¦çè¯å®\",\n" + |
| | | "\t\t\ti: \"font icon-erjidaohang\",\n" + |
| | | "\t\t\tu: \"\",\n" + |
| | | "\t\t\tg: \"7.6 æµéä¸ç¡®å®åº¦çè¯å®\",\n" + |
| | | "\t\t\tp: \"\"\n" + |
| | | "\t\t}, {\n" + |
| | | "\t\t\tv: \"ç¡®ä¿ç»ææææ§\",\n" + |
| | | "\t\t\ti: \"font icon-erjidaohang\",\n" + |
| | | "\t\t\tu: \"\",\n" + |
| | | "\t\t\tg: \"7.7 ç¡®ä¿ç»ææææ§\",\n" + |
| | | "\t\t\tp: \"\"\n" + |
| | | "\t\t}, {\n" + |
| | | "\t\t\tv: \"æ¥åç»æ\",\n" + |
| | | "\t\t\ti: \"font icon-erjidaohang\",\n" + |
| | | "\t\t\tu: \"\",\n" + |
| | | "\t\t\tg: \"7.8 æ¥åç»æ\",\n" + |
| | | "\t\t\tp: \"\"\n" + |
| | | "\t\t}, {\n" + |
| | | "\t\t\tv: \"æè¯è¯¦æ
\",\n" + |
| | | "\t\t\ti: \"font icon-erjidaohang\",\n" + |
| | | "\t\t\tu: \"\",\n" + |
| | | "\t\t\tg: \"7.9 æè¯\",\n" + |
| | | "\t\t\tp: \"\"\n" + |
| | | "\t\t}, {\n" + |
| | | "\t\t\tv: \"æè¯æ
嵿±æ»è¡¨\",\n" + |
| | | "\t\t\ti: \"font icon-erjidaohang\",\n" + |
| | | "\t\t\tu: \"\",\n" + |
| | | "\t\t\tg: \"7.9 æè¯\",\n" + |
| | | "\t\t\tp: \"\"\n" + |
| | | "\t\t}, {\n" + |
| | | "\t\t\tv: \"ä¸ç¬¦å项\",\n" + |
| | | "\t\t\ti: \"font icon-erjidaohang\",\n" + |
| | | "\t\t\tu: \"\",\n" + |
| | | "\t\t\tg: \"7.10 ä¸ç¬¦åå·¥ä½\",\n" + |
| | | "\t\t\tp: \"\"\n" + |
| | | "\t\t}, {\n" + |
| | | "\t\t\tv: \"ä¸ç¬¦å项çåå¸\",\n" + |
| | | "\t\t\ti: \"font icon-erjidaohang\",\n" + |
| | | "\t\t\tu: \"\",\n" + |
| | | "\t\t\tg: \"7.10 ä¸ç¬¦åå·¥ä½\",\n" + |
| | | "\t\t\tp: \"\"\n" + |
| | | "\t\t}, {\n" + |
| | | "\t\t\tv: \"æ°æ®æ§å¶åä¿¡æ¯ç®¡ç\",\n" + |
| | | "\t\t\ti: \"font icon-erjidaohang\",\n" + |
| | | "\t\t\tu: \"\",\n" + |
| | | "\t\t\tg: \"7.11 æ°æ®æ§å¶åä¿¡æ¯ç®¡ç\",\n" + |
| | | "\t\t\tp: \"\"\n" + |
| | | "\t\t}]\n" + |
| | | "\t},\n" + |
| | | "\t{\n" + |
| | | "\t\tv: \"8 ä½ç³»ç®¡çè¦æ±\",\n" + |
| | | "\t\ti: \"font icon-guanlitixiyaoqiu\",\n" + |
| | | "\t\tp: \"\",\n" + |
| | | "\t\tc: [{\n" + |
| | | "\t\t\tv: \"æ¹å¼\",\n" + |
| | | "\t\t\ti: \"font icon-erjidaohang\",\n" + |
| | | "\t\t\tu: \"\",\n" + |
| | | "\t\t\tg: \"8.1 æ¹å¼\",\n" + |
| | | "\t\t\tp: \"\"\n" + |
| | | "\t\t}, {\n" + |
| | | "\t\t\tv: \"管çä½ç³»æä»¶\",\n" + |
| | | "\t\t\ti: \"font icon-erjidaohang\",\n" + |
| | | "\t\t\tu: \"\",\n" + |
| | | "\t\t\tg: \"8.2 管çä½ç³»æä»¶\",\n" + |
| | | "\t\t\tp: \"\"\n" + |
| | | "\t\t}, {\n" + |
| | | "\t\t\tv: \"æä»¶æ¸
å\",\n" + |
| | | "\t\t\ti: \"font icon-erjidaohang\",\n" + |
| | | "\t\t\tu: \"\",\n" + |
| | | "\t\t\tg: \"8.3 管çä½ç³»æä»¶çæ§å¶\",\n" + |
| | | "\t\t\tp: \"\"\n" + |
| | | "\t\t}, {\n" + |
| | | "\t\t\tv: \"æä»¶åæ§\",\n" + |
| | | "\t\t\ti: \"font icon-erjidaohang\",\n" + |
| | | "\t\t\tu: \"\",\n" + |
| | | "\t\t\tg: \"8.3 管çä½ç³»æä»¶çæ§å¶\",\n" + |
| | | "\t\t\tp: \"\"\n" + |
| | | "\t\t}, {\n" + |
| | | "\t\t\tv: \"æä»¶åæ¾åæ¶\",\n" + |
| | | "\t\t\ti: \"font icon-erjidaohang\",\n" + |
| | | "\t\t\tu: \"\",\n" + |
| | | "\t\t\tg: \"8.3 管çä½ç³»æä»¶çæ§å¶\",\n" + |
| | | "\t\t\tp: \"\"\n" + |
| | | "\t\t}, {\n" + |
| | | "\t\t\tv: \"æä»¶åæ´\",\n" + |
| | | "\t\t\ti: \"font icon-erjidaohang\",\n" + |
| | | "\t\t\tu: \"\",\n" + |
| | | "\t\t\tg: \"8.3 管çä½ç³»æä»¶çæ§å¶\",\n" + |
| | | "\t\t\tp: \"\"\n" + |
| | | "\t\t}, {\n" + |
| | | "\t\t\tv: \"æä»¶ä½åº\",\n" + |
| | | "\t\t\ti: \"font icon-erjidaohang\",\n" + |
| | | "\t\t\tu: \"\",\n" + |
| | | "\t\t\tg: \"8.3 管çä½ç³»æä»¶çæ§å¶\",\n" + |
| | | "\t\t\tp: \"\"\n" + |
| | | "\t\t}, {\n" + |
| | | "\t\t\tv: \"è®°å½çæ§å¶\",\n" + |
| | | "\t\t\ti: \"font icon-erjidaohang\",\n" + |
| | | "\t\t\tu: \"\",\n" + |
| | | "\t\t\tg: \"8.4 è®°å½çæ§å¶\",\n" + |
| | | "\t\t\tp: \"\"\n" + |
| | | "\t\t}, {\n" + |
| | | "\t\t\tv: \"åºå¯¹é£é©åæºéçæªæ½\",\n" + |
| | | "\t\t\ti: \"font icon-erjidaohang\",\n" + |
| | | "\t\t\tu: \"\",\n" + |
| | | "\t\t\tg: \"8.5 åºå¯¹é£é©åæºéçæªæ½\",\n" + |
| | | "\t\t\tp: \"\"\n" + |
| | | "\t\t}, {\n" + |
| | | "\t\t\tv: \"客æ·åºæ¬ä¿¡æ¯ç®¡ç\",\n" + |
| | | "\t\t\ti: \"font icon-erjidaohang\",\n" + |
| | | "\t\t\tu: \"\",\n" + |
| | | "\t\t\tg: \"8.6 æ¹è¿\",\n" + |
| | | "\t\t\tp: \"\"\n" + |
| | | "\t\t}, {\n" + |
| | | "\t\t\tv: \"å®¢æ·æ»¡æåº¦\",\n" + |
| | | "\t\t\ti: \"font icon-erjidaohang\",\n" + |
| | | "\t\t\tu: \"\",\n" + |
| | | "\t\t\tg: \"8.6 æ¹è¿\",\n" + |
| | | "\t\t\tp: \"\"\n" + |
| | | "\t\t}, {\n" + |
| | | "\t\t\tv: \"çº æ£æªæ½\",\n" + |
| | | "\t\t\ti: \"font icon-erjidaohang\",\n" + |
| | | "\t\t\tu: \"\",\n" + |
| | | "\t\t\tg: \"8.7 çº æ£æªæ½\",\n" + |
| | | "\t\t\tp: \"\"\n" + |
| | | "\t\t}, {\n" + |
| | | "\t\t\tv: \"å
审管ç\",\n" + |
| | | "\t\t\ti: \"font icon-erjidaohang\",\n" + |
| | | "\t\t\tu: \"\",\n" + |
| | | "\t\t\tg: \"8.8 å
审管ç\",\n" + |
| | | "\t\t\tp: \"\"\n" + |
| | | "\t\t}, {\n" + |
| | | "\t\t\tv: \"管çè¯å®¡\",\n" + |
| | | "\t\t\ti: \"font icon-erjidaohang\",\n" + |
| | | "\t\t\tu: \"\",\n" + |
| | | "\t\t\tg: \"8.9 管çè¯å®¡\",\n" + |
| | | "\t\t\tp: \"\"\n" + |
| | | "\t\t}]\n" + |
| | | "\t}\n" + |
| | | "]"; |
| | | List<ADto> aDtos = JSONArray.parseArray(menu, ADto.class); |
| | | List<BDto> bDtos = aDtos.get(9).getC(); |
| | | for (String s : name) { |
| | | BDto bDto = new BDto(); |
| | | bDto.setV(s); |
| | | bDto.setI("font icon-erjidaohang"); |
| | | bDto.setU("a6-device-overview"); |
| | | bDto.setG("6.4 设å¤"); |
| | | bDto.setP("selectDeviceParameter"); |
| | | bDtos.add(bDto); |
| | | } |
| | | for (String s : collect) { |
| | | BDto bDto = new BDto(); |
| | | bDto.setV(s); |
| | | bDto.setI("font icon-erjidaohang"); |
| | | bDto.setU("a6-personnel-overview"); |
| | | bDto.setG("6.2 人å"); |
| | | bDto.setP("selectPersonnelOverview"); |
| | | bDtos.add(bDto); |
| | | } |
| | | |
| | | return aDtos; |
| | | } |
| | | |
| | | @Override |
| | | public List<Map<String, Object>> treeDevice(String deviceName) { |
| | | List<Map<String, Object>> listMap = deviceMapper.treeDevice(deviceName); |
| | | return listMap; |
| | | } |
| | | |
| | | @Override |
| | | public Result<?> determineWhetherToCollectData(String managementNumber, HttpServletRequest request) { |
| | | String ip = DataAcquisition.getIp(request); |
| | | List<Device> device = baseMapper.selectList(Wrappers.<Device>lambdaQuery() |
| | | .eq(Device::getIp, ip)); |
| | | if (ObjectUtils.isEmpty(device)) { |
| | | return Result.success(false); |
| | | } |
| | | if (ObjectUtils.isEmpty(device.get(0).getFileType()) || ObjectUtils.isEmpty(device.get(0).getCollectUrl())) { |
| | | return Result.success(false); |
| | | } else { |
| | | return Result.success(true); |
| | | } |
| | | } |
| | | @Override |
| | | public void exportData(DeviceDto deviceDto, HttpServletResponse response){ |
| | | //æ¥è¯¢å¯¼åºçè´¹ç¨ç»è®¡æ°æ® |
| | | // String dates = deviceDto.getDates(); |
| | | // String[] split = dates.replaceAll("\\[", "").replaceAll("]", "").replaceAll("\"", "").split(","); |
| | | // deviceDto.setDates(null); |
| | | // List<CostStatisticsDto> deviceDtos = deviceMapper.selectList(QueryWrappers.queryWrappers(deviceDto).ge("create_time", split[0]).le("create_time", split[1] + " 23:59:59")); |
| | | // deviceDtos = deviceDtos.stream().map(dto -> { |
| | | // Set<String> uniqueTags = new HashSet<>(); |
| | | // if (dto.getInspectionItem().contains(",")) { |
| | | // for (String s : dto.getInspectionItem().split(",")) { |
| | | // uniqueTags.add(s.split("@")[0]); |
| | | // } |
| | | // } else { |
| | | // uniqueTags.add(dto.getInspectionItem().split("@")[0]); |
| | | // } |
| | | // dto.setInspectionItem(uniqueTags.toString()); |
| | | // return dto; |
| | | // }).collect(Collectors.toList()); |
| | | // |
| | | // response.setContentType("application/vnd.ms-excel"); |
| | | // response.setCharacterEncoding("UTF-8"); |
| | | // // è¿éURLEncoder.encodeå¯ä»¥é²æ¢ä¸æä¹±ç å½ç¶åeasyexcel没æå
³ç³» |
| | | // String fileName = URLEncoder.encode("æ ·åè´¹ç¨ç»è®¡å¯¼åº", "UTF-8"); |
| | | // response.setHeader("Content-disposition", "attachment;filename=" + fileName + ".xlsx"); |
| | | // Map<String, List<CostStatisticsDto>> groupByCompany = |
| | | // deviceDtos.stream().filter(e -> StrUtil.isNotEmpty(e.getCompany())) |
| | | // .collect(Collectors.groupingBy(CostStatisticsDto::getCompany)); |
| | | // try { |
| | | // // æ°å»ºExcelWriter |
| | | // // æ°å»ºExcelWriter |
| | | // ExcelWriter excelWriter = |
| | | // EasyExcel.write(response.getOutputStream()) |
| | | // .registerWriteHandler(new SimpleColumnWidthStyleStrategy(25)) |
| | | // .build(); |
| | | // for (Map.Entry<String, List<CostStatisticsDto>> companyDataEntry : groupByCompany.entrySet()) { |
| | | // String sheetName = companyDataEntry.getKey(); |
| | | // List<CostStatisticsDto> dataList = companyDataEntry.getValue(); |
| | | // WriteSheet mainSheet = EasyExcel.writerSheet(sheetName) |
| | | // .head(CostStatisticsDto.class) |
| | | // .registerWriteHandler(new SimpleColumnWidthStyleStrategy(25)) |
| | | // .build(); |
| | | // excelWriter.write(dataList, mainSheet); |
| | | // } |
| | | // // å
³éæµ |
| | | // excelWriter.finish(); |
| | | // } catch (IOException e) { |
| | | // throw new RuntimeException("导åºå¤±è´¥"); |
| | | // } |
| | | } |
| | | |
| | | |
| | | } |