diff --git a/src/jmapNew/theme/datie_02/menus/runplanPane.vue b/src/jmapNew/theme/datie_02/menus/runplanPane.vue index 5949d055e..818d7ea06 100644 --- a/src/jmapNew/theme/datie_02/menus/runplanPane.vue +++ b/src/jmapNew/theme/datie_02/menus/runplanPane.vue @@ -557,7 +557,7 @@ export default { loadData() { this.tableData = []; const railCtcRunplanInitMsg = copyAssign({}, this.$store.state.socket.railCtcRunplanInitMsg); - const tableData = Object.values(railCtcRunplanInitMsg).filter(data=>{ + this.tableData = Object.values(railCtcRunplanInitMsg).filter(data=>{ if (data.departRunPlan) { // data.departRunPlan.planTime = this.coverTime(data.departRunPlan.planTime); if (data.departRunPlan.adjacentDepart) { data.departRunPlan.adjacentDepart = this.coverTime(data.departRunPlan.adjacentDepart); } @@ -570,7 +570,7 @@ export default { } return data.stationCode == this.$store.state.training.roleDeviceCode; }); - this.tableData = tableData.sort((prev, next)=>{ + this.tableData.sort((prev, next)=>{ const prevPlanTime = prev.departRunPlan ? prev.departRunPlan.planTime : prev.arriveRunPlan ? prev.arriveRunPlan.planTime : '00:00:00'; const nextPlanTime = next.departRunPlan ? next.departRunPlan.planTime : next.arriveRunPlan ? next.arriveRunPlan.planTime : '00:00:00'; return new Date('2000-06-18 ' + prevPlanTime).getTime() - new Date('2000-06-18 ' + nextPlanTime).getTime(); @@ -755,11 +755,11 @@ export default { }, noticeInfo() { this.$refs.noticeInfo.doShow(); - }, - coverTime(time) { - const date = new Date(time); - return date.getHours() + ':' + date.getMinutes(); } + // coverTime(time) { + // const date = new Date(time); + // return date.getHours() + ':' + date.getMinutes(); + // } } }; diff --git a/src/views/bigTrainRunplanManage/addRunplan.vue b/src/views/bigTrainRunplanManage/addRunplan.vue index 2ddbca7bb..6ecb487f7 100644 --- a/src/views/bigTrainRunplanManage/addRunplan.vue +++ b/src/views/bigTrainRunplanManage/addRunplan.vue @@ -112,7 +112,7 @@ export default { if (value) { const judge = /^[a-zA-Z0-9]*[\d]$/.test(value); if (judge) { - if (value.toString().length > 2 || value.toString().length < 6) { + if (value.toString().length > 6 || value.toString().length < 2) { callback('车次长度2-6位'); } else { callback();