From 8f3a81b68d6542d11e8627c3524c74c710c5c5f7 Mon Sep 17 00:00:00 2001 From: Caps <452713115@qq.com> Date: Thu, 23 Apr 2020 16:46:39 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9D=83=E9=99=90=E6=8E=A7=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/shop/IncreaseDataCompany.vue | 7 ++++-- src/pages/shop/IncreaseDataStaff.vue | 32 +++++++++++++++++++++----- src/pages/shop/IncreaseDataStore.vue | 14 +++++++---- src/pages/user/AccountManager.vue | 4 +++- 4 files changed, 44 insertions(+), 13 deletions(-) diff --git a/src/pages/shop/IncreaseDataCompany.vue b/src/pages/shop/IncreaseDataCompany.vue index 2e2e79f..b573b1e 100644 --- a/src/pages/shop/IncreaseDataCompany.vue +++ b/src/pages/shop/IncreaseDataCompany.vue @@ -46,9 +46,8 @@ companyList: [], columns1: [ { - type: 'index', title: '序号', - key: 'id' + key: 'index' }, { title: '零售公司名称', @@ -117,6 +116,7 @@ } if (data.code === '0000') { that.companyList.push({id:'-1',name:"全部"}); + that.selectedCompany = "-1"; data.results.forEach(da => { that.companyList.push(da); }) @@ -149,6 +149,9 @@ } 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.totalSize = data.results.sizeNum; } }) diff --git a/src/pages/shop/IncreaseDataStaff.vue b/src/pages/shop/IncreaseDataStaff.vue index 6ba0747..03139ed 100644 --- a/src/pages/shop/IncreaseDataStaff.vue +++ b/src/pages/shop/IncreaseDataStaff.vue @@ -66,9 +66,8 @@ staffList: [], columns1: [ { - type: 'index', title: '序号', - key: 'id' + key: 'index' }, { title: '导购名称', @@ -96,7 +95,20 @@ }, { title: '总好友数(去重)', - key: 'effectiveCustomer' + key: 'effectiveCustomer', + render: (h, params) => { + let that = this; + if(that.data1[params.index].effectiveCustomer != null){ + return h('div', [ + h('span', {}, that.data1[params.index].effectiveCustomer), + ]) + }else { + return h('div', [ + h('span', {}, '0'), + ]) + } + + } }, { title: '新增好友数', @@ -147,6 +159,7 @@ } if (data.code === '0000') { that.companyList.push({id:'-1',name:"全部"}); + that.selectedCompany = "-1"; data.results.forEach(da => { that.companyList.push(da); }) @@ -170,6 +183,7 @@ id:'-1', name:"全部" }) + that.selectedStore = '-1'; data.results.forEach(da => { that.storeList.push(da); }) @@ -192,7 +206,8 @@ that.staffList.push({ id:'-1', name:"全部" - }) + }); + that.selectedStaff = '-1'; data.results.forEach(da => { that.staffList.push(da); }) @@ -220,7 +235,8 @@ that.storeList.push({ id:'-1', name:"全部" - }) + }); + that.selectedStore = '-1'; data.results.forEach(da => { that.storeList.push(da); }) @@ -248,7 +264,8 @@ that.staffList.push({ id:'-1', name:"全部" - }) + }); + that.selectedStaff = '-1'; data.results.forEach(da => { that.staffList.push(da); }) @@ -279,6 +296,9 @@ } 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.totalSize = data.results.sizeNum; } }) diff --git a/src/pages/shop/IncreaseDataStore.vue b/src/pages/shop/IncreaseDataStore.vue index 1bd5fbc..92568dc 100644 --- a/src/pages/shop/IncreaseDataStore.vue +++ b/src/pages/shop/IncreaseDataStore.vue @@ -56,8 +56,7 @@ columns1: [ { title: '序号', - key: 'id', - type: 'index' + key: 'index', }, { title: '店铺', @@ -131,6 +130,7 @@ } if (data.code === '0000') { that.companyList.push({id:'-1',name:"全部"}); + that.selectedCompany = "-1"; data.results.forEach(da => { that.companyList.push(da); }) @@ -153,7 +153,8 @@ that.storeList.push({ id:'-1', name:"全部" - }) + }); + that.selectedStore = '-1'; data.results.forEach(da => { that.storeList.push(da); }) @@ -181,7 +182,8 @@ that.storeList.push({ id:'-1', name:"全部" - }) + }); + that.selectedStore = '-1'; data.results.forEach(da => { that.storeList.push(da); }) @@ -218,7 +220,11 @@ return; } if(data.code === '0000'){ + debugger that.data1 = data.results.dataVOS; + for(let i = 0; i < that.data1.length;i++){ + that.data1[i].index = i+1; + } that.totalSize = data.results.sizeNum; } }) diff --git a/src/pages/user/AccountManager.vue b/src/pages/user/AccountManager.vue index d30b39e..482ca23 100644 --- a/src/pages/user/AccountManager.vue +++ b/src/pages/user/AccountManager.vue @@ -224,9 +224,10 @@ if (data.code === '0000') { data = data.results; that.roleList.push({ - id:0, + id:"0", name:"全部" }); + that.changeRoleId = "0"; for (let i = 0; i < data.length; i++) { let row = data[i]; that.roleList.push(row); @@ -252,6 +253,7 @@ id:'-1', name:"全部" }); + that.changeShopId = '-1'; data = data.results; for (let i = 0; i < data.length; i++) { let row = data[i];