|
@@ -1,4 +1,4 @@
|
|
-import { ActionType, ModalForm, PageContainer, ProFormCheckbox, ProFormSelect, ProFormText, ProTable } from "@ant-design/pro-components"
|
|
|
|
|
|
+import { ActionType, ModalForm, PageContainer, ProFormCheckbox, ProFormSelect,} from "@ant-design/pro-components"
|
|
import { Button, Drawer, message, Table } from "antd"
|
|
import { Button, Drawer, message, Table } from "antd"
|
|
import { columns, childrenColumns, columnsOpen } from "./tableConfig"
|
|
import { columns, childrenColumns, columnsOpen } from "./tableConfig"
|
|
import { useAjax } from "@/Hook/useAjax"
|
|
import { useAjax } from "@/Hook/useAjax"
|
|
@@ -6,6 +6,7 @@ import { useMemo, useRef, useState } from "react"
|
|
import { useModel } from "@umijs/max"
|
|
import { useModel } from "@umijs/max"
|
|
import { accountConfig, accountConfigEnabled, accountConfigList, delAccountConfig, manageList } from "@/services/distributor/appManage"
|
|
import { accountConfig, accountConfigEnabled, accountConfigList, delAccountConfig, manageList } from "@/services/distributor/appManage"
|
|
import { distributorAccountAll } from "@/services/distributor/account"
|
|
import { distributorAccountAll } from "@/services/distributor/account"
|
|
|
|
+import MyProTable from "@/components/MyProTable"
|
|
|
|
|
|
const Page: React.FC = () => {
|
|
const Page: React.FC = () => {
|
|
let { state, getEnum } = useModel("global")
|
|
let { state, getEnum } = useModel("global")
|
|
@@ -45,7 +46,7 @@ const Page: React.FC = () => {
|
|
onChange: (e) => setKey(e),
|
|
onChange: (e) => setKey(e),
|
|
}}
|
|
}}
|
|
>
|
|
>
|
|
- <ProTable<any, any>
|
|
|
|
|
|
+ <MyProTable<any, any>
|
|
headerTitle={"抖音小程序列表"}
|
|
headerTitle={"抖音小程序列表"}
|
|
rowKey={(r) => r.id}
|
|
rowKey={(r) => r.id}
|
|
search={{
|
|
search={{
|
|
@@ -61,20 +62,6 @@ const Page: React.FC = () => {
|
|
}
|
|
}
|
|
}}
|
|
}}
|
|
columns={columns({ appType: key, setOpenTalbe })}
|
|
columns={columns({ appType: key, setOpenTalbe })}
|
|
- // expandable={{
|
|
|
|
- // rowExpandable: (record) => record?.appCarrierList?.length > 0,
|
|
|
|
- // expandRowByClick: true,
|
|
|
|
- // expandedRowRender: (record) => {
|
|
|
|
- // return <Table
|
|
|
|
- // columns={childrenColumns}
|
|
|
|
- // dataSource={record.appCarrierList}
|
|
|
|
- // rowKey={(r) => r.id}
|
|
|
|
- // pagination={false}
|
|
|
|
- // size='small'
|
|
|
|
- // bordered
|
|
|
|
- // />
|
|
|
|
- // },
|
|
|
|
- // }}
|
|
|
|
/>
|
|
/>
|
|
<Drawer
|
|
<Drawer
|
|
open={!!openTable}
|
|
open={!!openTable}
|
|
@@ -92,7 +79,7 @@ const Page: React.FC = () => {
|
|
})
|
|
})
|
|
}}>批量新增账号</Button>}
|
|
}}>批量新增账号</Button>}
|
|
>
|
|
>
|
|
- <ProTable
|
|
|
|
|
|
+ <MyProTable
|
|
actionRef={actionRef}
|
|
actionRef={actionRef}
|
|
search={false}
|
|
search={false}
|
|
toolBarRender={false}
|
|
toolBarRender={false}
|