From 580ed5be34c58c8954006c94ff1a98847a091b9a Mon Sep 17 00:00:00 2001 From: buaixuexideshitongxue <2936013465@qq.com> Date: Wed, 25 Mar 2026 17:50:45 +0800 Subject: [PATCH] =?UTF-8?q?feat--=E5=AE=A1=E8=AE=A1=E8=B4=A8=E9=87=8F?= =?UTF-8?q?=E8=AF=84=E4=BB=B7=EF=BC=9A=E5=88=97=E8=A1=A8=E4=BE=9D=E6=AC=A1?= =?UTF-8?q?=E5=B1=95=E7=A4=BA=E2=80=9C=E5=85=A8=E9=83=A8=E9=A1=B9=E7=9B=AE?= =?UTF-8?q?=E2=80=9D=E2=80=9C=E5=BE=85=E9=A2=84=E8=AD=A6=E9=A1=B9=E7=9B=AE?= =?UTF-8?q?=E2=80=9D=E2=80=9C=E9=95=BF=E6=9C=9B=E6=B5=8F=E5=AE=81=E9=A1=B9?= =?UTF-8?q?=E7=9B=AE=E2=80=9D,=E9=BB=98=E8=AE=A4=E5=B1=95=E7=A4=BA?= =?UTF-8?q?=E5=BE=85=E9=A2=84=E8=AD=A6=E9=A1=B9=E7=9B=AE=E5=88=97=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/warning/index.vue | 120 +++++++++++++++++++----------------- 1 file changed, 64 insertions(+), 56 deletions(-) diff --git a/src/views/warning/index.vue b/src/views/warning/index.vue index 1d32e80..a1bcb6f 100644 --- a/src/views/warning/index.vue +++ b/src/views/warning/index.vue @@ -8,21 +8,38 @@ const route = useRoute() const loading =ref(false) const total =ref(10) const tableData =ref([]) +const activeTab = ref(route.query.specialArea === 'cwlnt' ? 'cwlnt' : route.query.warningState === '1' ? '1' : '0') const query = ref({ size: Number(route.query.size) || 10, current: Number(route.query.current) || 1, reportName: route.query.reportName || '', projectUnitId: route.query.projectUnitId || '', auditUnitId: route.query.auditUnitId || '', - warningState: route.query.warningState || '', + warningState: route.query.specialArea === 'cwlnt' ? (route.query.warningState || '') : (route.query.warningState === '1' ? '1' : '0'), + specialArea: route.query.specialArea || '', }) +const handleClick = (tab)=>{ + if (tab.props.name === 'cwlnt') { + query.value.specialArea = 'cwlnt' + query.value.warningState = '' + } else { + query.value.specialArea = '' + query.value.warningState = tab.props.name + } + query.value.current = 1 + getList() +} const reset =()=>{ query.value={ size:10, - current:1 + current:1, + warningState: '0', + specialArea: '' } + activeTab.value = '0' getList(); } +const warningStateDisabled = computed(() => activeTab.value !== 'cwlnt') const getList = async ()=>{ loading.value=true const res = await warningPage(query.value) @@ -75,16 +92,6 @@ watch(()=>route.query.load,(val)=>{ - - - - - - - - - - route.query.load,(val)=>{ /> + + route.query.load,(val)=>{ /> - - - - 查询 - - 重置 + + + + + + + +
+
+ + + 查询 + + 重置 +
+
+ + + + + - - + - - - - - - - - -