king
2019-12-18 1a14ff6035932eadfb6ef7970e3adb24b4e158a6
src/templates/comtableconfig/settingform/index.jsx
@@ -8,6 +8,7 @@
class SettingForm extends Component {
  static propTpyes = {
    dict: PropTypes.object, // 字典项
    menu: PropTypes.object,
    data: PropTypes.object,
    columns: PropTypes.array
  }
@@ -45,7 +46,7 @@
  }
  render() {
    const { data, dict } = this.props
    const { data, dict, menu } = this.props
    const { getFieldDecorator } = this.props.form
    const { interType } = this.state
@@ -67,6 +68,7 @@
        primaryKey = ''
      }
    }
    console.log(menu)
    return (
      <Form {...formItemLayout} className="ant-advanced-search-form commontable-setting-form" id="commontable-setting-form">
@@ -138,8 +140,8 @@
              })(<Input placeholder="" autoComplete="off" />)}
            </Form.Item>
          </Col> : null}
          <Col span={24}>
            <Form.Item label={
          {interType !== 'outer' ? <Col span={24}>
            <Form.Item help={'数据ID:' + menu.MenuID} label={
              <Tooltip placement="topLeft" title="使用系统函数时,需填写数据源,自定义函数时,可忽略。">
                <Icon type="question-circle" />
                {'数据源'}
@@ -149,7 +151,7 @@
                initialValue: data.dataresource
              })(<TextArea rows={4} />)}
            </Form.Item>
          </Col>
          </Col> : null}
          <Col span={12}>
            <Form.Item label="固定按钮">
              {getFieldDecorator('actionfixed', {