会议发布修改 发布提醒 国际研讨会报名bug
This commit is contained in:
@@ -30,7 +30,7 @@
|
||||
size="middle"
|
||||
bordered
|
||||
rowKey="id"
|
||||
:columns="columns"
|
||||
:columns="newColumns"
|
||||
:dataSource="dataSource"
|
||||
:pagination="ipagination"
|
||||
:loading="loading"
|
||||
@@ -126,10 +126,12 @@ export default {
|
||||
},
|
||||
// 会议维护选中的会议
|
||||
selectedMetingList:[],
|
||||
newColumns:[]
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
open(meetingList) {
|
||||
this.newColumns = [...this.columns]
|
||||
this.visible = true
|
||||
// 保存选中的会议
|
||||
this.selectedMetingList = [...meetingList]
|
||||
@@ -137,10 +139,12 @@ export default {
|
||||
this.filters.workingGroupId = this.$route.query.workingGroupProjectId
|
||||
// 发布提醒需要会议id 只有选择一个会议的时候 才会有这个参数
|
||||
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.columns.splice(index,1)
|
||||
this.newColumns = this.newColumns.filter( item => item.dataIndex !== 'remind')
|
||||
}
|
||||
this.searchReset()
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user