diff --git a/src/jmapNew/theme/components/menus/dialog/cmdManage.vue b/src/jmapNew/theme/components/menus/dialog/cmdManage.vue index 65b19d733..f19a6d3fa 100644 --- a/src/jmapNew/theme/components/menus/dialog/cmdManage.vue +++ b/src/jmapNew/theme/components/menus/dialog/cmdManage.vue @@ -25,38 +25,34 @@
收令箱
- + - + - + - - - - + + @@ -68,9 +64,9 @@
- + - +
@@ -80,7 +76,7 @@ 停止阅读
- + @@ -91,8 +87,8 @@
- 拒签 - 签收 + 拒签 + 签收 关闭
@@ -101,42 +97,34 @@ import { sendCommandNew } from '@/api/jmap/training'; import shouxinxiang from '@/assets/dispatcherStation/shouxinxiang.png'; import { mapState } from 'vuex'; +import { parseTime } from '@/utils/index'; export default { name:'CmdManage', data() { return { shouxinImg: shouxinxiang, cmdTableData: [], + tableData2: [], needRead: false, stopRead: false, dialogShow: false, currentInfo: {}, - queryResData: {}, typeObj: { - Normal: '普通调度命令', - Construct: '施工调度命令', - Forward: '转发调度命令', - Request: '请求调度命令', - LongTerm: '长效调度命令', - ShiftScheduling: '班计划调度命令', - Other: '其他调度命令' + NORMAL: '正常调度命令' }, signedStatusObj: { - Cache: '缓存', - Sent: '已发送', - SrmReceived: '自律机接收', - Received: '已接收', - Signed: '已签收', - Reject: '已拒签' + UNSIGNED: '未签收', + SIGNED: '签收', + REFUSE: '拒签' } }; }, computed: { ...mapState('training', [ - 'memberList', 'memberData', 'simulationUserList', 'initTime' + 'memberList', 'simulationUserList', 'initTime' ]), ...mapState('socket', [ - 'dispatchCommandMsg', 'dispatchCommandState' + 'dispatchCommandMsg' ]), show() { return this.dialogShow; @@ -148,31 +136,17 @@ export default { return '调度命令管理'; }, commandId() { - return this.currentInfo.cmdId || ''; - }, - rcId() { - const rcArr = this.currentInfo.rcvCompanies || []; - const obj = rcArr.find(item => { - return item.code == this.getActiveUser.deviceCode; - }); - const id = obj ? obj.id : ''; - return id; - }, - currentStatus() { - let s = '编辑'; - const state = this.getStateInfo(this.currentInfo.rcvCompanies).state; - if (state) { - s = this.signedStatusObj[state] ? this.signedStatusObj[state] : '编辑'; - } - return s; + return this.currentInfo.id || ''; }, currentHasSigned() { - let s = false; - const sentArr = ['已签收', '已拒签']; - if (sentArr.includes(this.currentStatus)) { - s = true; + let hasSigned = false; + if (this.currentInfo.receiverInfos) { + const obj = this.getSignInfo(this.currentInfo.receiverInfos); + if (obj && obj.signedStatus != 'UNSIGNED') { + hasSigned = true; + } } - return s; + return hasSigned; }, getActiveUser() { const userInfo = this.simulationUserList.find(item => { @@ -182,40 +156,27 @@ export default { return activeUser; }, getTableData() { - const list = this.currentInfo.rcvCompanies || []; - return list; - }, - readList() { + const receiverList = Object.values(this.currentInfo.receiverInfos || {}); const list = []; - this.receiptList && this.receiptList.forEach(item => { - if (item.state == 'Received' && item.rcvCode == this.getActiveUser.deviceCode) { - list.push({ - reader: this.getActiveUser.labelName, - time: item.time - }); - } - + receiverList.forEach(item => { + const device = this.$store.getters['map/getDeviceByCode'](item.receiverId); + const obj = { + ...this.currentInfo, + ...item, + deviceName: device ? device.name : '' + }; + list.push(obj); }); return list; } }, watch: { - dispatchCommandMsg(obj) { - if (obj) { - const list = obj; - this.cmdTableData.unshift(list); + dispatchCommandMsg(Obj) { + if (Obj.type == 'ADD') { + const list = Obj.body; + this.cmdTableData.push(list); this.show && this.$store.commit('socket/clearDispatchCommandMsg'); } - }, - dispatchCommandState(obj) { - Object.values(obj.cpStateMap).forEach(item => { - if (item.cpId) { - if (!this.queryResData.companyStateMap) { - this.queryResData.companyStateMap = {}; - } - this.$set(this.queryResData.companyStateMap, item.cpId, item); - } - }); } }, beforeDestroy() {}, @@ -224,8 +185,8 @@ export default { }, methods:{ tableRowClassName({row, rowIndex}) { - const status = this.getStateInfo(row.rcvCompanies).state; - if (status === 'Signed') { + const status = this.getSignInfo(row.receiverInfos).signedStatus; + if (status === 'SIGNED') { return 'signed-row'; } return 'unsigned-row'; @@ -242,107 +203,98 @@ export default { handleCurrentChange(obj) { if (!obj) { return; } this.currentInfo = obj; - const sArr = [undefined, 'Sent']; - if (sArr.includes(this.getStateInfo(obj.rcvCompanies).state)) { + if (!this.getSignInfo(obj.receiverInfos).receivedTime) { const data = { - cmdId: this.commandId, - rcId: this.rcId + commandId: obj.id, + title: obj.title }; - sendCommandNew(this.group, 'CTC_READ_DIS_COMMAND', data).then((res) => { + sendCommandNew(this.group, 'CTC_READ_DISPATCH_COMMAND', data).then((res) => { console.log(res, '---res'); - // this.getReceiptData(); + const index = this.cmdTableData.findIndex(item => { + return item.id == obj.id; + }); + if (index >= 0) { + const obj = this.cmdTableData[index]; + const devCode = this.getActiveUser.deviceCode || ''; + if (obj.receiverInfos[devCode]) { + obj.receiverInfos[devCode].receivedTime = parseTime(this.initTime); + this.cmdTableData.splice(index, 1, obj); + } + } }).catch(error => { console.log(error, '---已读命令error'); }); - } else { - // this.getReceiptData(); } }, - getReceiptData() { - sendCommandNew(this.group, 'CTC_QUERY_RECEIPT_DIS_COMMAND', {cmdId: this.currentInfo.cmdId}).then((res) => { - console.log(res, '---回执--'); - this.receiptList = res.data.receiptList; - }).catch(error => { - this.receiptList = []; - this.$messageBox('---回执失败--' + error.message); - }); - }, - getActiveDeviceCodeInfo(list) { - const findObj = list.find(item => { - return item.code == this.getActiveUser.deviceCode; - }); - return findObj; - }, - getStateInfo(list) { - const findObj = this.getActiveDeviceCodeInfo(list); - let obj = {}; - if (findObj) { - obj = this.queryResData.companyStateMap[findObj.id] || {}; - } + getSignInfo(info) { + const obj = info[this.getActiveUser.deviceCode] || {}; return obj; }, - getSignedStatus(row) { - let s = ''; - if (row.signedByProxy) { - s = '代签'; - } else { - s = this.signedStatusObj[row.state] || ''; - } - return s; - }, - getSignedBy(list) { - const findObj = this.getStateInfo(list); - const signedInfo = this.memberData[findObj.operatorId]; + getSignedBy(info) { + const signedInfo = this.simulationUserList.find(item => { + return item.memberId == info.signedBy; + }); let name = ''; - if (findObj.operatorId && signedInfo) { - name = signedInfo.labelName; + if (signedInfo) { + name = signedInfo.nickName; } return name; }, signCmd(status) { if (!this.commandId) { return; } - const data = { cmdId: this.commandId, rcId: this.rcId, proxySign: false }; - let command = 'CTC_SIGN_DIS_COMMAND'; - if (!status) { - command = 'CTC_SIGN_REJECT_DIS_COMMAND'; - delete data.proxySign; - } - sendCommandNew(this.group, command, data).then((res) => { + const signInfo = { commandId: this.commandId, signedBy: this.getActiveUser.memberId, signedStatus: status, title: this.currentInfo.title }; + const data = { + signInfo: signInfo + }; + sendCommandNew(this.group, 'CTC_SIGN_DISPATCH_COMMAND', data).then((res) => { console.log(res, '---res'); if (res.code == 200) { - // this.searchCmd(); + this.changeSignedStatus(signInfo); } else { - this.$messageBox(`${status ? '签收' : '拒签'}调度命令失败:${res.message}`); + this.$messageBox(`${this.signedStatusObj[status]}调度命令失败:${res.message}`); } }).catch(error => { - this.$messageBox(`${status ? '签收' : '拒签'}调度命令失败:${error.message}`); + this.$messageBox(`${this.signedStatusObj[status]}调度命令失败:${error.message}`); }); }, - filterTableData() { - const { companyStateMap = {}, disCmdMap = {} } = this.queryResData; - const list = []; - const fArr = ['Editing', 'Cache']; - Object.values(companyStateMap).forEach(item => { - if (!fArr.includes(item.state)) { - const findObj = this.findDisCmdObj(disCmdMap, item.cpId); - if (findObj) { - list.push(findObj); - } + changeReadStatus(signInfo) { + const index = this.cmdTableData.findIndex(item => { + return item.id == signInfo.commandId; + }); + if (index >= 0) { + const obj = this.cmdTableData[index]; + const devCode = this.getActiveUser.deviceCode || ''; + if (obj.receiverInfos[devCode]) { + const mId = signInfo.signedBy; + obj.receiverInfos[devCode].signedBy = mId; + obj.receiverInfos[devCode].signedStatus = signInfo.signedStatus; + obj.receiverInfos[devCode].time = parseTime(this.initTime); + this.cmdTableData.splice(index, 1, obj); } - }); - return list.reverse(); + } }, - findDisCmdObj(obj, val) { - return Object.values(obj).find(item => { - return item.rcvCompanies[0].id == val; + changeSignedStatus(signInfo) { + const index = this.cmdTableData.findIndex(item => { + return item.id == signInfo.commandId; }); + if (index >= 0) { + const obj = this.cmdTableData[index]; + const devCode = this.getActiveUser.deviceCode || ''; + if (obj.receiverInfos[devCode]) { + const mId = signInfo.signedBy; + obj.receiverInfos[devCode].signedBy = mId; + obj.receiverInfos[devCode].signedStatus = signInfo.signedStatus; + obj.receiverInfos[devCode].time = parseTime(this.initTime); + this.cmdTableData.splice(index, 1, obj); + } + } }, searchCmd() { this.cmdTableData = []; - sendCommandNew(this.group, 'CTC_QUERY_DIS_COMMAND', {holderType: 'Station', holderCode: this.getActiveUser.deviceCode}).then((res) => { + sendCommandNew(this.group, 'CTC_QUERY_DISPATCH_COMMAND', {}).then((res) => { + console.log(res, '---res'); if (res.code == 200) { - this.queryResData = res.data; - this.cmdTableData = this.filterTableData(); + this.cmdTableData = res.data; } else { this.$messageBox('查询调度命令失败:' + res.message); } diff --git a/src/jmapNew/theme/components/menus/dialog/signedCmd.vue b/src/jmapNew/theme/components/menus/dialog/signedCmd.vue index 371aaa5f1..79e059107 100644 --- a/src/jmapNew/theme/components/menus/dialog/signedCmd.vue +++ b/src/jmapNew/theme/components/menus/dialog/signedCmd.vue @@ -25,7 +25,7 @@
命令号码: - {{ signedData.cmdCode }} + {{ signedData.number }}
@@ -45,13 +45,13 @@
发令单位: - {{ signedData.sendCompany ? signedData.sendCompany.name : '' }} + {{ signedData.companyOfSender }}
调度员姓名: - {{ signedData.sender }} + {{ signedData.senderName }}
@@ -64,7 +64,11 @@
- + + +
@@ -81,8 +85,8 @@
- 拒签 - 签收 + 拒签 + 签收 关闭
@@ -96,34 +100,24 @@ export default { data() { return { signedData: {}, - queryResData: {}, needRead: false, needprint: false, dialogShow: false, - // signedId: '', + signedId: '', signedBy: '', typeObj: { - Normal: '普通调度命令', - Construct: '施工调度命令', - Forward: '转发调度命令', - Request: '请求调度命令', - LongTerm: '长效调度命令', - ShiftScheduling: '班计划调度命令', - Other: '其他调度命令' + NORMAL: '正常调度命令' }, signedStatusObj: { - Cache: '缓存', - Sent: '已发送', - SrmReceived: '自律机接收', - Received: '已接收', - Signed: '已签收', - Reject: '已拒签' + UNSIGNED: '未签收', + SIGNED: '签收', + REFUSE: '拒签' } }; }, computed: { ...mapState('training', [ - 'memberList', 'memberData', 'simulationUserList', 'initTime' + 'memberList', 'simulationUserList', 'initTime' ]), ...mapState('socket', [ 'dispatchCommandMsg' @@ -138,32 +132,17 @@ export default { return '调度命令管理'; }, commandId() { - return this.signedData.cmdId || ''; - }, - rcId() { - const rcArr = this.signedData.rcvCompanies || []; - const obj = rcArr.find(item => { - return item.code == this.getActiveUser.deviceCode; - }); - const id = obj ? obj.id : ''; - return id; - }, - currentStatus() { - let s = '编辑'; - const cpId = this.signedData.sendCompany.id; - if (this.queryResData.companyStateMap && this.queryResData.companyStateMap[cpId]) { - const state = this.queryResData.companyStateMap[cpId].state; - s = this.signedStatusObj[state] ? this.signedStatusObj[state] : '编辑'; - } - return s; + return this.signedData.id || ''; }, currentHasSigned() { - let s = false; - const sentArr = ['编辑', '缓存', '已发送']; - if (!sentArr.includes(this.currentStatus)) { - s = true; + let hasSigned = false; + if (this.signedData.receiverInfos) { + const obj = this.getSignInfo(this.signedData.receiverInfos); + if (obj && obj.signedStatus != 'UNSIGNED') { + hasSigned = true; + } } - return s; + return hasSigned; }, getActiveUser() { const userInfo = this.simulationUserList.find(item => { @@ -173,7 +152,15 @@ export default { return activeUser; }, getTableData() { - const list = this.signedData.rcvCompanies || []; + const receiverList = Object.values(this.signedData.receiverInfos || {}); + const list = []; + receiverList.forEach(item => { + const obj = { + ...this.signedData, + ...item + }; + list.push(obj); + }); return list; } }, @@ -192,19 +179,20 @@ export default { getParseTime(val, f) { return val ? parseTime(val, f) : ''; }, - getSignedBy() { - const activeUser = Object.values(this.memberData).find(item => { + getSenderName() { + this.signedBy = ''; + this.signedId = ''; + const activeUser = this.simulationUserList.find(item => { return item.userId == this.$store.state.user.id; }); - let name = ''; if (activeUser) { - name = activeUser.labelName; + this.signedBy = activeUser.nickName; + this.signedId = activeUser.memberId; } - this.signedBy = name; }, async doShow() { await this.searchCmd(); // 补齐剧本指令,同cmdManage - this.getSignedBy(); + this.getSenderName(); this.getSignedData(); this.dialogShow = true; this.hasReadCmd(); @@ -215,17 +203,31 @@ export default { }, getSignedData() { this.signedData = {}; - if (this.dispatchCommandMsg) { - this.signedData = this.dispatchCommandMsg; + if (this.dispatchCommandMsg.type == 'ADD') { + this.signedData = this.dispatchCommandMsg.body; } }, + getSignInfo(info) { + const obj = info[this.getActiveUser.deviceCode] || {}; + return obj; + }, + getSignedBy(info) { + const signedInfo = this.simulationUserList.find(item => { + return item.memberId == info.signedBy; + }); + let name = ''; + if (signedInfo) { + name = signedInfo.nickName; + } + return name; + }, hasReadCmd() { if (!this.commandId) { return; } const data = { - cmdId: this.commandId, - rcId: this.rcId + commandId: this.commandId, + title: this.signedData.title }; - sendCommandNew(this.group, 'CTC_READ_DIS_COMMAND', data).then((res) => { + sendCommandNew(this.group, 'CTC_READ_DISPATCH_COMMAND', data).then((res) => { console.log(res, '---res'); }).catch(error => { console.log(error, '---已读命令error'); @@ -233,13 +235,11 @@ export default { }, signCmd(status) { if (!this.commandId) { return; } - const data = { cmdId: this.commandId, rcId: this.rcId, proxySign: false }; - let command = 'CTC_SIGN_DIS_COMMAND'; - if (!status) { - command = 'CTC_SIGN_REJECT_DIS_COMMAND'; - delete data.proxySign; - } - sendCommandNew(this.group, command, data).then((res) => { + const signInfo = { commandId: this.commandId, signedBy: this.signedId, signedStatus: status, title: this.signedData.title }; + const data = { + signInfo: signInfo + }; + sendCommandNew(this.group, 'CTC_SIGN_DISPATCH_COMMAND', data).then((res) => { console.log(res, '---res'); // this.$emit('changeSignedStatus', signInfo); this.doClose(); @@ -249,9 +249,8 @@ export default { }, searchCmd() { return new Promise((resolve, reject) => { - sendCommandNew(this.group, 'CTC_QUERY_DIS_COMMAND', {holderType: 'Station', holderCode: this.getActiveUser.deviceCode}).then((res) => { + sendCommandNew(this.group, 'CTC_QUERY_DISPATCH_COMMAND', {}).then((res) => { console.log(res, '---res----'); - this.queryResData = res.data; resolve(); }).catch(error => { reject(error.message); diff --git a/src/jmapNew/theme/datie_02/menus/index.vue b/src/jmapNew/theme/datie_02/menus/index.vue index 83a38b40f..f3204e77a 100644 --- a/src/jmapNew/theme/datie_02/menus/index.vue +++ b/src/jmapNew/theme/datie_02/menus/index.vue @@ -33,7 +33,7 @@
与中心通信正常
-
+
提示信息窗
{{ '操控A:主机' + ' ' + dateString + ' ' + time }}
@@ -211,7 +211,7 @@ export default { ]), hasCommandMsg() { let status = false; - if (this.dispatchCommandMsg) { + if (this.dispatchCommandMsg.body) { status = true; } return status; @@ -425,9 +425,9 @@ export default { } }, initDate(date) { - this.time = timestampFormat('HH:mm:ss', date); - this.dateString = timestampFormat('YYYYMMDD', date); - this.dateString1 = timestampFormat('YYYY年MM月DD日', date); + this.time = timestampFormat('HH:mm:ss', date) + this.dateString = timestampFormat('YYYYMMDD', date) + this.dateString1 = timestampFormat('YYYY年MM月DD日', date) }, handleRunplan() { this.$refs.runplanPane.doShow(); diff --git a/src/jmapNew/theme/datie_02/menus/runplanPane.vue b/src/jmapNew/theme/datie_02/menus/runplanPane.vue index d43f18941..0c1a2f477 100644 --- a/src/jmapNew/theme/datie_02/menus/runplanPane.vue +++ b/src/jmapNew/theme/datie_02/menus/runplanPane.vue @@ -652,7 +652,7 @@ export default { ]), hasCommandMsg() { let status = false; - if (this.dispatchCommandMsg) { + if (this.dispatchCommandMsg.body) { status = true; } return status; @@ -704,9 +704,9 @@ export default { } }, initDate(date) { - this.time = timestampFormat('HH:mm:ss', date); - this.dateString = timestampFormat('YYYYMMDD', date); - this.dateString1 = timestampFormat('YYYY年MM月DD日', date); + this.time = timestampFormat('HH:mm:ss', date) + this.dateString = timestampFormat('YYYYMMDD', date) + this.dateString1 = timestampFormat('YYYY年MM月DD日', date) }, judgeColor({row, rowIndex}) { if (row.effect) { diff --git a/src/jmapNew/theme/datie_jd1a/menus/index.vue b/src/jmapNew/theme/datie_jd1a/menus/index.vue index 6c5c5e865..92ffd9c48 100644 --- a/src/jmapNew/theme/datie_jd1a/menus/index.vue +++ b/src/jmapNew/theme/datie_jd1a/menus/index.vue @@ -33,7 +33,7 @@
与中心通信正常
-
+
提示信息窗
{{ '操控A:主机' + ' ' + dateString + ' ' + time }}
@@ -189,7 +189,7 @@ export default { ]), hasCommandMsg() { let status = false; - if (this.dispatchCommandMsg) { + if (this.dispatchCommandMsg.body) { status = true; } return status; @@ -271,9 +271,9 @@ export default { } }, initDate(date) { - this.time = timestampFormat('HH:mm:ss', date); - this.dateString = timestampFormat('YYYYMMDD', date); - this.dateString1 = timestampFormat('YYYY年MM月DD日', date); + this.time = timestampFormat('HH:mm:ss', date) + this.dateString = timestampFormat('YYYYMMDD', date) + this.dateString1 = timestampFormat('YYYY年MM月DD日', date) }, handleRunplan() { this.$refs.runplanPane.doShow(); diff --git a/src/jmapNew/theme/datie_jd1a/menus/runplanPane.vue b/src/jmapNew/theme/datie_jd1a/menus/runplanPane.vue index 7f335f6be..e9a32d84f 100644 --- a/src/jmapNew/theme/datie_jd1a/menus/runplanPane.vue +++ b/src/jmapNew/theme/datie_jd1a/menus/runplanPane.vue @@ -564,7 +564,7 @@ export default { ]), hasCommandMsg() { let status = false; - if (this.dispatchCommandMsg) { + if (this.dispatchCommandMsg.body) { status = true; } return status; diff --git a/src/jmapNew/theme/datie_ksk/menus/index.vue b/src/jmapNew/theme/datie_ksk/menus/index.vue index 0b5ca6bb0..77e72e89e 100644 --- a/src/jmapNew/theme/datie_ksk/menus/index.vue +++ b/src/jmapNew/theme/datie_ksk/menus/index.vue @@ -33,7 +33,7 @@
与中心通信正常
-
+
提示信息窗
{{ '操控A:主机' + ' ' + dateString + ' ' + time }}
@@ -189,7 +189,7 @@ export default { ]), hasCommandMsg() { let status = false; - if (this.dispatchCommandMsg) { + if (this.dispatchCommandMsg.body) { status = true; } return status; @@ -271,9 +271,9 @@ export default { } }, initDate(date) { - this.time = timestampFormat('HH:mm:ss', date); - this.dateString = timestampFormat('YYYYMMDD', date); - this.dateString1 = timestampFormat('YYYY年MM月DD日', date); + this.time = timestampFormat('HH:mm:ss', date) + this.dateString = timestampFormat('YYYYMMDD', date) + this.dateString1 = timestampFormat('YYYY年MM月DD日', date) }, handleRunplan() { this.$refs.runplanPane.doShow(); diff --git a/src/store/modules/socket.js b/src/store/modules/socket.js index 7f7360e5e..efe28612b 100644 --- a/src/store/modules/socket.js +++ b/src/store/modules/socket.js @@ -277,14 +277,9 @@ function handle(state, data) { state.railCtcStationManageRpChange++; break; // 调度命令信息 - case 'SIMULATION_RAIL_CTC_DIS_COMMAND_ADD': + case 'SIMULATION_RAIL_CTC_DISPATCH_COMMAND': state.dispatchCommandMsg = msg; break; - // 调度命令状态 - case 'SIMULATION_RAIL_CTC_DIS_COMMAND_SYNC': - state.dispatchCommandState = msg; - console.log('调度命令状态', msg); - break; // 车站发送计划信息 case 'SIMULATION_CTC_RUN_PLAN_CONFIRM_SEND': state.changedCtcRunplanMap = msg; @@ -482,8 +477,7 @@ const socket = { simulationPlanChange:{}, // 运行图加线/抽线/变化推送消息 loggedOutMsg: '', railCtcStatusMsg: {}, // 占线板信息 - dispatchCommandMsg: null, // 调度命令信息 - dispatchCommandState: null, // 调度命令状态 + dispatchCommandMsg: {}, // 调度命令信息 changedCtcRunplanMap:{}, // 大铁项目 ctc 被修改运行计划的车站信息 railCtcRunplanInitMsg:{}, // 大铁项目 ctc 运行图初始化信息 railCtcRunplanChange:0, // 大铁项目 ctc 运行图信息变化 @@ -505,12 +499,12 @@ const socket = { firstTrainRemain: '', firstEndStationName: '', secondTrainRemain: '', - secondEndStationName: '' + secondEndStationName: '', }, onboardPisState: { nextStationName: '', - endStationName: '' - } + endStationName: '', + }, }, getters: { }, @@ -598,17 +592,17 @@ const socket = { state.iscsStatePisMessages = speed; }, setStandPisMessages: (state, payload) => { - state.standPisState = payload; + state.standPisState = payload }, setOnboardPisMessages: (state, payload) => { - state.onboardPisState = payload; + state.onboardPisState = payload }, deleteRailwaySimulationRunplan: (state, stationCode) => { delete state.railwaySimulationRunplanSendMap[stationCode]; state.railwaySimulationRunplanSendChange++; }, clearDispatchCommandMsg: (state, data) => { - state.dispatchCommandMsg = null; + state.dispatchCommandMsg = {}; }, resetRailCtcRunplanInitMsg: (state) => { state.railCtcRunplanInitMsg = {}; diff --git a/src/views/dispatcherStationManage/dispatchCmd.vue b/src/views/dispatcherStationManage/dispatchCmd.vue index c6f0ac8c7..a1acc87aa 100644 --- a/src/views/dispatcherStationManage/dispatchCmd.vue +++ b/src/views/dispatcherStationManage/dispatchCmd.vue @@ -4,7 +4,7 @@ class="dispatcher-cmd chengdou-03__systerm" :title="title" :visible.sync="show" - width="1500px" + width="1300px" :before-close="doClose" :z-index="2010" :modal="false" @@ -13,7 +13,7 @@ >
- +
@@ -21,6 +21,7 @@
+ @@ -43,21 +44,17 @@
- - - + + + - + - - - - + +