From 769b6a40f108415293c9f1ffdf0cd77a4623c496 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期二, 17 六月 2025 21:52:36 +0800
Subject: [PATCH] 2025-06-17

---
 src/tabviews/custom/components/code/sand-box/index.jsx |   40 +++++++++++-----------------------------
 1 files changed, 11 insertions(+), 29 deletions(-)

diff --git a/src/tabviews/custom/components/code/sand-box/index.jsx b/src/tabviews/custom/components/code/sand-box/index.jsx
index d5b40b7..0116fe3 100644
--- a/src/tabviews/custom/components/code/sand-box/index.jsx
+++ b/src/tabviews/custom/components/code/sand-box/index.jsx
@@ -1,7 +1,7 @@
 import React, {Component} from 'react'
 import PropTypes from 'prop-types'
 import { is, fromJS } from 'immutable'
-import { Spin, notification, Modal } from 'antd'
+import { Spin, notification } from 'antd'
 
 import Api from '@/api'
 import UtilsDM from '@/utils/utils-datamanage.js'
@@ -42,8 +42,12 @@
     }
     
     if (_config.wrap.datatype !== 'static') {
-      _config.setting.onload = _config.setting.sync === 'true' ? 'false' : 'true'
+      _config.setting.onload = _config.setting.sync === 'true' ? 'false' : _config.setting.onload || 'true'
 
+      if (_config.setting.supModule && !BID) {
+        _config.setting.onload = 'false'
+      }
+      
       if (_config.setting.sync === 'true' && window.GLOB.SyncData.has(_config.dataName)) {
         _data = window.GLOB.SyncData.get(_config.dataName) || []
   
@@ -261,36 +265,14 @@
         loading: false
       })
 
-      if (result.message) {
-        if (result.ErrCode === 'Y') {
-          Modal.success({
-            title: result.message
-          })
-        } else if (result.ErrCode === 'S') {
-          notification.success({
-            top: 92,
-            message: result.message,
-            duration: 2
-          })
-        }
-      }
+      
+      UtilsDM.querySuccess(result)
     } else {
       this.setState({
         loading: false
       })
 
-      if (!result.message) return
-      if (result.ErrCode === 'N') {
-        Modal.error({
-          title: result.message
-        })
-      } else if (result.ErrCode !== '-2') {
-        notification.error({
-          top: 92,
-          message: result.message,
-          duration: 10
-        })
-      }
+      UtilsDM.queryFail(result)
     }
   }
 
@@ -318,8 +300,8 @@
       if (js) {
         try {
           // eslint-disable-next-line
-          let evalfunc = eval('(true && function (data, result, Api, notification) {' + js + '})')
-          evalfunc(data, result, Api, notification)
+          let evalfunc = eval('(true && function (data, result, Api, notification, systemType) {' + js + '})')
+          evalfunc(data, result, Api, notification, window.GLOB.systemType)
         } catch (e) {
           console.warn(e)
         }

--
Gitblit v1.8.0