前端页面table数据自动生成序号

<template>
  <div class="content-container">
    <div class="content-tool">
      <div class="content-row content-row--tool content-row--tool-first" :style="{'marginBottom': !selectShow ? '6px' : '20px'}">
        <div class="content-tool--nav" style="width: 80%;">
          <div class="content-tool--title fl">反馈项</div>
          <el-input
            placeholder="请输入反馈项搜索"
            icon="search"
            v-model="itemName"
            :on-icon-click="getDataPage"
            class="content-tool--input fl">
          </el-input>
        </div>
        <div class="content-tool--nav" style="width: 20%; float: right;">
          <div class="content-tool--operate fl">
            <el-button type="primary" class="content-tool--qry el-button-reset fl" @click="searchList">查询</el-button>
            <el-button class="content-tool--reset el-button-reset fl" @click="rest">重置</el-button>
          </div>
        </div>
      </div>
    </div>
    <div class="content-operate">
      <el-button @click="addFeedBackItem" type="primary" class="content-operate--add el-button-reset">新增</el-button>
    </div>
    <div class="table">
      <el-table
        ref="multipleTable"
        :data="feedBackItemList"
        tooltip-effect="dark"
        style="width: 100%; font-size: 13px;">
        <el-table-column
          type="index"
          :index="this.indexStartNum"
          label="序号"
          width="100">
        </el-table-column>
        <el-table-column
          prop="feedbackType"
          label="反馈类型">
        </el-table-column>
        <el-table-column
          prop="itemName"
          label="反馈项">
        </el-table-column>
        <el-table-column
          prop="todo"
          label="操作"
          width="150">
          <template slot-scope="scope">
            <span @click="delFeedBackItem(scope.row.itemId)" class="edit-operation">删除</span>
          </template>
        </el-table-column>
      </el-table>
    </div>
    <div c
  • 5
    点赞
  • 18
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值