From ae671e401db4b158b6bd4292fb99fab58e40844c Mon Sep 17 00:00:00 2001
From: wupengfei <834520024@qq.com>
Date: 星期五, 11 四月 2025 09:14:04 +0800
Subject: [PATCH] feat: 接口
---
src/components/commonView/DeclareEnterpriseTableView.vue | 66 +++++---------------------------
1 files changed, 11 insertions(+), 55 deletions(-)
diff --git a/src/components/commonView/DeclareEnterpriseTableView.vue b/src/components/commonView/DeclareEnterpriseTableView.vue
index d067305..da0b2cc 100644
--- a/src/components/commonView/DeclareEnterpriseTableView.vue
+++ b/src/components/commonView/DeclareEnterpriseTableView.vue
@@ -22,7 +22,6 @@
}"
>
</ProTableV2>
- <MateriaDetailDialog v-bind="dialogProps"></MateriaDetailDialog>
</template>
<script setup lang="ts">
@@ -31,28 +30,30 @@
QueryFilterItem,
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;
+ };
+ openDialog?: (row) => void;
+};
const props = withDefaults(defineProps<Props>(), {});
const column = defineColumns([
{
id: '1',
- enCode: 'accDateTime',
+ enCode: 'userName',
name: '甯愬彿',
},
{
@@ -94,55 +95,10 @@
name: '璇︽儏',
},
emits: {
- onClick: (role) => openDialog(role),
+ onClick: (role) => props.openDialog(role),
},
},
]);
-
-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[],
- },
-});
-
-function openDialog(row?: API.ParkBountyApplyDetailInfo) {
- handleEdit({
- list: [],
- });
-}
-
-defineExpose({
- getList,
-});
</script>
<style lang="scss" scoped>
--
Gitblit v1.9.1