Browse Source

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

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

10
src/api/data/complaintCollection.ts

@ -54,3 +54,13 @@ export function maileRepeatt(body) {
body 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" top="5vh"
destroy-on-close destroy-on-close
> >
<div v-loading="submitLoading" element-loading-text="提交中..."> <div v-loading="submitLoading" element-loading-text="请稍等...">
<negative-verify-sfss ref="negativeVerifySfssRef" :extraDict="dict"/> <negative-verify-sfss ref="negativeVerifySfssRef" :extraDict="dict"/>
</div> </div>
<template #footer> <template #footer>
@ -399,7 +399,7 @@ import useCatchStore from "@/stores/modules/catch";
import { import {
addComplaintCollection, addComplaintCollectionBlame, addComplaintCollection, addComplaintCollectionBlame,
delComplaintCollection, delComplaintCollection,
getComplaintCollectionPage, getComplaintCollectionPage, handlerData,
updateComplaintCollection updateComplaintCollection
} from "@/api/data/complaintCollection.ts"; } from "@/api/data/complaintCollection.ts";
import Complaint_detail from "@/components/data/complaint_detail.vue"; import Complaint_detail from "@/components/data/complaint_detail.vue";
@ -435,7 +435,7 @@ watch(
query.value.sourceTableList = Array.from(tableSet) query.value.sourceTableList = Array.from(tableSet)
query.value.sourceTableSubOneList = Array.from(subSet) query.value.sourceTableSubOneList = Array.from(subSet)
}, },
{ deep: true } {deep: true}
) )
@ -500,7 +500,7 @@ const createEmptyAddForm = () => ({
leadApproval: '', leadApproval: '',
tags: [], tags: [],
handleMethod: '', handleMethod: '',
thingFiles:[], thingFiles: [],
}); });
const addShow = ref(false); const addShow = ref(false);
const addForm = ref(createEmptyAddForm()); const addForm = ref(createEmptyAddForm());
@ -580,7 +580,7 @@ const updateForm = ref({
handleMethod: "", handleMethod: "",
involveProblemIdList: [], involveProblemIdList: [],
tags: [], tags: [],
thingFiles:[], thingFiles: [],
}) })
function normalizeThingFiles(val) { function normalizeThingFiles(val) {
@ -589,7 +589,10 @@ function normalizeThingFiles(val) {
// JSON // JSON
if (typeof val === 'string' && val.trim().startsWith('[')) { if (typeof val === 'string' && val.trim().startsWith('[')) {
try { return JSON.parse(val) } catch { /* ignore */ } try {
return JSON.parse(val)
} catch { /* ignore */
}
} }
// "path1,path2" // "path1,path2"
@ -727,7 +730,6 @@ const sourceTableAndLevel = computed(() => {
}) })
// //
const localDict = { const localDict = {
sourceTable: [ sourceTable: [
@ -796,9 +798,20 @@ const submitLoading = ref(false)
const sleep = (ms) => new Promise((resolve) => setTimeout(resolve, ms)); const sleep = (ms) => new Promise((resolve) => setTimeout(resolve, ms));
// //
const handleAction = async (row) => { const handleAction = async (row) => {
negativeSfss.value.currentRow = JSON.parse(JSON.stringify(row)) submitLoading.value = true
negativeVerifySfssDailog.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 negativeVerifySfssRef = ref();
// //
const handleSubmit = async () => { const handleSubmit = async () => {

Loading…
Cancel
Save