element动态表格

2020-08-07  本文已影响0人  不行了快拦住我
<el-table v-loading="loading" :data="tableData" row-key="id" v-if="type == 3">
      <el-table-column className="border-right text-left" label="序号" width="60" fixed>
        <template slot-scope="scope">
          <span>{{(queryParams.pageNum - 1)* queryParams.pageSize + 1 + scope.$index}}</span>
        </template>
      </el-table-column>
       <template v-for="(item,index) in rowTal">
        <el-table-column :label="item" :key="index">
          <template slot-scope="scope">
            <span v-if="item == `数值`">{{scope.row[index].areaValue}}</span>
            <span v-else>{{scope.row[index].dayValue}}</span>
          </template>
        </el-table-column>
      </template>
    </el-table>
上一篇 下一篇

猜你喜欢

热点阅读