|
|
|
|
@ -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) => { |
|
|
|
|
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 () => { |
|
|
|
|
|