Browse Source

3月25日杨青

杨青 2 years ago
parent
commit
cea250f429

+ 10 - 12
src/xt_pages/workforce/appointment.vue View File

@@ -175,8 +175,7 @@
175 175
        
176 176
         <HistoryWeekTable v-show="showtable" ref="tableDataZero"  :week-time="activeName" partitions-prop="partitions"
177 177
                   :schedule-zone-row-prop="scheduleZoneRow"
178
-                  :schedule-zone-prop="scheduleZone" title="" @event1="changePartition"
179
-                  @event2="changeSchedule"  @event3="changeWeekDay">
178
+                  :schedule-zone-prop="scheduleZone" title="" >
180 179
           </HistoryWeekTable>
181 180
       <el-dialog title="复制排班" width="600px" :visible.sync="newVisible">
182 181
         <el-form :model="form" ref="form" label-width="90px" :rules="rules">
@@ -334,18 +333,17 @@ export default {
334 333
         this.showtable=true
335 334
         this.showtableOne=false
336 335
         this.$nextTick(() => {
337
-          this.$refs.tableDataZero.getgetSchedules()
336
+          // this.$refs.tableData.getSchedules()
337
+          // this.$refs.tableDataZero.getgetSchedules()
338 338
         })
339
-        console.log('12343545',this.$refs.tableDataZero);
339
+        // console.log('12343545',this.$refs.tableDataZero.getgetSchedules());
340 340
       }else{
341 341
         this.showtable=false
342 342
         this.showtableOne=true
343
+        this.$nextTick(() => {
344
+          this.$refs.tableData.getSchedules()
345
+        })
343 346
       }
344
-
345
-      // if(e.name == 'thisWeek'){
346
-      //    this.$refs.tableData.getWeekPanels()
347
-      // }
348
-      // console.log(getgetSchedules);
349 347
     },
350 348
     dragstart(event, item) {
351 349
       // console.log('start的索引',item.moveIndex)
@@ -440,13 +438,13 @@ export default {
440 438
         this.theWeek.lastWeek = response.data.data.theLastWeek
441 439
         this.theWeek.nextWeek = response.data.data.theNextWeek
442 440
         this.theWeek.nextTwoWeek = response.data.data.theNextSecWeek
443
-        // this.theWeek.historyWeek = response.data.data.theWeek - 2
441
+        this.theWeek.historyWeek = response.data.data.theWeek - 2
444 442
         // 在控制变量改变的时候进行 强制渲染更新
445 443
         let childrenRefs = this.$refs.elTabs.$children
446
-        this.$nextTick(() => {
444
+        // console.log('sadfasfg',this.$refs.elTabs.$children);
445
+        this.$nextTick(() => { 
447 446
           childrenRefs.forEach(child => child.$forceUpdate())
448 447
         })
449
-
450 448
         var that = this
451 449
 
452 450
         if (partitions.length > 0) {

+ 4 - 4
src/xt_pages/workforce/components/editTableData.vue View File

@@ -5663,7 +5663,7 @@ export default {
5663 5663
       this.$emit("event1", val);
5664 5664
       this.partition_id = val;
5665 5665
       this.getWeekPanels();
5666
-      // this.getSchedules();
5666
+      this.getSchedules();
5667 5667
     },
5668 5668
     changeSchedule_type(val) {
5669 5669
       this.$emit("event2", val);
@@ -5774,9 +5774,9 @@ textarea{
5774 5774
     padding: 0 0px ;
5775 5775
 
5776 5776
 }
5777
-//  .el-table td .cell:hover {
5778
-//   background: #22eeddc4 !important;
5779
-// }
5777
+.el-table {
5778
+    font-size: 12px !important;
5779
+}
5780 5780
 
5781 5781
 }
5782 5782
 .right_contain {

File diff suppressed because it is too large
+ 573 - 1468
src/xt_pages/workforce/components/historyWeekTable.vue


+ 11 - 8
src/xt_pages/workforce/components/tableData.vue View File

@@ -878,12 +878,12 @@ export default {
878 878
     },
879 879
     weekTime: function() {
880 880
       // 
881
-      // if(this.weekTime != 'historyWeek'){
881
+      if(this.weekTime != 'historyWeek'){
882 882
         console.log('12343455',this.weekTime);
883 883
         var theType = this.weekType(this.weekTime);
884 884
         this.theType = theType
885 885
         this.getSchedules();
886
-      // }
886
+      }
887 887
       
888 888
     },
889 889
     scheduleZoneRow: function() {
@@ -992,10 +992,11 @@ export default {
992 992
           if (response.data.state == 0) {
993 993
             return false
994 994
           }
995
+          console.log("触发232332323232",response.data.data)
995 996
           var partitions = response.data.data.partitions
996 997
           console.log("partitions",partitions)
997 998
           this.theWeek.thisWeek = response.data.data.theWeek
998
-
999
+          // this.theWeek.historyWeek=this.theWeek.thisWeek - 2
999 1000
           this.theWeek.lastWeek = this.theWeek.thisWeek - 1
1000 1001
           this.theWeek.nextWeek = this.theWeek.thisWeek + 1
1001 1002
           this.theWeek.nextTwoWeek = this.theWeek.thisWeek + 2
@@ -2967,9 +2968,9 @@ export default {
2967 2968
     weekType(weekTime) {
2968 2969
       var theType = 2;
2969 2970
       switch (weekTime) {
2970
-        case "historyWeek":
2971
-          theType = 0;
2972
-          break;
2971
+        // case "historyWeek":
2972
+        //   theType = 0;
2973
+        //   break;
2973 2974
         case "lastWeek":
2974 2975
           theType = 1;
2975 2976
           break;
@@ -3345,9 +3346,11 @@ textarea{
3345 3346
 .schedule-table-row td:hover {
3346 3347
   background: rgb(88, 162, 236) !important;
3347 3348
 }
3348
-
3349
+.el-table {
3350
+    font-size: 12px !important;
3351
+}
3349 3352
 .schedule-table-row td .cell {
3350
-  font-size: 12px;
3353
+  font-size: 10px;
3351 3354
   white-space:normal  !important;
3352 3355
   // normal
3353 3356
 }