From 57266ee8c62f0fddb42c18c705507fc0dc2416f6 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期五, 18 八月 2023 17:42:39 +0800
Subject: [PATCH] 2023-08-18

---
 src/views/mobdesign/index.jsx |   61 ------------------------------
 1 files changed, 1 insertions(+), 60 deletions(-)

diff --git a/src/views/mobdesign/index.jsx b/src/views/mobdesign/index.jsx
index 21bf77f..9b01279 100644
--- a/src/views/mobdesign/index.jsx
+++ b/src/views/mobdesign/index.jsx
@@ -4,7 +4,7 @@
 import { is, fromJS } from 'immutable'
 import HTML5Backend from 'react-dnd-html5-backend'
 import { ConfigProvider, notification, Modal, Collapse, Switch, Button, message, Spin, Typography } from 'antd'
-import { DoubleLeftOutlined, DoubleRightOutlined, HomeOutlined, LoginOutlined, RedoOutlined, ArrowLeftOutlined, EyeOutlined, EyeInvisibleOutlined } from '@ant-design/icons'
+import { DoubleLeftOutlined, DoubleRightOutlined, HomeOutlined, LoginOutlined, ArrowLeftOutlined, EyeOutlined, EyeInvisibleOutlined } from '@ant-design/icons'
 import moment from 'moment'
 import md5 from 'md5'
 
@@ -165,7 +165,6 @@
     MKEmitter.addListener('triggerMenuSave', this.submitConfig)
     MKEmitter.addListener('changeEditMenu', this.changeEditMenu)
     setTimeout(() => {
-      this.getAppPictures()
       this.getRoleFields()
       setGLOBFuncs()
     }, 1000)
@@ -472,43 +471,6 @@
         sessionStorage.setItem('appViewList', JSON.stringify(appViewList))
         this.props.history.replace('/mobdesign/' + window.btoa(window.encodeURIComponent(JSON.stringify({MenuID: MenuID || homeId, type: 'view'}))))
       }
-    })
-  }
-
-  getAppPictures = () => {
-    if (sessionStorage.getItem('app_pictures')) return
-    
-    let deffers = []
-    let param = {
-      func: 's_url_db_adduptdel',
-      PageIndex: 0,  // 0 浠h〃鍏ㄩ儴
-      PageSize: 0,   // 0 浠h〃鍏ㄩ儴
-      type: 'search'
-    }
-    deffers = [new Promise(resolve => {
-      setTimeout(() => {
-        Api.getCloudConfig({...param, typecharone: 'image'}).then(res => {
-          resolve(res.data)
-        })
-      }, 500)
-    }), new Promise(resolve => {
-      setTimeout(() => {
-        Api.getCloudConfig({...param, typecharone: 'video'}).then(res => {
-          resolve(res.data)
-        })
-      }, 1000)
-    }), new Promise(resolve => {
-      setTimeout(() => {
-        Api.getCloudConfig({...param, typecharone: 'color'}).then(res => {
-          resolve(res.data)
-        })
-      }, 1500)
-    })]
-
-    Promise.all(deffers).then(response => {
-      sessionStorage.setItem('app_pictures', JSON.stringify(response[0] || []))
-      sessionStorage.setItem('app_videos', JSON.stringify(response[1] || []))
-      sessionStorage.setItem('app_colors', JSON.stringify(response[2] || []))
     })
   }
 
@@ -1936,26 +1898,6 @@
     })
   }
 
-  refreshView = () => {
-    const { oriConfig, config } = this.state
-
-    if (!is(fromJS(oriConfig || {}), fromJS(config || {}))) {
-      notification.warning({
-        top: 92,
-        message: '閰嶇疆淇℃伅鏈繚瀛橈紒',
-        duration: 5
-      })
-      return
-    }
-
-    sessionStorage.removeItem('sysRoles')
-    sessionStorage.removeItem('permFuncField')
-    sessionStorage.removeItem('app_videos')
-    sessionStorage.removeItem('app_pictures')
-    
-    window.location.reload()
-  }
-
   setHomeView = () => {
     const { oriConfig, config } = this.state
 
@@ -2185,7 +2127,6 @@
                 <ReplaceField type="custom" config={config} updateConfig={this.resetConfig}/>
                 <Transfer MenuID={MenuId} />
                 <Versions MenuId={MenuId} open_edition={config ? config.open_edition : ''}/>
-                <Button className="mk-border-danger" onClick={this.refreshView}><RedoOutlined /> 寮哄埗鍒锋柊</Button>
                 <Button type="default" onClick={this.closeView}>鍏抽棴</Button>
               </div>
             </div>

--
Gitblit v1.8.0