diff --git a/src/jmapNew/theme/datie_02/menus/runplanPane.vue b/src/jmapNew/theme/datie_02/menus/runplanPane.vue
index 21d8781b9..5949d055e 100644
--- a/src/jmapNew/theme/datie_02/menus/runplanPane.vue
+++ b/src/jmapNew/theme/datie_02/menus/runplanPane.vue
@@ -155,7 +155,7 @@
{{ coverTime(scope.row.arriveRunPlan.adjacentMessageTime) }}
-
+
邻
站
出
发
6
@@ -167,6 +167,9 @@
规
定
7
+
+ {{ coverTime(scope.row.arriveRunPlan.planTime) }}
+
@@ -324,7 +327,7 @@
{{ coverTime(scope.row.departRunPlan.adjacentMessageTime) }}
-
+
邻
站
到
达
24
@@ -336,6 +339,9 @@
规
定
25
+
+ {{ coverTime(scope.row.departRunPlan.planTime) }}
+
@@ -551,15 +557,27 @@ export default {
loadData() {
this.tableData = [];
const railCtcRunplanInitMsg = copyAssign({}, this.$store.state.socket.railCtcRunplanInitMsg);
- this.tableData = Object.values(railCtcRunplanInitMsg).filter(data=>{
+ const tableData = Object.values(railCtcRunplanInitMsg).filter(data=>{
if (data.departRunPlan) {
- data.departRunPlan.planTime = data.departRunPlan.planTime.split(':').splice(0, 2).join(':');
+ // data.departRunPlan.planTime = this.coverTime(data.departRunPlan.planTime);
+ if (data.departRunPlan.adjacentDepart) { data.departRunPlan.adjacentDepart = this.coverTime(data.departRunPlan.adjacentDepart); }
+ if (data.departRunPlan.actualTime) { data.departRunPlan.actualTime = this.coverTime(data.departRunPlan.actualTime); }
}
if (data.arriveRunPlan) {
- data.arriveRunPlan.planTime = data.arriveRunPlan.planTime.split(':').splice(0, 2).join(':');
+ // data.arriveRunPlan.planTime = this.coverTime(data.arriveRunPlan.planTime);
+ if (data.arriveRunPlan.adjacentDepart) { data.arriveRunPlan.adjacentDepart = this.coverTime(data.arriveRunPlan.adjacentDepart); }
+ if (data.arriveRunPlan.actualTime) { data.arriveRunPlan.actualTime = this.coverTime(data.arriveRunPlan.actualTime); }
}
return data.stationCode == this.$store.state.training.roleDeviceCode;
});
+ this.tableData = 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();
+ });
+ },
+ coverTime(time) {
+ return time.split(':').splice(0, 2).join(':');
},
doShow() {
this.filterSectionList = [];
diff --git a/src/views/bigTrainRunplanManage/addRunplan.vue b/src/views/bigTrainRunplanManage/addRunplan.vue
index d89447462..2ddbca7bb 100644
--- a/src/views/bigTrainRunplanManage/addRunplan.vue
+++ b/src/views/bigTrainRunplanManage/addRunplan.vue
@@ -108,6 +108,22 @@ export default {
NoticeInfo
},
data() {
+ var validateTripNumber = (rule, value, callback) => {
+ if (value) {
+ const judge = /^[a-zA-Z0-9]*[\d]$/.test(value);
+ if (judge) {
+ if (value.toString().length > 2 || value.toString().length < 6) {
+ callback('车次长度2-6位');
+ } else {
+ callback();
+ }
+ } else {
+ callback('字母+数字,最后一位数字');
+ }
+ } else {
+ callback('请输入车次');
+ }
+ };
return {
dialogShow: false,
loading: false,
@@ -131,11 +147,13 @@ export default {
{ required: true, message: '请选择股道', trigger: 'change' }
],
arriveTripNumber:[
- { required: true, message: '请输入到达车次', trigger: 'blur' }
+ { required: true, validator: validateTripNumber, trigger: 'blur' }
+ // message: '请输入到达车次'
],
departTripNumber:[
- { required: true, message: '请输入到达车次', trigger: 'blur' }
+ { required: true, validator: validateTripNumber, trigger: 'blur' }
],
+ // message: '请输入出发车次'
arriveTime: [
{ required: true, message: '请选择到达时间', trigger: 'blur' },
{ required: true, message: '请选择到达时间', trigger: 'change' }
@@ -160,7 +178,6 @@ export default {
{ required: true, message: '请选择前方车站', trigger: 'blur' },
{ required: true, message: '请选择前方车站', trigger: 'change' }
]
- // { validator: validateJudgePass, trigger: 'blur' }
}
};
},
diff --git a/src/views/bigTrainRunplanManage/trainFixedPath.vue b/src/views/bigTrainRunplanManage/trainFixedPath.vue
index 8779ea66e..8cbb64706 100644
--- a/src/views/bigTrainRunplanManage/trainFixedPath.vue
+++ b/src/views/bigTrainRunplanManage/trainFixedPath.vue
@@ -397,11 +397,17 @@ export default {
that.$message.error('发布失败');
});
},
+ coverTime(time) {
+ return time.split(':').splice(0, 2).join(':');
+ },
handleData() {
this.tableData = [];
const railCtcStationManageRpMsg = copyAssign({}, this.$store.state.socket.railCtcStationManageRpMsg);
this.tableData = Object.values(railCtcStationManageRpMsg).filter(data=>{
+ data.arriveTime = this.coverTime(data.arriveTime);
+ data.departTime = this.coverTime(data.departTime);
return data.stationCode == this.currentStationCode;
+
});
// stationCode 车站编码
// trackSectionCode 运行计划的默认股道