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 | 63 ++++++++----------------------- 1 files changed, 17 insertions(+), 46 deletions(-) diff --git a/src/components/commonView/DeclareEnterpriseTableView.vue b/src/components/commonView/DeclareEnterpriseTableView.vue index 0a675de..d952ab8 100644 --- a/src/components/commonView/DeclareEnterpriseTableView.vue +++ b/src/components/commonView/DeclareEnterpriseTableView.vue @@ -3,7 +3,7 @@ <template #query> <QueryFilterItem> <SearchInput - v-model="extraParamState.title" + v-model="extraParamState.searchKeyWord" style="width: 250px" placeholder="浼佷笟鍚�/淇$敤浠g爜" @on-click-search="getList" @@ -32,57 +32,61 @@ 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 informationServices from '@/services/api/Information'; 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: '甯愬彿', }, { id: '2', - enCode: 'income', + enCode: 'enterpriseName', name: '浼佷笟鍚嶇О', }, { id: '3', - enCode: 'outcome', + enCode: 'societyCreditCode', name: '淇$敤浠g爜', }, { id: '4', - enCode: 'acctBalance', + enCode: 'contactPhone', name: '鐢佃瘽', }, { id: '5', - enCode: 'counterpartyAcctNoAndName', + enCode: 'authType', name: '浼佷笟绫诲瀷', }, { id: '6', - enCode: 'purpose', + enCode: 'licenseUrl', name: '钀ヤ笟鎵х収', }, { id: '7', - enCode: 'purpose', + enCode: 'bankAccountInfo', name: '鍩烘湰鎴蜂俊鎭�', }, ]); @@ -99,50 +103,17 @@ }, ]); -const { - getDataSource: getList, - proTableProps, - paginationState, - extraParamState, - reset, -} = useTable( - async ({ pageIndex, pageSize }, extraParamState) => { - try { - let params: API.GetInformationForManageInput = { - pageModel: { - rows: pageSize, - page: pageIndex, - orderInput: extraParamState.orderInput, - }, - title: extraParamState.title, - }; - let res = await informationServices.getInformationForManage(params); - return res; - } catch (error) {} - }, - { - defaultExtraParams: { - orderInput: [{ property: 'creationTime', order: OrderInputType.Desc }], - title: '', - }, - } -); - const { dialogProps, handleEdit, editForm } = useFormDialog({ defaultFormParams: { list: [] as FourStreamsMaterialFileTableItem[], }, }); -function openDialog(row?: API.IncentivePaymentsManageListOutput) { +function openDialog(row?: API.ParkBountyApplyDetailInfo) { handleEdit({ list: [], }); } - -defineExpose({ - getList, -}); </script> <style lang="scss" scoped> -- Gitblit v1.9.1