From c5a07dba94694d13f0a78e051dfa26c3522933ee Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期五, 15 十一月 2024 18:10:02 +0800 Subject: [PATCH] 2024-11-15 --- src/menu/components/share/colsControl/index.jsx | 15 +++++++++------ 1 files changed, 9 insertions(+), 6 deletions(-) diff --git a/src/menu/components/share/colsControl/index.jsx b/src/menu/components/share/colsControl/index.jsx index ee34472..29a113c 100644 --- a/src/menu/components/share/colsControl/index.jsx +++ b/src/menu/components/share/colsControl/index.jsx @@ -35,6 +35,9 @@ title: '瀵规瘮鏂瑰紡', dataIndex: 'match', width: '18%', + render: text => { + return text === 'regexp' ? '姝e垯琛ㄨ揪寮�' : text + } }, { title: '瀵规瘮鍊�', @@ -242,7 +245,7 @@ _config.colsCtrls = colsCtrls if (this.customForm && this.customForm.state.editItem) { - const _this = this + const that = this let title = '瀛樺湪鏈繚瀛橀」锛岀‘瀹氬拷鐣ュ悧锛�' if (s.length > 0) { title = `瀛樺湪鏈繚瀛橀」锛屼笖绗� ${s.join('銆�')} 琛屼腑瀛楁鍦ㄦ悳绱㈡潯浠朵腑涓嶅瓨鍦紝纭畾蹇界暐鍚楋紵` @@ -250,18 +253,18 @@ confirm({ title: title, onOk() { - _this.setState({ visible: false }) - _this.props.onSubmit(_config) + that.setState({ visible: false }) + that.props.onSubmit(_config) }, onCancel() {} }) } else if (s.length > 0) { - const _this = this + const that = this confirm({ title: `绗� ${s.join('銆�')} 琛屼腑瀛楁鍦ㄦ悳绱㈡潯浠朵腑涓嶅瓨鍦紝纭畾蹇界暐鍚楋紵`, onOk() { - _this.setState({ visible: false }) - _this.props.onSubmit(_config) + that.setState({ visible: false }) + that.props.onSubmit(_config) }, onCancel() {} }) -- Gitblit v1.8.0