Browse Source

fix:1、新增【领导接访导入】、新增【集访导入】,根据信访编号关联更新相关字段状态。2、提供领导接访、集访导入模板下载

main
pengwei 7 months ago
parent
commit
4c1854d44a
  1. 39
      src/components/data/gab-replenish.vue
  2. 19
      src/views/data/Gabxf.vue

39
src/components/data/gab-replenish.vue

@ -4,8 +4,25 @@ import {replenishExcelGab} from "@/api/data/petitionComplaint";
import feedback from "@/utils/feedback";
let fileList = ref([])
let loading =ref(false)
const dialogTitle = ref("公安部信访集访导入")
const {replenishType} = defineProps({
replenishType:{
type: String,
defalut: 1
}
})
const emit=defineEmits(['success','close'])
//
watch(()=>replenishType,()=>{
fileList.value=[]
if (replenishType == 1){
dialogTitle.value='公安部信访集访导入'
}else{
dialogTitle.value='公安部信访领导接访导入'
}
})
/**
* 上传文件
* */
@ -15,7 +32,7 @@ const handleNext = async ()=>{
formData.append("file", fileList.value[fileList.value.length - 1].raw);
loading.value = true;
try {
const res = await replenishExcelGab(formData);
await replenishExcelGab(formData);
feedback.msgSuccess("操作成功");
emit("success")
} catch (e) {
@ -29,7 +46,7 @@ const handleNext = async ()=>{
<template>
<!--公安部数据补充-->
<el-dialog title="公安部信访投诉补充导入" width="80vw" ref="dialogRef" top="8vh">
<el-dialog :title="dialogTitler" width="80vw" ref="dialogRef" top="8vh">
<div v-loading="loading">
<el-upload
drag
@ -59,15 +76,15 @@ const handleNext = async ()=>{
</div>
</template>
</el-upload>
<!-- <div class="mt-20">-->
<!-- <span>文件模板</span>-->
<!-- <a-->
<!-- class="link"-->
<!-- :href="`${BASE_PATH}/templates/公安信访投诉数据导入模板.xls`"-->
<!-- target="__blank"-->
<!-- >公安信访投诉数据导入模板.xls 下载</a-->
<!-- >-->
<!-- </div>-->
<div class="mt-20">
<span>文件模板</span>
<a
class="link"
:href="`${BASE_PATH}/templates/${dialogTitle}模板.xlsx`"
target="__blank"
>{{dialogTitle}}模板.xlsx 下载</a
>
</div>
<footer class="flex end mt-20 v-center">
<el-button type="primary"
size="large"

19
src/views/data/Gabxf.vue

@ -93,7 +93,8 @@
<el-button type="primary" @click="handleShowImport"
>数据导入</el-button
>
<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-badge
:value="distributeList.length"
class="ml-10"
@ -259,7 +260,9 @@
@close="show = false"
@update="getList"
/>
<data-gab-replenish v-model="replenishShow" @close="replenishShow = false" @success="successFun"/>
<data-gab-replenish v-model="replenishShow"
:replenishType="replenishType"
@close="replenishShow = false" @success="successFun"/>
<data-distrbute
v-model:show="distributeShow"
@ -344,7 +347,7 @@
</div>
<div class="col col-12">
<label>接访领导</label>
<span>{{ '/' }}</span>
<span>{{ activeRow.receivingLeaderName || '/' }}</span>
</div>
<div class="col col-12">
<label>化解情况</label>
@ -391,7 +394,7 @@ const query = ref({
responderKey: "name",
problemSourcesCode: ProblemSources.GABXF,
});
const replenishType =ref("1")
const list = ref([]);
const total = ref(0);
const replenishShow = ref(false)
@ -460,7 +463,12 @@ function handleShowImport() {
show.value = true
}
function handleSHowImportReplenish(){
function handleShowImportReplenish(){
replenishType.value="1"
replenishShow.value=true
}
function handleShowldjfReplenish(){
replenishType.value='2'
replenishShow.value=true
}
/**
@ -468,6 +476,7 @@ function handleSHowImportReplenish(){
* 补充的数据初重访群众集访
* */
function successFun(){
replenishShow.value=false
getList()
}

Loading…
Cancel
Save