Browse Source

deploy

master
Soleilw 1 month ago
parent
commit
dc29dd447a

+ 1
- 1
dist/index.html View File

</head> </head>
<body> <body>
<div id="root"></div> <div id="root"></div>
<script src="/umi.fcb755e3.js"></script>
<script src="/umi.47646223.js"></script>
</body> </body>
</html> </html>

+ 1
- 0
dist/p__Company__Department__index.b8009e04.async.js
File diff suppressed because it is too large
View File


+ 0
- 1
dist/p__Company__Department__index.f4d01f9d.async.js
File diff suppressed because it is too large
View File


+ 0
- 1
dist/p__Company__List__index.06cf4537.async.js
File diff suppressed because it is too large
View File


+ 1
- 0
dist/p__Company__List__index.d0ea64b9.async.js
File diff suppressed because it is too large
View File


+ 1
- 0
dist/p__Company__Post__index.739791d0.async.js
File diff suppressed because it is too large
View File


+ 0
- 1
dist/p__Company__Post__index.e0d9c44c.async.js
File diff suppressed because it is too large
View File


+ 0
- 1
dist/p__Company__Vip__index.36cb2475.async.js
File diff suppressed because it is too large
View File


+ 1
- 0
dist/p__Company__Vip__index.bc5ab70f.async.js
File diff suppressed because it is too large
View File


dist/umi.47646223.js
File diff suppressed because it is too large
View File


+ 10
- 1
src/components/Render/Main/Company/Department/table/index.tsx View File



useEffect(() => { useEffect(() => {
if (!openModel.openModal) { if (!openModel.openModal) {
actionRef.current.reload();
actionRef.current?.reload();
} }

return () => {
sessionStorage.removeItem('company_info')
sessionStorage.removeItem('post_company_info')
sessionStorage.removeItem('vip_company_info')

};
}, [openModel.openModal]) }, [openModel.openModal])




return ( return (
<> <>
<ConfigProvider <ConfigProvider

+ 15
- 9
src/components/Render/Main/Company/List/table/index.tsx View File


import { useRef, useState, useEffect } from 'react'; import { useRef, useState, useEffect } from 'react';
import { connect, history, Link } from '@umijs/max'; import { connect, history, Link } from '@umijs/max';
import type { ActionType, ProFormInstance } from '@ant-design/pro-components'; import type { ActionType, ProFormInstance } from '@ant-design/pro-components';
}) })
}) })
}}>企业职位</Button>, }}>企业职位</Button>,
<Link to={`/company/vip?full_name=${record.full_name}`}>会员信息</Link>,
<Button key='4' type='link' onClick={() => {
sessionStorage.setItem('vip_company_info', JSON.stringify(record))
history.push({
pathname: '/company/vip'
})
}}>会员信息</Button>,
<Button key='5' type='link' onClick={() => { <Button key='5' type='link' onClick={() => {
setId(record.id) setId(record.id)
dispatch({ type: 'openModel/getOpenBindModal', payload: true }) dispatch({ type: 'openModel/getOpenBindModal', payload: true })
<Radio value={1}>开通账号</Radio> <Radio value={1}>开通账号</Radio>
</Col> </Col>
<Col span={12}> <Col span={12}>
<Radio value={1}>禁用1天</Radio>
<Radio value={2}>关闭账号</Radio>
</Col> </Col>
<Col span={12}> <Col span={12}>
<Radio value={1}>禁用3天</Radio>
<Radio value={3}>禁用1天</Radio>
</Col> </Col>
<Col span={12}> <Col span={12}>
<Radio value={1}>禁用7天</Radio>
<Radio value={4}>禁用3天</Radio>
</Col> </Col>
<Col span={12}> <Col span={12}>
<Radio value={1}>禁用15天</Radio>
<Radio value={5}>禁用7天</Radio>
</Col> </Col>
<Col span={12}> <Col span={12}>
<Radio value={1}>禁用30天</Radio>
<Radio value={6}>禁用15天</Radio>
</Col> </Col>
<Col span={12}> <Col span={12}>
<Radio value={1}>永久禁用</Radio>
<Radio value={7}>禁用30天</Radio>
</Col> </Col>
<Col span={12}> <Col span={12}>
<Radio value={2}>关闭账号</Radio>
<Radio value={8}>永久禁用</Radio>
</Col> </Col>

</Row> </Row>
</Radio.Group> </Radio.Group>
</>), </>),

+ 7
- 0
src/components/Render/Main/Company/Post/table/index.tsx View File

if (!openModel.openModal) { if (!openModel.openModal) {
actionRef.current?.reload(); actionRef.current?.reload();
} }

return () => {
sessionStorage.removeItem('company_info')
sessionStorage.removeItem('post_company_info')
sessionStorage.removeItem('vip_company_info')

};
}, [openModel.openModal]) }, [openModel.openModal])





