Browse Source

fix:1、我操公安部、信访投诉、国家信访数据导出功能

main
pengwei 7 months ago
parent
commit
116ffbe466
  1. 2
      src/views/books/Gjxf.vue
  2. 10
      src/views/data/Gabxf.vue
  3. 9
      src/views/data/Gjxf.vue
  4. 15
      src/views/data/PetitionComplaint.vue

2
src/views/books/Gjxf.vue

@ -318,4 +318,4 @@ function handleExport() {
} }
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
</style> </style>

10
src/views/data/Gabxf.vue

@ -95,6 +95,7 @@
> >
<el-button type="primary" @click="handleShowImportReplenish">集访导入</el-button> <el-button type="primary" @click="handleShowImportReplenish">集访导入</el-button>
<el-button type="primary" @click="handleShowldjfReplenish">领导接访导入</el-button> <el-button type="primary" @click="handleShowldjfReplenish">领导接访导入</el-button>
<el-button type="primary" @click="handleExport">数据导出</el-button>
<el-badge <el-badge
:value="distributeList.length" :value="distributeList.length"
class="ml-10" class="ml-10"
@ -260,6 +261,7 @@
@close="show = false" @close="show = false"
@update="getList" @update="getList"
/> />
<!-- 集访领导接访数据补充-->
<data-gab-replenish v-model="replenishShow" <data-gab-replenish v-model="replenishShow"
:replenishType="replenishType" :replenishType="replenishType"
@close="replenishShow = false" @success="successFun"/> @close="replenishShow = false" @success="successFun"/>
@ -378,6 +380,7 @@ import feedback from "@/utils/feedback";
import { getDictLable,getYearTime } from "@/utils/util"; import { getDictLable,getYearTime } from "@/utils/util";
import useCatchStore from "@/stores/modules/catch"; import useCatchStore from "@/stores/modules/catch";
import {BASE_PATH} from "@/api/request";
const route = useRoute() const route = useRoute()
const catchStore = useCatchStore(); const catchStore = useCatchStore();
@ -480,7 +483,12 @@ function successFun(){
replenishShow.value=false replenishShow.value=false
getList() getList()
} }
/**
* 导出数据
* */
function handleExport() {
window.open(`${BASE_PATH}/data/petitionComplaint/export/xf/gabxf?` + new URLSearchParams(query.value).toString())
}
const detailShow = ref(false); const detailShow = ref(false);

9
src/views/data/Gjxf.vue

@ -90,6 +90,7 @@
<el-button type="primary" @click="show = true" <el-button type="primary" @click="show = true"
>数据导入</el-button >数据导入</el-button
> >
<el-button type="primary" @click="handleExport">数据导出</el-button>
<el-badge <el-badge
:value="distributeList.length" :value="distributeList.length"
class="ml-10" class="ml-10"
@ -360,6 +361,7 @@ import { ProblemSources, DistributionState } from "@/enums/dictEnums";
import feedback from "@/utils/feedback"; import feedback from "@/utils/feedback";
import { getDictLable ,getYearTime} from "@/utils/util"; import { getDictLable ,getYearTime} from "@/utils/util";
import useCatchStore from "@/stores/modules/catch"; import useCatchStore from "@/stores/modules/catch";
import {BASE_PATH} from "@/api/request";
const catchStore = useCatchStore(); const catchStore = useCatchStore();
const dict = catchStore.getDicts(["distributionState", "initialPetition"]); const dict = catchStore.getDicts(["distributionState", "initialPetition"]);
@ -383,7 +385,12 @@ function getList() {
}); });
} }
/**
* 导出数据
* */
function handleExport() {
window.open(`${BASE_PATH}/data/petitionComplaint/export/xf/gjxf?` + new URLSearchParams(query.value).toString())
}
// //
watch(()=>route.query.toString(), watch(()=>route.query.toString(),
()=>{ ()=>{

15
src/views/data/PetitionComplaint.vue

@ -98,7 +98,10 @@
</el-col> </el-col>
</el-row> </el-row>
</el-form> </el-form>
<div class="mb-25 flex end"> <div class="mb-25 flex between">
<div>
<el-button type="primary" @click="handleExport">数据导出</el-button>
</div>
<div> <div>
<el-button type="primary" @click="getList"> <el-button type="primary" @click="getList">
<template #icon> <template #icon>
@ -333,6 +336,7 @@ import feedback from "@/utils/feedback";
import { getDictLable } from "@/utils/util"; import { getDictLable } from "@/utils/util";
import useCatchStore from "@/stores/modules/catch"; import useCatchStore from "@/stores/modules/catch";
import {BASE_PATH} from "@/api/request";
const catchStore = useCatchStore(); const catchStore = useCatchStore();
const dict = catchStore.getDicts([ const dict = catchStore.getDicts([
@ -365,7 +369,12 @@ function reset() {
} }
getList(); getList();
/**
* 导出数据
* */
function handleExport() {
window.open(`${BASE_PATH}/data/petitionComplaint/export/xf/xfts?` + new URLSearchParams(query.value).toString())
}
async function handleDel(row) { async function handleDel(row) {
await feedback.confirm("确定要删除该数据?"); await feedback.confirm("确定要删除该数据?");
await delPetitionComplaint(row.originId); await delPetitionComplaint(row.originId);
@ -390,4 +399,4 @@ function handleDetail(row) {
} }
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
</style> </style>

Loading…
Cancel
Save