|
|
|
|
@ -325,9 +325,15 @@
|
|
|
|
|
<span v-else>-</span> |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column label="操作" width="120" fixed="right"> |
|
|
|
|
<el-table-column label="操作" width="190" fixed="right"> |
|
|
|
|
<template #default="{ row }"> |
|
|
|
|
<el-button type="primary" link @click="handleActionDetail(row)">办理详情</el-button> |
|
|
|
|
<el-button |
|
|
|
|
type="primary" |
|
|
|
|
link |
|
|
|
|
:loading="refreshingId === row.id" |
|
|
|
|
@click="handleRefresh(row)" |
|
|
|
|
>再次更新</el-button> |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
</el-table> |
|
|
|
|
@ -368,8 +374,10 @@ import {timeFormat} from "@/utils/util";
|
|
|
|
|
import useCatchStore from "@/stores/modules/catch"; |
|
|
|
|
import { |
|
|
|
|
exportData, |
|
|
|
|
getComplaintCollectionPage |
|
|
|
|
getComplaintCollectionPage, |
|
|
|
|
refreshMayorMailbox |
|
|
|
|
} from "@/api/data/complaintCollection.ts"; |
|
|
|
|
import feedback from "@/utils/feedback"; |
|
|
|
|
|
|
|
|
|
const catchStore = useCatchStore(); |
|
|
|
|
const show = ref(false); |
|
|
|
|
@ -391,6 +399,7 @@ const query = ref({
|
|
|
|
|
const list = ref([]); |
|
|
|
|
const total = ref(0); |
|
|
|
|
const loading = ref(false) |
|
|
|
|
const refreshingId = ref('') |
|
|
|
|
const getList = async () => { |
|
|
|
|
loading.value = true; |
|
|
|
|
|
|
|
|
|
@ -515,6 +524,18 @@ function handleActionDetail(row) {
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
const handleRefresh = async (row) => { |
|
|
|
|
await feedback.confirm(`确定从局长信箱重新同步信件“${row.originId}”的最新办理结果吗?`) |
|
|
|
|
refreshingId.value = row.id |
|
|
|
|
try { |
|
|
|
|
const message = await refreshMayorMailbox({id: row.id}) |
|
|
|
|
feedback.msgSuccess(message || '再次更新成功') |
|
|
|
|
await getList() |
|
|
|
|
} finally { |
|
|
|
|
refreshingId.value = '' |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
const handleExport = async () => { |
|
|
|
|
const body = { |
|
|
|
|
...query.value, |
|
|
|
|
|