king
2021-05-10 422e566764decc740601a95118aa3a189ba7ffa6
src/templates/sharecomponent/actioncomponent/verifyexcelout/index.jsx
@@ -33,14 +33,14 @@
        inputType: 'input',
        editable: true,
        unique: true,
        width: '20%'
        width: '25%'
      },
      {
        title: this.props.dict['model.name'],
        dataIndex: 'Text',
        inputType: 'input',
        editable: true,
        width: '20%'
        width: '25%'
      },
      {
        title: this.props.dict['model.form.columnWidth'],
@@ -49,34 +49,34 @@
        min: 5,
        max: 200,
        editable: true,
        width: '20%'
        width: '25%'
      },
      {
        title: '类型',
        dataIndex: 'type',
        inputType: 'select',
        editable: true,
        required: false,
        width: '20%',
        render: (text) => {
          if (text === 'image') {
            return '图片'
          } else {
            return '文本'
          }
        },
        options: [
          {value: 'text', text: '文本'},
          {value: 'image', text: '图片'}
        ]
      },
      // {
      //   title: '类型',
      //   dataIndex: 'type',
      //   inputType: 'select',
      //   editable: true,
      //   required: false,
      //   width: '20%',
      //   render: (text) => {
      //     if (text === 'image') {
      //       return '图片'
      //     } else {
      //       return '文本'
      //     }
      //   },
      //   options: [
      //     {value: 'text', text: '文本'},
      //     {value: 'image', text: '图片'}
      //   ]
      // },
      {
        title: '取绝对值',
        dataIndex: 'abs',
        inputType: 'select',
        editable: true,
        required: false,
        width: '20%',
        width: '25%',
        render: (text) => {
          if (text === 'true') {
            return '是'
@@ -106,12 +106,12 @@
    if (card.intertype !== 'system') {
      _verify.enable = 'false'
    }
    if (_verify.columns[0] && !_verify.columns[0].type) {
      _verify.columns = _verify.columns.map(col => {
        col.type = col.type || 'text'
        return col
      })
    }
    // if (_verify.columns[0] && !_verify.columns[0].type) {
    //   _verify.columns = _verify.columns.map(col => {
    //     col.type = col.type || 'text'
    //     return col
    //   })
    // }
    let defaultscript = ''
    if (!_verify.script && card.intertype === 'system') {
@@ -395,7 +395,7 @@
        Text: item.label,
        Width: 20,
        abs: 'false',
        type: 'text',
        // type: 'text',
        uuid: Utils.getuuid()
      })
    })