Browse Source

涉访涉诉--获取办理数据

master
buaixuexideshitongxue 4 weeks ago
parent
commit
d48ee08f09
  1. 10
      src/api/data/complaintCollection.ts
  2. 21
      src/views/data/ComplaintCollection.vue

10
src/api/data/complaintCollection.ts

@ -54,3 +54,13 @@ export function maileRepeatt(body) {
body
});
}
/**
*
*/
export function handlerData(body) {
return request.post({
url: `/data/complaintCollection/handlerData`,
body
});
}

21
src/views/data/ComplaintCollection.vue

@ -369,7 +369,7 @@
top="5vh"
destroy-on-close
>
<div v-loading="submitLoading" element-loading-text="提交中...">
<div v-loading="submitLoading" element-loading-text="请稍等...">
<negative-verify-sfss ref="negativeVerifySfssRef" :extraDict="dict"/>
</div>
<template #footer>
@ -399,7 +399,7 @@ import useCatchStore from "@/stores/modules/catch";
import {
addComplaintCollection, addComplaintCollectionBlame,
delComplaintCollection,
getComplaintCollectionPage,
getComplaintCollectionPage, handlerData,
updateComplaintCollection
} from "@/api/data/complaintCollection.ts";
import Complaint_detail from "@/components/data/complaint_detail.vue";
@ -589,7 +589,10 @@ function normalizeThingFiles(val) {
// JSON
if (typeof val === 'string' && val.trim().startsWith('[')) {
try { return JSON.parse(val) } catch { /* ignore */ }
try {
return JSON.parse(val)
} catch { /* ignore */
}
}
// "path1,path2"
@ -727,7 +730,6 @@ const sourceTableAndLevel = computed(() => {
})
//
const localDict = {
sourceTable: [
@ -796,9 +798,20 @@ const submitLoading = ref(false)
const sleep = (ms) => new Promise((resolve) => setTimeout(resolve, ms));
//
const handleAction = async (row) => {
submitLoading.value = true
try {
//
negativeSfss.value.currentRow = JSON.parse(JSON.stringify(row))
const res = await handlerData({ id: row.id })
Object.assign(negativeSfss.value, res?.data ?? res)
negativeVerifySfssDailog.value = true
} catch (e) {
console.error("加载办理数据失败", e)
} finally {
submitLoading.value = false
}
}
const negativeVerifySfssRef = ref();
//
const handleSubmit = async () => {

Loading…
Cancel
Save