From 953dbd7d2a4c15dc39d80260f2ac16441de03c5f Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期五, 24 一月 2025 20:33:40 +0800
Subject: [PATCH] 2025-01-24

---
 src/menu/components/form/simple-form/index.jsx |   23 -------
 src/menu/components/form/step-form/index.jsx   |   32 ----------
 src/menu/modalconfig/index.jsx                 |   25 --------
 src/menu/datasource/verifycard/index.scss      |   12 ---
 src/menu/components/form/tab-form/index.jsx    |   32 ----------
 src/menu/datasource/verifycard/index.jsx       |   29 ---------
 6 files changed, 5 insertions(+), 148 deletions(-)

diff --git a/src/menu/components/form/simple-form/index.jsx b/src/menu/components/form/simple-form/index.jsx
index fd8d4f7..94dee26 100644
--- a/src/menu/components/form/simple-form/index.jsx
+++ b/src/menu/components/form/simple-form/index.jsx
@@ -2,7 +2,7 @@
 import PropTypes from 'prop-types'
 import { is, fromJS } from 'immutable'
 import { Popover, Modal, Button, Switch, message } from 'antd'
-import { PlusOutlined, SettingOutlined, EditOutlined, ToolOutlined, DeleteOutlined, SwapOutlined, FontColorsOutlined, VerticalRightOutlined } from '@ant-design/icons'
+import { PlusOutlined, SettingOutlined, EditOutlined, ToolOutlined, DeleteOutlined, SwapOutlined, FontColorsOutlined } from '@ant-design/icons'
 
 import asyncComponent from '@/utils/asyncComponent'
 import asyncIconComponent from '@/utils/asyncIconComponent'
@@ -517,26 +517,6 @@
     })
   }
 
-  toLower = () => {
-    let card = fromJS(this.state.card).toJS()
-    let that = this
-
-    card.subcards[0].fields = card.subcards[0].fields.map(item => {
-      if (item.field) {
-        item.field = item.field.toLowerCase()
-      }
-      return item
-    })
-    
-    confirm({
-      content: `纭畾灏嗗瓧娈佃浆涓哄皬鍐欏悧锛焋,
-      onOk() {
-        that.updateComponent(card)
-      },
-      onCancel() {}
-    })
-  }
-
   clickComponent = (e) => {
     if (sessionStorage.getItem('style-control') === 'true' || sessionStorage.getItem('style-control') === 'component') {
       e.stopPropagation()
@@ -585,7 +565,6 @@
             } trigger="hover">
               <SwapOutlined />
             </Popover> : null}
-            <VerticalRightOutlined style={{color: 'orange', transform: 'rotate(270deg)'}} title="瀛楁杞皬鍐�" onClick={this.toLower}/>
             <FormFork forms={card.subcards[0].fields}/>
             {/* <CopyOutlined title="澶嶅埗" onClick={this.triggerCopy} /> */}
             <Switch checkedChildren="寮�" unCheckedChildren="鍏�" defaultChecked={this.state.showField} onChange={(val) => this.setState({showField: val})} />
diff --git a/src/menu/components/form/step-form/index.jsx b/src/menu/components/form/step-form/index.jsx
index 81a2984..e968838 100644
--- a/src/menu/components/form/step-form/index.jsx
+++ b/src/menu/components/form/step-form/index.jsx
@@ -2,7 +2,7 @@
 import PropTypes from 'prop-types'
 import { is, fromJS } from 'immutable'
 import { Popover, Modal, Button, Switch, notification, message } from 'antd'
-import { PlusOutlined, SettingOutlined, EditOutlined, ToolOutlined, DeleteOutlined, SwapOutlined, FontColorsOutlined, VerticalRightOutlined } from '@ant-design/icons'
+import { PlusOutlined, SettingOutlined, EditOutlined, ToolOutlined, DeleteOutlined, SwapOutlined, FontColorsOutlined } from '@ant-design/icons'
 
 import asyncComponent from '@/utils/asyncComponent'
 import asyncIconComponent from '@/utils/asyncIconComponent'
@@ -615,35 +615,6 @@
     }
   }
 
-  toLower = () => {
-    let group = fromJS(this.state.group).toJS()
-    let card = fromJS(this.state.card).toJS()
-    let that = this
-
-    group.fields = group.fields.map(item => {
-      if (item.field) {
-        item.field = item.field.toLowerCase()
-      }
-      return item
-    })
-
-    card.subcards = card.subcards.map(item => {
-      if (item.uuid === group.uuid) {
-        return group
-      }
-      return item
-    })
-
-    confirm({
-      content: `纭畾灏嗗瓧娈佃浆涓哄皬鍐欏悧锛焋,
-      onOk() {
-        that.setState({group})
-        that.updateComponent(card)
-      },
-      onCancel() {}
-    })
-  }
-
   clickComponent = (e) => {
     if (sessionStorage.getItem('style-control') === 'true' || sessionStorage.getItem('style-control') === 'component') {
       e.stopPropagation()
@@ -707,7 +678,6 @@
             } trigger="hover">
               <SwapOutlined />
             </Popover> : null}
