From 8fb20fc31b4be097e5408b9ecfeb5002ebe042f3 Mon Sep 17 00:00:00 2001
From: wupengfei <834520024@qq.com>
Date: 星期四, 10 四月 2025 15:07:47 +0800
Subject: [PATCH] feat: 接口
---
src/components/commonView/DeclareEnterpriseTableView.vue | 47 +++++++++--------------------------------------
1 files changed, 9 insertions(+), 38 deletions(-)
diff --git a/src/components/commonView/DeclareEnterpriseTableView.vue b/src/components/commonView/DeclareEnterpriseTableView.vue
index d067305..d952ab8 100644
--- a/src/components/commonView/DeclareEnterpriseTableView.vue
+++ b/src/components/commonView/DeclareEnterpriseTableView.vue
@@ -32,27 +32,31 @@
ProTableV2,
SearchInput,
useFormDialog,
- useTable,
defineOperationBtns,
defineColumns,
} from '@bole-core/components';
import MateriaDetailDialog from './MateriaDetailDialog.vue';
import { FourStreamsMaterialFileTableItem } from './types';
-import { OrderInputType } from '@bole-core/core';
-import * as parkBountyApplyServices from '@/services/api/ParkBountyApply';
defineOptions({
name: 'DeclareEnterpriseTableView',
});
-type Props = {};
+type Props = {
+ getList: (pageIndex?: number) => Promise<void>;
+ reset: () => void;
+ proTableProps: any;
+ extraParamState: {
+ searchKeyWord: string;
+ };
+};
const props = withDefaults(defineProps<Props>(), {});
const column = defineColumns([
{
id: '1',
- enCode: 'accDateTime',
+ enCode: 'userName',
name: '甯愬彿',
},
{
@@ -99,35 +103,6 @@
},
]);
-const {
- getDataSource: getList,
- proTableProps,
- paginationState,
- extraParamState,
- reset,
-} = useTable(
- async ({ pageIndex, pageSize }, extraParamState) => {
- try {
- let params: API.GetParkBountyApplyInfoInput = {
- pageModel: {
- rows: pageSize,
- page: pageIndex,
- orderInput: extraParamState.orderInput,
- },
- searchKeyWord: extraParamState.searchKeyWord,
- };
- let res = await parkBountyApplyServices.getParkBountyApplyDetailList(params);
- return res;
- } catch (error) {}
- },
- {
- defaultExtraParams: {
- orderInput: [{ property: 'creationTime', order: OrderInputType.Desc }],
- searchKeyWord: '',
- },
- }
-);
-
const { dialogProps, handleEdit, editForm } = useFormDialog({
defaultFormParams: {
list: [] as FourStreamsMaterialFileTableItem[],
@@ -139,10 +114,6 @@
list: [],
});
}
-
-defineExpose({
- getList,
-});
</script>
<style lang="scss" scoped>
--
Gitblit v1.9.1