调整表格序号

This commit is contained in:
danshihao
2023-11-17 13:30:33 +08:00
parent f3fc569c6c
commit 5ae467cfd2
55 changed files with 283 additions and 55 deletions
@@ -60,6 +60,9 @@
width="55"
label="序号"
align="center">
<template slot-scope="{scope, column, $index}">
{{ ($index + 1) + (pageNo - 1) * pageSize }}
</template>
</el-table-column>
<el-table-column
prop="name"
@@ -60,6 +60,9 @@
width="55"
label="序号"
align="center">
<template slot-scope="{scope, column, $index}">
{{ ($index + 1) + (pageNo - 1) * pageSize }}
</template>
</el-table-column>
<el-table-column
prop="type"
@@ -21,6 +21,9 @@
type="index"
align="center"
width="55">
<template slot-scope="{scope, column, $index}">
{{ ($index + 1) + (page - 1) * pageSize }}
</template>
</el-table-column>
<el-table-column
width="200"
@@ -21,6 +21,9 @@
type="index"
align="center"
width="55">
<template slot-scope="{scope, column, $index}">
{{ ($index + 1) + (page - 1) * pageSize }}
</template>
</el-table-column>
<el-table-column
width="200"
@@ -21,6 +21,9 @@
type="index"
align="center"
width="55">
<template slot-scope="{scope, column, $index}">
{{ ($index + 1) + (page - 1) * pageSize }}
</template>
</el-table-column>
<el-table-column
width="200"
@@ -21,6 +21,9 @@
width="55"
label="序号"
align="center">
<template slot-scope="{scope, column, $index}">
{{ ($index + 1) + (page - 1) * pageSize }}
</template>
</el-table-column>
<el-table-column
prop="dataType"
@@ -79,7 +79,11 @@
label="序号"
width="60"
align="center"
></el-table-column>
>
<template slot-scope="{scope, column, $index}">
{{ ($index + 1) + (page - 1) * pageSize }}
</template>
</el-table-column>
<el-table-column
label="企标编号"
align="center"
@@ -241,7 +245,11 @@
label="序号"
width="60"
align="center"
></el-table-column>
>
<template slot-scope="{scope, column, $index}">
{{ ($index + 1) + (page - 1) * pageSize }}
</template>
</el-table-column>
<el-table-column
prop="planStatus"
label="计划状态"
@@ -380,7 +388,11 @@
label="序号"
width="90"
align="center"
></el-table-column>
>
<template slot-scope="{scope, column, $index}">
{{ ($index + 1) + (page - 1) * pageSize }}
</template>
</el-table-column>
<el-table-column
prop="accessContent"
label="清单名称"
@@ -428,7 +440,11 @@
label="序号"
width="60"
align="center"
></el-table-column>
>
<template slot-scope="{scope, column, $index}">
{{ ($index + 1) + (page - 1) * pageSize }}
</template>
</el-table-column>
<el-table-column
prop="lawsNumber"
align="center"
@@ -494,7 +510,11 @@
label="序号"
width="60"
align="center"
></el-table-column>
>
<template slot-scope="{scope, column, $index}">
{{ ($index + 1) + (page - 1) * pageSize }}
</template>
</el-table-column>
<el-table-column
show-overflow-tooltip
prop="planStatus"
@@ -461,6 +461,9 @@
label="序号"
width="70"
align="center">
<template slot-scope="{scope, column, $index}">
{{ ($index + 1) + (pageNo - 1) * pageSizeNo }}
</template>
</el-table-column>
<el-table-column
align="center"
@@ -327,6 +327,9 @@
width="55"
label="序号"
align="center">
<template slot-scope="{scope, column, $index}">
{{ ($index + 1) + (pageNo - 1) * pageSizeNo }}
</template>
</el-table-column>
<el-table-column
align="center"
@@ -1438,7 +1438,11 @@
label="序号"
width="80"
align="center"
></el-table-column>
>
<template slot-scope="{scope, column, $index}">
{{ ($index + 1) + (standardSearchForm.page - 1) * standardSearchForm.pageSize }}
</template>
</el-table-column>
<el-table-column
label="标准号"
align="center"
@@ -2700,7 +2704,7 @@
},
handleStandardPageChange(page) {
this.standardSearchForm.page = page
this.handleSearchStandard()
this.handleSearchStandard(true)
},
handleStandardPageSizeChange(pageSize) {
this.standardSearchForm.pageSize = pageSize
@@ -2747,11 +2751,14 @@
this.loadSarStandard = false
})
},
handleSearchStandard() {
handleSearchStandard(notModifyPage) {
if (this.form.standType === '') {
this.$message.warning('请选择标准来源')
} else {
this.standardSearchForm.page = 1
// 分页器跳转不需要回到第一页
if (!notModifyPage) {
this.standardSearchForm.page = 1
}
this.standardDrawer = true
this.$nextTick(() => {
// 动态设置表格高度
@@ -1438,7 +1438,11 @@
label="序号"
width="80"
align="center"
></el-table-column>
>
<template slot-scope="{scope, column, $index}">
{{ ($index + 1) + (standardSearchForm.page - 1) * standardSearchForm.pageSize }}
</template>
</el-table-column>
<el-table-column
label="标准号"
align="center"
@@ -2709,7 +2713,7 @@
},
handleStandardPageChange(page) {
this.standardSearchForm.page = page
this.handleSearchStandard()
this.handleSearchStandard(true)
},
handleStandardPageSizeChange(pageSize) {
this.standardSearchForm.pageSize = pageSize
@@ -2756,11 +2760,14 @@
this.loadSarStandard = false
})
},
handleSearchStandard() {
handleSearchStandard(notModifyPage) {
if (this.form.standType === '') {
this.$message.warning('请选择标准来源')
} else {
this.standardSearchForm.page = 1
// 分页器跳转不需要回到第一页
if (!notModifyPage) {
this.standardSearchForm.page = 1
}
this.standardDrawer = true
this.$nextTick(() => {
// 动态设置表格高度
@@ -957,7 +957,11 @@
label="序号"
width="80"
align="center"
></el-table-column>
>
<template slot-scope="{scope, column, $index}">
{{ ($index + 1) + (standardSearchForm.page - 1) * standardSearchForm.pageSize }}
</template>
</el-table-column>
<el-table-column
label="企标标准号"
align="center"
@@ -982,7 +982,11 @@
label="序号"
width="80"
align="center"
></el-table-column>
>
<template slot-scope="{scope, column, $index}">
{{ ($index + 1) + (standardSearchForm.page - 1) * standardSearchForm.pageSize }}
</template>
</el-table-column>
<el-table-column
v-if="this.form.reviseStatus === '3'"
align="center"
@@ -955,7 +955,9 @@
width="80"
align="center">
<template slot-scope="scope">
<span :style="{color: scope.row.standStatusShow === '作废'? '#F56C6C': '#333'}">{{ scope.$index + 1 }}</span>
<span :style="{color: scope.row.standStatusShow === '作废'? '#F56C6C': '#333'}">
{{ (scope.$index + 1) + (standardSearchForm.page - 1) * standardSearchForm.pageSize }}
</span>
</template>
</el-table-column>
<el-table-column
@@ -468,7 +468,11 @@
label="序号"
width="80"
align="center"
></el-table-column>
>
<template slot-scope="{scope, column, $index}">
{{ ($index + 1) + (standardSearchForm.page - 1) * standardSearchForm.pageSize }}
</template>
</el-table-column>
<el-table-column
label="政策编号"
align="center"
@@ -468,7 +468,11 @@
label="序号"
width="80"
align="center"
></el-table-column>
>
<template slot-scope="{scope, column, $index}">
{{ ($index + 1) + (standardSearchForm.page - 1) * standardSearchForm.pageSize }}
</template>
</el-table-column>
<el-table-column
label="政策编号"
align="center"
@@ -468,7 +468,11 @@
label="序号"
width="80"
align="center"
></el-table-column>
>
<template slot-scope="{scope, column, $index}">
{{ ($index + 1) + (standardSearchForm.page - 1) * standardSearchForm.pageSize }}
</template>
</el-table-column>
<el-table-column
label="政策编号"
align="center"
@@ -504,7 +504,11 @@
label="序号"
width="80"
align="center"
></el-table-column>
>
<template slot-scope="{scope, column, $index}">
{{ ($index + 1) + (standardSearchForm.page - 1) * standardSearchForm.pageSize }}
</template>
</el-table-column>
<el-table-column
label="政策编号"
align="center"
@@ -462,7 +462,11 @@
label="序号"
width="80"
align="center"
></el-table-column>
>
<template slot-scope="{scope, column, $index}">
{{ ($index + 1) + (standardSearchForm.page - 1) * standardSearchForm.pageSize }}
</template>
</el-table-column>
<el-table-column
label="政策编号"
align="center"
@@ -477,7 +477,11 @@
label="序号"
width="80"
align="center"
></el-table-column>
>
<template slot-scope="{scope, column, $index}">
{{ ($index + 1) + (standardSearchForm.page - 1) * standardSearchForm.pageSize }}
</template>
</el-table-column>
<el-table-column
label="政策编号"
align="center"
@@ -534,7 +534,11 @@
label="序号"
width="80"
align="center"
></el-table-column>
>
<template slot-scope="{scope, column, $index}">
{{ ($index + 1) + (standardSearchForm.page - 1) * standardSearchForm.pageSize }}
</template>
</el-table-column>
<el-table-column
label="政策编号"
align="center"
@@ -466,7 +466,11 @@
label="序号"
width="80"
align="center"
></el-table-column>
>
<template slot-scope="{scope, column, $index}">
{{ ($index + 1) + (standardSearchForm.page - 1) * standardSearchForm.pageSize }}
</template>
</el-table-column>
<el-table-column
label="政策编号"
align="center"
@@ -621,7 +621,11 @@
label="序号"
width="80"
align="center"
></el-table-column>
>
<template slot-scope="{scope, column, $index}">
{{ ($index + 1) + (standardSearchForm.page - 1) * standardSearchForm.pageSize }}
</template>
</el-table-column>
<el-table-column
label="政策编号"
align="center"
@@ -603,7 +603,11 @@
label="序号"
width="80"
align="center"
></el-table-column>
>
<template slot-scope="{scope, column, $index}">
{{ ($index + 1) + (standardSearchForm.page - 1) * standardSearchForm.pageSize }}
</template>
</el-table-column>
<el-table-column
label="政策编号"
align="center"
@@ -603,7 +603,11 @@
label="序号"
width="80"
align="center"
></el-table-column>
>
<template slot-scope="{scope, column, $index}">
{{ ($index + 1) + (standardSearchForm.page - 1) * standardSearchForm.pageSize }}
</template>
</el-table-column>
<el-table-column
label="政策编号"
align="center"
@@ -468,7 +468,11 @@
label="序号"
width="80"
align="center"
></el-table-column>
>
<template slot-scope="{scope, column, $index}">
{{ ($index + 1) + (standardSearchForm.page - 1) * standardSearchForm.pageSize }}
</template>
</el-table-column>
<el-table-column
label="政策编号"
align="center"
@@ -468,7 +468,11 @@
label="序号"
width="80"
align="center"
></el-table-column>
>
<template slot-scope="{scope, column, $index}">
{{ ($index + 1) + (standardSearchForm.page - 1) * standardSearchForm.pageSize }}
</template>
</el-table-column>
<el-table-column
label="政策编号"
align="center"
@@ -468,7 +468,11 @@
label="序号"
width="80"
align="center"
></el-table-column>
>
<template slot-scope="{scope, column, $index}">
{{ ($index + 1) + (standardSearchForm.page - 1) * standardSearchForm.pageSize }}
</template>
</el-table-column>
<el-table-column
label="政策编号"
align="center"
@@ -534,7 +534,11 @@
label="序号"
width="80"
align="center"
></el-table-column>
>
<template slot-scope="{scope, column, $index}">
{{ ($index + 1) + (standardSearchForm.page - 1) * standardSearchForm.pageSize }}
</template>
</el-table-column>
<el-table-column
label="政策编号"
align="center"
@@ -604,7 +604,11 @@
label="序号"
width="80"
align="center"
></el-table-column>
>
<template slot-scope="{scope, column, $index}">
{{ ($index + 1) + (standardSearchForm.page - 1) * standardSearchForm.pageSize }}
</template>
</el-table-column>
<el-table-column
label="政策编号"
align="center"
@@ -464,7 +464,11 @@
label="序号"
width="80"
align="center"
></el-table-column>
>
<template slot-scope="{scope, column, $index}">
{{ ($index + 1) + (standardSearchForm.page - 1) * standardSearchForm.pageSize }}
</template>
</el-table-column>
<el-table-column
label="政策编号"
align="center"
@@ -1086,7 +1086,11 @@
label="序号"
width="80"
align="center"
></el-table-column>
>
<template slot-scope="{scope, column, $index}">
{{ ($index + 1) + (standardSearchForm.page - 1) * standardSearchForm.pageSize }}
</template>
</el-table-column>
<el-table-column
v-if="this.form.reviseStatus === '3'"
align="center"
@@ -1088,7 +1088,9 @@
width="80"
align="center">
<template slot-scope="scope">
<span :style="{color: scope.row.standStatusShow === '作废'? '#F56C6C': '#333'}">{{ scope.$index + 1 }}</span>
<span :style="{color: scope.row.standStatusShow === '作废'? '#F56C6C': '#333'}">
{{ (scope.$index + 1) + (standardSearchForm.page - 1) * standardSearchForm.pageSize }}
</span>
</template>
</el-table-column>
<el-table-column
@@ -476,7 +476,11 @@
label="序号"
width="80"
align="center"
></el-table-column>
>
<template slot-scope="{scope, column, $index}">
{{ ($index + 1) + (standardSearchForm.page - 1) * standardSearchForm.pageSize }}
</template>
</el-table-column>
<el-table-column
label="政策编号"
align="center"
@@ -403,7 +403,11 @@
label="序号"
width="80"
align="center"
></el-table-column>
>
<template slot-scope="{scope, column, $index}">
{{ ($index + 1) + (standardSearchForm.page - 1) * standardSearchForm.pageSize }}
</template>
</el-table-column>
<el-table-column
label="政策编号"
align="center"
@@ -476,7 +476,11 @@
label="序号"
width="80"
align="center"
></el-table-column>
>
<template slot-scope="{scope, column, $index}">
{{ ($index + 1) + (standardSearchForm.page - 1) * standardSearchForm.pageSize }}
</template>
</el-table-column>
<el-table-column
label="政策编号"
align="center"
@@ -493,7 +493,11 @@
label="序号"
width="80"
align="center"
></el-table-column>
>
<template slot-scope="{scope, column, $index}">
{{ ($index + 1) + (standardSearchForm.page - 1) * standardSearchForm.pageSize }}
</template>
</el-table-column>
<el-table-column
label="政策编号"
align="center"
@@ -498,7 +498,11 @@
label="序号"
width="80"
align="center"
></el-table-column>
>
<template slot-scope="{scope, column, $index}">
{{ ($index + 1) + (standardSearchForm.page - 1) * standardSearchForm.pageSize }}
</template>
</el-table-column>
<el-table-column
label="政策编号"
align="center"
@@ -601,7 +601,11 @@
label="序号"
width="80"
align="center"
></el-table-column>
>
<template slot-scope="{scope, column, $index}">
{{ ($index + 1) + (standardSearchForm.page - 1) * standardSearchForm.pageSize }}
</template>
</el-table-column>
<el-table-column
label="政策编号"
align="center"
@@ -539,7 +539,11 @@
label="序号"
width="80"
align="center"
></el-table-column>
>
<template slot-scope="{scope, column, $index}">
{{ ($index + 1) + (standardSearchForm.page - 1) * standardSearchForm.pageSize }}
</template>
</el-table-column>
<el-table-column
label="政策编号"
align="center"
@@ -475,7 +475,11 @@
label="序号"
width="80"
align="center"
></el-table-column>
>
<template slot-scope="{scope, column, $index}">
{{ ($index + 1) + (standardSearchForm.page - 1) * standardSearchForm.pageSize }}
</template>
</el-table-column>
<el-table-column
label="政策编号"
align="center"
@@ -807,7 +807,11 @@
label="序号"
width="80"
align="center"
></el-table-column>
>
<template slot-scope="{scope, column, $index}">
{{ ($index + 1) + (standardSearchForm.page - 1) * standardSearchForm.pageSize }}
</template>
</el-table-column>
<el-table-column
label="政策编号"
align="center"
@@ -742,7 +742,11 @@
label="序号"
width="80"
align="center"
></el-table-column>
>
<template slot-scope="{scope, column, $index}">
{{ ($index + 1) + (standardSearchForm.page - 1) * standardSearchForm.pageSize }}
</template>
</el-table-column>
<el-table-column
label="政策编号"
align="center"
@@ -591,7 +591,11 @@
label="序号"
width="80"
align="center"
></el-table-column>
>
<template slot-scope="{scope, column, $index}">
{{ ($index + 1) + (standardSearchForm.page - 1) * standardSearchForm.pageSize }}
</template>
</el-table-column>
<el-table-column
label="政策编号"
align="center"
@@ -395,7 +395,11 @@
label="序号"
width="80"
align="center"
></el-table-column>
>
<template slot-scope="{scope, column, $index}">
{{ ($index + 1) + (standardSearchForm.page - 1) * standardSearchForm.pageSize }}
</template>
</el-table-column>
<el-table-column
label="政策编号"
align="center"
@@ -587,7 +587,11 @@
label="序号"
width="80"
align="center"
></el-table-column>
>
<template slot-scope="{scope, column, $index}">
{{ ($index + 1) + (standardSearchForm.page - 1) * standardSearchForm.pageSize }}
</template>
</el-table-column>
<el-table-column
label="政策编号"
align="center"
@@ -616,7 +616,11 @@
label="序号"
width="80"
align="center"
></el-table-column>
>
<template slot-scope="{scope, column, $index}">
{{ ($index + 1) + (standardSearchForm.page - 1) * standardSearchForm.pageSize }}
</template>
</el-table-column>
<el-table-column
label="政策编号"
align="center"
@@ -537,7 +537,11 @@
label="序号"
width="80"
align="center"
></el-table-column>
>
<template slot-scope="{scope, column, $index}">
{{ ($index + 1) + (standardSearchForm.page - 1) * standardSearchForm.pageSize }}
</template>
</el-table-column>
<el-table-column
label="政策编号"
align="center"
@@ -741,7 +741,11 @@
label="序号"
width="80"
align="center"
></el-table-column>
>
<template slot-scope="{scope, column, $index}">
{{ ($index + 1) + (standardSearchForm.page - 1) * standardSearchForm.pageSize }}
</template>
</el-table-column>
<el-table-column
label="政策编号"
align="center"
@@ -463,7 +463,11 @@
label="序号"
width="80"
align="center"
></el-table-column>
>
<template slot-scope="{scope, column, $index}">
{{ ($index + 1) + (standardSearchForm.page - 1) * standardSearchForm.pageSize }}
</template>
</el-table-column>
<el-table-column
label="政策编号"
align="center"
@@ -852,7 +852,11 @@
label="序号"
width="80"
align="center"
></el-table-column>
>
<template slot-scope="{scope, column, $index}">
{{ ($index + 1) + (standardSearchForm.page - 1) * standardSearchForm.pageSize }}
</template>
</el-table-column>
<el-table-column
label="政策编号"
align="center"
@@ -897,7 +897,11 @@
label="序号"
width="80"
align="center"
></el-table-column>
>
<template slot-scope="{scope, column, $index}">
{{ ($index + 1) + (standardSearchForm.page - 1) * standardSearchForm.pageSize }}
</template>
</el-table-column>
<el-table-column
label="政策编号"
align="center"
@@ -250,7 +250,11 @@
label="序号"
width="80"
align="center"
></el-table-column>
>
<template slot-scope="{scope, column, $index}">
{{ ($index + 1) + (standardSearchForm.page - 1) * standardSearchForm.pageSize }}
</template>
</el-table-column>
<el-table-column
label="政策编号"
align="center"
@@ -113,6 +113,9 @@
fixed="left"
type="index"
>
<template slot-scope="{scope, column, $index}">
{{ ($index + 1) + (page - 1) * pageSize }}
</template>
</el-table-column>
<el-table-column
prop="standNumber"
@@ -153,6 +153,9 @@
type="index"
width="50"
align="center">
<template slot-scope="{scope, column, $index}">
{{ ($index + 1) + (sarProStateTotalPage - 1) * sarProStatePageSize }}
</template>
</el-table-column>
<el-table-column
width="180px"