-            <VerticalRightOutlined style={{color: 'orange', transform: 'rotate(270deg)'}} title="瀛楁杞皬鍐�" onClick={this.toLower}/>
             <FormFork forms={group.fields}/>
             {/* <CopyOutlined title="澶嶅埗" onClick={this.triggerCopy} /> */}
             <Switch checkedChildren="寮�" unCheckedChildren="鍏�" defaultChecked={this.state.showField} onChange={(val) => this.setState({showField: val})} />
diff --git a/src/menu/components/form/tab-form/index.jsx b/src/menu/components/form/tab-form/index.jsx
index ba0f02b..7e830ce 100644
--- a/src/menu/components/form/tab-form/index.jsx
+++ b/src/menu/components/form/tab-form/index.jsx
@@ -2,7 +2,7 @@
 import PropTypes from 'prop-types'
 import { is, fromJS } from 'immutable'
 import { Popover, Modal, Button, Switch, notification, message } from 'antd'
-import { PlusOutlined, SettingOutlined, EditOutlined, ToolOutlined, DeleteOutlined, SwapOutlined, FontColorsOutlined, VerticalRightOutlined } from '@ant-design/icons'
+import { PlusOutlined, SettingOutlined, EditOutlined, ToolOutlined, DeleteOutlined, SwapOutlined, FontColorsOutlined } from '@ant-design/icons'
 
 import asyncComponent from '@/utils/asyncComponent'
 import asyncIconComponent from '@/utils/asyncIconComponent'
@@ -617,35 +617,6 @@
     }
   }
 
