소스 검색

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

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