king
2021-10-11 d17368d4a5bdec6db2d8a85c7901cdb25cc59cd4
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>
@@ -693,6 +695,23 @@
                </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时表示宽度的绝对值。">