Browse Source

更改图标

master
dengyinhuan 2 years ago
parent
commit
6c4b0909a5
  1. 4
      web/client/src/sections/issueHandle/nav-item.js
  2. 4
      web/client/src/sections/organization/nav-item.js
  3. 4
      web/client/src/sections/patrolManage/nav-item.js
  4. 4
      web/client/src/sections/projectRegime/nav-item.js
  5. 4
      web/client/src/sections/shouye/nav-item.js

4
web/client/src/sections/issueHandle/nav-item.js

@ -1,7 +1,7 @@
import React from 'react'; import React from 'react';
import { Link } from 'react-router-dom'; import { Link } from 'react-router-dom';
import { Menu } from 'antd'; import { Menu } from 'antd';
import { SettingOutlined } from '@ant-design/icons'; import { CompressOutlined } from '@ant-design/icons';
import { Func } from '$utils'; import { Func } from '$utils';
const SubMenu = Menu.SubMenu; const SubMenu = Menu.SubMenu;
@ -13,7 +13,7 @@ export function getNavItem(user, dispatch) {
(Func.isAuthorized("SHENHE") (Func.isAuthorized("SHENHE")
|| Func.isAuthorized("ZHIDINGJIHUA") || Func.isAuthorized("ZHIDINGJIHUA")
|| Func.isAuthorized("CHAKANXIANGQING")) && || Func.isAuthorized("CHAKANXIANGQING")) &&
<Menu.Item icon={<SettingOutlined />} key="issueHandle"> <Menu.Item icon={<CompressOutlined />} key="issueHandle">
<Link to="/issueHandle">问题处理</Link> <Link to="/issueHandle">问题处理</Link>
</Menu.Item> </Menu.Item>

4
web/client/src/sections/organization/nav-item.js

@ -1,7 +1,7 @@
import React from 'react'; import React from 'react';
import { Link } from 'react-router-dom'; import { Link } from 'react-router-dom';
import { Menu } from 'antd'; import { Menu } from 'antd';
import { SettingOutlined } from '@ant-design/icons'; import { FormatPainterOutlined } from '@ant-design/icons';
import { Func } from '$utils'; import { Func } from '$utils';
const SubMenu = Menu.SubMenu; const SubMenu = Menu.SubMenu;
@ -10,7 +10,7 @@ export function getNavItem(user, dispatch) {
// return null // return null
// } // }
return ( return (
Func.isAuthorized('ORG_MANAGE') && <SubMenu key="organization" icon={<SettingOutlined />} title={'组织管理'}> Func.isAuthorized('ORG_MANAGE') && <SubMenu key="organization" icon={<FormatPainterOutlined />} title={'组织管理'}>
{Func.isAuthorized('USER_CONFIG') && <Menu.Item key="userManage"> {Func.isAuthorized('USER_CONFIG') && <Menu.Item key="userManage">
<Link to="/organization/user">部门成员</Link> <Link to="/organization/user">部门成员</Link>
</Menu.Item>} </Menu.Item>}

4
web/client/src/sections/patrolManage/nav-item.js

@ -1,7 +1,7 @@
import React from 'react'; import React from 'react';
import { Link } from 'react-router-dom'; import { Link } from 'react-router-dom';
import { Menu } from 'antd'; import { Menu } from 'antd';
import { SettingOutlined } from '@ant-design/icons'; import { GatewayOutlined } from '@ant-design/icons';
import { Func } from '$utils'; import { Func } from '$utils';
const SubMenu = Menu.SubMenu; const SubMenu = Menu.SubMenu;
@ -10,7 +10,7 @@ export function getNavItem (user, dispatch) {
// return null // return null
// } // }
return ( return (
Func.isAuthorized('PATROL_MANAGE') && <SubMenu key="patrolManage" icon={<SettingOutlined />} title={'巡检管理'}> Func.isAuthorized('PATROL_MANAGE') && <SubMenu key="patrolManage" icon={<GatewayOutlined />} title={'巡检管理'}>
{Func.isAuthorized('PATROL_PLAN_CONFIG') && <Menu.Item key="patrolPlan"> {Func.isAuthorized('PATROL_PLAN_CONFIG') && <Menu.Item key="patrolPlan">
<Link to="/patrolManage/patrolPlan">巡检计划制定</Link> <Link to="/patrolManage/patrolPlan">巡检计划制定</Link>
</Menu.Item>} </Menu.Item>}

4
web/client/src/sections/projectRegime/nav-item.js

@ -1,12 +1,12 @@
import React from 'react'; import React from 'react';
import { Link } from 'react-router-dom'; import { Link } from 'react-router-dom';
import { Menu } from 'antd'; import { Menu } from 'antd';
import { SettingOutlined } from '@ant-design/icons'; import { FunnelPlotOutlined } from '@ant-design/icons';
import { Func } from '$utils'; import { Func } from '$utils';
const SubMenu = Menu.SubMenu; const SubMenu = Menu.SubMenu;
export function getNavItem (user, dispatch) { export function getNavItem (user, dispatch) {
return Func.isAuthorized('STRUCTURE_MANAGE') && <SubMenu key="projectRegime" icon={<SettingOutlined />} title={'结构物管理'}> return Func.isAuthorized('STRUCTURE_MANAGE') && <SubMenu key="projectRegime" icon={<FunnelPlotOutlined />} title={'结构物管理'}>
{Func.isAuthorized('STRU_INFO_CONFIG') &&<Menu.Item key="information"> {Func.isAuthorized('STRU_INFO_CONFIG') &&<Menu.Item key="information">
<Link to="/projectRegime/information">结构物基础信息管理</Link> <Link to="/projectRegime/information">结构物基础信息管理</Link>
</Menu.Item>} </Menu.Item>}

4
web/client/src/sections/shouye/nav-item.js

@ -1,7 +1,7 @@
import React from 'react'; import React from 'react';
import { Link } from 'react-router-dom'; import { Link } from 'react-router-dom';
import { Menu } from 'antd'; import { Menu } from 'antd';
import { SettingOutlined } from '@ant-design/icons'; import { HomeOutlined } from '@ant-design/icons';
import { Func } from '$utils'; import { Func } from '$utils';
const SubMenu = Menu.SubMenu; const SubMenu = Menu.SubMenu;
@ -14,7 +14,7 @@ export function getNavItem (user, dispatch) {
// <Link to="/projectRegime/qrCode">二维码管理</Link> // <Link to="/projectRegime/qrCode">二维码管理</Link>
// </Menu.Item>} */} // </Menu.Item>} */}
// </SubMenu> // </SubMenu>
return <Menu.Item key="shouye"> return <Menu.Item key="shouye" icon={<HomeOutlined />}>
<Link to="/shouye">首页</Link> <Link to="/shouye">首页</Link>
</Menu.Item> </Menu.Item>

Loading…
Cancel
Save