【修改】 会议编辑的bug

This commit is contained in:
fengachen
2021-12-14 17:35:29 +08:00
parent ea8fd99479
commit 6c43899da9
2 changed files with 7 additions and 5 deletions
@@ -537,12 +537,12 @@ export default {
this.$nextTick(() => {
// 加定时器是因为有可能赋值不成功
setTimeout(() => {
this.form.setFieldsValue(pick(this.model, 'notice','hotelContactsList', 'paymentQrCode', 'meetingName', 'meetingType', 'convokeTime', 'particularYear', 'estimatedNumber', 'meetingFiles', 'registerDeadline', 'meetingContent', 'convokeLocale', 'address', 'meetingCosts', 'directorId', 'remark', 'directorPhone')), 200
this.form.setFieldsValue(pick(this.model, 'notice','hotelContactsList','hotelName', 'hotelAddress' ,'paymentQrCode', 'meetingName', 'meetingType', 'convokeTime', 'particularYear', 'estimatedNumber', 'meetingFiles', 'registerDeadline', 'meetingContent', 'convokeLocale', 'address', 'meetingCosts', 'directorId', 'remark', 'directorPhone')), 200
})
// 如果是标协会议则回显 标协会议的字段
if (this.meetingType === '2') {
console.log('this.model', this.model)
this.form.setFieldsValue(pick(this.model, 'signInTime', 'tbMeetingType', 'meetingCostsVip', 'hotelName', 'hotelAddress'))
this.form.setFieldsValue(pick(this.model, 'signInTime', 'tbMeetingType', 'meetingCostsVip' ))
}
// 如果是工作组会议 赋值工作组
if (this.meetingType === '1') {
@@ -285,9 +285,6 @@ export default {
if (this.meetingType === '2') {
this.authorCode = Object.assign({}, this.standardsMeetingAuthorCode)
}
if(this.disableMixinCreated){
this.loadData(1)
}
// 不是分标委会议去掉提醒字段
if (this.meetingType !== '5') {
this.newColumns = [...this.columns]
@@ -297,6 +294,11 @@ export default {
this.newColumns = [...this.columns]
}
},
mounted() {
if(this.disableMixinCreated){
this.loadData(1)
}
},
computed: {
pageTitle() {
return `${this.$route.query.title}`