-  toLower = () => {
-    let group = fromJS(this.state.group).toJS()
-    let card = fromJS(this.state.card).toJS()
-    let that = this
-
-    group.fields = group.fields.map(item => {
-      if (item.field) {
-        item.field = item.field.toLowerCase()
-      }
-      return item
-    })
-
-    card.subcards = card.subcards.map(item => {
-      if (item.uuid === group.uuid) {
-        return group
-      }
-      return item
-    })
-
-    confirm({
-      content: `纭畾灏嗗瓧娈佃浆涓哄皬鍐欏悧锛焋,
-      onOk() {
-        that.setState({group})
-        that.updateComponent(card)
-      },
-      onCancel() {}
-    })
-  }
-
   clickComponent = (e) => {
     if (sessionStorage.getItem('style-control') === 'true' || sessionStorage.getItem('style-control') === 'component') {
       e.stopPropagation()
@@ -710,7 +681,6 @@
             } trigger="hover">
               <SwapOutlined />
             </Popover> : null}
-            <VerticalRightOutlined style={{color: 'orange', transform: 'rotate(270deg)'}} title="瀛楁杞皬鍐�" onClick={this.toLower}/>
             <FormFork forms={group.fields}/>
             {/* <CopyOutlined title="澶嶅埗" onClick={this.triggerCopy} /> */}
             <Switch checkedChildren="寮�" unCheckedChildren="鍏�" defaultChecked={this.state.showField} onChange={(val) => this.setState({showField: val})} />
diff --git a/src/menu/datasource/verifycard/index.jsx b/src/menu/datasource/verifycard/index.jsx
index 564d8e1..2de2854 100644
--- a/src/menu/datasource/verifycard/index.jsx
+++ b/src/menu/datasource/verifycard/index.jsx
@@ -1217,33 +1217,6 @@
     })
   }
 
-  tolowercase = (type) => {
-    const that = this
-    confirm({
-      content: type === 'sub' ? '纭畾灏嗗瓙琛ㄥ瓧娈佃浆涓哄皬鍐欏悧锛�' : '纭畾灏嗗瓧娈佃浆涓哄皬鍐欏悧锛�',
-      onOk() {
-        that.execlowercase(type)
-      },
-      onCancel() {}
-    })
-  }
-
-  execlowercase = (type) => {
-    const { subColumns, columns } = this.state
-
-    if (type === 'sub') {
-      this.setState({subColumns: fromJS(subColumns).toJS().map(col => {
-        col.field = col.field.toLowerCase()
-        return col
-      })})
-    } else {
-      this.setState({columns: fromJS(columns).toJS().map(col => {
-        col.field = col.field.toLowerCase()
-        return col
-      })})
-    }
-  }
-
   /**
    * @description 缁勪欢閿�姣侊紝娓呴櫎state鏇存柊
    */
@@ -1291,7 +1264,6 @@
               type="fields"
               updatefield={this.updatefields}
             />
-            <SwapOutlined className="columns-lowercase" title="杞皬鍐�" onClick={() => this.tolowercase()}/>
             <ExcelOut data={columns} setting={setting}/>
             <EditTable actions={['edit', 'move', 'copy', 'del', 'clear']} searchKey={searchKey} type="datasourcefield" wrappedComponentRef={(inst) => this.datasource = inst} data={columns} columns={colColumns} onChange={(columns) => this.setState({columns})}/>
           </TabPane> : <TabPane tab={
@@ -1316,7 +1288,6 @@
               type="fields"
               updatefield={this.updateSubfields}
             />
-            <SwapOutlined className="columns-lowercase" title="杞皬鍐�" onClick={() => this.tolowercase('sub')}/>
             <ExcelOut data={subColumns} setting={setting}/>
             <EditTable actions={['edit', 'move', 'copy', 'del', 'clear']} searchKey={searchKey} type="datasourcefield" wrappedComponentRef={(inst) => this.subdatasource = inst} data={subColumns} columns={colColumns} onChange={(subColumns) => this.setState({subColumns})}/>
           </TabPane> : null}
diff --git a/src/menu/datasource/verifycard/index.scss b/src/menu/datasource/verifycard/index.scss
index b87af52..9982345 100644
--- a/src/menu/datasource/verifycard/index.scss
+++ b/src/menu/datasource/verifycard/index.scss
@@ -146,16 +146,6 @@
       margin-right: 5px;
       cursor: pointer;
     }
-    .columns-lowercase {
-      float: right;
-      position: relative;
-      z-index: 2;
-      right: 30px;
-      height: 0px;
-      top: -15px;
-      color: orange;
-      cursor: pointer;
-    }
     .columns-out {
       float: right;
       position: relative;
@@ -169,7 +159,7 @@
       .ant-table-thead {
         .copy-control {
           top: -18px;
-          right: 55px;
+          right: 35px;
           .anticon-copy {
             margin-right: 12px;
           }
diff --git a/src/menu/modalconfig/index.jsx b/src/menu/modalconfig/index.jsx
index 91f6f5c..884b633 100644
--- a/src/menu/modalconfig/index.jsx
+++ b/src/menu/modalconfig/index.jsx
@@ -4,7 +4,7 @@
 import { DndProvider } from 'react-dnd'
 import HTML5Backend from 'react-dnd-html5-backend'
 import { Button, Card, Modal, Collapse, Switch, message, Popover } from 'antd'
-import { SettingOutlined, CopyOutlined, SwapOutlined, DeleteOutlined, VerticalRightOutlined } from '@ant-design/icons'
+import { SettingOutlined, CopyOutlined, SwapOutlined, DeleteOutlined } from '@ant-design/icons'
 
 import { getModalForm } from '@/templates/zshare/formconfig'
 import SourceElement from '@/templates/modalconfig/dragelement/source'
@@ -334,28 +334,6 @@
     })
   }
 
-  toLower = () => {
-    let _config = fromJS(this.state.config).toJS()
-    let that = this
-
-    _config.fields = _config.fields.map(item => {
-      if (item.field) {
-        item.field = item.field.toLowerCase()
-      }
-      return item
-    })
-    
-    confirm({
-      content: `纭畾灏嗗瓧娈佃浆涓哄皬鍐欏悧锛焋,
-      onOk() {
-        that.setState({
-          config: _config
-        })
-      },
-      onCancel() {}
-    })
-  }
-
   triggerCopy = () => {
     const { config } = this.state
 
@@ -435,7 +413,6 @@
                     } trigger="hover">
                       <SwapOutlined />
                     </Popover>
-                    <VerticalRightOutlined style={{color: 'orange', transform: 'rotate(270deg)'}} title="瀛楁杞皬鍐�" onClick={this.toLower}/>
                     <FormFork forms={config.fields}/>
                     <CopyOutlined title="澶嶅埗" onClick={this.triggerCopy} />
                     <Switch checkedChildren="寮�" unCheckedChildren="鍏�" defaultChecked={this.state.showField} onChange={(val) => this.setState({showField: val})} />

--
Gitblit v1.8.0