From d17345aa81d463adef9a24bbfe1f034b6020e0ba Mon Sep 17 00:00:00 2001 From: buaixuexideshitongxue <2936013465@qq.com> Date: Wed, 7 Jan 2026 10:05:19 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B6=89=E8=AE=BF=E6=B6=89=E8=AF=89--=E6=9F=A5?= =?UTF-8?q?=E8=AF=A2=E6=9D=A1=E4=BB=B6=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/data/ComplaintCollection.vue | 53 ++++++++++++++++++++------ 1 file changed, 41 insertions(+), 12 deletions(-) diff --git a/src/views/data/ComplaintCollection.vue b/src/views/data/ComplaintCollection.vue index df560c7..2840443 100644 --- a/src/views/data/ComplaintCollection.vue +++ b/src/views/data/ComplaintCollection.vue @@ -5,18 +5,16 @@ - - - - - - + filterable + show-all-levels + placeholder="请选择来源(一级/二级)" + style="width: 100%" + /> @@ -412,10 +410,35 @@ const show = ref(false); // region 列表 + + + const query = ref({ size: 10, current: 1, + sourcePath: [], + sourceTableList: [], + sourceTableSubOneList: [], }); +watch( + () => query.value.sourcePath, + (paths = []) => { + const tableSet = new Set() + const subSet = new Set() + + paths.forEach(path => { + if (!Array.isArray(path)) return + if (path[0]) tableSet.add(path[0]) + if (path[1]) subSet.add(path[1]) + }) + + query.value.sourceTableList = Array.from(tableSet) + query.value.sourceTableSubOneList = Array.from(subSet) + }, + { deep: true } +) + + const list = ref([]); const total = ref(0); const loading = ref(false) @@ -423,7 +446,13 @@ const getList = async () => { console.log("===============xxx==================") console.log(dict.value.sfssSourceTable) loading.value = true; - let res = await getComplaintCollectionPage(query.value); + + const params = { + ...query.value, + } + delete params.sourcePath + + let res = await getComplaintCollectionPage(params); console.log(res.complaintCollectionPageDTOS); list.value = res.complaintCollectionPageDTOS; total.value = res.total;