yq1 пре 1 година
родитељ
комит
1871827f8b
1 измењених фајлова са 23 додато и 23 уклоњено
  1. 23 23
      src/xt_pages/workforce/components/tableData.vue

+ 23 - 23
src/xt_pages/workforce/components/tableData.vue Прегледај датотеку

267
         show-summary
267
         show-summary
268
         :cell-class-name="cellClass"
268
         :cell-class-name="cellClass"
269
         sum-text="总数"
269
         sum-text="总数"
270
-        height="600"
270
+        height="calc(100vh - 150px)"
271
         ref="table"
271
         ref="table"
272
         style="table-layout: fixed;"
272
         style="table-layout: fixed;"
273
       >
273
       >
793
   },
793
   },
794
   data() {
794
   data() {
795
     return {
795
     return {
796
-      // tableContainHeight:"calc(100% - 50px)",
796
+      // tableContainHeight:null,
797
       value1:false,
797
       value1:false,
798
       modename_value:true,
798
       modename_value:true,
799
       weeks:weekOptions,
799
       weeks:weekOptions,
931
   },
931
   },
932
 
932
 
933
   watch: {
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
      week_type:function () {
955
      week_type:function () {
956
       // console.log(this.week_type)
956
       // console.log(this.week_type)
957
       // console.log(this.schedule_type)
957
       // console.log(this.schedule_type)
3464
 }
3464
 }
3465
 
3465
 
3466
 #table_data {
3466
 #table_data {
3467
-  min-height: calc(100vh - 350px);
3467
+  //min-height: calc(100vh - 350px);
3468
   .switch{
3468
   .switch{
3469
     margin-left: 10px;
3469
     margin-left: 10px;
3470
   }
3470
   }