|
@@ -1,5 +1,5 @@
|
|
<template>
|
|
<template>
|
|
- <div class="app-container" style="padding: 0 20px;padding-bottom: 0;">
|
|
|
|
|
|
+ <div class="app-container" style="padding: 0 20px;padding-bottom: 20px;">
|
|
|
|
|
|
<el-menu :router="true" default-active="/goods/list/commonly" class="el-menu-demo" mode="horizontal">
|
|
<el-menu :router="true" default-active="/goods/list/commonly" class="el-menu-demo" mode="horizontal">
|
|
<el-menu-item index="/goods/list">全部商品</el-menu-item>
|
|
<el-menu-item index="/goods/list">全部商品</el-menu-item>
|
|
@@ -55,7 +55,7 @@
|
|
>
|
|
>
|
|
<el-table-column align="center" label="序号" width="50px">
|
|
<el-table-column align="center" label="序号" width="50px">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
- {{ scope.$index+1 }}
|
|
|
|
|
|
+ {{ ((pageNum-1)*listQuery.pageSize)+scope.$index+1 }}
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column label="商品ID" align="center" prop="id" width="70px" />
|
|
<el-table-column label="商品ID" align="center" prop="id" width="70px" />
|
|
@@ -104,7 +104,8 @@ export default {
|
|
components: { Pagination },
|
|
components: { Pagination },
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
- modulesId: '3', // 模块3
|
|
|
|
|
|
+ modulesId: '3', // 模块
|
|
|
|
+ pageNum: 0,
|
|
list: null,
|
|
list: null,
|
|
classify: null,
|
|
classify: null,
|
|
modules: null,
|
|
modules: null,
|
|
@@ -143,6 +144,7 @@ export default {
|
|
const { organizeProductsPage, listByEffective } = response.data
|
|
const { organizeProductsPage, listByEffective } = response.data
|
|
this.list = organizeProductsPage.results
|
|
this.list = organizeProductsPage.results
|
|
this.total = organizeProductsPage.totalRecord
|
|
this.total = organizeProductsPage.totalRecord
|
|
|
|
+ this.pageNum = organizeProductsPage.index
|
|
this.classify = listByEffective
|
|
this.classify = listByEffective
|
|
this.listLoading = false
|
|
this.listLoading = false
|
|
})
|
|
})
|