状态回显问题

cmt1.0
zhaoyu 2023-12-14 09:52:45 +08:00
parent 53e733ec1f
commit 048168d82b
1 changed files with 11 additions and 11 deletions

View File

@ -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) {