From 1dbd8e07e440e9245f10777e9e8fd2fe2b05f6af Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期一, 27 九月 2021 23:39:07 +0800 Subject: [PATCH] 2021-09-27 --- src/templates/modalconfig/settingform/index.jsx | 33 +++++++++++++++++++++++++++------ 1 files changed, 27 insertions(+), 6 deletions(-) diff --git a/src/templates/modalconfig/settingform/index.jsx b/src/templates/modalconfig/settingform/index.jsx index 0773bf1..ebe4427 100644 --- a/src/templates/modalconfig/settingform/index.jsx +++ b/src/templates/modalconfig/settingform/index.jsx @@ -7,7 +7,6 @@ class SettingForm extends Component { static propTpyes = { - dict: PropTypes.object, // 瀛楀吀椤� config: PropTypes.object, // 琛ㄥ崟閰嶇疆淇℃伅 isSubTab: PropTypes.bool, // 鏄惁涓哄瓙鏍囩 inputSubmit: PropTypes.any // 鍥炶溅鎻愪氦浜嬩欢 @@ -64,7 +63,7 @@ } render() { - const { config, dict } = this.props + const { config } = this.props const { fields, appType, display } = this.state const { getFieldDecorator } = this.props.form @@ -115,17 +114,15 @@ </Form.Item> </Col> : null} <Col span={12}> - <Form.Item label="鐒︾偣"> + <Form.Item label="鍒濆鐒︾偣"> {getFieldDecorator('focus', { initialValue: config.setting.focus || '' })( <Select showSearch + allowClear filterOption={(input, option) => option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0} > - <Select.Option value=""> - {dict['model.empty']} - </Select.Option> {fields.map(option => <Select.Option id={option.uuid} title={option.label} key={option.uuid} value={option.field}> {option.label} @@ -135,6 +132,30 @@ )} </Form.Item> </Col> + <Col span={12}> + <Form.Item label={ + <Tooltip placement="topLeft" title="鎵ц澶辫触鏃堕渶瑕佽仛鐒︾殑琛ㄥ崟銆�"> + <Icon type="question-circle" /> + 澶辫触鐒︾偣 + </Tooltip> + }> + {getFieldDecorator('errFocus', { + initialValue: config.setting.errFocus || '' + })( + <Select + showSearch + allowClear + filterOption={(input, option) => option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0} + > + {fields.map(option => + <Select.Option key={option.uuid} value={option.uuid}> + {option.label} + </Select.Option> + )} + </Select> + )} + </Form.Item> + </Col> {appType !== 'mob' ? <Col span={12}> <Form.Item label="琛ㄥ崟鎺掑垪"> {getFieldDecorator('align', { -- Gitblit v1.8.0