king
2024-02-26 3379f5e1972498f25a9a37fae53685431adcd6c9
2024-02-26
4个文件已修改
56 ■■■■■ 已修改文件
src/templates/sharecomponent/actioncomponent/verifyexcelin/columnform/index.jsx 9 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/templates/sharecomponent/actioncomponent/verifyexcelin/index.jsx 32 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/templates/sharecomponent/actioncomponent/verifyexcelout/columnform/index.jsx 11 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/templates/sharecomponent/actioncomponent/verifyexcelout/index.jsx 4 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/templates/sharecomponent/actioncomponent/verifyexcelin/columnform/index.jsx
@@ -45,10 +45,11 @@
          values.limit = ''
        }
        this.props.columnChange(values)
        this.props.form.setFieldsValue({
          Column: '',
          Text: ''
        this.props.columnChange(values, () => {
          this.props.form.setFieldsValue({
            Column: '',
            Text: ''
          })
        })
      }
    })
src/templates/sharecomponent/actioncomponent/verifyexcelin/index.jsx
@@ -521,7 +521,7 @@
    })
  }
  columnChange = (values) => {
  columnChange = (values, callback) => {
    let verify = JSON.parse(JSON.stringify(this.state.verify))
    let fields = verify.columns.map(item => item.Column)
@@ -532,6 +532,8 @@
        duration: 5
      })
      return
    } else {
      callback()
    }
    values.uuid = Utils.getuuid()
@@ -902,19 +904,6 @@
                    </Radio.Group>)}
                  </Form.Item>
                </Col>
                {verify.excelHandle === 'true' ? <Col span={24} style={{paddingLeft: '30px'}}>
                  <Form.Item wrapperCol={ {xs: { span: 24 }, sm: { span: 24 }} } label="">
                    {getFieldDecorator('excel_func', {
                      initialValue: verify.excel_func || '',
                      rules: [
                        {
                          required: true,
                          message: '请填写自定义逻辑!'
                        }
                      ]
                    })(<CodeMirror mode="text/javascript" theme="cobalt" />)}
                  </Form.Item>
                </Col> : null}
                {verify.excelHandle !== 'true' ? <Col span={8}>
                  <Form.Item label={
                    <Tooltip placement="bottomLeft" title="导入时工作表名与excel中必须一致,注:工作表名为Sheet1且excel中仅有一个工作表时不进行表名验证。">
@@ -933,7 +922,7 @@
                    })(<Input placeholder="" autoComplete="off" />)}
                  </Form.Item>
                </Col> : null}
                {verify.excelHandle !== 'true' ? <Col span={8}>
                <Col span={8}>
                  <Form.Item label={
                    <Tooltip placement="bottomLeft" title="忽略首行时,会校验excel中表头名称与excel列设置是否一致。">
                      <QuestionCircleOutlined className="mk-form-tip" />
@@ -944,6 +933,19 @@
                      initialValue: verify.range || 0
                    })(<InputNumber min={0} max={100} precision={0} />)}
                  </Form.Item>
                </Col>
                {verify.excelHandle === 'true' ? <Col span={24} style={{paddingLeft: '30px'}}>
                  <Form.Item wrapperCol={ {xs: { span: 24 }, sm: { span: 24 }} } label="">
                    {getFieldDecorator('excel_func', {
                      initialValue: verify.excel_func || '',
                      rules: [
                        {
                          required: true,
                          message: '请填写自定义逻辑!'
                        }
                      ]
                    })(<CodeMirror mode="text/javascript" theme="cobalt" />)}
                  </Form.Item>
                </Col> : null}
              </Row>
            </Form>
src/templates/sharecomponent/actioncomponent/verifyexcelout/columnform/index.jsx
@@ -12,11 +12,12 @@
    // 表单提交时检查输入值是否正确
    this.props.form.validateFieldsAndScroll((err, values) => {
      if (!err) {
        this.props.columnChange(values)
        this.props.form.setFieldsValue({
          Column: '',
          Text: '',
          Width: 20
        this.props.columnChange(values, () => {
          this.props.form.setFieldsValue({
            Column: '',
            Text: '',
            Width: 20
          })
        })
      }
    })
src/templates/sharecomponent/actioncomponent/verifyexcelout/index.jsx
@@ -411,7 +411,7 @@
    })
  }
  columnChange = (values) => {
  columnChange = (values, callback) => {
    let verify = JSON.parse(JSON.stringify(this.state.verify))
    let fields = verify.columns.map(item => item.Column)
@@ -422,6 +422,8 @@
        duration: 5
      })
      return
    } else {
      callback()
    }
    values.uuid = Utils.getuuid()
    values.abs = 'false'