状态回显问题
parent
53e733ec1f
commit
048168d82b
|
@ -454,17 +454,17 @@ export default {
|
|||
immediate: false
|
||||
|
||||
},
|
||||
'form.ENDTIME': {
|
||||
handler: function() {
|
||||
// eslint-disable-next-line no-unused-vars
|
||||
var time = formatDate(new Date(), 'YYYY-MM-DD')
|
||||
if (this.form.ENDTIME > time) {
|
||||
this.form.STATE = '1'
|
||||
} else {
|
||||
this.form.STATE = '2'
|
||||
}
|
||||
}
|
||||
},
|
||||
// 'form.ENDTIME': {
|
||||
// handler: function() {
|
||||
// // eslint-disable-next-line no-unused-vars
|
||||
// var time = formatDate(new Date(), 'YYYY-MM-DD')
|
||||
// if (this.form.ENDTIME > time) {
|
||||
// this.form.STATE = '1'
|
||||
// } else {
|
||||
// this.form.STATE = '2'
|
||||
// }
|
||||
// }
|
||||
// },
|
||||
|
||||
TRAINING_TIME: function(newData, oldData) {
|
||||
if (!newData) {
|
||||
|
|
Loading…
Reference in New Issue