bug修复

main
zhaoyu 2023-12-14 09:51:11 +08:00
parent 14abb214e1
commit f575847b82
3 changed files with 16 additions and 13 deletions

View File

@ -608,17 +608,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) {
this.TRAINING_TIME = ['', '']

View File

@ -195,6 +195,7 @@ export default {
directives: { waves },
data() {
return {
CORPINFO_ID: '',
userInfoUserId: JSON.parse(sessionStorage.getItem('user')).USER_ID,
qrcodeStr: '',
listLoading: true,
@ -268,6 +269,7 @@ export default {
}
},
created() {
this.CORPINFO_ID = this.$parent.CORPINFO_ID
this.getList()
this.getUnitsList()
this.getCorpList()
@ -315,7 +317,7 @@ export default {
CONTRACT_STIME: this.CONTRACTTIME[0],
CONTRACT_ETIME: this.CONTRACTTIME[1],
STATE: this.STATE,
CORPINFO_ID: this.$parent.CORPINFO_ID,
CORPINFO_ID: this.CORPINFO_ID,
INVOLVING_CORP: this.INVOLVING_CORP,
DEPARTMENT_ID: this.DEPARTMENT_ID,
COMPETENT_DEPT_ID: this.COMPETENT_DEPT_ID,

View File

@ -26,7 +26,8 @@ export default {
data() {
return {
activeName: 'OutSourced',
OUTSOURCED_ID: ''
OUTSOURCED_ID: '',
CORPINFO_ID: ''
}
},
watch: {