king
2021-08-31 4c9caf3828b22bf1d940b0f3a012a7d2f6f5b67a
src/menu/picturecontroller/editform/index.jsx
@@ -61,7 +61,7 @@
    return (
      <Form {...formItemLayout} className="picture-edit-model-form">
        <Row gutter={24}>
          {!card.id ? <Col span={24}>
          {!card.id && card.typecharone !== 'color' ? <Col span={24}>
            <Form.Item label="添加方式">
              <Radio.Group value={plusType} onChange={(e) => {this.changeType(e.target.value)}} disabled={false}>
                <Radio value="upload">上传</Radio>
@@ -109,7 +109,7 @@
              )}
            </Form.Item>
          </Col> : null}
          {!card.id && plusType === 'input' ? <Col span={24}>
          {!card.id && card.typecharone !== 'color' && plusType === 'input' ? <Col span={24}>
            <Form.Item label="地址">
              {getFieldDecorator('linkurl', {
                initialValue: linkurl,
@@ -126,11 +126,28 @@
              })(<TextArea autoSize={{ minRows: 3 }} onPressEnter={() => this.props.inputSubmit()}/>)}
            </Form.Item>
          </Col> : null}
          {card.id ? <Col span={24}>
          {card.id && card.typecharone !== 'color' ? <Col span={24}>
            <Form.Item label="地址">
              <TextArea value={card.linkurl} readOnly={true} autoSize={{ minRows: 3 }} />
            </Form.Item>
          </Col> : null}
          {card.typecharone === 'color' ? <Col span={24}>
            <Form.Item label="色值">
              {getFieldDecorator('linkurl', {
                initialValue: '',
                rules: [
                  {
                    required: true,
                    message: '请填写色值!'
                  },
                  {
                    max: 100,
                    message: '色值最多100个字符!'
                  }
                ]
              })(<Input onPressEnter={() => this.props.inputSubmit()}/>)}
            </Form.Item>
          </Col> : null}
          <Col span={24}>
            <Form.Item label="备注">
              {getFieldDecorator('remark', {