From af329b985c8532dbe3628f8cf86265273a54522f Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期三, 09 八月 2023 23:33:56 +0800
Subject: [PATCH] 2023-08-09

---
 src/tabviews/custom/components/chart/antv-X6/nodeupdate/index.scss |   36 ++++++++++--------
 src/tabviews/custom/components/chart/antv-X6/index.jsx             |    8 ++--
 src/api/index.js                                                   |   20 ++++------
 3 files changed, 32 insertions(+), 32 deletions(-)

diff --git a/src/api/index.js b/src/api/index.js
index cd5b4fb..6d70710 100644
--- a/src/api/index.js
+++ b/src/api/index.js
@@ -339,18 +339,14 @@
 
   getLCacheConfig (menuid, minutes) {
     return new Promise((resolve, reject) => {
-      if (window.GLOB.IndexDB) {
-        let limit = minutes ? moment().subtract(minutes, 'minutes').format('YYYY-MM-DD HH:mm:ss') : ''
-        CacheUtils.getIndexDBCacheConfig(menuid).then(res => {
-          if (res && res.LongParam) {
-            resolve({data: JSON.parse(res.LongParam), valid: !limit || res.CreateDate > limit})
-          } else {
-            resolve({data: null, valid: false})
-          }
-        })
-      } else {
-        resolve({data: null, valid: false})
-      }
+      let limit = minutes ? moment().subtract(minutes, 'minutes').format('YYYY-MM-DD HH:mm:ss') : ''
+      CacheUtils.getIndexDBCacheConfig(menuid).then(res => {
+        if (res && res.LongParam) {
+          resolve({data: JSON.parse(res.LongParam), valid: !limit || res.CreateDate > limit})
+        } else {
+          resolve({data: null, valid: false})
+        }
+      })
     })
   }
 
diff --git a/src/tabviews/custom/components/chart/antv-X6/index.jsx b/src/tabviews/custom/components/chart/antv-X6/index.jsx
index 6e05732..f27ca16 100644
--- a/src/tabviews/custom/components/chart/antv-X6/index.jsx
+++ b/src/tabviews/custom/components/chart/antv-X6/index.jsx
@@ -487,7 +487,7 @@
           title: com.OrgName,
           shortName: com.ShortName,
           checkable: false,
-          disabled: true,
+          selectable: false,
           children: []
         }
         let _works = []
@@ -497,7 +497,7 @@
             key: dep.co_pro_code,
             title: dep.co_pro_name,
             checkable: false,
-            disabled: true,
+            selectable: false,
             children: []
           }
 
@@ -506,7 +506,7 @@
               key: job.jobcode,
               title: job.jobname,
               checkable: false,
-              disabled: true,
+              selectable: false,
               children: []
             }
   
@@ -535,7 +535,7 @@
                   key: group.work_group,
                   title: group.work_group,
                   checkable: false,
-                  disabled: true,
+                  selectable: false,
                   children: []
                 }
 
diff --git a/src/tabviews/custom/components/chart/antv-X6/nodeupdate/index.scss b/src/tabviews/custom/components/chart/antv-X6/nodeupdate/index.scss
index 57d1d35..c6186af 100644
--- a/src/tabviews/custom/components/chart/antv-X6/nodeupdate/index.scss
+++ b/src/tabviews/custom/components/chart/antv-X6/nodeupdate/index.scss
@@ -161,8 +161,6 @@
     top: 50px;
   }
   .ant-modal-body {
-    max-height: calc(100vh - 200px);
-    overflow-y: auto;
     padding-top: 15px;
 
     .ant-input-search {
@@ -172,19 +170,25 @@
     .ant-transfer-customize-list .ant-transfer-list {
       min-height: 300px;
     }
-  }
-  .ant-modal-body::-webkit-scrollbar {
-    width: 7px;
-  }
-  .ant-modal-body::-webkit-scrollbar-thumb {
-    border-radius: 5px;
-    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.13);
-    background: rgba(0, 0, 0, 0.13);
-  }
-  .ant-modal-body::-webkit-scrollbar-track {
-    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.05);
-    border-radius: 3px;
-    border: 1px solid rgba(0, 0, 0, 0.07);
-    background: rgba(0, 0, 0, 0);
+
+    .ant-transfer-list-body {
+      max-height: calc(100vh - 320px);
+      overflow-y: auto;
+    }
+
+    .ant-transfer-list-body::-webkit-scrollbar {
+      width: 7px;
+    }
+    .ant-transfer-list-body::-webkit-scrollbar-thumb {
+      border-radius: 5px;
+      box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.13);
+      background: rgba(0, 0, 0, 0.13);
+    }
+    .ant-transfer-list-body::-webkit-scrollbar-track {
+      box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.05);
+      border-radius: 3px;
+      border: 1px solid rgba(0, 0, 0, 0.07);
+      background: rgba(0, 0, 0, 0);
+    }
   }
 }
\ No newline at end of file

--
Gitblit v1.8.0