From fa2c99a6ed8574878c1bdefae5dcb839fc4ebcf8 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期四, 07 十一月 2024 21:10:43 +0800
Subject: [PATCH] 2024-11-07

---
 src/views/pcdesign/index.jsx |   37 +++++++++++++++++++++++--------------
 1 files changed, 23 insertions(+), 14 deletions(-)

diff --git a/src/views/pcdesign/index.jsx b/src/views/pcdesign/index.jsx
index 978796c..d3a7101 100644
--- a/src/views/pcdesign/index.jsx
+++ b/src/views/pcdesign/index.jsx
@@ -1218,33 +1218,34 @@
           for (let i = 0; i < 18; i++) {
             uuid += String.fromCharCode(Math.floor(Math.random() * 26) + 65)
           }
+          uuid = uuid.replace(/minke/ig, 'MNKIE')
           return uuid
         }
 
         long_data = []
-        let oriIds = {}
-        if (config.allSqls) {
-          config.allSqls.forEach(item => {
-            if (!item.md5) return
-            oriIds[item.uuid + item.md5] = item.v_id
-          })
-        }
+        // let oriIds = {}
+        // if (config.allSqls) {
+        //   config.allSqls.forEach(item => {
+        //     if (!item.md5) return
+        //     oriIds[item.uuid + item.md5] = item.v_id
+        //   })
+        // }
         
         config.allSqls = sqls.map(item => {
           let v_id = _t + getguid()
 
-          if (oriIds[item.uuid + item.md5]) {
-            v_id = oriIds[item.uuid + item.md5]
-          }
+          // if (oriIds[item.uuid + item.md5]) {
+          //   v_id = oriIds[item.uuid + item.md5]
+          // }
           
-          long_data.push(`${md5(window.GLOB.appkey + v_id)},${item.uuid},${v_id},${window.btoa(window.encodeURIComponent(item.LText))}`)
+          long_data.push(`${md5(window.GLOB.appkey + v_id)},${item.uuid},${v_id},${window.btoa(window.encodeURIComponent(item.LText))},${config.sqlperm === 'false' ? '' : item.roleId || ''}`)
           
           return {
             uuid: item.uuid,
             v_id: v_id,
             type: item.type,
             reps: item.reps,
-            md5: item.md5 || '',
+            // md5: item.md5 || '',
             luser: item.luser === true
           }
         })
@@ -1309,6 +1310,14 @@
       roleParam.msg = msg
       roleParam.backend = 'level1'
       let langSql = getLangTrans(config)
+
+      roleParam.pds = 'false'
+      if (config.interfaces) {
+        config.interfaces.forEach(item => {
+          if (item.status !== 'true') return
+          roleParam.pds = 'true'
+        })
+      }
 
       let param = {
         func: 'sPC_TrdMenu_AddUpt',
@@ -1871,8 +1880,8 @@
                 <PictureController/>
                 <Quotecomponent config={config} updateConfig={this.updateConfig}/>
                 <StyleCombControlButton menu={config} />
-                <Button className="mk-border-green" disabled={MenuId === appHomeId} onClick={this.setHomeView}><HomeOutlined /> 璁句负棣栭〉</Button>
-                <Button className="mk-border-purple" disabled={MenuId === appLoginId} onClick={this.setLoginView}><LoginOutlined/> 璁句负鐧诲綍椤�</Button>
+                <Button className="mk-border-green" disabled={MenuId === appHomeId} data-title="褰撳墠鑿滃崟涓哄簲鐢ㄩ椤�" onClick={this.setHomeView}><HomeOutlined /> 璁句负棣栭〉</Button>
+                <Button className="mk-border-purple" disabled={MenuId === appLoginId} data-title="褰撳墠鑿滃崟涓哄簲鐢ㄧ櫥褰曢〉" onClick={this.setLoginView}><LoginOutlined/> 璁句负鐧诲綍椤�</Button>
                 <ReplaceField type="custom" config={config} updateConfig={this.resetConfig}/>
                 <Transfer MenuID={MenuId} />
                 {config ? <Versions MenuId={MenuId} Template="webPage" checklog={this.checklog} updateConfig={this.updateLogConfig}/> : null}

--
Gitblit v1.8.0