首页优化

master
yechenhao 6 years ago
parent 3d88e6ac16
commit 05615e6150

@ -396,6 +396,8 @@
break;
}
this.getMainList();
this.getMainDateList();
this.getMainDel();
this.getAllCount();
},
getAllCount: function(){
@ -419,10 +421,7 @@
endTime: this.endTime
};
let that = this;
//
this.spinShow = true;
customerView.getMainRequest(request, function (data) {
that.spinShow = false;
if (data.data.code !== "0000") {
that.$Message.error("系统异常");
}
@ -430,13 +429,9 @@
// that.customerViewVO = data;//
that.customerViewVO.newCustomer = data.newCustomer;
that.customerViewVO.newValidCustomer = data.newValidCustomer;
that.customerViewVO.validDeleteCustomer = data.validDeleteCustomer;
that.customerViewVO.allVipCount = data.allVipCount;
that.customerViewVO.customerList = data.customerList;
that.customerViewVO.validCustomerList = data.validCustomerList;
that.customerViewVO.orgNewCustomerList = data.orgNewCustomerList;
that.customerViewVO.shopNewCustomerList = data.shopNewCustomerList;
that.customerViewVO.zeroExtendList = data.zeroExtendList;
that.chartData.rows = [];
if (that.startTime && that.endTime) {
let tmpStartTime = that.startTime;
@ -461,6 +456,43 @@
that.resizeWindow();
});
},
getMainDateList: function () {
let request = {
userId: this.userId,
selectStartTime: this.selectStartTime == null ? null : this.$moment(this.selectStartTime).format("YYYY-MM-DD 00:00:00"),
selectEndTime: this.selectEndTime == null ? null : this.$moment(this.selectEndTime).format("YYYY-MM-DD HH:mm:ss")
};
let that = this;
//
this.spinShow = true;
customerView.getMainDateRequest(request, function (data) {
that.spinShow = false;
if (data.data.code !== "0000") {
that.$Message.error("系统异常");
}
data = data.data.results;
that.customerViewVO.orgNewCustomerList = data.orgNewCustomerList;
that.customerViewVO.shopNewCustomerList = data.shopNewCustomerList;
that.customerViewVO.zeroExtendList = data.zeroExtendList;
//
that.percentResize();
//()
that.resizeWindow();
});
},
getMainDel: function () {
let request = {
userId: this.userId
};
let that = this;
//
customerView.getMainDel(request, function (data) {
if (data.data.code !== "0000") {
that.$Message.error("系统异常");
}
that.customerViewVO.validDeleteCustomer = data.validDeleteCustomer;
});
},
//广
zeroExtendMore: function () {
this.setMenuName("首页", "推广为0店铺数");

@ -10,6 +10,12 @@ import http from '../CommonHttp'
export function getMainRequest(params, call) {
return http.get('/customer/view/main', params).then(call)
}
export function getMainDateRequest(params, call) {
return http.get('/customer/view/main/date', params).then(call)
}
export function getMainDel(params, call) {
return http.get('/customer/view/main/del', params).then(call)
}
export function getAllCount(params, call) {
return http.get('/customer/view/all/count', params).then(call)
}
@ -27,6 +33,8 @@ export function downLoadExcel(params,filename, call) {
export default {
//mainList
getMainRequest,
getMainDel,
getMainDateRequest,
getAllCount,
getAnalysisRequest,
downLoadExcel,

Loading…
Cancel
Save