<el-table-column v-for="(item, index) in tableColumns" :key="index" :prop="item.prop" :label="item.label" :min-width="item.width">
    <template  slot-scope="scope">
         <span v-if="index == 2">
           {{scope.row.attachment ? scope.row.attachment : scope.row.url}}
          </span>
          <span v-else>
            {{scope.row[item.prop]}}
          </span>
     </template> 
  </el-table-column>

 

相关文章:

  • 2022-12-23
  • 2021-05-28
  • 2022-12-23
  • 2022-02-01
  • 2021-10-21
  • 2022-12-23
  • 2021-11-26
  • 2021-09-26
猜你喜欢
  • 2021-04-05
  • 2022-01-25
  • 2022-02-09
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案