From 71b872aa44de6266a344646d0e535895620d57a7 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期日, 05 一月 2020 22:45:06 +0800 Subject: [PATCH] 2020-01-05 --- src/templates/comtableconfig/index.jsx | 39 +++++++++++++++++++++++++++++++++++---- 1 files changed, 35 insertions(+), 4 deletions(-) diff --git a/src/templates/comtableconfig/index.jsx b/src/templates/comtableconfig/index.jsx index 187031b..ae698a1 100644 --- a/src/templates/comtableconfig/index.jsx +++ b/src/templates/comtableconfig/index.jsx @@ -69,7 +69,8 @@ delActions: [], // 鍒犻櫎鎸夐挳鍒楄〃 funcLoading: false, // 瀛樺偍杩囩▼鍒涘缓涓� showColumnName: false, // 鏄剧ず鍒楀瓧娈靛悕鎺у埗 - tabviews: [] // 鎵�鏈夋爣绛鹃〉 + tabviews: [], // 鎵�鏈夋爣绛鹃〉 + profileVisible: false // 楠岃瘉淇℃伅妯℃�佹 } /** @@ -1320,7 +1321,7 @@ fields: fields, menuNo: menu.MenuNo } - newLText = Utils.formatOptions(Utils.getfunc(_param, btn, menu, _config.columns)) + newLText = Utils.formatOptions(Utils.getfunc(_param, btn, menu, _config)) DelText = Utils.formatOptions(Utils.dropfunc(_param.funcName)) resolve(true) } else { @@ -1339,7 +1340,7 @@ fields: '', menuNo: menu.MenuNo } - newLText = Utils.formatOptions(Utils.getfunc(_param, btn, menu, _config.columns)) + newLText = Utils.formatOptions(Utils.getfunc(_param, btn, menu, _config)) DelText = Utils.formatOptions(Utils.dropfunc(_param.funcName)) resolve(true) } @@ -1834,10 +1835,19 @@ }) } + /** + * @description 楠岃瘉淇℃伅閰嶇疆 + */ profileAction = (element) => { - console.log(element) + // this.setState({ + // profileVisible: true, + // card: element + // }) } + /** + * @description 涓夌骇鑿滃崟鍒囨崲妯℃澘 + */ changeTemplate = () => { this.props.handleConfig('template') } @@ -3019,6 +3029,27 @@ <Empty /> } </Modal> + {/* 鎸夐挳浣跨敤绯荤粺瀛樺偍杩囩▼鏃讹紝楠岃瘉淇℃伅妯℃�佹 */} + <Modal + wrapClassName="common-table-fields-modal" + title={'楠岃瘉淇℃伅'} + visible={this.state.profileVisible} + width={'65vw'} + style={{minWidth: '900px', maxWidth: '1200px'}} + cancelText={this.state.dict['header.close']} + onOk={this.addFieldSubmit} + onCancel={() => { // 鍙栨秷娣诲姞 + this.setState({ + tableVisible: false, + addType: '' + }) + }} + destroyOnClose + > + {this.state.addType && this.state.fields.length > 0 ? + <EditCard data={this.state.fields} ref="searchcard" type={this.state.addType} dict={this.state.dict} /> : null + } + </Modal> {/* 璁剧疆鍏ㄥ眬閰嶇疆鍙婂垪琛ㄦ暟鎹簮 */} <Modal title={this.state.dict['header.edit']} -- Gitblit v1.8.0