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; }