提交 e4a7228c 作者: 龚洪江

Merge branch 'develop'

...@@ -14,4 +14,4 @@ patches: ...@@ -14,4 +14,4 @@ patches:
images: images:
- name: REGISTRY/NAMESPACE/IMAGE:TAG - name: REGISTRY/NAMESPACE/IMAGE:TAG
newName: mmc-registry.cn-shenzhen.cr.aliyuncs.com/sharefly-dev/admin newName: mmc-registry.cn-shenzhen.cr.aliyuncs.com/sharefly-dev/admin
newTag: 2a766cd018a842b19e050285c0698aee550b7b44 newTag: 707f73770a77e69d27f12648d8fa8dee9251776e
import { InterFunction, InterListFunction } from '~/api/interface'; import { InterFunction, InterItemFunction, InterListFunction } from '~/api/interface';
// 账号-列表 // 账号-列表
export type listBAccountPageType = InterListFunction< export type listBAccountPageType = InterListFunction<
{ {
...@@ -177,3 +177,36 @@ export type listCompanyRemove = InterFunction< ...@@ -177,3 +177,36 @@ export type listCompanyRemove = InterFunction<
}, },
NonNullable<unknown> NonNullable<unknown>
>; >;
//账号权限-列表
export type listRoleInfoPageType = InterItemFunction<
{ numberOrName?: string },
{
id: number;
roleNo: string;
userName: string;
roleName: string;
remark: string;
superAdmin: number;
}[]
>;
//账号权限-新增
export type insertRoleInfoType = InterFunction<{ remark?: string; roleName: string }, any>;
//账号权限-编辑
export type updateRoleInfoType = InterFunction<
{ id?: number; remark?: string; roleName: string },
any
>;
//账号权限-删除
export type deleteRoleInfoType = InterFunction<{ id: number }, any>;
//账号权限-全部菜单列表
type menType = {
id: number;
menuName: string;
pid: number;
children: menType[];
};
export type listMenuInfoType = InterFunction<any, menType>;
//账号权限-根据id获取权限
export type listRoleMenuInfoType = InterFunction<{ roleId: number }, any>;
//账号权限-修改角色菜单权限
export type updateRoleMenuInfoType = InterFunction<{ menuInfoIds: number[]; roleId: number }, any>;
import { import {
deleteRoleInfoType,
getSecondDistrictInfo, getSecondDistrictInfo,
insertBAccountType, insertBAccountType,
insertRoleInfoType,
listBAccountPageType, listBAccountPageType,
listCompanyAdd, listCompanyAdd,
listCompanyPage, listCompanyPage,
listCompanyRemove, listCompanyRemove,
listCompanyUpdate, listCompanyUpdate,
listMenuInfoType,
listRoleInfoPageType,
listRoleMenuInfoType,
removeBAccountType, removeBAccountType,
updateBAccountType, updateBAccountType,
updatePasswordType, updatePasswordType,
updateRoleInfoType,
updateRoleMenuInfoType,
} from '../interface/systemManageType'; } from '../interface/systemManageType';
import axios from '../request'; import axios from '../request';
...@@ -55,4 +62,26 @@ export class SystemManageAPI { ...@@ -55,4 +62,26 @@ export class SystemManageAPI {
// 单位-区域 // 单位-区域
static getSecondDistrictInfo: getSecondDistrictInfo = (params) => static getSecondDistrictInfo: getSecondDistrictInfo = (params) =>
axios.get('/pms/webDevice/getSecondDistrictInfo', { params }); axios.get('/pms/webDevice/getSecondDistrictInfo', { params });
//账号权限-列表
static getListRoleInfoPage: listRoleInfoPageType = (data) =>
axios.post('/userapp/role/listRoleInfoPage', data);
// 账号权限-新增
static insertRoleInfo: insertRoleInfoType = (data) =>
axios.post('/userapp/role/insertRoleInfo', data);
// 账号权限-编辑
static updateRoleInfo: updateRoleInfoType = (data) =>
axios.post('/userapp/role/updateRoleInfo', data);
// 账号权限-删除
static deleteRoleInfo: deleteRoleInfoType = (params) =>
axios.get('/userapp/role/removeRoleInfo', { params });
// 账号权限-全部菜单列表
static getListMenuInfo: listMenuInfoType = () => axios.get('/userapp/role-menu/listMenuInfo');
// 账号权限-根据角色id获取权限
static getListRoleMenuInfo: listRoleMenuInfoType = (params) =>
axios.get('/userapp/role/listRoleMenuInfo', { params });
//账号权限-修改角色菜单权限
static updateRoleMenuInfo: updateRoleMenuInfoType = (data) =>
axios.post('/userapp/role/updateRoleMenuInfo', data);
} }
const AccountLimit = () => {
return <div className='account-limit'></div>;
};
export default AccountLimit;
.limit-info{
&-operate{
text-align: right;
& button:first-child{
margin-right: 10px;
}
}
}
import { useSearchParams, useNavigate } from 'react-router-dom';
import { useEffect, useState } from 'react';
import { SystemManageAPI } from '~/api';
import { InterDataType } from '~/api/interface';
import { listMenuInfoType } from '~/api/interface/systemManageType';
import { Button, message, Modal, Tree } from 'antd';
import './index.scss';
//菜单类型
type menuType = InterDataType<listMenuInfoType>;
const LimitInfo = () => {
const navigate = useNavigate();
const [searchParams] = useSearchParams();
const [roleId, setRoleId] = useState<number>(-1);
const [allMenu, setAllMenu] = useState<any>();
const [checkedKeys, setCheckedKeys] = useState<number[]>([]);
const [menuInfoIds, setMenuInfoIds] = useState<number[]>([]); //编辑请求数组
//获取全部菜单
const getListMenuInfo = () => {
SystemManageAPI.getListMenuInfo().then(({ result }) => {
setAllMenu(result);
});
};
//根据id获取该角色菜单
const getListRoleMenuInfo = (roleId: number) => {
SystemManageAPI.getListRoleMenuInfo({ roleId }).then(({ result }) => {
setCheckedKeys(getChildKeys(result.children));
setMenuInfoIds(getAllKeys(result.children));
});
};
//获取叶子节点
const getChildKeys = (data: menuType[]) => {
return data.reduce((pre: number[], cur) => {
if (cur.children) {
pre.push(...getChildKeys(cur.children));
} else {
pre.push(cur.id);
}
return pre;
}, []);
};
//获取全部节点
const getAllKeys = (data: menuType[]) => {
return data.reduce((pre: number[], cur) => {
pre.push(cur.id);
if (cur.children) {
pre.push(...getChildKeys(cur.children));
}
return pre;
}, []);
};
//菜单选中
const menuCheckEvent = (checkedKeys: any, info: any) => {
setCheckedKeys(checkedKeys);
setMenuInfoIds(checkedKeys.concat(info.halfCheckedKeys));
};
//更新菜单权限
const updateRoleMenuInfo = () => {
Modal.confirm({
title: '修改权限',
content: '确认修改该角色权限',
onOk: () => {
SystemManageAPI.updateRoleMenuInfo({ roleId, menuInfoIds }).then(({ code }) => {
if (code === '200') {
message.success('修改成功');
}
});
},
});
};
//返回
const backRoute = () => {
navigate(-1);
};
useEffect(() => {
setRoleId(Number(searchParams.get('id')));
getListRoleMenuInfo(Number(searchParams.get('id')));
getListMenuInfo();
}, []);
return (
<div className='limit-info'>
<div className='limit-info-operate'>
<Button type='primary' onClick={updateRoleMenuInfo}>
修改
</Button>
<Button type='primary' onClick={backRoute}>
返回
</Button>
</div>
<div className='limit-info-content'>
{allMenu && (
<Tree
checkable
treeData={[allMenu]}
fieldNames={{ title: 'menuName', key: 'id' }}
defaultExpandAll
checkedKeys={checkedKeys}
onCheck={menuCheckEvent}
/>
)}
</div>
</div>
);
};
export default LimitInfo;
import { Form, Input, message, Modal, ModalProps } from 'antd';
import { FC, useEffect } from 'react';
import { InterDataType } from '~/api/interface';
import { listRoleInfoPageType } from '~/api/interface/systemManageType';
import { SystemManageAPI } from '~/api';
//账号权限-返回类型
type accountLimitType = InterDataType<listRoleInfoPageType>['list'];
type selfProps = {
onOk: () => void;
onCancel: () => void;
currentLimit: accountLimitType[0] | undefined;
};
const AddOrEditLimitModal: FC<ModalProps & selfProps> = ({
open,
onCancel,
onOk,
currentLimit,
}) => {
const [form] = Form.useForm<{ roleName: string; remark?: string }>();
//表单提交
const handleOk = () => {
form.validateFields().then((value) => {
SystemManageAPI[currentLimit ? 'updateRoleInfo' : 'insertRoleInfo']({
...value,
id: currentLimit ? currentLimit.id : undefined,
}).then(({ code }) => {
if (code === '200') {
message.success(currentLimit ? '编辑成功' : '新增成功');
form.resetFields();
onOk();
}
});
});
};
const handleCancel = () => {
form.resetFields();
onCancel();
};
useEffect(() => {
if (currentLimit) {
form.setFieldsValue({
roleName: currentLimit.roleName,
remark: currentLimit.remark || undefined,
});
}
}, [currentLimit]);
return (
<Modal
open={open}
onCancel={handleCancel}
title={currentLimit ? '编辑角色' : '新增角色'}
onOk={handleOk}
>
<Form form={form} labelCol={{ span: 4 }} wrapperCol={{ span: 16 }}>
<Form.Item
label='角色名称'
name='roleName'
rules={[{ required: true, message: '请输入角色名称' }]}
>
<Input placeholder='请输入角色名称' maxLength={10} />
</Form.Item>
<Form.Item label='角色备注' name='remark'>
<Input.TextArea placeholder='请输入备注信息' rows={4} maxLength={225} showCount />
</Form.Item>
</Form>
</Modal>
);
};
export default AddOrEditLimitModal;
.limit-remark{
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
import SearchBox, { searchColumns } from '~/components/search-box';
import { Button, Modal, Table } from 'antd';
import { ColumnsType } from 'antd/es/table';
import { PlusOutlined } from '@ant-design/icons';
import AddOrEditLimitModal from './components/addOrEditLimitModal';
import { useEffect, useState } from 'react';
import { InterDataType, InterReqType, PaginationProps } from '~/api/interface';
import { SystemManageAPI } from '~/api';
import { listRoleInfoPageType } from '~/api/interface/systemManageType';
import { useNavigate } from 'react-router-dom';
import './index.scss';
//账号权限列表-返回类型
type accountLimitType = InterDataType<listRoleInfoPageType>['list'];
//账号权限列表-请求参数类型
type accountLimitParametersType = InterReqType<listRoleInfoPageType>;
const AccountLimit = () => {
const navigate = useNavigate();
const searchColumns: searchColumns[] = [
{
label: '权限角色',
placeholder: '请输入角色编号或名称',
name: 'numberOrName',
type: 'input',
},
];
const TableColumns: ColumnsType<accountLimitType[0]> = [
{
title: '角色编号',
align: 'center',
dataIndex: 'roleNo',
},
{
title: '备注',
align: 'center',
dataIndex: 'remark',
width: '20%',
ellipsis: true,
render: (text: string) => <div className='limit-remark'>{text}</div>,
},
{
title: '角色名称',
dataIndex: 'roleName',
align: 'center',
},
{
title: '创建人',
align: 'center',
dataIndex: 'userName',
},
{
title: '操作',
align: 'center',
width: '20%',
render: (_text: string, record) => (
<>
<Button type='link' onClick={() => addOrEditRoleClick(record)}>
变更
</Button>
<Button type='link' onClick={() => toLimitInfo(record)}>
权限
</Button>
<Button
type='link'
danger
onClick={() => deleteAccountLimit(record)}
disabled={!!record.superAdmin}
>
删除
</Button>
</>
),
},
];
const [query, setQuery] = useState<accountLimitParametersType>();
const [tableData, setTableData] = useState<accountLimitType>([]);
const [currentLimit, setCurrentLimit] = useState<accountLimitType[0]>();
const [pagination, setPagination] = useState<PaginationProps & { totalCount: number }>({
pageNo: 1,
pageSize: 10,
totalCount: 0,
});
const [addOrEditLimitModalShow, setAddOrEditLimitModalShow] = useState<boolean>(false);
//账号权限列表
const getListRoleInfoPage = (query?: accountLimitParametersType) => {
SystemManageAPI.getListRoleInfoPage({
pageNo: pagination.pageNo,
pageSize: pagination.pageSize,
...query,
}).then(({ result }) => {
setTableData(result.list || []);
pagination.totalCount = result.totalCount;
setPagination(pagination);
});
};
//分页
const paginationChange = (pageNo: number, pageSize: number) => {
pagination.pageNo = pageNo;
pagination.pageSize = pageSize;
getListRoleInfoPage(query);
};
//筛选
const searchSuccessEvent = (data: accountLimitParametersType) => {
setQuery(data);
pagination.pageSize = 10;
pagination.pageNo = 1;
getListRoleInfoPage(data);
};
//删除账号权限
const deleteAccountLimit = (record: accountLimitType[0]) => {
Modal.confirm({
title: '角色删除',
content: '确认删除该角色?',
onOk: () => {
SystemManageAPI.deleteRoleInfo({ id: record.id }).then(({ code }) => {
if (code === '200') {
if (pagination.pageNo !== 1 && tableData.length === 1) {
pagination.pageNo -= 1;
}
getListRoleInfoPage(query);
}
});
},
});
};
//新增、编辑弹窗
const addOrEditRoleClick = (record?: accountLimitType[0]) => {
setAddOrEditLimitModalShow(true);
setCurrentLimit(record ? { ...record } : undefined);
};
const addOrEditLimitModalCancel = () => {
setAddOrEditLimitModalShow(false);
};
const addOrEditLimitModalOk = () => {
getListRoleInfoPage(query);
setAddOrEditLimitModalShow(false);
};
//跳转权限信息
const toLimitInfo = (record: accountLimitType[0]) => {
navigate({ pathname: '/systemManage/limitInfo', search: `id=${record.id}` });
};
useEffect(() => {
getListRoleInfoPage();
}, []);
return (
<div className='account-limit'>
<SearchBox
search={searchColumns}
child={
<Button type='primary' icon={<PlusOutlined />} onClick={() => addOrEditRoleClick()}>
添加角色
</Button>
}
searchData={searchSuccessEvent}
/>
<Table
bordered
columns={TableColumns}
rowKey='id'
dataSource={tableData}
pagination={{
total: pagination.totalCount,
pageSize: pagination.pageSize,
current: pagination.pageNo,
showSizeChanger: true,
showQuickJumper: true,
onChange: (page: number, pageSize: number) => paginationChange(page, pageSize),
showTotal: (total, range) => `当前 ${range[0]}-${range[1]} 条记录 / 共 ${total} 条数据`,
}}
/>
<AddOrEditLimitModal
open={addOrEditLimitModalShow}
onCancel={addOrEditLimitModalCancel}
onOk={addOrEditLimitModalOk}
currentLimit={currentLimit}
/>
</div>
);
};
export default AccountLimit;
...@@ -109,7 +109,8 @@ import TenderManageFeedback from '~/pages/resourceManage/tenderManage/feedback'; ...@@ -109,7 +109,8 @@ import TenderManageFeedback from '~/pages/resourceManage/tenderManage/feedback';
import BusinessCaseManage from '~/pages/resourceManage/businessCaseManage'; import BusinessCaseManage from '~/pages/resourceManage/businessCaseManage';
import CustomIdentityView from '~/pages/customManage/customIdentity'; import CustomIdentityView from '~/pages/customManage/customIdentity';
import CompanyManageView from '~/pages/systemManage/companyManage'; import CompanyManageView from '~/pages/systemManage/companyManage';
// import AccountLimit from '~/pages/systemManage/accountLimit'; import AccountLimit from '~/pages/systemManage/limitManage/roleList'; //账号权限
import LimitInfo from '~/pages/systemManage/limitManage/limitInfo'; //权限信息
// const IndustryListView = React.lazy(() => import('~/pages/mallManage/industryManage/industryList')); //行业列表 // const IndustryListView = React.lazy(() => import('~/pages/mallManage/industryManage/industryList')); //行业列表
// const IndustryDetailView = React.lazy( // const IndustryDetailView = React.lazy(
...@@ -181,7 +182,7 @@ export const routerList: Array<RouteObjectType> = [ ...@@ -181,7 +182,7 @@ export const routerList: Array<RouteObjectType> = [
element: <LayoutView />, element: <LayoutView />,
errorElement: <ErrorPage />, errorElement: <ErrorPage />,
meta: { meta: {
id: 22000, id: 200,
icon: <TeamOutlined />, icon: <TeamOutlined />,
title: '客户管理', title: '客户管理',
}, },
...@@ -190,7 +191,7 @@ export const routerList: Array<RouteObjectType> = [ ...@@ -190,7 +191,7 @@ export const routerList: Array<RouteObjectType> = [
path: '/customManage/customList', path: '/customManage/customList',
element: withLoadingComponent(<CustomListView />), element: withLoadingComponent(<CustomListView />),
meta: { meta: {
id: 26100, id: 220,
title: '客户列表', title: '客户列表',
icon: <SolutionOutlined />, icon: <SolutionOutlined />,
}, },
...@@ -219,7 +220,7 @@ export const routerList: Array<RouteObjectType> = [ ...@@ -219,7 +220,7 @@ export const routerList: Array<RouteObjectType> = [
path: '/customManage/customIdentity', path: '/customManage/customIdentity',
element: withLoadingComponent(<CustomIdentityView />), element: withLoadingComponent(<CustomIdentityView />),
meta: { meta: {
id: 26300, id: 240,
title: '加盟入驻', title: '加盟入驻',
icon: <AuditOutlined />, icon: <AuditOutlined />,
}, },
...@@ -231,7 +232,7 @@ export const routerList: Array<RouteObjectType> = [ ...@@ -231,7 +232,7 @@ export const routerList: Array<RouteObjectType> = [
element: <LayoutView />, element: <LayoutView />,
errorElement: <ErrorPage />, errorElement: <ErrorPage />,
meta: { meta: {
id: 30000, id: 400,
icon: <DribbbleOutlined />, icon: <DribbbleOutlined />,
title: '资源管理', title: '资源管理',
}, },
...@@ -240,7 +241,7 @@ export const routerList: Array<RouteObjectType> = [ ...@@ -240,7 +241,7 @@ export const routerList: Array<RouteObjectType> = [
path: '/resourceManage/requirementsGathering', path: '/resourceManage/requirementsGathering',
element: withLoadingComponent(<RequirementsGatheringView />), element: withLoadingComponent(<RequirementsGatheringView />),
meta: { meta: {
id: 30200, id: 410,
title: '需求收集', title: '需求收集',
icon: <MonitorOutlined />, icon: <MonitorOutlined />,
}, },
...@@ -249,7 +250,7 @@ export const routerList: Array<RouteObjectType> = [ ...@@ -249,7 +250,7 @@ export const routerList: Array<RouteObjectType> = [
path: '/resourceManage/materielManage', path: '/resourceManage/materielManage',
element: withLoadingComponent(<MaterielManageView />), element: withLoadingComponent(<MaterielManageView />),
meta: { meta: {
id: 30100, id: 420,
title: '宣传管理', title: '宣传管理',
icon: <PictureOutlined />, icon: <PictureOutlined />,
}, },
...@@ -268,7 +269,7 @@ export const routerList: Array<RouteObjectType> = [ ...@@ -268,7 +269,7 @@ export const routerList: Array<RouteObjectType> = [
path: '/resourceManage/tagManage', path: '/resourceManage/tagManage',
element: withLoadingComponent(<TagManageView />), element: withLoadingComponent(<TagManageView />),
meta: { meta: {
id: 30300, id: 430,
title: '标签管理', title: '标签管理',
icon: <PaperClipOutlined />, icon: <PaperClipOutlined />,
}, },
...@@ -277,7 +278,7 @@ export const routerList: Array<RouteObjectType> = [ ...@@ -277,7 +278,7 @@ export const routerList: Array<RouteObjectType> = [
path: '/resourceManage/industryNews', path: '/resourceManage/industryNews',
element: withLoadingComponent(<IndustryNewsView />), element: withLoadingComponent(<IndustryNewsView />),
meta: { meta: {
id: 30400, id: 440,
title: '行业新闻', title: '行业新闻',
icon: <ReadOutlined />, icon: <ReadOutlined />,
}, },
...@@ -286,7 +287,7 @@ export const routerList: Array<RouteObjectType> = [ ...@@ -286,7 +287,7 @@ export const routerList: Array<RouteObjectType> = [
path: '/resourceManage/tenderManage', path: '/resourceManage/tenderManage',
element: withLoadingComponent(<TenderManageView />), element: withLoadingComponent(<TenderManageView />),
meta: { meta: {
id: 30500, id: 450,
title: '招标快讯', title: '招标快讯',
icon: <CoffeeOutlined />, icon: <CoffeeOutlined />,
}, },
...@@ -315,7 +316,7 @@ export const routerList: Array<RouteObjectType> = [ ...@@ -315,7 +316,7 @@ export const routerList: Array<RouteObjectType> = [
path: '/resourceManage/businessCaseManage', path: '/resourceManage/businessCaseManage',
element: withLoadingComponent(<BusinessCaseManage />), element: withLoadingComponent(<BusinessCaseManage />),
meta: { meta: {
id: 30600, id: 460,
title: '业务案例', title: '业务案例',
icon: <AliwangwangOutlined />, icon: <AliwangwangOutlined />,
}, },
...@@ -327,7 +328,7 @@ export const routerList: Array<RouteObjectType> = [ ...@@ -327,7 +328,7 @@ export const routerList: Array<RouteObjectType> = [
element: <LayoutView />, element: <LayoutView />,
errorElement: <ErrorPage />, errorElement: <ErrorPage />,
meta: { meta: {
id: 40000, id: 600,
icon: <MessageOutlined />, icon: <MessageOutlined />,
title: '论坛管理', title: '论坛管理',
}, },
...@@ -336,7 +337,7 @@ export const routerList: Array<RouteObjectType> = [ ...@@ -336,7 +337,7 @@ export const routerList: Array<RouteObjectType> = [
path: '/forumManage/dynamicList', path: '/forumManage/dynamicList',
element: withLoadingComponent(<DynamicListView />), element: withLoadingComponent(<DynamicListView />),
meta: { meta: {
id: 40100, id: 610,
title: '动态列表', title: '动态列表',
icon: <ThunderboltOutlined />, icon: <ThunderboltOutlined />,
}, },
...@@ -348,7 +349,7 @@ export const routerList: Array<RouteObjectType> = [ ...@@ -348,7 +349,7 @@ export const routerList: Array<RouteObjectType> = [
element: <LayoutView />, element: <LayoutView />,
errorElement: <ErrorPage />, errorElement: <ErrorPage />,
meta: { meta: {
id: 10000, id: 800,
icon: <BarsOutlined />, icon: <BarsOutlined />,
title: '订单管理', title: '订单管理',
}, },
...@@ -357,7 +358,7 @@ export const routerList: Array<RouteObjectType> = [ ...@@ -357,7 +358,7 @@ export const routerList: Array<RouteObjectType> = [
path: '/orderManage/productOrder', path: '/orderManage/productOrder',
element: withLoadingComponent(<ProductOrderView />), element: withLoadingComponent(<ProductOrderView />),
meta: { meta: {
id: 10010, id: 810,
title: '商城订单', title: '商城订单',
icon: <ShoppingOutlined />, icon: <ShoppingOutlined />,
}, },
...@@ -376,7 +377,7 @@ export const routerList: Array<RouteObjectType> = [ ...@@ -376,7 +377,7 @@ export const routerList: Array<RouteObjectType> = [
path: '/orderManage/equipmentOrder', path: '/orderManage/equipmentOrder',
element: withLoadingComponent(<EquipmentOrderView />), element: withLoadingComponent(<EquipmentOrderView />),
meta: { meta: {
id: 10020, id: 820,
title: '租赁订单', title: '租赁订单',
icon: <ShopOutlined />, icon: <ShopOutlined />,
}, },
...@@ -395,7 +396,7 @@ export const routerList: Array<RouteObjectType> = [ ...@@ -395,7 +396,7 @@ export const routerList: Array<RouteObjectType> = [
path: '/orderManage/serviceOrder', path: '/orderManage/serviceOrder',
element: withLoadingComponent(<ServiceOrderView />), element: withLoadingComponent(<ServiceOrderView />),
meta: { meta: {
id: 10030, id: 830,
title: '服务订单', title: '服务订单',
icon: <CreditCardOutlined />, icon: <CreditCardOutlined />,
}, },
...@@ -417,7 +418,7 @@ export const routerList: Array<RouteObjectType> = [ ...@@ -417,7 +418,7 @@ export const routerList: Array<RouteObjectType> = [
element: <LayoutView />, element: <LayoutView />,
errorElement: <ErrorPage />, errorElement: <ErrorPage />,
meta: { meta: {
id: 10100, id: 1000,
icon: <ShopOutlined />, icon: <ShopOutlined />,
title: '商品管理', title: '商品管理',
}, },
...@@ -426,7 +427,7 @@ export const routerList: Array<RouteObjectType> = [ ...@@ -426,7 +427,7 @@ export const routerList: Array<RouteObjectType> = [
path: '/mallManage/courseManage', path: '/mallManage/courseManage',
element: withLoadingComponent(<CourseManageView />), element: withLoadingComponent(<CourseManageView />),
meta: { meta: {
id: 10190, id: 1010,
icon: <BookOutlined />, icon: <BookOutlined />,
title: '课程管理', title: '课程管理',
}, },
...@@ -435,7 +436,7 @@ export const routerList: Array<RouteObjectType> = [ ...@@ -435,7 +436,7 @@ export const routerList: Array<RouteObjectType> = [
path: '/mallManage/serviceList', path: '/mallManage/serviceList',
element: withLoadingComponent(<ServiceListView />), element: withLoadingComponent(<ServiceListView />),
meta: { meta: {
id: 10110, id: 1020,
icon: <SmileOutlined />, icon: <SmileOutlined />,
title: '服务管理', title: '服务管理',
}, },
...@@ -464,7 +465,7 @@ export const routerList: Array<RouteObjectType> = [ ...@@ -464,7 +465,7 @@ export const routerList: Array<RouteObjectType> = [
path: '/mallManage/rentGoods', path: '/mallManage/rentGoods',
element: withLoadingComponent(<RentListView />), element: withLoadingComponent(<RentListView />),
meta: { meta: {
id: 10130, id: 1030,
icon: <SmileOutlined />, icon: <SmileOutlined />,
title: '租赁商品', title: '租赁商品',
}, },
...@@ -503,7 +504,7 @@ export const routerList: Array<RouteObjectType> = [ ...@@ -503,7 +504,7 @@ export const routerList: Array<RouteObjectType> = [
path: '/mallManage/mallGoods', path: '/mallManage/mallGoods',
element: withLoadingComponent(<MallGoodsView />), element: withLoadingComponent(<MallGoodsView />),
meta: { meta: {
id: 10140, id: 1040,
icon: <SmileOutlined />, icon: <SmileOutlined />,
title: '商城商品', title: '商城商品',
}, },
...@@ -542,7 +543,7 @@ export const routerList: Array<RouteObjectType> = [ ...@@ -542,7 +543,7 @@ export const routerList: Array<RouteObjectType> = [
path: '/mallManage/produceList', path: '/mallManage/produceList',
element: withLoadingComponent(<ProduceListView />), element: withLoadingComponent(<ProduceListView />),
meta: { meta: {
id: 10150, id: 1050,
icon: <SmileOutlined />, icon: <SmileOutlined />,
title: '产品管理', title: '产品管理',
}, },
...@@ -561,7 +562,7 @@ export const routerList: Array<RouteObjectType> = [ ...@@ -561,7 +562,7 @@ export const routerList: Array<RouteObjectType> = [
path: '/mallManage/makeList', path: '/mallManage/makeList',
element: withLoadingComponent(<MakeListView />), element: withLoadingComponent(<MakeListView />),
meta: { meta: {
id: 10170, id: 1060,
icon: <SmileOutlined />, icon: <SmileOutlined />,
title: '品牌管理', title: '品牌管理',
}, },
...@@ -592,7 +593,7 @@ export const routerList: Array<RouteObjectType> = [ ...@@ -592,7 +593,7 @@ export const routerList: Array<RouteObjectType> = [
element: <LayoutView />, element: <LayoutView />,
errorElement: <ErrorPage />, errorElement: <ErrorPage />,
meta: { meta: {
id: 18000, id: 1200,
icon: <ReconciliationOutlined />, icon: <ReconciliationOutlined />,
title: '分类管理', title: '分类管理',
}, },
...@@ -601,7 +602,7 @@ export const routerList: Array<RouteObjectType> = [ ...@@ -601,7 +602,7 @@ export const routerList: Array<RouteObjectType> = [
path: '/categoryManage/jobServicesCategory/1', path: '/categoryManage/jobServicesCategory/1',
element: withLoadingComponent(<CategoryManage />), element: withLoadingComponent(<CategoryManage />),
meta: { meta: {
id: 18100, id: 1210,
title: '作业服务分类', title: '作业服务分类',
icon: <SendOutlined />, icon: <SendOutlined />,
}, },
...@@ -610,7 +611,7 @@ export const routerList: Array<RouteObjectType> = [ ...@@ -610,7 +611,7 @@ export const routerList: Array<RouteObjectType> = [
path: '/categoryManage/jobServicesCategory/2', path: '/categoryManage/jobServicesCategory/2',
element: withLoadingComponent(<CategoryManage />), element: withLoadingComponent(<CategoryManage />),
meta: { meta: {
id: 18200, id: 1220,
title: '设备租赁分类', title: '设备租赁分类',
icon: <RocketOutlined />, icon: <RocketOutlined />,
}, },
...@@ -619,7 +620,7 @@ export const routerList: Array<RouteObjectType> = [ ...@@ -619,7 +620,7 @@ export const routerList: Array<RouteObjectType> = [
path: '/categoryManage/jobServicesCategory/3', path: '/categoryManage/jobServicesCategory/3',
element: withLoadingComponent(<CategoryManage />), element: withLoadingComponent(<CategoryManage />),
meta: { meta: {
id: 18300, id: 1230,
title: '飞手培训分类', title: '飞手培训分类',
icon: <AppstoreAddOutlined />, icon: <AppstoreAddOutlined />,
}, },
...@@ -628,7 +629,7 @@ export const routerList: Array<RouteObjectType> = [ ...@@ -628,7 +629,7 @@ export const routerList: Array<RouteObjectType> = [
path: '/categoryManage/jobServicesCategory/4', path: '/categoryManage/jobServicesCategory/4',
element: withLoadingComponent(<CategoryManage />), element: withLoadingComponent(<CategoryManage />),
meta: { meta: {
id: 18400, id: 1240,
title: '产品商城分类', title: '产品商城分类',
icon: <AppstoreOutlined />, icon: <AppstoreOutlined />,
}, },
...@@ -637,7 +638,7 @@ export const routerList: Array<RouteObjectType> = [ ...@@ -637,7 +638,7 @@ export const routerList: Array<RouteObjectType> = [
path: '/categoryManage/jobServicesCategory/0', path: '/categoryManage/jobServicesCategory/0',
element: withLoadingComponent(<CategoryManage />), element: withLoadingComponent(<CategoryManage />),
meta: { meta: {
id: 18500, id: 1250,
title: '通用分类', title: '通用分类',
icon: <CoffeeOutlined />, icon: <CoffeeOutlined />,
}, },
...@@ -656,7 +657,7 @@ export const routerList: Array<RouteObjectType> = [ ...@@ -656,7 +657,7 @@ export const routerList: Array<RouteObjectType> = [
path: '/categoryManage/DirectoryManage', path: '/categoryManage/DirectoryManage',
element: withLoadingComponent(<DirectoryManage />), element: withLoadingComponent(<DirectoryManage />),
meta: { meta: {
id: 18700, id: 1260,
title: '目录管理', title: '目录管理',
icon: <UnorderedListOutlined />, icon: <UnorderedListOutlined />,
}, },
...@@ -835,7 +836,7 @@ export const routerList: Array<RouteObjectType> = [ ...@@ -835,7 +836,7 @@ export const routerList: Array<RouteObjectType> = [
element: <LayoutView />, element: <LayoutView />,
errorElement: <ErrorPage />, errorElement: <ErrorPage />,
meta: { meta: {
id: 28000, id: 1400,
icon: <SettingOutlined />, icon: <SettingOutlined />,
title: '系统管理', title: '系统管理',
}, },
...@@ -844,25 +845,35 @@ export const routerList: Array<RouteObjectType> = [ ...@@ -844,25 +845,35 @@ export const routerList: Array<RouteObjectType> = [
path: '/systemManage/accountManage', path: '/systemManage/accountManage',
element: withLoadingComponent(<AccountManageView />), element: withLoadingComponent(<AccountManageView />),
meta: { meta: {
id: 28100, id: 1410,
title: '账号管理', title: '账号管理',
icon: <UserOutlined />, icon: <UserOutlined />,
}, },
}, },
// { {
// path: '/systemManage/accountLimit', path: '/systemManage/accountLimit',
// element: withLoadingComponent(<AccountLimit />), element: withLoadingComponent(<AccountLimit />),
// meta: { meta: {
// id: 28200, id: 1420,
// title: '账号权限', title: '权限角色',
// icon: <UserOutlined />, icon: <UserOutlined />,
// }, },
// }, },
{
path: '/systemManage/limitInfo',
element: withLoadingComponent(<LimitInfo />),
meta: {
id: 28300,
title: '权限信息',
icon: <UserOutlined />,
hidden: true,
},
},
{ {
path: '/systemManage/companyManage', path: '/systemManage/companyManage',
element: withLoadingComponent(<CompanyManageView />), element: withLoadingComponent(<CompanyManageView />),
meta: { meta: {
id: 28300, id: 1430,
title: '单位管理', title: '单位管理',
icon: <BankOutlined />, icon: <BankOutlined />,
}, },
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论