From 1da6506bf58270bacc2a4345002c6b082835580e Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期四, 21 十月 2021 23:17:08 +0800
Subject: [PATCH] 2021-10-21

---
 src/templates/modalconfig/settingform/index.jsx |   52 +++++++++++++++++++++++++++++++++++++++++++++-------
 1 files changed, 45 insertions(+), 7 deletions(-)

diff --git a/src/templates/modalconfig/settingform/index.jsx b/src/templates/modalconfig/settingform/index.jsx
index a4ff109..7ca2a4b 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,19 +114,41 @@
             </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}
+                    </Select.Option>
+                  )}
+                </Select>
+              )}
+            </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>
                   )}
@@ -172,7 +193,12 @@
             </Form.Item>
           </Col>
           <Col span={12}>
-            <Form.Item label="鏄剧ず鏂瑰紡">
+            <Form.Item label={
+              <Tooltip placement="topLeft" title="鎵撳嵃鎸夐挳涓棤鏁堛��">
+                <Icon type="question-circle" />
+                鏄剧ず鏂瑰紡
+              </Tooltip>
+            }>
               {getFieldDecorator('display', {
                 initialValue: display || 'modal'
               })(
@@ -210,6 +236,18 @@
               )}
             </Form.Item>
           </Col> : null}
+          {display === 'drawer' && appType !== 'mob' ? <Col span={12}>
+            <Form.Item label="琛ㄥ崟绫诲瀷">
+              {getFieldDecorator('formType', {
+                initialValue: config.setting.formType || 'edit'
+              })(
+                <Radio.Group style={{whiteSpace: 'nowrap'}}>
+                  <Radio value="edit">缂栬緫</Radio>
+                  <Radio value="check">鏌ョ湅</Radio>
+                </Radio.Group>
+              )}
+            </Form.Item>
+          </Col> : null}
           {appType === 'mob' ? <Col span={12}>
             <Form.Item label="宸﹁竟璺�">
               {getFieldDecorator('paddingLeft', {

--
Gitblit v1.8.0