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

View File

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

View File

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