yq1 1 ano atrás
pai
commit
1871827f8b
1 arquivos alterados com 23 adições e 23 exclusões
  1. 23 23
      src/xt_pages/workforce/components/tableData.vue

+ 23 - 23
src/xt_pages/workforce/components/tableData.vue Ver arquivo

@@ -267,7 +267,7 @@
267 267
         show-summary
268 268
         :cell-class-name="cellClass"
269 269
         sum-text="总数"
270
-        height="600"
270
+        height="calc(100vh - 150px)"
271 271
         ref="table"
272 272
         style="table-layout: fixed;"
273 273
       >
@@ -793,7 +793,7 @@ export default {
793 793
   },
794 794
   data() {
795 795
     return {
796
-      // tableContainHeight:"calc(100% - 50px)",
796
+      // tableContainHeight:null,
797 797
       value1:false,
798 798
       modename_value:true,
799 799
       weeks:weekOptions,
@@ -931,27 +931,27 @@ export default {
931 931
   },
932 932
 
933 933
   watch: {
934
-    // schedule_type:function (){
935
-    //   this.isShowShangWu = false
936
-    //   this.isShowXiaWu = false
937
-    //   this.isShowWanShang = false
938
-    //   if(this.schedule_type.length > 0) {
939
-    //     for (let i = 0; i < this.schedule_type.length; i++) {
940
-    //       if (this.schedule_type[i] == 1) {
941
-    //         this.isShowShangWu = true
942
-    //       } else if (this.schedule_type[i] == 2) {
943
-    //         this.isShowXiaWu = true
944
-    //       } else if (this.schedule_type[i] == 3) {
945
-    //         this.isShowWanShang = true
946
-    //       }
947
-    //     }
948
-    //   }else{
949
-    //     this.isShowShangWu = true
950
-    //     this.isShowXiaWu = true
951
-    //     this.isShowWanShang = true
952
-    //   }
934
+     schedule_type:function (){
935
+       this.isShowShangWu = false
936
+      this.isShowXiaWu = false
937
+      this.isShowWanShang = false
938
+      if(this.schedule_type.length > 0) {
939
+        for (let i = 0; i < this.schedule_type.length; i++) {
940
+          if (this.schedule_type[i] == 1) {
941
+            this.isShowShangWu = true
942
+          } else if (this.schedule_type[i] == 2) {
943
+            this.isShowXiaWu = true
944
+          } else if (this.schedule_type[i] == 3) {
945
+            this.isShowWanShang = true
946
+          }
947
+        }
948
+      }else{
949
+        this.isShowShangWu = true
950
+        this.isShowXiaWu = true
951
+        this.isShowWanShang = true
952
+      }
953 953
 
954
-    // },
954
+    },
955 955
      week_type:function () {
956 956
       // console.log(this.week_type)
957 957
       // console.log(this.schedule_type)
@@ -3464,7 +3464,7 @@ textarea{
3464 3464
 }
3465 3465
 
3466 3466
 #table_data {
3467
-  min-height: calc(100vh - 350px);
3467
+  //min-height: calc(100vh - 350px);
3468 3468
   .switch{
3469 3469
     margin-left: 10px;
3470 3470
   }