Browse Source
2、公安部信访:列表展示优化-具体内容宽度适量调整、操作区按钮固定。 3、公安部信访:新增【集访导入】,根据信访编号关联更新相关字段状态。 4、公安部信访:根据具体内容中的关键字提取初访重访状态。main
4 changed files with 116 additions and 5 deletions
@ -0,0 +1,85 @@
|
||||
<script setup> |
||||
import { BASE_PATH } from "@/api/request"; |
||||
import {replenishExcelGab} from "@/api/data/petitionComplaint"; |
||||
import feedback from "@/utils/feedback"; |
||||
let fileList = ref([]) |
||||
let loading =ref(false) |
||||
|
||||
const emit=defineEmits(['success','close']) |
||||
/** |
||||
* 上传文件 |
||||
* */ |
||||
const handleNext = async ()=>{ |
||||
//body上传 |
||||
const formData = new FormData(); |
||||
formData.append("file", fileList.value[fileList.value.length - 1].raw); |
||||
loading.value = true; |
||||
try { |
||||
const res = await replenishExcelGab(formData); |
||||
feedback.msgSuccess("操作成功"); |
||||
emit("success") |
||||
} catch (e) { |
||||
loading.value = false; |
||||
throw e; |
||||
} |
||||
loading.value = false; |
||||
|
||||
} |
||||
</script> |
||||
|
||||
<template> |
||||
<!--公安部数据补充--> |
||||
<el-dialog title="公安部信访投诉补充导入" width="80vw" ref="dialogRef" top="8vh"> |
||||
<div v-loading="loading"> |
||||
<el-upload |
||||
drag |
||||
:multiple="false" |
||||
:auto-upload="false" |
||||
:show-file-list="false" |
||||
v-model:file-list="fileList" |
||||
accept="application/vnd.ms-excel,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" |
||||
class="mt-20" |
||||
> |
||||
<template v-if="fileList.length === 0"> |
||||
<el-icon class="el-icon--upload"> |
||||
<upload-filled/> |
||||
</el-icon> |
||||
<div class="el-upload__text"> |
||||
<p>点击或拖拽文件到此区域上传</p> |
||||
</div> |
||||
</template> |
||||
<template v-else> |
||||
<el-icon class="el-icon--upload" |
||||
><Select |
||||
/></el-icon> |
||||
<div class="el-upload__text"> |
||||
已选择文件:{{ |
||||
fileList[fileList.length - 1].name |
||||
}} |
||||
</div> |
||||
</template> |
||||
</el-upload> |
||||
<div class="mt-20"> |
||||
<span>文件模板</span> |
||||
<a |
||||
class="link" |
||||
:href="`${BASE_PATH}/templates/公安信访投诉数据导入模板.xls`" |
||||
target="__blank" |
||||
>公安信访投诉数据导入模板.xls 下载</a |
||||
> |
||||
</div> |
||||
<footer class="flex end mt-20 v-center"> |
||||
<el-button type="primary" |
||||
size="large" |
||||
@click="handleNext" |
||||
:disabled="loading"> |
||||
确认 |
||||
</el-button> |
||||
</footer> |
||||
</div> |
||||
</el-dialog> |
||||
</template> |
||||
|
||||
<style scoped lang="scss"> |
||||
|
||||
</style> |
||||
Loading…
Reference in new issue