|
|
|
@ -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店铺数");
|
|
|
|
|