状态回显问题

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 immediate: false
}, },
'form.ENDTIME': { // 'form.ENDTIME': {
handler: function() { // handler: function() {
// eslint-disable-next-line no-unused-vars // // eslint-disable-next-line no-unused-vars
var time = formatDate(new Date(), 'YYYY-MM-DD') // var time = formatDate(new Date(), 'YYYY-MM-DD')
if (this.form.ENDTIME > time) { // if (this.form.ENDTIME > time) {
this.form.STATE = '1' // this.form.STATE = '1'
} else { // } else {
this.form.STATE = '2' // this.form.STATE = '2'
} // }
} // }
}, // },
TRAINING_TIME: function(newData, oldData) { TRAINING_TIME: function(newData, oldData) {
if (!newData) { if (!newData) {