From 9a68bf278f8719e8cc07fb9f9289c3ce5b8f71f8 Mon Sep 17 00:00:00 2001 From: liaozetao <1107136310@qq.com> Date: Thu, 2 Nov 2023 15:44:09 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BD=92=E5=9B=A0=E5=9C=BA=E6=AC=A1=E4=B8=8D?= =?UTF-8?q?=E5=85=81=E8=AE=B8=E8=B7=A8=E6=9C=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/batch/FlowDataBatchSearchView.vue | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/views/batch/FlowDataBatchSearchView.vue b/src/views/batch/FlowDataBatchSearchView.vue index d29c3f3..fcdc2a2 100644 --- a/src/views/batch/FlowDataBatchSearchView.vue +++ b/src/views/batch/FlowDataBatchSearchView.vue @@ -438,6 +438,11 @@ export default { let id = $('#id').val(); let startTime = $('#startTime').val(); let endTime = $('#endTime').val(); + if (getDate(endTime).getMonth() != getDate(startTime).getMonth()) { + $("#tipMsg").text("归因场次不允许跨月."); + $("#tipModal").modal('show'); + return; + } if ((getDate(endTime).getTime() - getDate(startTime).getTime()) > (36 * 60 * 60 * 1000)) { $("#tipMsg").text("时间间隔不能超过36h."); $("#tipModal").modal('show');