增加序号

This commit is contained in:
zhoulingpo
2023-11-24 09:55:05 +08:00
parent 9763cd1b96
commit 8a2e733746
4 changed files with 21 additions and 3 deletions
@@ -6,6 +6,12 @@
tooltip-effect = "dark" tooltip-effect = "dark"
border border
:header-cell-style="{background: '#f8f8f9', color: '#515a6e'}"> :header-cell-style="{background: '#f8f8f9', color: '#515a6e'}">
<el-table-column
label="序号"
type="index"
align="center"
width="55">
</el-table-column>
<el-table-column <el-table-column
prop="classification" prop="classification"
label="类型" label="类型"
@@ -939,9 +939,13 @@
style="width: 100%" style="width: 100%"
v-loading="tableLoading"> v-loading="tableLoading">
<el-table-column <el-table-column
label="序号"
align="center" align="center"
type="index" type="index"
width="50"> width="50">
<template slot-scope="{scope, column, $index}">
{{ ($index + 1) + (page - 1) * $store.getters.userInfo.configContent }}
</template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
align="center" align="center"
@@ -942,9 +942,13 @@
style="width: 100%" style="width: 100%"
v-loading="tableLoading"> v-loading="tableLoading">
<el-table-column <el-table-column
label="序号"
align="center" align="center"
type="index" type="index"
width="50"> width="50">
<template slot-scope="{scope, column, $index}">
{{ ($index + 1) + (page - 1) * $store.getters.userInfo.configContent }}
</template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
align="center" align="center"
@@ -108,9 +108,13 @@
height="100%" height="100%"
> >
<el-table-column <el-table-column
label="序号"
align="center" align="center"
type="index" type="index"
min-width="5%"> min-width="5%">
<template slot-scope="{scope, column, $index}">
{{ ($index + 1) + (page - 1) * $store.getters.userInfo.configContent }}
</template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
min-width="15%" min-width="15%"