状态回显问题
parent
53e733ec1f
commit
048168d82b
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue