瀏覽代碼

deploy

master
Soleilw 6 月之前
父節點
當前提交
1e307c1c7c

+ 1
- 1
dist/index.html 查看文件

@@ -8,6 +8,6 @@
</head>
<body>
<div id="root"></div>
<script src="/umi.4b70ae83.js"></script>
<script src="/umi.26ca4902.js"></script>
</body>
</html>

+ 1
- 0
dist/p__Activity__List__index.1fb17c2f.async.js
文件差異過大導致無法顯示
查看文件


+ 0
- 1
dist/p__Activity__List__index.2bd97a52.async.js
文件差異過大導致無法顯示
查看文件


dist/umi.26ca4902.js
文件差異過大導致無法顯示
查看文件


+ 74
- 60
src/components/Render/Main/Activity/List/table/index.tsx 查看文件

@@ -4,8 +4,8 @@ import type { ActionType, ProFormInstance } from '@ant-design/pro-components';
import {
ProTable, TableDropdown
} from '@ant-design/pro-components';
import { Button, Image, ConfigProvider, message } from 'antd';
import { GetActivityaddressList,PostActivityExportUsers} from '@/apis/api';
import { Button, Image, ConfigProvider, message, Popconfirm } from 'antd';
import { GetActivityaddressList, PostActivityExportUsers, PostActivityaddressDel } from '@/apis/api';
import { Imageprefix } from '@/constants';

const PagesMainActivityListTable: React.FC = ({ dispatch, openModel, getId }: any) => {
@@ -40,70 +40,84 @@ const PagesMainActivityListTable: React.FC = ({ dispatch, openModel, getId }: an
bordered={true}
actionRef={actionRef}
dataSource={list}
columns={[ {
columns={[{
title: 'ID',
dataIndex: 'id',
width: 100,
search: false,
},
{
title: '地址',
dataIndex: 'address',
width: 240,
search: false
},
{
title: '地址分类',
dataIndex: 'cate',
valueType: 'select',
width: 100,
valueEnum: {
'菊城人才': {
text: '菊城人才',
},
'移动': {
text: '移动',
},
'村镇银行': {
text: '村镇银行',
},
'电信': {
text: '电信',
},
'联通': {
text: '联通',
},
{
title: '地址',
dataIndex: 'address',
width: 240,
search: false
},
{
title: '地址分类',
dataIndex: 'cate',
valueType: 'select',
width: 100,
valueEnum: {
'菊城人才': {
text: '菊城人才',
},
'移动': {
text: '移动',
},
'村镇银行': {
text: '村镇银行',
},
'电信': {
text: '电信',
},
'联通': {
text: '联通',
},
},
{
title: '审核账号',
dataIndex: 'audit_mobile',
ellipsis: true,
width: 120,
search: false
},
{
title: '审核人',
dataIndex: 'contact_person',
width: 120,
search: false
},
{
title: '操作',
width: 100,
key: 'option',
valueType: 'option',
fixed: 'right',
render: (_, record, action) => [
<Button key='1' type='link' onClick={() => {
setId(record.id)
dispatch({ type: 'openModel/getOpenModal', payload: true })
}}>编辑</Button>,
<Button key='2' type='link' onClick={() => {

}}>删除</Button>
],
},
},
{
title: '审核账号',
dataIndex: 'audit_mobile',
ellipsis: true,
width: 120,
search: false
},
{
title: '审核人',
dataIndex: 'contact_person',
width: 120,
search: false
},
{
title: '操作',
width: 100,
key: 'option',
valueType: 'option',
fixed: 'right',
render: (_, record, action) => [
<Button key='1' type='link' onClick={() => {
setId(record.id)
dispatch({ type: 'openModel/getOpenModal', payload: true })
}}>编辑</Button>,
<Popconfirm
title="是否删除"
onConfirm={(e) => {
PostActivityaddressDel({ id: record.id }).then(res => {
message.success('删除成功')
actionRef.current.reload();
})
}}
okText="删除"
cancelText="取消"
>
<a
key="delete"
>
删除
</a>
</Popconfirm>
],
},
]}
rowKey="id"
pagination={{
@@ -129,7 +143,7 @@ const PagesMainActivityListTable: React.FC = ({ dispatch, openModel, getId }: an
sortby: 'desc',
keyword: params.name,
cate: params.cate
}).then(res => {
setList(res.data.addresss)
setTotal(res.data.total)

Loading…
取消
儲存