diff --git a/wcs/nladmin-system/src/main/java/org/nl/acs/AcsConfig.java b/wcs/nladmin-system/src/main/java/org/nl/acs/AcsConfig.java index 7566ac12..42810b4b 100644 --- a/wcs/nladmin-system/src/main/java/org/nl/acs/AcsConfig.java +++ b/wcs/nladmin-system/src/main/java/org/nl/acs/AcsConfig.java @@ -33,7 +33,7 @@ public interface AcsConfig { //指定AGV系统 String AGVTYPE = "agvType"; //WMS系统接口地址 - String WMSURL = "wmsurl"; + String WMSURL = "lmsurl"; //WCS系统接口地址 String WCSURL = "wcsurl"; @@ -41,8 +41,10 @@ public interface AcsConfig { String ERPURL = "erpurl"; //是否存在wms系统 - String HASWMS = "hasWms"; - String ISTEST = "isTest"; + String HASWMS = "hasLms"; + String KZPLAN = "kzPlan"; + //lucene日志索引目录 + String LUCENEURL = "luceneUrl"; String ISFEEDDEVICESTATUS = "isFeedDeviceStatus"; //路由选择 String ROUTE = "route"; diff --git a/wcs/nladmin-system/src/main/java/org/nl/acs/acsEnum/AgvTypeEnum.java b/wcs/nladmin-system/src/main/java/org/nl/acs/acsEnum/AgvTypeEnum.java index e6d26136..93610def 100644 --- a/wcs/nladmin-system/src/main/java/org/nl/acs/acsEnum/AgvTypeEnum.java +++ b/wcs/nladmin-system/src/main/java/org/nl/acs/acsEnum/AgvTypeEnum.java @@ -21,7 +21,8 @@ public enum AgvTypeEnum { PS_TYPE_1("6", "PS20称重任务(刻字-包装)", "1"), PS_TYPE_2("7", "PS20不称重任务(刻字-包装)", "2"), RT_TYPE_1("8", "RT20任务(货架)", "3"), - OTHERS_TYPE_1("9", "错误任务类型", "9"); + OTHERS_TYPE_1("9", "错误任务类型", "9"), + HAIROU_TYPE_1("18", "立库任务", "1"); private String taskType; private String taskName; diff --git a/wcs/nladmin-system/src/main/java/org/nl/acs/acsEnum/StatusEnum.java b/wcs/nladmin-system/src/main/java/org/nl/acs/acsEnum/StatusEnum.java index bd0b4afb..ce8b7769 100644 --- a/wcs/nladmin-system/src/main/java/org/nl/acs/acsEnum/StatusEnum.java +++ b/wcs/nladmin-system/src/main/java/org/nl/acs/acsEnum/StatusEnum.java @@ -57,6 +57,20 @@ public enum StatusEnum { QXXL_COMPEL_REQ("11", "强制搬出请求(清洗下料)", ""), KZSL_EMPTY_REQ("12","取空框请求(刻字上料)",""), + HAIROU_IN_REQ("13","半成品入库(海柔)",""), + HAIROU_OUT_REQ("14","半成品出库(海柔)",""), + HAIROU_INVENTORY_REQ("15","盘点(海柔)",""), + HAIROU_EMPTY_OUT_REQ("16","空载具出库(海柔)",""), + HAIROU_EMPTY_IN_REQ("17","空载具入库(海柔)",""), + + HAIROU_LIKU_REQ("18","半成品库任务(海柔)",""), + + TOTE_INBOUND("1","容器入库","tote_inbound"), + TOTE_OUTBOUND("2","容器出库","tote_outbound"), + TOTE_RELOCATION("3","容器移库","tote_relocation"), + TOTE_CARRY("4","容器搬运","tote_carry"), + TOTE_CHECK("5","容器盘库","tote_check"), + //指令状态 INST_READY("0", "就绪", ""), INST_RUNNING("1", "执行中", ""), @@ -67,7 +81,8 @@ public enum StatusEnum { TASK_READY("0", "就绪", ""), TASK_RUNNING("1", "执行中", "6"), TASK_FINISH("2", "完成", "7"), - TASK_CANCEL("3", "取消", "8"); + TASK_CANCEL("3", "取消", "8"), + TASK_FULL_IN("4","满入",""); private String code; private String desc; diff --git a/wcs/nladmin-system/src/main/java/org/nl/acs/device.xls b/wcs/nladmin-system/src/main/java/org/nl/acs/device.xls index 1c3db516..1dc1fdff 100644 Binary files a/wcs/nladmin-system/src/main/java/org/nl/acs/device.xls and b/wcs/nladmin-system/src/main/java/org/nl/acs/device.xls differ diff --git a/wcs/nladmin-system/src/main/java/org/nl/acs/device/device_driver/DriverTypeEnum.java b/wcs/nladmin-system/src/main/java/org/nl/acs/device/device_driver/DriverTypeEnum.java index 38761068..7e5cc619 100644 --- a/wcs/nladmin-system/src/main/java/org/nl/acs/device/device_driver/DriverTypeEnum.java +++ b/wcs/nladmin-system/src/main/java/org/nl/acs/device/device_driver/DriverTypeEnum.java @@ -110,7 +110,8 @@ public enum DriverTypeEnum { HAILIANG_CLEANING_PUT_LINE(48, "hailiang_cleaning_put_line", "海亮-清洗下料", "conveyor"), HAILIANG_ENGRAVING_IN(49, "hailiang_engraving_in", "海亮-刻字上料线体", "conveyor"), - HAILIANG_FRAME_WEIGHING(50, "hailiang_frame_weighing", "海亮-合框称重", "conveyor"); + HAILIANG_FRAME_WEIGHING(50, "hailiang_frame_weighing", "海亮-合框称重", "conveyor"), + HAILIANG_WITH_STATION(51, "hailiang_with_station", "海亮-关联站点", "conveyor"); //驱动索引 private int index; //驱动编码 diff --git a/wcs/nladmin-system/src/main/java/org/nl/acs/device_driver/basedriver/agv/liku_agv/LiKuDeviceDriver.java b/wcs/nladmin-system/src/main/java/org/nl/acs/device_driver/basedriver/agv/liku_agv/LiKuDeviceDriver.java index a6f7937d..c884d3fc 100644 --- a/wcs/nladmin-system/src/main/java/org/nl/acs/device_driver/basedriver/agv/liku_agv/LiKuDeviceDriver.java +++ b/wcs/nladmin-system/src/main/java/org/nl/acs/device_driver/basedriver/agv/liku_agv/LiKuDeviceDriver.java @@ -68,24 +68,25 @@ public class LiKuDeviceDriver extends AbstractDeviceDriver implements DeviceDriv String containerCode = ""; List taskCodes=null; String positionCode = ""; -public JSONObject getDeviceStatusName() { - JSONObject jo = new JSONObject(); - jo.put("robotCode",robotCode); - jo.put("robotTypeCode", robotTypeCode); - jo.put("pointCode", pointCode); - jo.put("positionX",this.getPositionX()); - jo.put("positionY",this. getPositionY()); - jo.put("theta", this.getTheta()); - jo.put("forkHeight", this.getForkHeight()); - jo.put("forkLength", this.getForkLength()); - jo.put("forkTheta", this.getForkTheta()); - jo.put("stationCode", stationCode); - jo.put("locationCode", locationCode); - jo.put("state", state); - jo.put("hardwareState",hardwareState); - jo.put("trays", this.getTrayList()); - return jo; -} + + public JSONObject getDeviceStatusName() { + JSONObject jo = new JSONObject(); + jo.put("robotCode",robotCode); + jo.put("robotTypeCode", robotTypeCode); + jo.put("pointCode", pointCode); + jo.put("positionX",this.getPositionX()); + jo.put("positionY",this. getPositionY()); + jo.put("theta", this.getTheta()); + jo.put("forkHeight", this.getForkHeight()); + jo.put("forkLength", this.getForkLength()); + jo.put("forkTheta", this.getForkTheta()); + jo.put("stationCode", stationCode); + jo.put("locationCode", locationCode); + jo.put("state", state); + jo.put("hardwareState",hardwareState); + jo.put("trays", this.getTrayList()); + return jo; + } @Override public void setDeviceStatus(JSONObject data) { diff --git a/wcs/nladmin-system/src/main/java/org/nl/acs/device_driver/basedriver/hailiang_one/ApplyTaskTime.java b/wcs/nladmin-system/src/main/java/org/nl/acs/device_driver/basedriver/hailiang_one/ApplyTaskTime.java index 96faa60f..79aca588 100644 --- a/wcs/nladmin-system/src/main/java/org/nl/acs/device_driver/basedriver/hailiang_one/ApplyTaskTime.java +++ b/wcs/nladmin-system/src/main/java/org/nl/acs/device_driver/basedriver/hailiang_one/ApplyTaskTime.java @@ -6,4 +6,5 @@ package org.nl.acs.device_driver.basedriver.hailiang_one; */ public class ApplyTaskTime { public final static long APPLY_TIME = 60l; + public final static long APPLY_TIME_TEN = 30l; } diff --git a/wcs/nladmin-system/src/main/java/org/nl/acs/device_driver/basedriver/photoelectric_inspection_site/PhotoelectricInspectionSiteDeviceDriver.java b/wcs/nladmin-system/src/main/java/org/nl/acs/device_driver/basedriver/photoelectric_inspection_site/PhotoelectricInspectionSiteDeviceDriver.java index 32e6aa44..5f24de1c 100644 --- a/wcs/nladmin-system/src/main/java/org/nl/acs/device_driver/basedriver/photoelectric_inspection_site/PhotoelectricInspectionSiteDeviceDriver.java +++ b/wcs/nladmin-system/src/main/java/org/nl/acs/device_driver/basedriver/photoelectric_inspection_site/PhotoelectricInspectionSiteDeviceDriver.java @@ -228,7 +228,7 @@ public class PhotoelectricInspectionSiteDeviceDriver extends AbstractOpcDeviceDr dto.setCreate_time(now); WQLObject wo = WQLObject.getWQLObject("acs_task"); - JSONObject json = (JSONObject) JSONObject.toJSON(dto); + JSONObject json = (JSONObject) JSONObject.toJSON(dto); wo.insert(json); requireSucess = false; diff --git a/wcs/nladmin-system/src/main/java/org/nl/acs/order/service/impl/ProduceshiftorderServiceImpl.java b/wcs/nladmin-system/src/main/java/org/nl/acs/order/service/impl/ProduceshiftorderServiceImpl.java index e69d5d60..8293c5d8 100644 --- a/wcs/nladmin-system/src/main/java/org/nl/acs/order/service/impl/ProduceshiftorderServiceImpl.java +++ b/wcs/nladmin-system/src/main/java/org/nl/acs/order/service/impl/ProduceshiftorderServiceImpl.java @@ -423,7 +423,7 @@ public class ProduceshiftorderServiceImpl implements ProduceshiftorderService, A WQLObject wo = WQLObject.getWQLObject("acs_produceshiftorder"); dto.setOrder_status(status); dto.setUpdate_time(DateUtil.now()); - dto.setUpdate_by("mes"); + dto.setUpdate_by("lms"); JSONObject json = (JSONObject) JSONObject.toJSON(dto); wo.update(json); this.order.removeIf(o -> o.getOrder_code().equals(dto.getOrder_code())); @@ -472,7 +472,7 @@ public class ProduceshiftorderServiceImpl implements ProduceshiftorderService, A HailiangStackingStationDriver hailiangStackingStationDriver; HailiangOldSpecialDeviceDriver hailiangOldSpecialDeviceDriver; Device device = deviceAppService.findDeviceByCode(dto.getDevice_code()); - String upName = SecurityUtils.getCurrentUsername() == null ? "mes" : SecurityUtils.getCurrentUsername(); + String upName = SecurityUtils.getCurrentUsername() == null ? "lms" : SecurityUtils.getCurrentUsername(); JSONObject map = new JSONObject(); map.put("online_id", IdUtil.simpleUUID()); map.put("device_code", device_code); diff --git a/wcs/nladmin-system/src/main/java/org/nl/acs/task/service/impl/TaskServiceImpl.java b/wcs/nladmin-system/src/main/java/org/nl/acs/task/service/impl/TaskServiceImpl.java index c263a14f..52d879b8 100644 --- a/wcs/nladmin-system/src/main/java/org/nl/acs/task/service/impl/TaskServiceImpl.java +++ b/wcs/nladmin-system/src/main/java/org/nl/acs/task/service/impl/TaskServiceImpl.java @@ -30,6 +30,8 @@ import org.nl.acs.task.service.dto.TaskFeedbackDto; import org.nl.modules.common.exception.BadRequestException; import org.nl.modules.common.utils.FileUtil; import org.nl.modules.common.utils.SecurityUtils; +import org.nl.modules.lucene.service.LuceneExecuteLogService; +import org.nl.modules.lucene.service.dto.LuceneLogDto; import org.nl.modules.system.service.ParamService; import org.nl.modules.system.util.CodeUtil; import org.nl.modules.wql.WQL; @@ -75,7 +77,7 @@ public class TaskServiceImpl implements TaskService, ApplicationAutoInitial { private DeviceAssignedService deviceAssignedService; @Autowired private InstructionService instructionService; - +// private LuceneExecuteLogService lucene = SpringContextHolder.getBean(LuceneExecuteLogService.class); @Override public void autoInitial() throws Exception { this.reload(); @@ -561,9 +563,15 @@ public class TaskServiceImpl implements TaskService, ApplicationAutoInitial { TaskDto entity = this.findById(id); if (entity == null) throw new BadRequestException("被删除或无权限,操作失败!"); InstructionDto instdto = instructionService.findByTaskId(id, "instruction_status <2 "); - if (instdto != null) throw new BadRequestException("有指令未完成!"); - entity.setTask_status(StatusEnum.INST_FINISH.getCode()); - this.update(entity); + if (instdto != null) { +// lucene.deviceExecuteLog(new LuceneLogDto(id,"任务号关联的指令状态instruction_status <2:"+instdto.getInstruction_status())); + log.info("任务号{}关联的指令状态instruction_status <2:{}",id,instdto.getInstruction_status()); + throw new BadRequestException("有指令未完成!"); + }else { + entity.setTask_status(StatusEnum.INST_FINISH.getCode()); + this.update(entity); + } + } @Override diff --git a/wcs/nladmin-system/src/main/resources/log/AcsToMes.xml b/wcs/nladmin-system/src/main/resources/log/AcsToMes.xml index b3bf0623..07c3cc70 100644 --- a/wcs/nladmin-system/src/main/resources/log/AcsToMes.xml +++ b/wcs/nladmin-system/src/main/resources/log/AcsToMes.xml @@ -6,7 +6,7 @@ - ${LOG_HOME}/ACS请求MES/%d{yyyy-MM-dd}.%i.log + ${LOG_HOME}/ACS请求LMS/%d{yyyy-MM-dd}.%i.log 15 diff --git a/wcs/nladmin-system/src/main/resources/log/MesToAcs.xml b/wcs/nladmin-system/src/main/resources/log/MesToAcs.xml index ef123a3e..f26a6ef7 100644 --- a/wcs/nladmin-system/src/main/resources/log/MesToAcs.xml +++ b/wcs/nladmin-system/src/main/resources/log/MesToAcs.xml @@ -6,7 +6,7 @@ - ${LOG_HOME}/MES下发ACS/%d{yyyy-MM-dd}.%i.log + ${LOG_HOME}/LMS下发ACS/%d{yyyy-MM-dd}.%i.log 15 diff --git a/wcs/nladmin-ui/src/api/acs/stage/actor.js b/wcs/nladmin-ui/src/api/acs/stage/actor.js index bf0d14a4..36619100 100644 --- a/wcs/nladmin-ui/src/api/acs/stage/actor.js +++ b/wcs/nladmin-ui/src/api/acs/stage/actor.js @@ -2,7 +2,7 @@ import request from '@/utils/request' export function add(data) { return request({ - url: 'api/stageActor', + url: 'api/new/stageActor', method: 'post', data }) @@ -10,7 +10,7 @@ export function add(data) { export function del(ids) { return request({ - url: 'api/stageActor/', + url: 'api/new/stageActor/', method: 'delete', data: ids }) @@ -18,7 +18,7 @@ export function del(ids) { export function edit(data) { return request({ - url: 'api/stageActor', + url: 'api/new/stageActor', method: 'put', data }) @@ -26,7 +26,7 @@ export function edit(data) { export function saveData(data) { return request({ - url: 'api/stageActor/saveData', + url: 'api/new/stageActor/saveData', method: 'post', data }) @@ -34,7 +34,7 @@ export function saveData(data) { export function queryStageActor(stage_code) { return request({ - url: 'api/stageActor/queryStageActor/' + stage_code, + url: 'api/new/stageActor/queryStageActor/' + stage_code, method: 'get' }) } diff --git a/wcs/nladmin-ui/src/views/acs/device/config.vue b/wcs/nladmin-ui/src/views/acs/device/config.vue index 068e6356..f324ca19 100644 --- a/wcs/nladmin-ui/src/views/acs/device/config.vue +++ b/wcs/nladmin-ui/src/views/acs/device/config.vue @@ -139,6 +139,7 @@ import hailiang_old_package_receiving_machine from '@/views/acs/device/driver/ha import hailiang_cleaning_put_line from '@/views/acs/device/driver/hailiang_one/hailiang_cleaning_put_line' import hailiang_engraving_in from '@/views/acs/device/driver/hailiang_one/hailiang_engraving_in' import hailiang_frame_weighing from '@/views/acs/device/driver/hailiang_one/hailiang_frame_weighing' +import hailiang_with_station from '@/views/acs/device/driver/hailiang_old/hailiang_with_station' export default { name: 'DeviceConfig', components: { @@ -202,7 +203,8 @@ export default { hailiang_old_package_receiving_machine, hailiang_cleaning_put_line, hailiang_engraving_in, - hailiang_frame_weighing + hailiang_frame_weighing, + hailiang_with_station }, dicts: ['device_type'], mixins: [crud], diff --git a/wcs/nladmin-ui/src/views/acs/device/driver/hailiang_hr_ssx_station.vue b/wcs/nladmin-ui/src/views/acs/device/driver/hailiang_hr_ssx_station.vue index 2fcb0beb..937af41c 100644 --- a/wcs/nladmin-ui/src/views/acs/device/driver/hailiang_hr_ssx_station.vue +++ b/wcs/nladmin-ui/src/views/acs/device/driver/hailiang_hr_ssx_station.vue @@ -1,489 +1,494 @@ - - - +} + + - \ No newline at end of file diff --git a/wcs/nladmin-ui/src/views/acs/device/monitor/index.vue b/wcs/nladmin-ui/src/views/acs/device/monitor/index.vue index 35bfca3f..6e40b220 100644 --- a/wcs/nladmin-ui/src/views/acs/device/monitor/index.vue +++ b/wcs/nladmin-ui/src/views/acs/device/monitor/index.vue @@ -145,7 +145,8 @@ export default { duration: 0 }) } else { - const id = '123' + // const id = '123' + const id = '' // 获取token保存到vuex中的用户信息,此处仅适用于本项目,注意删除或修改 // 实例化socket,这里我把用户名传给了后台,使后台能判断要把消息发给哪个用户,其实也可以后台直接获取用户IP来判断并推送 const wsUri = process.env.VUE_APP_WS_API + id diff --git a/wcs/nladmin-ui/src/views/acs/monitor/device/index.vue b/wcs/nladmin-ui/src/views/acs/monitor/device/index.vue index e69de29b..f5b9f5b8 100644 --- a/wcs/nladmin-ui/src/views/acs/monitor/device/index.vue +++ b/wcs/nladmin-ui/src/views/acs/monitor/device/index.vue @@ -0,0 +1,600 @@ + + + + + diff --git a/wcs/nladmin-ui/src/views/acs/stage/editor/index.vue b/wcs/nladmin-ui/src/views/acs/stage/editor/index.vue index f85330ec..553e8e58 100644 --- a/wcs/nladmin-ui/src/views/acs/stage/editor/index.vue +++ b/wcs/nladmin-ui/src/views/acs/stage/editor/index.vue @@ -199,7 +199,7 @@ import del from '@/assets/acs/del_new.png' import crud from '@/mixins/crud' export default { - name: 'StageEditor', + name: 'StageEditorNew', // 注册draggable组件 components: { draggable diff --git a/wcs/nladmin-ui/src/views/system/monitor/device/index.vue b/wcs/nladmin-ui/src/views/system/monitor/device/index.vue index 5a0af2c4..c58c565c 100644 --- a/wcs/nladmin-ui/src/views/system/monitor/device/index.vue +++ b/wcs/nladmin-ui/src/views/system/monitor/device/index.vue @@ -166,7 +166,7 @@ import deviceCrud from '@/api/acs/device/device' import { getDeviceByCodes } from '@/api/acs/device/deviceStageMonitor' import '@logicflow/core/dist/style/index.css' import '@logicflow/extension/lib/style/index.css' -import {isEqual} from "lodash" +import { isEqual } from 'lodash' import { LogicFlow } from '@logicflow/core' import { registerCustomElement } from '@/views/system/logicflow/editor/components/node' @@ -726,58 +726,58 @@ export default { } else if (val === 'barcodeArr') { const obj = { name: '码垛条码', value: data[val] } this.arr.push(obj) - }else if (val==='robotCode'){ + } else if (val === 'robotCode') { const obj = { name: '编码', value: data[val] } this.arr.push(obj) - }else if (val==='robotTypeCode'){ + } else if (val === 'robotTypeCode') { const obj = { name: '型号', value: data[val] } this.arr.push(obj) - }else if (val==='pointCode'){ + } else if (val === 'pointCode') { const obj = { name: '节点编码', value: data[val] } this.arr.push(obj) - }else if (val==='positionX'){ + } else if (val === 'positionX') { const obj = { name: '坐标x', value: data[val] } this.arr.push(obj) - }else if (val==='positionY'){ + } else if (val === 'positionY') { const obj = { name: '坐标y', value: data[val] } this.arr.push(obj) - }else if (val==='theta'){ + } else if (val === 'theta') { const obj = { name: '⻆度', value: data[val] } this.arr.push(obj) - }else if (val==='forkHeight'){ + } else if (val === 'forkHeight') { const obj = { name: '货叉⾼度', value: data[val] } this.arr.push(obj) - }else if (val==='forkLength'){ + } else if (val === 'forkLength') { const obj = { name: '货叉⻓度', value: data[val] } this.arr.push(obj) - }else if (val==='forkTheta'){ + } else if (val === 'forkTheta') { const obj = { name: '货叉相对机器⼈⻆度', value: data[val] } this.arr.push(obj) - }else if (val==='stationCode'){ + } else if (val === 'stationCode') { const obj = { name: '⼯作站编码', value: data[val] } this.arr.push(obj) - }else if (val==='locationCode'){ + } else if (val === 'locationCode') { const obj = { name: '⼯作位编码', value: data[val] } this.arr.push(obj) - }else if (val==='state'){ + } else if (val === 'state') { const obj = { name: '机器⼈状态', value: data[val] } this.arr.push(obj) - }else if (val==='hardwareState'){ + } else if (val === 'hardwareState') { const obj = { name: '机器⼈硬件状态', value: data[val] } this.arr.push(obj) - }else if (val==='trays'){ + } else if (val === 'trays') { const obj = { name: '背篓描述', value: data[val] } this.arr.push(obj) - }else if (val==='trayLevel'){ + } else if (val === 'trayLevel') { const obj = { name: '背篓序号', value: data[val] } this.arr.push(obj) - }else if (val==='containerCode'){ + } else if (val === 'containerCode') { const obj = { name: '容器编码', value: data[val] } this.arr.push(obj) - }else if (val==='taskCodes'){ + } else if (val === 'taskCodes') { const obj = { name: '业务任务', value: data[val] } this.arr.push(obj) - }else if (val==='positionCode'){ + } else if (val === 'positionCode') { const obj = { name: '位置编码', value: data[val] } this.arr.push(obj) } @@ -789,17 +789,17 @@ export default { let resion = {} resion = lf.getGraphData().nodes.map(item => ({ id: item.id, device_code: item.properties.device })) getDeviceByCodes(resion).then(res => { - let startTime=new Date().getTime(); - let arr=[]; - let obj={}; - if(window.lastArr){ - res.forEach(i=>{ - obj[i.id]=i + const startTime = new Date().getTime() + const arr = [] + const obj = {} + if (window.lastArr) { + res.forEach(i => { + obj[i.id] = i }) - window.lastArr.forEach(old=>{ - let _new=obj[old.id]; - if(!isEqual(old,_new)){ + window.lastArr.forEach(old => { + const _new = obj[old.id] + if (!isEqual(old, _new)) { arr.push(_new) } }) @@ -809,8 +809,7 @@ export default { // console.log('initStatus-res', res) // 实时设置状态信息 for (var item of arr) { // 循环并且设置属性值 - - let temp={} + const temp = {} if (item.data !== undefined) { if (item.data.isOnline !== undefined) { temp.isOnline = item.data.isOnline @@ -830,7 +829,7 @@ export default { // isError: item.data.isError // }) } - lf.setProperties(item.id , temp) + lf.setProperties(item.id, temp) } } window.lastArr = res @@ -840,9 +839,9 @@ export default { if (nodes.length === 1) { // 因为是定时器,没有选中则不用实时更新显示数据 this.moveShow(nodes[0]) // 监控模式下不可能托选,因此就只有一个数据 } - let endTime=new Date().getTime(); + const endTime = new Date().getTime() - console.log("time:",endTime - startTime) + console.log('time:', endTime - startTime) }) }, dialogSave() {