king
2020-01-19 b35e3f0bacdbadf5823e06fe8dc6e047089aae38
src/templates/subtableconfig/settingform/index.jsx
@@ -183,6 +183,23 @@
              })(<TextArea rows={4} />)}
            </Form.Item>
          </Col> : null}
          {interType !== 'outer' ? <Col span={12}>
            <Form.Item label={
              <Tooltip placement="topLeft" title="查询时,搜索条件以where条件拼接进入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('primaryKey', {
@@ -236,6 +253,18 @@
              })(<Input placeholder="ID asc, UID desc" autoComplete="off" />)}
            </Form.Item>
          </Col>
          <Col span={12}>
            <Form.Item label="初始化">
              {getFieldDecorator('onload', {
                initialValue: data.onload || 'true'
              })(
                <Select>
                  <Select.Option value="true">加载数据</Select.Option>
                  <Select.Option value="false">不加载数据</Select.Option>
                </Select>
              )}
            </Form.Item>
          </Col>
        </Row>
      </Form>
    )