Browse Source

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

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

12
src/api/data/complaintCollection.ts

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

31
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";
@ -435,7 +435,7 @@ watch(
query.value.sourceTableList = Array.from(tableSet)
query.value.sourceTableSubOneList = Array.from(subSet)
},
{ deep: true }
{deep: true}
)
@ -500,7 +500,7 @@ const createEmptyAddForm = () => ({
leadApproval: '',
tags: [],
handleMethod: '',
thingFiles:[],
thingFiles: [],
});
const addShow = ref(false);
const addForm = ref(createEmptyAddForm());
@ -580,7 +580,7 @@ const updateForm = ref({
handleMethod: "",
involveProblemIdList: [],
tags: [],
thingFiles:[],
thingFiles: [],
})
function normalizeThingFiles(val) {
@ -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) => {
negativeSfss.value.currentRow = JSON.parse(JSON.stringify(row))
negativeVerifySfssDailog.value = true
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