From 142ae56e65a375e2833b3d7b9f4a82e1f22cf85a Mon Sep 17 00:00:00 2001 From: Caps <452713115@qq.com> Date: Sun, 26 Apr 2020 10:06:44 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A1=B5=E7=A0=81=E8=81=94=E5=8A=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/shop/IncreaseDataCompany.vue | 2 +- src/pages/shop/IncreaseDataStaff.vue | 2 +- src/pages/shop/IncreaseDataStore.vue | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pages/shop/IncreaseDataCompany.vue b/src/pages/shop/IncreaseDataCompany.vue index bcb2971..faff981 100644 --- a/src/pages/shop/IncreaseDataCompany.vue +++ b/src/pages/shop/IncreaseDataCompany.vue @@ -207,7 +207,7 @@ that.totalSize = data.results.sizeNum; if(that.data1){ for(let i = 0; i < that.data1.length;i++){ - that.data1[i].index = i+1; + that.data1[i].index = (that.pageNum - 1) * that.pageSize + i+1; } } } diff --git a/src/pages/shop/IncreaseDataStaff.vue b/src/pages/shop/IncreaseDataStaff.vue index edf0e0e..e7cc591 100644 --- a/src/pages/shop/IncreaseDataStaff.vue +++ b/src/pages/shop/IncreaseDataStaff.vue @@ -312,7 +312,7 @@ if (data.code === '0000') { that.data1 = data.results.dataVOS; for(let i = 0; i < that.data1.length;i++){ - that.data1[i].index = i+1; + that.data1[i].index = (that.pageNum - 1) * that.pageSize + i+1; } that.totalSize = data.results.sizeNum; } diff --git a/src/pages/shop/IncreaseDataStore.vue b/src/pages/shop/IncreaseDataStore.vue index 0fa4915..8b2c71a 100644 --- a/src/pages/shop/IncreaseDataStore.vue +++ b/src/pages/shop/IncreaseDataStore.vue @@ -232,7 +232,7 @@ debugger that.data1 = data.results.dataVOS; for (let i = 0; i < that.data1.length; i++) { - that.data1[i].index = i + 1; + that.data1[i].index = (that.pageNum - 1) * that.pageSize + i+1; } that.totalSize = data.results.sizeNum; }