From a02fc6a77fa1b35c6516b2d37108d80e260c6c85 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期四, 07 十一月 2024 22:05:08 +0800 Subject: [PATCH] 2024-11-07 --- src/views/rolemanage/index.jsx | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/views/rolemanage/index.jsx b/src/views/rolemanage/index.jsx index bb9d731..2bd8b09 100644 --- a/src/views/rolemanage/index.jsx +++ b/src/views/rolemanage/index.jsx @@ -3,7 +3,7 @@ import { Spin, notification, Button, Table, Modal, Tree, Input, Empty } from 'antd' import moment from 'moment' import md5 from 'md5' -import { ApiOutlined, SoundOutlined } from '@ant-design/icons' +import { ApiOutlined, SoundOutlined, DatabaseOutlined } from '@ant-design/icons' import Api from '@/api' import Utils from '@/utils/utils.js' @@ -29,8 +29,8 @@ let className = window.backend && record.backend !== 'level1' ? 'unbackend' : '' if (record.extra || this.state.appKeys.includes(record.MenuID)) { return <span className={className} style={{color: '#1890ff'}}>{text}</span> - } else if (record.interfaces === 'true' || record.msg === 'true') { - return <span className={className}>{record.interfaces === 'true' ? <ApiOutlined style={{color: 'orange', marginRight: '5px'}} title="鑿滃崟涓娇鐢ㄤ簡澶栭儴鎺ュ彛" /> : null}{record.msg === 'true' ? <SoundOutlined style={{color: 'orange', marginRight: '5px'}} title="鑿滃崟涓彂閫佷簡娑堟伅" /> : null}{text}</span> + } else if (record.interfaces === 'true' || record.msg === 'true' || record.pds === 'true') { + return <span className={className}>{record.interfaces === 'true' ? <ApiOutlined style={{color: 'orange', marginRight: '5px'}} title="鑿滃崟涓娇鐢ㄤ簡澶栭儴鎺ュ彛" /> : null}{record.msg === 'true' ? <SoundOutlined style={{color: 'orange', marginRight: '5px'}} title="鑿滃崟涓彂閫佷簡娑堟伅" /> : null}{text}{record.pds === 'true' ? <DatabaseOutlined style={{marginLeft: '5px'}} title="鑿滃崟涓娇鐢ㄤ簡鍏叡鏁版嵁婧�" /> : null}</span> } return <span className={className}>{text}</span> } @@ -159,6 +159,7 @@ item.nodes = pageParam item.interfaces = pageParam.interfaces || 'false' item.msg = pageParam.msg || 'false' + item.pds = pageParam.pds || 'false' item.backend = pageParam.backend || '' if (pageParam.type) { -- Gitblit v1.8.0