dedsudiyu il y a 2 ans
Parent
commit
c8af9cd0cb

+ 2 - 1
src/views/comprehensive/personnel/student/bindingCardPage.vue

@@ -99,7 +99,8 @@
         for(let i=0;i<self.watchList.length;i++){
           for(let o=0;o<self.watchList.length;o++){
             if(self.watchList[i].cardNum == self.watchList[o].cardNum &&
-               self.watchList[i].userId != self.watchList[o].userId ){
+               self.watchList[i].userId != self.watchList[o].userId &&
+              self.watchList[i].cardNum && self.watchList[o].cardNum){
               self.$set(self.watchList[i],'cardType',2);
               self.$set(self.watchList[o],'cardType',2);
               num++

+ 2 - 1
src/views/comprehensive/personnel/teacher/bindingCardPage.vue

@@ -99,7 +99,8 @@
         for(let i=0;i<self.watchList.length;i++){
           for(let o=0;o<self.watchList.length;o++){
             if(self.watchList[i].cardNum == self.watchList[o].cardNum &&
-               self.watchList[i].userId != self.watchList[o].userId ){
+               self.watchList[i].userId != self.watchList[o].userId &&
+              self.watchList[i].cardNum && self.watchList[o].cardNum){
               self.$set(self.watchList[i],'cardType',2);
               self.$set(self.watchList[o],'cardType',2);
               num++