|
@@ -1,7 +1,7 @@
|
1
|
1
|
<template>
|
2
|
2
|
<div class="body" style="font-size:14px">
|
3
|
3
|
<el-table stripe :data="tableData" border style="width: 100%">
|
4
|
|
- <el-table-column prop="sortNo" label="序号" width="50" />
|
|
4
|
+ <el-table-column type="index" label="序号" :index="getIndex" width="50" />
|
5
|
5
|
<el-table-column prop="name" label="名称" />
|
6
|
6
|
<el-table-column prop="thumb" label="图片">
|
7
|
7
|
<template slot-scope="scope">
|
|
@@ -45,6 +45,9 @@ export default {
|
45
|
45
|
this.onSearch()
|
46
|
46
|
},
|
47
|
47
|
methods: {
|
|
48
|
+ getIndex(index) {
|
|
49
|
+ return (this.currentPage - 1) * this.pageSize + index + 1
|
|
50
|
+ },
|
48
|
51
|
// 改变每页显示条数
|
49
|
52
|
handleSizeChange(val) {
|
50
|
53
|
this.pageSize = val
|