mirror of
https://gitee.com/java110/MicroCommunityWeb.git
synced 2026-02-23 21:36:37 +08:00
v1.9 解决优惠申请导出bug
This commit is contained in:
parent
5870b43f63
commit
b9b17c9e20
@ -118,7 +118,7 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { getDict } from '@/api/community/communityApi'
|
||||
import { getDict,getCommunityId } from '@/api/community/communityApi'
|
||||
import { queryApplyRoomDiscount, queryApplyRoomDiscountType } from '@/api/fee/applyRoomDiscountManageApi'
|
||||
import AddApplyRoomDiscount from '@/components/fee/addApplyRoomDiscount'
|
||||
import EditApplyRoomDiscount from '@/components/fee/editApplyRoomDiscount'
|
||||
@ -160,6 +160,7 @@ export default {
|
||||
this.getList()
|
||||
this.getApplyTypes()
|
||||
this.getDictData()
|
||||
this.searchForm.communityId = getCommunityId()
|
||||
},
|
||||
methods: {
|
||||
async getList() {
|
||||
@ -250,8 +251,22 @@ export default {
|
||||
handleOpenDiscountType() {
|
||||
this.$router.push('/views/fee/discountType')
|
||||
},
|
||||
handleExport() {
|
||||
async handleExport() {
|
||||
// 导出逻辑
|
||||
try {
|
||||
const params = {
|
||||
...this.searchForm,
|
||||
communityId: this.searchForm.communityId,
|
||||
pagePath: 'applyRoomDiscount'
|
||||
}
|
||||
|
||||
await exportData(params)
|
||||
this.$message.success(this.$t('reportFeeSummary.exportSuccess'))
|
||||
this.$router.push('/pages/property/downloadTempFile?tab=下载中心')
|
||||
} catch (error) {
|
||||
console.error('Failed to export:', error)
|
||||
this.$message.error(this.$t('reportFeeSummary.exportFailed'))
|
||||
}
|
||||
},
|
||||
handleSuccess() {
|
||||
this.getList()
|
||||
|
||||
Loading…
Reference in New Issue
Block a user