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