king
2021-07-28 137fb8ea6af2789b3238b22bac31d80bced41dfe
src/menu/components/form/normal-form/groupform/index.jsx
@@ -18,13 +18,22 @@
  UNSAFE_componentWillMount () {
    const { group } = this.props
    const { appType } = this.state
    let fields = []
    if (appType === 'mob') {
      group.fields.forEach(f => {
        if (f.field && ['text', 'number'].includes(f.type) && f.hidden !== 'true' && f.readonly !== 'true') {
          fields.push(f)
        }
      })
    } else {
    group.fields.forEach(f => {
      if (f.field && ['select', 'link', 'text', 'number'].includes(f.type) && f.hidden !== 'true' && f.readonly !== 'true') {
        fields.push(f)
      }
    })
    }
    this.setState({
      fields: fields
@@ -55,7 +64,7 @@
  render() {
    const { group, dict } = this.props
    const { getFieldDecorator } = this.props.form
    const { fields } = this.state
    const { fields, appType } = this.state
    const formItemLayout = {
      labelCol: {
@@ -123,7 +132,7 @@
              )}
            </Form.Item>
          </Col>
          <Col span={12}>
          {appType !== 'mob' ? <Col span={12}>
            <Form.Item label="表单排列">
              {getFieldDecorator('align', {
                initialValue: group.setting.align || 'left_right'
@@ -134,7 +143,7 @@
                </Radio.Group>
              )}
            </Form.Item>
          </Col>
          </Col> : null}
        </Row>
      </Form>
    )