From d17368d4a5bdec6db2d8a85c7901cdb25cc59cd4 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期一, 11 十月 2021 15:16:25 +0800 Subject: [PATCH] 2021-10-11 --- src/templates/sharecomponent/settingcomponent/settingform/datasource/index.jsx | 63 ++++++++++++++++++++++++++++++- 1 files changed, 60 insertions(+), 3 deletions(-) diff --git a/src/templates/sharecomponent/settingcomponent/settingform/datasource/index.jsx b/src/templates/sharecomponent/settingcomponent/settingform/datasource/index.jsx index 2e620cb..67b0e77 100644 --- a/src/templates/sharecomponent/settingcomponent/settingform/datasource/index.jsx +++ b/src/templates/sharecomponent/settingcomponent/settingform/datasource/index.jsx @@ -28,6 +28,7 @@ interType: 'system', procMode: 'script', requestMode: 'system', + tableType: '', funcTooltip: '', funcRules: [] } @@ -64,6 +65,7 @@ interType: setting.interType || 'system', procMode: setting.procMode || 'script', requestMode: setting.requestMode || 'system', + tableType: setting.tableType, funcTooltip: tooltip, funcRules: rules }) @@ -192,7 +194,7 @@ render() { const { setting, dict, menu, config, columns } = this.props const { getFieldDecorator } = this.props.form - const { interType, funcRules, funcTooltip, procMode, requestMode } = this.state + const { interType, funcRules, funcTooltip, procMode, requestMode, tableType } = this.state const formItemLayout = { labelCol: { @@ -231,7 +233,7 @@ {getFieldDecorator('tableType', { initialValue: setting.tableType })( - <Radio.Group> + <Radio.Group onChange={(e) => this.setState({tableType: e.target.value})}> <Radio value="">涓嶅彲閫�</Radio> <Radio value="radio">鍗曢��</Radio> <Radio value="checkbox">澶氶��</Radio> @@ -617,7 +619,12 @@ </Form.Item> </Col> <Col span={12}> - <Form.Item label="琛ㄦ牸澶у皬"> + <Form.Item label={ + <Tooltip placement="topLeft" title={'琛ㄦ牸鐨勫唴杈硅窛锛屼粠澶у埌灏忎緷娆¢�掑噺銆�'}> + <Icon type="question-circle" /> + 琛ㄦ牸澶у皬 + </Tooltip> + }> {getFieldDecorator('size', { initialValue: setting.size || 'middle' })( @@ -625,6 +632,7 @@ <Radio value="default">澶�</Radio> <Radio value="middle">涓�</Radio> <Radio value="small">灏�</Radio> + {/* <Radio value="mini">寰�</Radio> */} </Radio.Group>)} </Form.Item> </Col> @@ -657,6 +665,55 @@ </Col> <Col span={12}> <Form.Item label={ + <Tooltip placement="topLeft" title="鏁版嵁鍔犺浇鏃讹紝鏄惁鏄剧ず鍔犺浇涓殑閬僵銆�"> + <Icon type="question-circle" /> + 閬僵 + </Tooltip> + }> + {getFieldDecorator('mask', { + initialValue: setting.mask || 'show' + })( + <Radio.Group> + <Radio value="show">鏄剧ず</Radio> + <Radio value="hidden">闅愯棌</Radio> + </Radio.Group>)} + </Form.Item> + </Col> + <Col span={12}> + <Form.Item label={ + <Tooltip placement="topLeft" title="鍦ㄦ悳绱㈡潯浠跺瓨鍦ㄦ椂锛屾槸鍚︽樉绀烘悳绱㈠拰閲嶇疆鎸夐挳銆�"> + <Icon type="question-circle" /> + 鎼滅储鎸夐挳 + </Tooltip> + }> + {getFieldDecorator('show', { + initialValue: setting.show || 'true' + })( + <Radio.Group> + <Radio value="true">鏄剧ず</Radio> + <Radio value="false">闅愯棌</Radio> + </Radio.Group>)} + </Form.Item> + </Col> + {tableType !== '' ? <Col span={12}> + <Form.Item label={ + <Tooltip placement="topLeft" title="鍦ㄥ惎鐢ㄦ棤浜哄�煎畧鍔熻兘鏃舵棤鏁堛��"> + <Icon type="question-circle" /> + 棣栬閫変腑 + </Tooltip> + }> + {getFieldDecorator('selected', { + initialValue: setting.selected || 'false' + })( + <Radio.Group> + <Radio value="false">鏃�</Radio> + <Radio value="init">鍒濆鍖�</Radio> + <Radio value="always">鏁版嵁鍔犺浇</Radio> + </Radio.Group>)} + </Form.Item> + </Col> : null} + <Col span={12}> + <Form.Item label={ <Tooltip placement="topLeft" title="楂樼骇鎼滅储寮圭獥鐨勫搴︼紝娉細褰撳搴﹀�煎皬浜�100鏃惰〃绀哄崰绐楀彛鐨勭櫨鍒嗘瘮锛屽ぇ浜�100鏃惰〃绀哄搴︾殑缁濆鍊笺��"> <Icon type="question-circle" /> 楂樼骇鎼滅储 -- Gitblit v1.8.0