From b35e3f0bacdbadf5823e06fe8dc6e047089aae38 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期日, 19 一月 2020 00:25:45 +0800 Subject: [PATCH] 2020-01-19 --- src/templates/comtableconfig/settingform/index.jsx | 35 ++++++++++++++++++++++++++--------- 1 files changed, 26 insertions(+), 9 deletions(-) diff --git a/src/templates/comtableconfig/settingform/index.jsx b/src/templates/comtableconfig/settingform/index.jsx index 6a41881..bcf491c 100644 --- a/src/templates/comtableconfig/settingform/index.jsx +++ b/src/templates/comtableconfig/settingform/index.jsx @@ -213,15 +213,32 @@ })(<TextArea rows={4} />)} </Form.Item> </Col> : null} + {interType !== 'outer' ? <Col span={12}> + <Form.Item label={ + <Tooltip placement="topLeft" title="鏌ヨ鏃讹紝鎼滅储鏉′欢浠here鏉′欢鎷兼帴杩涘叆sql锛岀粺璁℃椂锛屽皢鏁版嵁婧愪腑浠モ�淍+鎼滅储瀛楁鈥濈殑鍐呭锛屼互鎼滅储鏉′欢涓殑鍊艰繘琛屾浛鎹㈠悗锛屾彁浜ゆ煡璇紝娉細鏌ヨ绫诲瀷浠呭湪浣跨敤绯荤粺鍑芥暟鏃舵湁鏁堛��"> + <Icon type="question-circle" /> + {dict['header.form.queryType']} + </Tooltip> + }> + {getFieldDecorator('queryType', { + initialValue: data.queryType || 'query' + })( + <Radio.Group> + <Radio value="query">{dict['header.form.query']}</Radio> + <Radio value="statistics">{dict['header.form.statistics']}</Radio> + </Radio.Group> + )} + </Form.Item> + </Col> : null} <Col span={12}> <Form.Item label="鍥哄畾鎸夐挳"> {getFieldDecorator('actionfixed', { initialValue: data.actionfixed ? 'true' : 'false' })( - <Select> - <Select.Option value="true">鏄�</Select.Option> - <Select.Option value="false">鍚�</Select.Option> - </Select> + <Radio.Group> + <Radio value="true">{dict['header.form.true']}</Radio> + <Radio value="false">{dict['header.form.false']}</Radio> + </Radio.Group> )} </Form.Item> </Col> @@ -242,14 +259,14 @@ </Form.Item> </Col> : null} <Col span={12}> - <Form.Item label="鍥哄畾鍒�"> + <Form.Item label="鍥哄畾琛ㄥご"> {getFieldDecorator('columnfixed', { initialValue: data.columnfixed ? 'true' : 'false' })( - <Select> - <Select.Option value="true">鏄�</Select.Option> - <Select.Option value="false">鍚�</Select.Option> - </Select> + <Radio.Group> + <Radio value="true">{dict['header.form.true']}</Radio> + <Radio value="false">{dict['header.form.false']}</Radio> + </Radio.Group> )} </Form.Item> </Col> -- Gitblit v1.8.0