Browse Source

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

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

19
src/views/data/Gabxf.vue

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

Loading…
Cancel
Save