20250527-MeetingReservationList.vue页面隐藏 导出会议日程 导出月度汇总按钮

This commit is contained in:
luoyu 2025-05-27 18:48:33 +08:00
parent 0d8de44e36
commit 86285f74c3

View File

@ -93,10 +93,11 @@
<span class='table-page-search-submitButtons'>
<a-button type='primary' @click='$refs.table.refresh(true)'>查询</a-button>
<a-button style='margin-left: 8px' @click='reset'>重置</a-button>
<a-button v-if='isAdmin' type='danger' style='margin-left: 8px'
@click='showExportDayModal = true'>导出会议日程</a-button>
<a-button v-if='isAdmin' type='danger' style='margin-left: 8px'
@click='showExportMonthModal = true'>导出月度汇总</a-button>
<!-- 先做隐藏 20250527-->
<!-- <a-button v-if='isAdmin' type='danger' style='margin-left: 8px'-->
<!-- @click='showExportDayModal = true'>导出会议日程</a-button>-->
<!-- <a-button v-if='isAdmin' type='danger' style='margin-left: 8px'-->
<!-- @click='showExportMonthModal = true'>导出月度汇总</a-button>-->
</span>
</a-col>
</a-row>
@ -190,7 +191,7 @@
:auto-size='{ minRows: 3, maxRows: 5 }'
/>
</a-modal>
<!-- 导出会议日程弹窗 -->
<a-modal
title='导出会议日程'
@ -220,7 +221,7 @@
</a-select>
</a-form-item>
</a-modal>
<!-- 导出月度汇总弹窗 -->
<a-modal
title='导出月度汇总'
@ -444,14 +445,14 @@ export default {
rejectId: '',
roomList: [],
isAdmin: checkPermission('meeting:admin'),
//
showExportDayModal: false,
exportDayDate: null,
exportDayTitle: '',
exportDayUserOrg: '',
exportDayStatus: '',
//
showExportMonthModal: false,
exportMonthDate: null,
@ -662,16 +663,16 @@ export default {
this.$message.error('请选择日期范围')
return
}
const startDate = this.exportDayDate[0].format('YYYY-MM-DD')
const endDate = this.exportDayDate[1].format('YYYY-MM-DD')
//
this.$message.loading({ content: '正在导出数据,请稍候...', key: 'exportLoading', duration: 0 })
//
const timestamp = new Date().getTime()
expMRByDate({
'filterDate': '',
'startDate': startDate,
@ -717,22 +718,22 @@ export default {
this.$message.error({ content: errorMsg, key: 'exportLoading' })
})
},
//
handleExportMonth() {
if (!this.exportMonthDate) {
this.$message.error('请选择月份')
return
}
const month = this.exportMonthDate.format('YYYY-MM')
//
this.$message.loading({ content: '正在导出数据,请稍候...', key: 'exportLoading', duration: 0 })
//
const timestamp = new Date().getTime()
expMRByMonth({
'month': month,
'_t': timestamp