[update]-会议-嘉宾可以上传 会议资料文件,并且可以更新列表页的数据
This commit is contained in:
@@ -180,7 +180,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<!-- 会议详情 -->
|
||||
<meeting-detail-modal ref="meetingDetail" is-meeting-bool></meeting-detail-modal>
|
||||
<meeting-detail-modal ref="meetingDetail" is-meeting-bool @refresh-data="fileRefreshData"></meeting-detail-modal>
|
||||
<!--上传凭证-->
|
||||
<upload-meeting-certificate-modal ref="upload" @ok="initData"></upload-meeting-certificate-modal>
|
||||
</div>
|
||||
@@ -341,7 +341,7 @@ export default {
|
||||
/*
|
||||
* 初始化加载数据
|
||||
* */
|
||||
initData(arg) {
|
||||
initData(arg, callback) {
|
||||
if (!this.url.list) {
|
||||
this.$message.error('请设置url.list属性!')
|
||||
return
|
||||
@@ -373,6 +373,7 @@ export default {
|
||||
} else {
|
||||
this.total = 0
|
||||
}
|
||||
callback && callback()
|
||||
}
|
||||
if (res.code === 510) {
|
||||
this.$message.warning(res.message)
|
||||
@@ -421,6 +422,15 @@ export default {
|
||||
openMeetingDetail(item) {
|
||||
// 打开会议详情
|
||||
this.$refs.meetingDetail.open(item)
|
||||
},
|
||||
// 嘉宾上传会议资料后的回调函数
|
||||
fileRefreshData(situationId) {
|
||||
const callback = (situationId) => {
|
||||
let item = this.tableData.find(item => item.situationId === situationId)
|
||||
item && this.openMeetingDetail(item)
|
||||
}
|
||||
// 重新请求数据,并执行打开弹窗的回调函数
|
||||
this.initData(null, callback(situationId))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user