king
2020-12-31 eebe63a6727e6495321d1433ebd2779b5a36d45a
src/templates/sharecomponent/settingcomponent/settingform/datasource/index.jsx
@@ -11,7 +11,7 @@
class SettingForm extends Component {
  static propTpyes = {
    type: PropTypes.string,       // 菜单类型,main或subtable
    config: PropTypes.object,     // 页面配置
    dict: PropTypes.object,       // 字典项
    menu: PropTypes.object,       // 菜单信息
    setting: PropTypes.object,    // 数据源配置
@@ -174,7 +174,7 @@
  }
  render() {
    const { setting, dict, menu, type, columns } = this.props
    const { setting, dict, menu, config, columns } = this.props
    const { getFieldDecorator } = this.props.form
    const { interType, funcRules, funcTooltip } = this.state
@@ -400,7 +400,7 @@
                </Radio.Group>)}
              </Form.Item>
            </Col>
            {type === 'main' ? <Col span={12}>
            {config.Template === 'CommonTable' ? <Col span={12}>
              <Form.Item label="按钮固定">
                {getFieldDecorator('actionfixed', {
                  initialValue: setting.actionfixed === 'true' || setting.actionfixed === true ? 'true' : 'false'
@@ -411,7 +411,7 @@
                </Radio.Group>)}
              </Form.Item>
            </Col> : null}
            {type === 'main' ? <Col span={12}>
            {config.Template === 'CommonTable' ? <Col span={12}>
              <Form.Item label={
                <Tooltip placement="topLeft" title={'含有合并列或表格出现横向滚动时会显示异常,请慎用!'}>
                  <Icon type="question-circle" />
@@ -438,6 +438,24 @@
                </Radio.Group>)}
              </Form.Item>
            </Col>
            <Col span={12}>
              <Form.Item label={
                <Tooltip placement="topLeft" title="双击表格中行,触发的按钮。">
                  <Icon type="question-circle" />
                  双击事件
                </Tooltip>
              }>
                {getFieldDecorator('doubleClick', {
                  initialValue: setting.doubleClick || ''
                })(
                  <Select allowClear>
                    {config.action.map(option =>
                      <Select.Option key={option.uuid} value={option.uuid}>{option.label}</Select.Option>
                    )}
                  </Select>
                )}
              </Form.Item>
            </Col>
          </Row>
        </Form>
      </div>