+ 27
- 28
src/components/Render/Main/Company/Vip/table/index.tsx View File

import { useRef, useState, useEffect } from 'react'; import { useRef, useState, useEffect } from 'react';
import { useSearchParams, connect } from '@umijs/max';
import { connect } from '@umijs/max';
import type { ActionType, ProFormInstance } from '@ant-design/pro-components'; import type { ActionType, ProFormInstance } from '@ant-design/pro-components';
import { import {
ProTable ProTable


const CompanyListPage: React.FC = ({ dispatch, getId, openModel }: any) => { const CompanyListPage: React.FC = ({ dispatch, getId, openModel }: any) => {
const actionRef = useRef<ActionType>(); const actionRef = useRef<ActionType>();
const [searchParams, setSearchParams] = useSearchParams();
const [list, setList] = useState<object[]>([]) const [list, setList] = useState<object[]>([])
const [total, setTotal] = useState<number>(0) const [total, setTotal] = useState<number>(0)
const [page, setPage] = useState<number>(1) const [page, setPage] = useState<number>(1)
const [pageSize, setPageSize] = useState<number>(10) const [pageSize, setPageSize] = useState<number>(10)
const [fullname, setFullname] = useState<any>(sessionStorage.getItem('vip_company_info') ? JSON.parse(sessionStorage.getItem('vip_company_info')).full_name : '')


const setId = (id: number) => { const setId = (id: number) => {
getId(id) getId(id)
actionRef.current?.reload(); actionRef.current?.reload();


} }

return () => {
sessionStorage.removeItem('company_info')
sessionStorage.removeItem('post_company_info')
sessionStorage.removeItem('vip_company_info')

};
}, [openModel.openModal]) }, [openModel.openModal])


useEffect(() => { useEffect(() => {
actionRef={actionRef} actionRef={actionRef}
dataSource={list} dataSource={list}
search={{ search={{
span: 8, labelWidth: 'auto',
span: 8, labelWidth: 'auto'
}} }}
rowSelection={{ rowSelection={{
type: 'checkbox' type: 'checkbox'
dataIndex: 'date_range', dataIndex: 'date_range',
hidden: true, hidden: true,
valueType: 'dateRange', valueType: 'dateRange',
search: {
transform: (value) => {
return {
start_date: value[0],
end_date: value[1],
};
},
},
}, },
{ {
title: 'ID', title: 'ID',
title: '企业名称', title: '企业名称',
dataIndex: 'full_name', dataIndex: 'full_name',
width: 200, width: 200,
renderFormItem: (_, { type, defaultRender }) => {
valueType: 'input',
renderFormItem: () => {
return ( return (
<Input
placeholder="请输入企业名称"
defaultValue={searchParams.get('full_name')}
onChange={(e) => {
console.log(e.target.value);
}}
/>
<><Input placeholder="请输入企业名称" value={fullname} onChange={(e) => {
setFullname(e.target.value)
}} /></>
) )
},
}
}, },
{ {
title: '会员类型', title: '会员类型',
pagesize: pageSize, pagesize: pageSize,
sort: 'id', sort: 'id',
sortby: 'desc', sortby: 'desc',
keyword: searchParams.get('full_name') ? searchParams.get('full_name') : params.full_name,
id: params.id,
start_date: params.start_date,
end_date: params.end_date,
keyword: fullname,
start_date: params.date_range ? params.date_range[0] : '',
end_date: params.date_range ? params.date_range[1] : '',
}).then(res => { }).then(res => {
setList(res.data.list) setList(res.data.list)
setTotal(res.data.total) setTotal(res.data.total)
}) })
} }

onReset={() => {
if (sessionStorage.getItem('vip_company_info')) {
sessionStorage.removeItem('vip_company_info')
}
setFullname('')
actionRef.current?.reload();
}}
headerTitle="VIP企业列表" headerTitle="VIP企业列表"
toolBarRender={() => [ toolBarRender={() => [
<Button type="primary" onClick={() => { <Button type="primary" onClick={() => {
export default connect(({ dictModel, openModel }: any) => ({ export default connect(({ dictModel, openModel }: any) => ({
dictModel, dictModel,
openModel openModel
}))(CompanyListPage);

}))(CompanyListPage);

Loading…
Cancel
Save