提交 3ceda910 作者: 龚洪江

功能:作业服务分类(新),审批飞手不通过状态为2

上级 c009c4e7
import { Button, Table } from 'antd';
import { ArrowDownOutlined, ArrowUpOutlined, PlusOutlined } from '@ant-design/icons';
import { ColumnsType } from 'antd/es/table';
const ServiceCategoryList = () => {
const tableColumns: ColumnsType<any> = [
{
title: '分类名称',
align: 'center',
},
{
title: '图片',
align: 'center',
},
{
title: '描述',
align: 'center',
},
{
title: '创建时间',
align: 'center',
},
{
title: '操作',
align: 'center',
},
];
return (
<div className='service-category-list'>
<div className='list-operate' style={{ marginBottom: '10px' }}>
<Button type='primary' icon={<PlusOutlined />} style={{ marginRight: '10px' }}>
新增分类
</Button>
<Button icon={<ArrowUpOutlined />} style={{ marginRight: '10px' }} type='primary'></Button>
<Button icon={<ArrowDownOutlined />} type='primary'></Button>
</div>
<Table columns={tableColumns} bordered />
</div>
);
};
export default ServiceCategoryList;
......@@ -53,7 +53,7 @@ const ApproveModal: FC<ModalProps & selfProps> = ({ open, onCancel, onOk, flyerI
<Form.Item label='状态' name='auditStatus'>
<Radio.Group onChange={radioChange}>
<Radio value={1}>已通过</Radio>
<Radio value={0}>未通过</Radio>
<Radio value={2}>未通过</Radio>
</Radio.Group>
</Form.Item>
{auditStatus ? (
......
......@@ -132,16 +132,19 @@ const FlyerList = () => {
pageSize: 10,
totalCount: 0,
});
const [loading, setLoading] = useState<boolean>(false);
//修改备注弹窗
const [updateRemarkModalShow, setUpdateRemarkModalShow] = useState<boolean>(false);
//飞手列表
const getFlyerList = (query?: flyerListParameters) => {
setLoading(true);
FlyerCenterAPI.getBackListPilot({
pageNo: pagination.pageNo,
pageSize: pagination.pageSize,
...query,
}).then(({ result }) => {
setLoading(false);
pagination.totalCount = result.totalCount;
setTableData(result.list || []);
setPagination(pagination);
......@@ -231,6 +234,7 @@ const FlyerList = () => {
bordered
columns={tableColumns}
dataSource={tableData}
loading={loading}
rowKey='id'
pagination={{
total: pagination.totalCount,
......
......@@ -107,7 +107,10 @@ const ProduceDetailView = React.lazy(
); //产品详情
const MakeListView = React.lazy(() => import('~/pages/mallManage/makeManage/makeList'));
// 分类管理
const CategoryListView = React.lazy(() => import('~/pages/categoryManage/categoryList'));
const MallCategoryListView = React.lazy(() => import('~/pages/categoryManage/mallCategoryList')); //商城分类
const ServiceCategoryListView = React.lazy(
() => import('~/pages/categoryManage/serviceCategoryList'),
); //服务分类
const CategoryManage = React.lazy(() => import('~/pages/categoryManage/category'));
const CategoryDetail = React.lazy(() => import('~/pages/categoryManage/category/detail'));
// 目录管理
......@@ -696,6 +699,17 @@ export const routerList: Array<RouteObjectType> = [
icon: <SendOutlined />,
},
},
// 作业服务分类(新)
// {
// path: '/categoryManage/serviceCategoryList',
// element: withLoadingComponent(<ServiceCategoryListView />),
// errorElement: <ErrorPage />,
// meta: {
// id: 1210,
// title: '作业服务分类',
// icon: <SendOutlined />,
// },
// },
{
path: '/categoryManage/jobServicesCategory/2',
element: withLoadingComponent(<CategoryManage />),
......@@ -716,9 +730,10 @@ export const routerList: Array<RouteObjectType> = [
icon: <AppstoreAddOutlined />,
},
},
// 产品商城分类(新)
{
path: '/categoryManage/categoryList',
element: withLoadingComponent(<CategoryListView />),
path: '/categoryManage/mallCategoryList',
element: withLoadingComponent(<MallCategoryListView />),
errorElement: <ErrorPage />,
meta: {
id: 1240,
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论