会议发布修改 发布提醒 国际研讨会报名bug

This commit is contained in:
fengachen
2021-09-26 21:19:23 +08:00
parent e1b91ce4bf
commit dc588204bb
3 changed files with 26 additions and 6 deletions
@@ -545,9 +545,9 @@ export default {
* */ * */
handleOk() { handleOk() {
const that = this const that = this
that.confirmLoading = true
this.form.validateFields((err, values) => { this.form.validateFields((err, values) => {
if (!err) { if (!err) {
that.confirmLoading = true
let httpurl = '' let httpurl = ''
let method = 'post' let method = 'post'
if (that.model.id) { if (that.model.id) {
@@ -648,7 +648,7 @@ export default {
const keys = form.getFieldValue('hotelContactsList') const keys = form.getFieldValue('hotelContactsList')
// 增加数据后重新赋值 // 增加数据后重新赋值
this.model.hotelContactsList.splice(index + 1, 0, obj) this.model.hotelContactsList.splice(index + 1, 0, obj)
keys.splice(index + 1, 0, obj) // keys.splice(index , 0, obj)
this.$nextTick(() => { this.$nextTick(() => {
form.setFieldsValue({ form.setFieldsValue({
hotelContactsList: keys hotelContactsList: keys
@@ -30,7 +30,7 @@
size="middle" size="middle"
bordered bordered
rowKey="id" rowKey="id"
:columns="columns" :columns="newColumns"
:dataSource="dataSource" :dataSource="dataSource"
:pagination="ipagination" :pagination="ipagination"
:loading="loading" :loading="loading"
@@ -126,10 +126,12 @@ export default {
}, },
// 会议维护选中的会议 // 会议维护选中的会议
selectedMetingList:[], selectedMetingList:[],
newColumns:[]
} }
}, },
methods: { methods: {
open(meetingList) { open(meetingList) {
this.newColumns = [...this.columns]
this.visible = true this.visible = true
// 保存选中的会议 // 保存选中的会议
this.selectedMetingList = [...meetingList] this.selectedMetingList = [...meetingList]
@@ -137,10 +139,12 @@ export default {
this.filters.workingGroupId = this.$route.query.workingGroupProjectId this.filters.workingGroupId = this.$route.query.workingGroupProjectId
// 发布提醒需要会议id 只有选择一个会议的时候 才会有这个参数 // 发布提醒需要会议id 只有选择一个会议的时候 才会有这个参数
if(meetingList.length === 1) { if(meetingList.length === 1) {
this.filters.workingGroupId = this.$route.query.workingGroupProjectId this.filters.meetingId = meetingList[0]
}
// 选择多个会议的时候不需要提醒字段 这样写是因为无法精准定位每一个人对应的每一个会议 这个人是否被提醒
if(meetingList.length > 1){
// 去掉列表的提醒字段 // 去掉列表的提醒字段
let index = this.columns.findIndex(item => item.dataIndex === 'remind') this.newColumns = this.newColumns.filter( item => item.dataIndex !== 'remind')
this.columns.splice(index,1)
} }
this.searchReset() this.searchReset()
}, },
+16
View File
@@ -340,6 +340,8 @@ export default {
meetingCostBool: false, meetingCostBool: false,
// 是否有邀请码 // 是否有邀请码
inviteCodeBool: false, inviteCodeBool: false,
// 邀请码错误状态
codeErrorBool:true,
url: { url: {
add: '/meeting/payMeetingSituation/signUp' add: '/meeting/payMeetingSituation/signUp'
} }
@@ -466,6 +468,10 @@ export default {
} }
this.form.validateFields((err, values) => { this.form.validateFields((err, values) => {
if (!err) { if (!err) {
if(this.codeErrorBool){
this.$message.error('邀请码填写错误')
return
}
this.confirmLoading = true this.confirmLoading = true
let submitData = Object.assign({}, values, this.formData) let submitData = Object.assign({}, values, this.formData)
submitData.companyId = values.companyId.id submitData.companyId = values.companyId.id
@@ -473,6 +479,10 @@ export default {
submitData.meetingId = this.meetingId submitData.meetingId = this.meetingId
// 会议类型 // 会议类型
submitData.meetingType = this.meetingType submitData.meetingType = this.meetingType
// 身份
submitData.identity = values.identity || this.identifyType
// 嘉宾类型
submitData.guestType = values.guestType || this.guestType
console.log(submitData) console.log(submitData)
let url = this.url.add let url = this.url.add
let method = 'post' let method = 'post'
@@ -566,18 +576,22 @@ export default {
switch (code) { switch (code) {
// 合作伙伴 // 合作伙伴
case this.currentMeetingInfo.cooperativeInvitationCode: case this.currentMeetingInfo.cooperativeInvitationCode:
this.identifyType = 1
this.guestType = 4 this.guestType = 4
break break
// 演讲嘉宾 // 演讲嘉宾
case this.currentMeetingInfo.speakerInvitationCode: case this.currentMeetingInfo.speakerInvitationCode:
this.identifyType = 1
this.guestType = 2 this.guestType = 2
break break
// 特邀嘉宾 // 特邀嘉宾
case this.currentMeetingInfo.guestInvitationCode: case this.currentMeetingInfo.guestInvitationCode:
this.identifyType = 1
this.guestType = 3 this.guestType = 3
break break
// vip // vip
case this.currentMeetingInfo.vipInvitationCode: case this.currentMeetingInfo.vipInvitationCode:
this.identifyType = 1
this.guestType = 1 this.guestType = 1
break break
default :this.guestType = null default :this.guestType = null
@@ -608,6 +622,8 @@ export default {
break break
default : flag = false default : flag = false
} }
// 保存错误状态
this.codeErrorBool = !flag
// 判断guestType 是否等于 null // 判断guestType 是否等于 null
if(!flag){ if(!flag){
// 错误 // 错误