LiGuang 2 anni fa
parent
commit
8e4212c65b
1 ha cambiato i file con 5 aggiunte e 5 eliminazioni
  1. 5 5
      src/views/system/modules/AttendanceRuleModal.vue

+ 5 - 5
src/views/system/modules/AttendanceRuleModal.vue

@@ -104,7 +104,7 @@
                   {{text}}
                 </a-tag>
                 <a-tag color="#FFFFFF" v-else @click="UserType(d,record,index)" style="width: 60px;height: 22px;"> </a-tag>
-                <a-menu slot="overlay" v-if="record.isColse" style="height:300px;overflow-y: scroll;">
+                <a-menu slot="overlay" v-if="record.isColse" :style="isShow?'height:300px;overflow-y: scroll;':''">
                   <a-menu-item key="0" v-if="isShows">
                     <a @click="shiftOks(0,d,record,index)">休息</a>
                   </a-menu-item>
@@ -487,16 +487,16 @@
           for (var t in obj) { //用javascript的for/in循环遍历对象的属性
             if(this.currentYear==list[o].split("-")[0]&&this.currentMonth==list[o].split("-")[1]){
             if (t == "shiftid" + list[o].split("-")[2]&&list[o].split("-")[2]==e) {
-              if(obj[t]!=0&&obj[t]!="0"){
+              if(obj[t]!=0&&obj[t]!="0"&&obj[t]!=null){
                 sum++;
                 f=true;
-              } if(obj[t]!=""&&obj[t]=="0"){
+              } if(obj[t]!=null&&obj[t]=="0"){
                 xsum++;
               }
             }else if(t == "shiftid" + list[o].split("-")[2]){
-              if(obj[t]!=0&&obj[t]!="0"){
+              if(obj[t]!=0&&obj[t]!="0"&&obj[t]!=null){
                 sum++;
-              } if(obj[t]!=""&&obj[t]=="0"){
+              } if(obj[t]!=null&&obj[t]=="0"){
                 xsum++;
               }
             }