From cd84b8f81b7da32e05f5cff6498242c7b77d1986 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期四, 10 四月 2025 11:53:37 +0800
Subject: [PATCH] 2025-04-10

---
 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 a63b474..2e930ee 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, DatabaseOutlined } from '@ant-design/icons'
+import { ApiOutlined, SoundOutlined, DatabaseOutlined, LockOutlined } from '@ant-design/icons'
 
 import Api from '@/api'
 import Utils from '@/utils/utils.js'
@@ -32,8 +32,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' || 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={{color: 'orange', marginLeft: '5px'}} title="鑿滃崟涓娇鐢ㄤ簡鍏叡鏁版嵁婧�" /> : null}</span>
+          } else if (record.interfaces === 'true' || record.msg === 'true' || record.pds === 'true' || record.enabled === false) {
+            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={{color: 'orange', marginLeft: '5px'}} title="鑿滃崟涓娇鐢ㄤ簡鍏叡鏁版嵁婧�" /> : null}{record.enabled === false ? <LockOutlined style={{color: 'orange', marginLeft: '5px'}} title="鑿滃崟鏈惎鐢�" /> : null}</span>
           }
           return <span className={className}>{text}</span>
         }
@@ -162,6 +162,7 @@
               item.interfaces = pageParam.interfaces || 'false'
               item.msg = pageParam.msg || 'false'
               item.pds = pageParam.pds || 'false'
+              item.enabled = pageParam.enabled
               item.backend = pageParam.backend || ''
               
               if (pageParam.type) {

--
Gitblit v1.8.0