浏览代码

判断结束时间不能大于开始时间

bianww 3 年之前
父节点
当前提交
48d7324f3b
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/pages/main/antiSpoofing/standingBook.vue

+ 1 - 1
src/pages/main/antiSpoofing/standingBook.vue

@@ -106,7 +106,7 @@
             searchInfo(v) {
                 if (v[0] && v[1]){
                     let begin = this.$formatDate(v[0], "YYYY-MM");
-                    let end = this.$formatDate(v[0], "YYYY-MM");
+                    let end = this.$formatDate(v[1], "YYYY-MM");
                     if ((new Date(end)).getTime() < (new Date(begin)).getTime()){
                         this.$message.warning(
                             "开始时间不能大于结束时间!!"