From c27d57333ed38c92f595219d2190ea63cef4d182 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期二, 12 一月 2021 18:29:16 +0800
Subject: [PATCH] 2021-01-12

---
 src/tabviews/zshare/settingcomponent/index.jsx |   52 +++++++++++++++++++++++++++++++++++++++++++++++++---
 1 files changed, 49 insertions(+), 3 deletions(-)

diff --git a/src/tabviews/zshare/settingcomponent/index.jsx b/src/tabviews/zshare/settingcomponent/index.jsx
index a16f49a..4174989 100644
--- a/src/tabviews/zshare/settingcomponent/index.jsx
+++ b/src/tabviews/zshare/settingcomponent/index.jsx
@@ -1,9 +1,10 @@
 import React, {Component} from 'react'
 import PropTypes from 'prop-types'
 import { is, fromJS } from 'immutable'
-import { Icon, Button, Modal, notification } from 'antd'
+import { Button, Modal, notification } from 'antd'
 
 import Api from '@/api'
+import options from '@/store/options.js'
 import asyncComponent from '@/utils/asyncSpinComponent'
 import './index.scss'
 
@@ -32,6 +33,45 @@
       confirmLoading: false,
       revertLoading: false
     })
+
+    // let deffers = []
+    // config.tabgroups.forEach(group => {
+    //   group.sublist.forEach(tab => {
+    //     deffers.push(new Promise(resolve => {
+    //       let param = {
+    //         func: 'sPC_Get_LongParam',
+    //         MenuID: tab.linkTab
+    //       }
+    //       Api.getCacheConfig(param).then(res => {
+    //         res.tab = tab
+    //         resolve(res)
+    //       })
+    //     }))
+    //   })
+    // })
+
+    // if (deffers.length > 0) {
+    //   Promise.all(deffers).then(result => {
+    //     let errors = result.filter(res => !res.status)
+    //     if (errors.length > 0) {
+    //       notification.warning({
+    //         top: 92,
+    //         message: errors[0].message,
+    //         duration: 5
+    //       })
+    //       this.setState({
+    //         loading: false
+    //       })
+    //       return
+    //     }
+
+    //     let roleId = sessionStorage.getItem('role_id') || '' // 瑙掕壊ID
+    //     result.forEach(res => {
+    //       if (!res.LongParam) return
+
+    //       let subconfig = ''
+    //       let subUserConfig = userConfig ? userConfig[res.tab.uuid] : ''
+    //     }
   }
 
   changeMenuParam = (param) => {
@@ -125,8 +165,14 @@
   render() {
     
     return (
-      <div>
-        <Icon className="custom-control" type="setting" onClick={this.controlCustomSetting} />
+      <div className="page-setting-wrap">
+        {options.sysType === 'local' ? <Button
+          icon="setting"
+          shape="circle"
+          className="page-setting"
+          onClick={this.handleviewconfig}
+        /> : null}
+        {/* <Icon className="custom-control" type="setting" onClick={this.controlCustomSetting} /> */}
         <Modal
           wrapClassName="common-table-custom-modal"
           title={'鑷畾涔夎缃�'}

--
Gitblit v1.8.0