From 27dc13ffdb0ad8fdaf055336b80ef9b245de5ce3 Mon Sep 17 00:00:00 2001 From: wangyan Date: Thu, 8 Jan 2026 17:01:18 +0800 Subject: [PATCH] =?UTF-8?q?refactor(user-config):=20=E7=BB=9F=E4=B8=80?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E8=8E=B7=E5=8F=96=E6=96=B9=E6=B3=95=E8=B0=83?= =?UTF-8?q?=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 移除 fnGetData 函数中的 searchForm 参数传递 - 修正分页重置后的数据刷新逻辑 - 简化多个用户配置页面的数据获取方式 - 保持表格选择状态清理功能的一致性 --- src/views/confined_space/user_configuration/index.vue | 2 +- src/views/groundbreaking/user_configuration/index.vue | 2 +- src/views/high/user_configuration/index.vue | 2 +- src/views/hoisting/user_configuration/index.vue | 2 +- src/views/hot_work/user_configuration/index.vue | 2 +- src/views/keyprojects/hidden/index.vue | 2 +- src/views/keyprojects/hidden/record_list.vue | 2 +- src/views/keyprojects/inspection/index.vue | 2 +- src/views/keyprojects/inspection/record_list.vue | 2 +- src/views/keyprojects/outsourced/index.vue | 2 +- src/views/keyprojects/personnelmanagement/index.vue | 2 +- src/views/keyprojects/punish/index.vue | 2 +- src/views/keyprojects/punish/record_list.vue | 2 +- src/views/keyprojects/units/index.vue | 2 +- src/views/open_circuit/user_configuration/index.vue | 2 +- .../temporary_electricity_usage/user_configuration/index.vue | 2 +- 16 files changed, 16 insertions(+), 16 deletions(-) diff --git a/src/views/confined_space/user_configuration/index.vue b/src/views/confined_space/user_configuration/index.vue index 686adfb..2f60c7f 100644 --- a/src/views/confined_space/user_configuration/index.vue +++ b/src/views/confined_space/user_configuration/index.vue @@ -251,7 +251,7 @@ const fnGoEdit = async (id) => { }; const fnResetPaginationTransfer = () => { - fnGetData(searchForm); + fnGetData(); tableRef.value.clearSelection(); }; diff --git a/src/views/groundbreaking/user_configuration/index.vue b/src/views/groundbreaking/user_configuration/index.vue index 1489336..363be8e 100644 --- a/src/views/groundbreaking/user_configuration/index.vue +++ b/src/views/groundbreaking/user_configuration/index.vue @@ -198,7 +198,7 @@ const fnGoEdit = async (id) => { }; const fnResetPaginationTransfer = () => { - fnGetData(searchForm); + fnGetData(); tableRef.value.clearSelection(); }; diff --git a/src/views/high/user_configuration/index.vue b/src/views/high/user_configuration/index.vue index e041829..388a5e9 100644 --- a/src/views/high/user_configuration/index.vue +++ b/src/views/high/user_configuration/index.vue @@ -246,7 +246,7 @@ const fnGoEdit = async (id) => { }; const fnResetPaginationTransfer = () => { - fnGetData(searchForm); + fnGetData(); tableRef.value.clearSelection(); }; diff --git a/src/views/hoisting/user_configuration/index.vue b/src/views/hoisting/user_configuration/index.vue index d3bdda2..d1a1410 100644 --- a/src/views/hoisting/user_configuration/index.vue +++ b/src/views/hoisting/user_configuration/index.vue @@ -245,7 +245,7 @@ const fnGoEdit = async (id) => { }; const fnResetPaginationTransfer = () => { - fnGetData(searchForm); + fnGetData(); tableRef.value.clearSelection(); }; diff --git a/src/views/hot_work/user_configuration/index.vue b/src/views/hot_work/user_configuration/index.vue index eb42dd6..c0a5ed7 100644 --- a/src/views/hot_work/user_configuration/index.vue +++ b/src/views/hot_work/user_configuration/index.vue @@ -239,7 +239,7 @@ const fnGoEdit = async (id) => { }; const fnResetPaginationTransfer = () => { - fnGetData(searchForm); + fnGetData(); tableRef.value.clearSelection(); }; diff --git a/src/views/keyprojects/hidden/index.vue b/src/views/keyprojects/hidden/index.vue index 02ac592..52743df 100644 --- a/src/views/keyprojects/hidden/index.vue +++ b/src/views/keyprojects/hidden/index.vue @@ -86,7 +86,7 @@ const { list, pagination, searchForm, fnGetData, fnResetPagination, tableRef } = useListData(getOutsourcedList); const fnResetPaginationTransfer = () => { - fnGetData(searchForm); + fnGetData(); }; diff --git a/src/views/keyprojects/hidden/record_list.vue b/src/views/keyprojects/hidden/record_list.vue index 2adcbf2..13638f9 100644 --- a/src/views/keyprojects/hidden/record_list.vue +++ b/src/views/keyprojects/hidden/record_list.vue @@ -122,7 +122,7 @@ const { list, pagination, searchForm, fnGetData, fnResetPagination, tableRef } = }); const fnResetPaginationTransfer = () => { - fnGetData(searchForm); + fnGetData(); }; diff --git a/src/views/keyprojects/inspection/index.vue b/src/views/keyprojects/inspection/index.vue index af58571..c5537a3 100644 --- a/src/views/keyprojects/inspection/index.vue +++ b/src/views/keyprojects/inspection/index.vue @@ -87,7 +87,7 @@ const { list, pagination, searchForm, fnGetData, fnResetPagination, tableRef } = useListData(getOutsourcedList); const fnResetPaginationTransfer = () => { - fnGetData(searchForm); + fnGetData(); }; diff --git a/src/views/keyprojects/inspection/record_list.vue b/src/views/keyprojects/inspection/record_list.vue index aa80a5d..e1c36c7 100644 --- a/src/views/keyprojects/inspection/record_list.vue +++ b/src/views/keyprojects/inspection/record_list.vue @@ -99,7 +99,7 @@ const { list, pagination, searchForm, fnGetData, fnResetPagination, tableRef } = }); const fnResetPaginationTransfer = () => { - fnGetData(searchForm); + fnGetData(); }; diff --git a/src/views/keyprojects/outsourced/index.vue b/src/views/keyprojects/outsourced/index.vue index d5dde40..3fe15de 100644 --- a/src/views/keyprojects/outsourced/index.vue +++ b/src/views/keyprojects/outsourced/index.vue @@ -205,7 +205,7 @@ const fnGetUnitsList = async () => { fnGetUnitsList(); const fnResetPaginationTransfer = () => { - fnGetData(searchForm); + fnGetData(); }; const fnHandleDelete = async (OUTSOURCED_ID) => { diff --git a/src/views/keyprojects/personnelmanagement/index.vue b/src/views/keyprojects/personnelmanagement/index.vue index abd98a6..fdee0b4 100644 --- a/src/views/keyprojects/personnelmanagement/index.vue +++ b/src/views/keyprojects/personnelmanagement/index.vue @@ -196,7 +196,7 @@ const fnGoEdit = async (id) => { }; const fnResetPaginationTransfer = () => { - fnGetData(searchForm); + fnGetData(); tableRef.value.clearSelection(); }; diff --git a/src/views/keyprojects/punish/index.vue b/src/views/keyprojects/punish/index.vue index d66d1b4..8f8c35b 100644 --- a/src/views/keyprojects/punish/index.vue +++ b/src/views/keyprojects/punish/index.vue @@ -87,7 +87,7 @@ const { list, pagination, searchForm, fnGetData, fnResetPagination, tableRef } = useListData(getOutsourcedList); const fnResetPaginationTransfer = () => { - fnGetData(searchForm); + fnGetData(); }; diff --git a/src/views/keyprojects/punish/record_list.vue b/src/views/keyprojects/punish/record_list.vue index 3fa12f1..5458106 100644 --- a/src/views/keyprojects/punish/record_list.vue +++ b/src/views/keyprojects/punish/record_list.vue @@ -99,7 +99,7 @@ const { list, pagination, searchForm, fnGetData, fnResetPagination, tableRef } = }); const fnResetPaginationTransfer = () => { - fnGetData(searchForm); + fnGetData(); }; diff --git a/src/views/keyprojects/units/index.vue b/src/views/keyprojects/units/index.vue index 3d8d360..de883a7 100644 --- a/src/views/keyprojects/units/index.vue +++ b/src/views/keyprojects/units/index.vue @@ -128,7 +128,7 @@ const { list, pagination, searchForm, fnGetData, fnResetPagination, tableRef } = useListData(getUnitsList); const fnResetPaginationTransfer = () => { - fnGetData(searchForm); + fnGetData(); }; const isTrueDelete = async (UNITS_ID) => { diff --git a/src/views/open_circuit/user_configuration/index.vue b/src/views/open_circuit/user_configuration/index.vue index 95b36e8..7fc3380 100644 --- a/src/views/open_circuit/user_configuration/index.vue +++ b/src/views/open_circuit/user_configuration/index.vue @@ -196,7 +196,7 @@ const fnGoEdit = async (id) => { }; const fnResetPaginationTransfer = () => { - fnGetData(searchForm); + fnGetData(); tableRef.value.clearSelection(); }; diff --git a/src/views/temporary_electricity_usage/user_configuration/index.vue b/src/views/temporary_electricity_usage/user_configuration/index.vue index 8bd5f7f..39b6d0a 100644 --- a/src/views/temporary_electricity_usage/user_configuration/index.vue +++ b/src/views/temporary_electricity_usage/user_configuration/index.vue @@ -196,7 +196,7 @@ const fnGoEdit = async (id) => { }; const fnResetPaginationTransfer = () => { - fnGetData(searchForm); + fnGetData(); tableRef.value.clearSelection(); };