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/datasource/verifycard/index.jsx | 29 ----------------------------- 1 files changed, 0 insertions(+), 29 deletions(-) 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} -- Gitblit v1.8.0