From 42232f310806fd8118cfb627f6e90e4c11bae26a Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期三, 27 四月 2022 15:55:40 +0800
Subject: [PATCH] 2022-04-27

---
 src/store/options.js                                       |    2 
 src/views/sso/index.jsx                                    |   12 +--
 src/tabviews/custom/components/card/cardcellList/index.jsx |  118 +++++++++++++++++++++++++-------------
 3 files changed, 83 insertions(+), 49 deletions(-)

diff --git a/src/store/options.js b/src/store/options.js
index 563c2e0..1b683f6 100644
--- a/src/store/options.js
+++ b/src/store/options.js
@@ -3,7 +3,7 @@
  * 1銆亂un ( Y2xv$mkdWQ= ) 銆� dandian ( U1$mkNP ) 銆� yewu ( bG9j$mkYWw= )
  * 2銆亀indow.btoa('') 鍩熷悕 涓嶅甫 /
  * 3銆乥aoshide old ( aHR0cDovL2Nsb3VkLnBv$mkc2l0ZWNncm91cC5jb206ODA4MA== )
- * 4銆乥aoshide ( aHR0cHM6Ly9jbG91ZC5$mkwb3NpdGVjZ3JvdXAuY29t )
+ * 4銆乸ositecgroup ( aHR0cHM6Ly9jbG91ZC5$mkwb3NpdGVjZ3JvdXAuY29t )
  */
 export default {
   sysType: 'bG9j$mkYWw=',
diff --git a/src/tabviews/custom/components/card/cardcellList/index.jsx b/src/tabviews/custom/components/card/cardcellList/index.jsx
index de5702b..50fb15b 100644
--- a/src/tabviews/custom/components/card/cardcellList/index.jsx
+++ b/src/tabviews/custom/components/card/cardcellList/index.jsx
@@ -4,6 +4,7 @@
 import { Col, Tooltip, notification } from 'antd'
 import moment from 'moment'
 
+// import Api from '@/api'
 import asyncComponent from './asyncButtonComponent'
 import asyncElementComponent from '@/utils/asyncComponent'
 import { getMark } from '@/utils/utils.js'
@@ -104,50 +105,85 @@
       return
     }
 
