diff --git a/src/pages/CustomerView.vue b/src/pages/CustomerView.vue index 55dd184..e276d47 100644 --- a/src/pages/CustomerView.vue +++ b/src/pages/CustomerView.vue @@ -392,6 +392,17 @@ } this.getMainList(); }, + getAllCount: function(){ + let that = this; + customerView.getAllCount(null,function (data) { + if (data.data.code !== "0000") { + that.$Message.error("系统异常"); + } + data = data.data.results; + that.customerViewVO.allCustomer = data.allCustomer; + that.customerViewVO.allValidCustomer = data.allValidCustomer; + }); + }, /**mainList*/ getMainList: function () { let request = { @@ -413,8 +424,6 @@ // that.customerViewVO = data;//数据部分没刷新 that.customerViewVO.newCustomer = data.newCustomer; that.customerViewVO.newValidCustomer = data.newValidCustomer; - that.customerViewVO.allCustomer = data.allCustomer; - that.customerViewVO.allValidCustomer = data.allValidCustomer; that.customerViewVO.validDeleteCustomer = data.validDeleteCustomer; that.customerViewVO.allVipCount = data.allVipCount; that.customerViewVO.customerList = data.customerList; diff --git a/src/services/datacenter/customerView.js b/src/services/datacenter/customerView.js index af6f809..99e03e9 100644 --- a/src/services/datacenter/customerView.js +++ b/src/services/datacenter/customerView.js @@ -10,6 +10,9 @@ import http from '../CommonHttp' export function getMainRequest(params, call) { return http.get('/customer/view/main', params).then(call) } +export function getAllCount(params, call) { + return http.get('/customer/view/all/count', params).then(call) +} export function getAnalysisRequest(params, call) { return http.post('/analysis/add/customer', params).then(call) } @@ -24,6 +27,7 @@ export function downLoadExcel(params,filename, call) { export default { //mainList getMainRequest, + getAllCount, getAnalysisRequest, downLoadExcel, getAnalysisApplyRequest,