代码调整

This commit is contained in:
joylink_cuiweidong 2022-06-23 16:24:59 +08:00
parent 4bbe980c21
commit 5cb096bfda

View File

@ -116,7 +116,8 @@ export default {
callback('字母+数字,最后一位数字'); callback('字母+数字,最后一位数字');
} }
} else { } else {
callback('请输入车次'); // callback('');
callback();
} }
}; };
return { return {
@ -137,42 +138,42 @@ export default {
departStationCode:'' // departStationCode:'' //
}, },
rules: { rules: {
trackSectionCode: [ // trackSectionCode: [
{ required: true, message: '请选择股道', trigger: 'blur' }, // { required: true, message: '', trigger: 'blur' },
{ required: true, message: '请选择股道', trigger: 'change' } // { required: true, message: '', trigger: 'change' }
], // ],
arriveTripNumber:[ arriveTripNumber:[
{ required: true, validator: validateTripNumber, trigger: 'blur' } { required: true, validator: validateTripNumber, trigger: 'blur' }
// message: '' // message: ''
], ],
departTripNumber:[ departTripNumber:[
{ required: true, validator: validateTripNumber, trigger: 'blur' } { required: true, validator: validateTripNumber, trigger: 'blur' }
],
// message: ''
arriveTime: [
{ required: true, message: '请选择到达时间', trigger: 'blur' },
{ required: true, message: '请选择到达时间', trigger: 'change' }
],
departTime: [
{ required: true, message: '请选择出发时间', trigger: 'blur' },
{ required: true, message: '请选择出发时间', trigger: 'change' }
],
arriveDirectionCode: [
{ required: true, message: '请选择入口', trigger: 'blur' },
{ required: true, message: '请选择入口', trigger: 'change' }
],
departDirectionCode: [
{ required: true, message: '请选择出口', trigger: 'blur' },
{ required: true, message: '请选择出口', trigger: 'change' }
],
arriveStationCode: [
{ required: true, message: '请选择后方车站', trigger: 'blur' },
{ required: true, message: '请选择后方车站', trigger: 'change' }
],
departStationCode: [
{ required: true, message: '请选择前方车站', trigger: 'blur' },
{ required: true, message: '请选择前方车站', trigger: 'change' }
] ]
// message: ''
// arriveTime: [
// { required: true, message: '', trigger: 'blur' },
// { required: true, message: '', trigger: 'change' }
// ],
// departTime: [
// { required: true, message: '', trigger: 'blur' },
// { required: true, message: '', trigger: 'change' }
// ],
// arriveDirectionCode: [
// { required: true, message: '', trigger: 'blur' },
// { required: true, message: '', trigger: 'change' }
// ],
// departDirectionCode: [
// { required: true, message: '', trigger: 'blur' },
// { required: true, message: '', trigger: 'change' }
// ],
// arriveStationCode: [
// { required: true, message: '', trigger: 'blur' },
// { required: true, message: '', trigger: 'change' }
// ],
// departStationCode: [
// { required: true, message: '', trigger: 'blur' },
// { required: true, message: '', trigger: 'change' }
// ]
} }
}; };
}, },