From ae5d53e9e0c8a902ce14a80c46f8b4b9b2301274 Mon Sep 17 00:00:00 2001 From: dong <58670809@qq.com> Date: Wed, 3 Aug 2022 15:33:03 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../newMapdraft/dataRelation/bigroutingoperate/route.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/views/newMap/newMapdraft/dataRelation/bigroutingoperate/route.vue b/src/views/newMap/newMapdraft/dataRelation/bigroutingoperate/route.vue index 16a257d8f..b366b2839 100644 --- a/src/views/newMap/newMapdraft/dataRelation/bigroutingoperate/route.vue +++ b/src/views/newMap/newMapdraft/dataRelation/bigroutingoperate/route.vue @@ -98,7 +98,7 @@ >{{ $t('map.activate') }} - + Date: Wed, 3 Aug 2022 15:40:51 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../component/covertOperation.js | 22 ++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/src/views/newMap/displayNew/scriptDisplay/component/covertOperation.js b/src/views/newMap/displayNew/scriptDisplay/component/covertOperation.js index 40b61dcb3..aa121e4fd 100644 --- a/src/views/newMap/displayNew/scriptDisplay/component/covertOperation.js +++ b/src/views/newMap/displayNew/scriptDisplay/component/covertOperation.js @@ -529,7 +529,20 @@ export const operateEnum = { ] }, RAIL_FILL_IN_REGISTER:{ - name:'填写行车簿册' + name:'填写行车簿册', + isList:true, + params:[ + { + code:'stationCode', + name:'车站为', + function:getStationNameById + }, + { + code:'line', + name:'单条记录', + function:getRecordByLine + } + ] }, RAIL_FILL_IN_TICKET:{ name:'填写票据' @@ -633,6 +646,7 @@ export const operateEnum = { // 转换函数 export function covertOperate(operationType, operationParamMap) { + debugger; if (operationType == 'Set_Fault' || operationType == 'Cancel_Fault') { let deviceName = ''; const device = store.getters['map/getDeviceByCode'](operationParamMap.code) || {}; @@ -983,6 +997,12 @@ function getDeviceNameById(deviceCode) { return device.name; } +function getRecordByLine(line) { + // '{"stationCode":"Station58852","line":{"moonDay":"","hourMinute":"","result":"","noticeTime":{"moonDay":"","hourMinute":"","info":""},"arriveTime":{"moonDay":"","hourMinute":"","info":""},"endTime":{"moonDay":"","hourMinute":"","info":""}}}' + return ',结果为' + line.result; + // JSON.stringify(line); +} + function getTripNumberByCode(code) { return code.slice(3, code.length || 0); }