From a9e6651fb55e30288a1ec5d18c113dd92713d91f Mon Sep 17 00:00:00 2001 From: yechenhao Date: Sun, 10 May 2020 23:25:25 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=B9=E9=87=8F=E4=B8=8A=E4=BC=A0=E9=97=A8?= =?UTF-8?q?=E5=BA=97=E5=8F=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/AddCustomerTable.vue | 15 +++------------ src/pages/ApplyCustomerTable.vue | 12 ++---------- 2 files changed, 5 insertions(+), 22 deletions(-) diff --git a/src/pages/AddCustomerTable.vue b/src/pages/AddCustomerTable.vue index 7106f1d..9835503 100644 --- a/src/pages/AddCustomerTable.vue +++ b/src/pages/AddCustomerTable.vue @@ -25,8 +25,7 @@ class="date-picker" size="small" @on-change="diyDateChange"> - + class="date-picker" size="small" @on-change="diyDateChange"> @@ -206,8 +205,8 @@ this.dateBtnValue = "本月"; this.recentName = "本月"; this.dateSelectChange('本月'); - this.chartExtend.barWidth = 8; - this.chartExtend.label.show = false; + this.chartExtend.barWidth = 28; + this.chartExtend.label.show = true; break; case '自定义': this.dateBtnValue = "自定义"; @@ -219,14 +218,6 @@ //自定义日期 diyDateChange: function () { if (this.selectStartTime && this.selectEndTime) { - //超过15天,柱状图不显示数字 - if (this.$moment(this.selectEndTime).valueOf() - this.$moment(this.selectStartTime).valueOf() > 15 * 24 * 60 * 60 * 1000) { - this.chartExtend.barWidth = 8; - this.chartExtend.label.show = false; - } else { - this.chartExtend.barWidth = 28; - this.chartExtend.label.show = true; - } this.dateSelectChange('自定义'); } }, diff --git a/src/pages/ApplyCustomerTable.vue b/src/pages/ApplyCustomerTable.vue index d3c01fa..a32b142 100644 --- a/src/pages/ApplyCustomerTable.vue +++ b/src/pages/ApplyCustomerTable.vue @@ -172,8 +172,8 @@ this.dateBtnValue = "本月"; this.recentName = "本月"; this.dateSelectChange('本月'); - this.chartExtend.barWidth = 8; - this.chartExtend.label.show = false; + this.chartExtend.barWidth = 28; + this.chartExtend.label.show = true; break; case '自定义': this.dateBtnValue = "自定义"; @@ -185,14 +185,6 @@ //自定义日期 diyDateChange: function () { if (this.selectStartTime && this.selectEndTime) { - //超过15天,柱状图不显示数字 - if (this.$moment(this.selectEndTime).valueOf() - this.$moment(this.selectStartTime).valueOf() > 15 * 24 * 60 * 60 * 1000) { - this.chartExtend.barWidth = 8; - this.chartExtend.label.show = false; - } else { - this.chartExtend.barWidth = 28; - this.chartExtend.label.show = true; - } this.dateSelectChange('自定义'); } },