king
2022-04-26 5046d0d13dc6a8563b8e54e31913bc44cfa1072f
src/templates/sharecomponent/actioncomponent/verifyexcelout/index.jsx
@@ -49,16 +49,16 @@
        min: 5,
        max: 200,
        editable: true,
        width: '20%',
        width: '14%',
        render: (text) => text || 20
      },
      {
        title: '类型',
        dataIndex: 'type',
        inputType: 'select',
        inputType: 'radio',
        editable: true,
        required: false,
        width: '20%',
        width: '18%',
        render: (text) => {
          if (text === 'image') {
            return '图片'
@@ -74,12 +74,31 @@
      {
        title: '取绝对值',
        dataIndex: 'abs',
        inputType: 'select',
        inputType: 'radio',
        editable: true,
        required: false,
        width: '20%',
        width: '14%',
        render: (text) => {
          if (text === 'true') {
            return '是'
          } else {
            return '否'
          }
        },
        options: [
          {value: 'true', text: '是'},
          {value: 'false', text: '否'}
        ]
      },
      {
        title: '导出',
        dataIndex: 'output',
        inputType: 'radio',
        editable: true,
        required: false,
        width: '14%',
        render: (text) => {
          if (text !== 'false') {
            return '是'
          } else {
            return '否'
@@ -107,9 +126,10 @@
    if (card.intertype !== 'system') {
      _verify.enable = 'false'
    }
    if (_verify.columns[0] && !_verify.columns[0].type) {
    if (_verify.columns[0] && (!_verify.columns[0].type || !_verify.columns[0].output)) {
      _verify.columns = _verify.columns.map(col => {
        col.type = col.type || 'text'
        col.output = col.output || 'true'
        return col
      })
    }
@@ -192,6 +212,7 @@
    }
    values.uuid = Utils.getuuid()
    values.abs = 'false'
    values.output = 'true'
    verify.columns.push(values)
    this.setState({
@@ -398,6 +419,7 @@
        Text: item.label,
        Width: 20,
        abs: 'false',
        output: 'true',
        type: 'text',
        uuid: Utils.getuuid()
      })
@@ -437,6 +459,7 @@
          Text: col.Text,
          Width: 20,
          abs: 'false',
          output: 'true',
          type: 'text',
        }
@@ -464,7 +487,7 @@
    return (
      <div id="verify-excelout-box-tab">
        <Tabs defaultActiveKey="1" className="verify-card-box" onChange={this.tabchange}>
        <Tabs defaultActiveKey="1" className="excelout-verify-card-box" onChange={this.tabchange}>
          <TabPane tab={
            <span>
              Excel导出列