mirror of
https://gitee.com/java110/MicroCommunityWeb.git
synced 2026-06-11 06:07:24 +08:00
v1.9 优化车辆费用导入模版没法导出的bug
This commit is contained in:
parent
d5f60d46cc
commit
a2e5ee0148
@ -39,7 +39,9 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { listParkingAreas, listFeeConfigs, exportCarFeeExcel } from '@/api/fee/carCreateFeeApi'
|
import { listParkingAreas, listFeeConfigs } from '@/api/fee/carCreateFeeApi'
|
||||||
|
import { exportData } from '@/api/fee/exportFeeImportExcelApi'
|
||||||
|
import { getCommunityId } from '@/api/community/communityApi'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'ExportCarFeeImportExcel',
|
name: 'ExportCarFeeImportExcel',
|
||||||
@ -112,16 +114,21 @@ export default {
|
|||||||
},
|
},
|
||||||
async handleExport() {
|
async handleExport() {
|
||||||
try {
|
try {
|
||||||
const paIds = this.selectedParkingAreas.join(',')
|
const params = {
|
||||||
const configIds = this.selectedConfigs.join(',')
|
paIds: this.selectedParkingAreas.join(','),
|
||||||
|
configIds: this.selectedConfigs.join(','),
|
||||||
await exportCarFeeExcel({
|
communityId: getCommunityId(),
|
||||||
paIds,
|
type: '2002',
|
||||||
configIds
|
pagePath: 'exportCreateFeeTemplate'
|
||||||
|
}
|
||||||
|
exportData(params).then(response => {
|
||||||
|
this.$message.success(response.msg)
|
||||||
|
if (response.code === 0) {
|
||||||
|
this.visible = false
|
||||||
|
this.$router.push('/pages/property/downloadTempFile?tab=下载中心')
|
||||||
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
this.$message.success(this.$t('common.operationSuccess'))
|
|
||||||
this.visible = false
|
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
this.$message.error(this.$t('common.exportError'))
|
this.$message.error(this.$t('common.exportError'))
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user