From 977ce3d348f898d64ea240c8397b83d3e1cc5bb4 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期三, 18 十二月 2019 09:23:05 +0800 Subject: [PATCH] 2019-12-18 --- src/templates/comtableconfig/index.jsx | 36 +++++++++++++++++++++++++++--------- 1 files changed, 27 insertions(+), 9 deletions(-) diff --git a/src/templates/comtableconfig/index.jsx b/src/templates/comtableconfig/index.jsx index e0fe8b5..cec7cb8 100644 --- a/src/templates/comtableconfig/index.jsx +++ b/src/templates/comtableconfig/index.jsx @@ -60,9 +60,10 @@ tables: [], // 鍙敤琛ㄥ悕 selectedTables: [], // 宸查�夎〃鍚� originMenu: null, // 鍘熷鑿滃崟 - originActions: null, - delActions: [], - funcLoading: false + originActions: null, // 鍘熷鎸夐挳淇℃伅锛屼娇鐢ㄥ凡鏈夌敤鎴锋ā鏉� + delActions: [], // 鍒犻櫎鎸夐挳鍒楄〃 + funcLoading: false, // 瀛樺偍杩囩▼鍒涘缓涓� + showColumnName: false // 鏄剧ず鍒楀瓧娈靛悕鎺у埗 } /** @@ -844,6 +845,16 @@ readonly: false }, { + type: 'text', + key: 'postfix', + label: this.state.dict['header.form.postfix'], + initVal: card.postfix || '', + // tooltip: '鍚庣紑鍊艰缃负"\\n",琛ㄧず鎹㈣', + tooltipClass: 'middle', + required: false, + readonly: false + }, + { type: 'select', key: 'match', label: this.state.dict['header.form.match'], @@ -863,9 +874,6 @@ }, { MenuID: '<=', text: '<=' - }, { - MenuID: 'between', - text: 'between' }], required: false }, @@ -1298,7 +1306,7 @@ notification.success({ top: 92, message: '鍒涘缓鎴愬姛', - duration: 5 + duration: 2 }) return true } @@ -1642,7 +1650,7 @@ notification.success({ top: 92, message: '淇濆瓨鎴愬姛', - duration: 10 + duration: 2 }) if (this.state.closeVisible) { this.props.handleConfig('') @@ -1905,7 +1913,7 @@ notification.success({ top: 92, message: '鎿嶄綔鎴愬姛', - duration: 5 + duration: 2 }) this.setState({ [addType + 'loading']: false @@ -2093,6 +2101,14 @@ }) } + onColumnNameChange = () => { + const { showColumnName } = this.state + + this.setState({ + showColumnName: !showColumnName + }) + } + render () { const configAction = this.state.config.action.filter(_action => !_action.origin && (_action.OpenType === 'pop' || _action.OpenType === 'popview' || _action.OpenType === 'blank' || _action.OpenType === 'tab') @@ -2242,6 +2258,7 @@ <Tooltip placement="bottomLeft" overlayClassName="middle" title="鍦ㄥ乏渚у伐鍏锋爮銆婃樉绀哄垪銆嬩腑锛岄�夋嫨瀵瑰簲绫诲瀷鐨勬樉绀哄垪鎷栬嚦姝ゅ娣诲姞锛涙垨鐐瑰嚮銆婃坊鍔犳樉绀哄垪銆嬫寜閽壒閲忔坊鍔狅紝閫夋嫨鎵归噺娣诲姞鏃讹紝闇�鎻愬墠閫夋嫨浣跨敤琛ㄣ�傛敞锛氭坊鍔犲悎骞跺垪鏃讹紝闇�璁剧疆鍙�夊垪銆�"> <Icon type="question-circle" /> </Tooltip> + <Switch checkedChildren="寮�" unCheckedChildren="鍏�" defaultChecked={this.state.showColumnName} onChange={this.onColumnNameChange} /> {!this.state.columnsloading ? <DragElement list={this.state.config.columns} @@ -2253,6 +2270,7 @@ handleMenu={this.handleColumn} deleteMenu={this.deleteElement} handleGridBtn={this.handleGridBtn} + showfield={this.state.showColumnName} /> : null } </div> -- Gitblit v1.8.0