Merge branch 'test' of https://git.code.tencent.com/lian-cbtc/jl-client into test
This commit is contained in:
commit
82e1378870
@ -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();
|
||||
// }
|
||||
|
||||
}
|
||||
};
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user