소스 검색

bug修复

lizhenhao 2 년 전
부모
커밋
1f4450e26f
2개의 변경된 파일6개의 추가작업 그리고 4개의 파일을 삭제
  1. 3 1
      src/views/modules/rank/tabs/RankSequenceForm.vue
  2. 3 3
      src/views/modules/sys/userInfo/UserInfoForm.vue

+ 3 - 1
src/views/modules/rank/tabs/RankSequenceForm.vue

@@ -186,7 +186,9 @@
           this.inputForm.rankSequenceDTOList[rowIndex].rankSequenceDTOList.push(newLine)
         } else {
           this.inputForm.rankSequenceDTOList.push(newLine)
-          this.$set(this.inputForm.rankSequenceDTOList[this.inputForm.rankSequenceDTOList.length - 1], 'rankSequenceDTOList', [{}])
+          if (this.isInclude === true) {
+            this.$set(this.inputForm.rankSequenceDTOList[this.inputForm.rankSequenceDTOList.length - 1], 'rankSequenceDTOList', [{}])
+          }
         }
       }
     }

+ 3 - 3
src/views/modules/sys/userInfo/UserInfoForm.vue

@@ -2143,7 +2143,7 @@
       // 实现自动生成生日/年龄
       go (val) {
         let iden = this.inputForm.idCard
-        let sex = null
+        // let sex = null
         let birth = null
         let myDate = new Date()
         let month = myDate.getMonth() + 1
@@ -2152,13 +2152,13 @@
 
         if (val === 18) {
           age = myDate.getFullYear() - iden.substring(6, 10) - 1
-          sex = iden.substring(16, 17)
+          // sex = iden.substring(16, 17)
           birth = iden.substring(6, 10) + '-' + iden.substring(10, 12) + '-' + iden.substring(12, 14)
           if ((iden.substring(10, 12) < month || iden.substring(10, 12) === month) && iden.substring(12, 14) <= day) age++
         }
         if (val === 15) {
           age = myDate.getFullYear() - iden.substring(6, 8) - 1901
-          sex = iden.substring(13, 14)
+          // sex = iden.substring(13, 14)
           birth = '19' + iden.substring(6, 8) + '-' + iden.substring(8, 10) + '-' + iden.substring(10, 12)
           if ((iden.substring(8, 10) < month || iden.substring(8, 10) === month) && iden.substring(10, 12) <= day) age++
         }