提交 14939b93 作者: ZhangLingKun

功能:服务问题修复

上级 df9f9e70
...@@ -7,6 +7,7 @@ import { InterListType, InterReqListType } from '~/api/interface'; ...@@ -7,6 +7,7 @@ import { InterListType, InterReqListType } from '~/api/interface';
import { listCompanyInspectionPageType } from '~/api/interface/mallManageType'; import { listCompanyInspectionPageType } from '~/api/interface/mallManageType';
import { ColumnsType } from 'antd/es/table'; import { ColumnsType } from 'antd/es/table';
import { useNavigate } from 'react-router-dom'; import { useNavigate } from 'react-router-dom';
import { useSelector } from 'react-redux';
// 列表类型 // 列表类型
type TableType = InterListType<listCompanyInspectionPageType>; type TableType = InterListType<listCompanyInspectionPageType>;
...@@ -18,6 +19,7 @@ let query: ReqType = {}; ...@@ -18,6 +19,7 @@ let query: ReqType = {};
const ServiceListView = () => { const ServiceListView = () => {
// 路由钩子 // 路由钩子
const navigate = useNavigate(); const navigate = useNavigate();
const { userInfo } = useSelector((state: any) => state.UserInfo);
// 行业应用列表 // 行业应用列表
const [industryList, setIndustryList] = useState< const [industryList, setIndustryList] = useState<
{ label: string; value: number; children: { label: string; value: number }[] }[] { label: string; value: number; children: { label: string; value: number }[] }[]
...@@ -257,7 +259,12 @@ const ServiceListView = () => { ...@@ -257,7 +259,12 @@ const ServiceListView = () => {
<SearchView <SearchView
child={ child={
<> <>
<Button type='primary' onClick={() => handleAdd()} icon={<PlusOutlined />}> <Button
type='primary'
onClick={() => handleAdd()}
icon={<PlusOutlined />}
disabled={!!userInfo.roleInfo.superAdmin}
>
新增服务 新增服务
</Button> </Button>
</> </>
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论