From 230a2abe6e44f070890fa9cf7cd9e851a86d6a4b Mon Sep 17 00:00:00 2001 From: yechenhao Date: Sun, 10 May 2020 22:32:49 +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 | 37 ++++---------------------------- src/pages/ApplyCustomerTable.vue | 30 -------------------------- 2 files changed, 4 insertions(+), 63 deletions(-) diff --git a/src/pages/AddCustomerTable.vue b/src/pages/AddCustomerTable.vue index 9e0d1f9..7106f1d 100644 --- a/src/pages/AddCustomerTable.vue +++ b/src/pages/AddCustomerTable.vue @@ -21,14 +21,12 @@ {{dateBtnValue}}概览 {{viewDate}} - - - - - + + @@ -176,33 +174,6 @@ } } }, - computed: { - options1() { - let that = this; - return { - disabledDate(date) { - if (that.selectEndTime == null || that.selectEndTime == "") { - return false; - } else { - return date && date.valueOf() > that.$moment(that.selectEndTime) || date && date.valueOf() < that.$moment(that.selectEndTime).add(-31, "days"); - } - } - } - - }, - options2() { - let that = this; - return { - disabledDate(date) { - if (that.selectStartTime == null || that.selectStartTime == "") { - return false; - } else { - return date && date.valueOf() < that.$moment(that.selectStartTime) || date && date.valueOf() > that.$moment(that.selectStartTime).add(31, "days"); - } - } - } - }, - }, mounted: function () { this.dateBtnClick('今日'); this.timingRefresh(); diff --git a/src/pages/ApplyCustomerTable.vue b/src/pages/ApplyCustomerTable.vue index ec121f5..d3c01fa 100644 --- a/src/pages/ApplyCustomerTable.vue +++ b/src/pages/ApplyCustomerTable.vue @@ -26,9 +26,6 @@ - - - @@ -143,33 +140,6 @@ } } }, - computed: { - options1() { - let that = this; - return { - disabledDate(date) { - if (that.selectEndTime == null || that.selectEndTime == "") { - return false; - } else { - return date && date.valueOf() > that.$moment(that.selectEndTime) || date && date.valueOf() < that.$moment(that.selectEndTime).add(-31, "days"); - } - } - } - - }, - options2() { - let that = this; - return { - disabledDate(date) { - if (that.selectStartTime == null || that.selectStartTime == "") { - return false; - } else { - return date && date.valueOf() < that.$moment(that.selectStartTime) || date && date.valueOf() > that.$moment(that.selectStartTime).add(31, "days"); - } - } - } - }, - }, mounted: function () { this.dateBtnClick('今日'); this.timingRefresh();