-    if (/^sso$/ig.test(url)) {
-      if (!data.LinkUrl1) {
-        notification.warning({
-          top: 92,
-          message: '閾炬帴鍦板潃涓嶅瓨鍦紒',
-          duration: 5
-        })
-        return
-      }
+    // positecgroup
+    // if (/^sso$/ig.test(url)) {
+    //   if (!data.LinkUrl1) {
+    //     notification.warning({
+    //       top: 92,
+    //       message: '閾炬帴鍦板潃涓嶅瓨鍦紒',
+    //       duration: 5
+    //     })
+    //     return
+    //   }
 
-      let _url = data.LinkUrl1
-      if (/index\.html/ig.test(_url)) {
-        _url = _url.replace(/index\.html.*/ig, '')
-      } else if (!/\/$/ig.test(_url)) {
-        _url = _url + '/'
-      }
+    //   let _url = data.LinkUrl1
+    //   if (/index\.html/ig.test(_url)) {
+    //     _url = _url.replace(/index\.html.*/ig, '')
+    //   } else if (!/\/$/ig.test(_url)) {
+    //     _url = _url + '/'
+    //   }
 
-      url = _url + 'index.html#/ssologin/' + window.btoa(window.encodeURIComponent(JSON.stringify({
-        UserID: sessionStorage.getItem('UserID'),
-        LoginUID: sessionStorage.getItem('LoginUID'),
-        User_Name: sessionStorage.getItem('User_Name'),
-        Full_Name: sessionStorage.getItem('Full_Name'),
-        avatar: sessionStorage.getItem('avatar'),
-        dataM: data.dataM ? 'true' : '',
-        debug: data.debug || '',
-        role_id: data.role_id || ''
-      })))
+    //   let key = (() => {
+    //     let uuid = []
+    //     let timestamp = new Date().getTime()
+    //     let _options = '0123456789abcdefghigklmnopqrstuv'
+    //     for (let i = 0; i < 19; i++) {
+    //       uuid.push(_options.substr(Math.floor(Math.random() * 0x20), 1))
+    //     }
+    //     uuid = timestamp + uuid.join('')
+    //     return uuid
+    //   })()
+
+    //   let _param = {
+    //     func: 'webapi_scan_binding_key',
+    //     binding_type: 'mk',
+    //     scan_type: 'toggle',
+    //     scan_appkey: data.scan_appkey || '',
+    //     id: key
+    //   }
+  
+    //   Api.getSystemConfig(_param).then(res => {
+    //     if (!res.status) {
+    //       notification.warning({
+    //         top: 92,
+    //         message: res.message,
+    //         duration: 5
+    //       })
+    //     } else if (res.thd_party_appid && res.thd_party_member_id && res.thd_party_openid) {
+    //       let href = _url + 'admin/index.html#/ssologin/' + window.btoa(window.encodeURIComponent(JSON.stringify({
+    //         appid: res.thd_party_appid,
+    //         memberId: res.thd_party_member_id,
+    //         openid: res.thd_party_openid,
+    //         key: key
+    //       })))
+  
+    //       window.open(href)
+    //     } else {
+    //       notification.warning({
+    //         top: 92,
+    //         message: '淇℃伅缂哄け锛岃鑱旂郴绠$悊鍛橈紒',
+    //         duration: 5
+    //       })
+    //     }
+    //   })
+    //   return
+    // }
+
+    let Id = ''
+    let con = '?'
+
+    if (/\?/ig.test(url)) {
+      con = '&'
+    }
+
+    if (cards.subtype === 'propcard' && cardCell) {
+      Id = cardCell.setting.primaryId || ''
     } else {
-      let Id = ''
-      let con = '?'
-  
-      if (/\?/ig.test(url)) {
-        con = '&'
-      }
-  
-      if (cards.subtype === 'propcard' && cardCell) {
-        Id = cardCell.setting.primaryId || ''
-      } else {
-        Id = data[cards.setting.primaryKey] || ''
-      }
-      
-      if (card.joint === 'true') {
-        url = url + `${con}id=${Id}&appkey=${window.GLOB.appkey}&userid=${sessionStorage.getItem('UserID')}&LoginUID=${sessionStorage.getItem('LoginUID') || ''}`
-      }
+      Id = data[cards.setting.primaryKey] || ''
+    }
+    
+    if (card.joint === 'true') {
+      url = url + `${con}id=${Id}&appkey=${window.GLOB.appkey}&userid=${sessionStorage.getItem('UserID')}&LoginUID=${sessionStorage.getItem('LoginUID') || ''}`
     }
 
     window.open(url)
diff --git a/src/views/sso/index.jsx b/src/views/sso/index.jsx
index 03a7c03..8847f11 100644
--- a/src/views/sso/index.jsx
+++ b/src/views/sso/index.jsx
@@ -65,13 +65,11 @@
 
     Api.getSystemConfig(_param).then(res => {
       if (res.status) {
-        if (/^https/.test(window.location.protocol)) { // https杞崲
-          res.Banner = res.Banner ? res.Banner.replace(/^http:/ig, 'https:') : ''
-          res.doclogo = res.doclogo ? res.doclogo.replace(/^http:/ig, 'https:') : ''
-          res.indexlogo = res.indexlogo ? res.indexlogo.replace(/^http:/ig, 'https:') : ''
-          res.loginlogo = res.loginlogo ? res.loginlogo.replace(/^http:/ig, 'https:') : ''
-          res.titlelogo = res.titlelogo ? res.titlelogo.replace(/^http:/ig, 'https:') : ''
-        }
+        // positecgroup
+        // res.Banner = res.Banner ? res.Banner.replace(/:8080/ig, '').replace(/http:/ig, 'https:') : ''
+        // res.doclogo = res.doclogo ? res.doclogo.replace(/:8080/ig, '').replace(/http:/ig, 'https:') : ''
+        // res.indexlogo = res.indexlogo ? res.indexlogo.replace(/:8080/ig, '').replace(/http:/ig, 'https:') : ''
+        // res.loginlogo = res.loginlogo ? res.loginlogo.replace(/:8080/ig, '').replace(/http:/ig, 'https:') : ''
 
         const _href = window.location.href.split('#')[0]
         let _url = _href + 'system'

--
Gitblit v1.8.0