提交 14939b93 作者: ZhangLingKun

功能:服务问题修复

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