From 686cbd604c04240213bda5fc8d14b1ca72e7adc1 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期二, 19 十一月 2024 14:34:34 +0800
Subject: [PATCH] 2024-11-19

---
 src/menu/components/share/actioncomponent/index.jsx |   20 +++++++++++++++-----
 1 files changed, 15 insertions(+), 5 deletions(-)

diff --git a/src/menu/components/share/actioncomponent/index.jsx b/src/menu/components/share/actioncomponent/index.jsx
index 77d657a..e71e10d 100644
--- a/src/menu/components/share/actioncomponent/index.jsx
+++ b/src/menu/components/share/actioncomponent/index.jsx
@@ -157,7 +157,7 @@
       card: element
     })
 
-    MKEmitter.emit('changeStyle', options, _style, this.getStyle)
+    MKEmitter.emit('changeStyle', options, _style, this.getStyle, 'toolBtn')
   }
 
   addButton = (cardId, element) => {
@@ -490,19 +490,19 @@
    */
   deleteElement = (card) => {
     const { config } = this.props
-    let _this = this
+    let that = this
 
     confirm({
       content: `纭畾鍒犻櫎 - ${card.label} 锛焋,
       onOk() {
-        let _actionlist = fromJS(_this.state.actionlist).toJS()
+        let _actionlist = fromJS(that.state.actionlist).toJS()
 
         _actionlist = _actionlist.filter(item => item.uuid !== card.uuid)
 
-        _this.setState({
+        that.setState({
           actionlist: _actionlist
         }, () => {
-          _this.props.updateaction({...config, action: _actionlist})
+          that.props.updateaction({...config, action: _actionlist})
         })
       },
       onCancel() {}
@@ -530,6 +530,16 @@
       let _actionlist = fromJS(this.state.actionlist).toJS()
       _actionlist = _actionlist.filter(item => !item.origin || item.uuid === card.uuid)
 
+      res.customverifys && res.customverifys.forEach(item => {
+        item.sql = item.sql.replace(/\t+|\v+/g, ' ')
+      })
+      res.scripts && res.scripts.forEach(item => {
+        item.sql = item.sql.replace(/\t+|\v+/g, ' ')
+      })
+      res.cbScripts && res.cbScripts.forEach(item => {
+        item.sql = item.sql.replace(/\t+|\v+/g, ' ')
+      })
+      
       _actionlist = _actionlist.map(item => {
         if (item.uuid === card.uuid) {
           item.verify = res

--
Gitblit v1.8.0