|
@@ -290,7 +290,7 @@
|
290
|
290
|
return false
|
291
|
291
|
}
|
292
|
292
|
var partitions = response.data.data.partitions
|
293
|
|
- console.log("分区",partitions)
|
|
293
|
+ // console.log("分区",partitions)
|
294
|
294
|
this.theWeek.thisWeek = response.data.data.theWeek
|
295
|
295
|
this.theWeek.lastWeek = this.theWeek.thisWeek - 1
|
296
|
296
|
this.theWeek.nextWeek = this.theWeek.thisWeek + 1
|
|
@@ -510,14 +510,13 @@
|
510
|
510
|
}
|
511
|
511
|
i++
|
512
|
512
|
}
|
513
|
|
- console.log("listw22222222",list)
|
514
|
513
|
var data = []
|
515
|
514
|
|
516
|
515
|
this.tableList.map(item=>{
|
517
|
516
|
data.push(Object.values(item))
|
518
|
517
|
|
519
|
518
|
})
|
520
|
|
- console.log("data",data)
|
|
519
|
+
|
521
|
520
|
|
522
|
521
|
const filename = '排班模版'
|
523
|
522
|
|
|
@@ -532,8 +531,6 @@
|
532
|
531
|
}
|
533
|
532
|
|
534
|
533
|
if(this.export_type == 1){
|
535
|
|
-
|
536
|
|
- console.log("44444444",this.tableList)
|
537
|
534
|
// const multiHeader = [['区号', '机号', '周一'+"("+this.newDay[0]+")" , '', '', '周二'+"("+this.newDay[1]+")", '', '', '周三'+"("+this.newDay[2]+")" , '', '', '周四'+"("+this.newDay[3]+")" , '', '', '周五'+"("+this.newDay[4]+")" , '', '', '周六'+"("+this.newDay[5]+")" , '', '', '周日'+"("+this.newDay[6]+")" , '', '', '周一'+"("+this.days[7]+")" , '', '', '周二'+"("+this.days[8]+")" , '', '', '周三'+"("+this.days[9]+")" , '', '', '周四'+"("+this.days[10]+")" , '', '', '周五'+"("+this.days[11]+")" , '', '', '周六'+"("+this.days[12]+")" , '', '', '周日'+"("+this.days[13]+")", '', '', '周一'+"("+this.days[14]+")", '', '', '周二'+"("+this.days[15]+")", '', '', '周三'+"("+this.days[16]+")", '', '', '周四'+"("+this.days[17]+")", '', '', '周五'+"("+this.days[18]+")", '', '', '周六'+"("+this.days[19]+")", '', '', '周日'+"("+this.days[20]+")", '', '']]
|
538
|
535
|
// const header = ['', '', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上']
|
539
|
536
|
// const merges = ['A1:A2', 'B1:B2', 'C1:E1', 'F1:H1', 'I1:K1', 'L1:N1', 'O1:Q1', 'R1:T1', 'U1:W1', 'X1:Z1', 'AA1:AC1', 'AD1:AF1', 'AG1:AI1', 'AJ1:AL1', 'AM1:AO1', 'AP1:AR1', 'AS1:AU1', 'AV1:AX1', 'AY1:BA1', 'BB1:BD1', 'BE1:BG1', 'BH1:BJ1', 'BK1:BM1']
|
|
@@ -569,7 +566,7 @@
|
569
|
566
|
data.push(Object.values(item))
|
570
|
567
|
|
571
|
568
|
})
|
572
|
|
- console.log("data",data)
|
|
569
|
+ // console.log("data",data)
|
573
|
570
|
|
574
|
571
|
const filename = '排班模版'
|
575
|
572
|
|
|
@@ -596,7 +593,7 @@
|
596
|
593
|
const merges = ['A1:A2', 'B1:B2', 'C1:E1', 'F1:H1', 'I1:K1', 'L1:N1', 'O1:Q1', 'R1:T1', 'U1:W1', 'X1:Z1', 'AA1:AC1', 'AD1:AF1', 'AG1:AI1', 'AJ1:AL1', 'AM1:AO1', 'AP1:AR1', 'AS1:AU1', 'AV1:AX1', 'AY1:BA1', 'BB1:BD1', 'BE1:BG1', 'BH1:BJ1', 'BK1:BM1']
|
597
|
594
|
|
598
|
595
|
var data = []
|
599
|
|
- console.log("33333",this.tableList)
|
|
596
|
+ // console.log("33333",this.tableList)
|
600
|
597
|
|
601
|
598
|
this.tableList.map(item=>{
|
602
|
599
|
data.push(Object.values(item))
|
|
@@ -621,10 +618,7 @@
|
621
|
618
|
formatJson(filterVal, jsonData) {
|
622
|
619
|
return jsonData.map(v =>
|
623
|
620
|
filterVal.map(j => {
|
624
|
|
- console.log(v)
|
625
|
|
- console.log(j)
|
626
|
|
- console.log(v[j])
|
627
|
|
-
|
|
621
|
+
|
628
|
622
|
if (j === 'timestamp') {
|
629
|
623
|
return parseTime(v[j])
|
630
|
624
|
} else {
|
|
@@ -2133,11 +2127,11 @@
|
2133
|
2127
|
partition_id:this.partition_id,
|
2134
|
2128
|
schedule_type:this.schedule_type
|
2135
|
2129
|
}
|
2136
|
|
- console.log("params2222",params)
|
|
2130
|
+ // console.log("params2222",params)
|
2137
|
2131
|
getThreeWeekList(params).then(response=>{
|
2138
|
2132
|
if(response.data.state == 1){
|
2139
|
2133
|
var partitions = response.data.data.partitions
|
2140
|
|
- console.log("数据22222",this.partitions)
|
|
2134
|
+ // console.log("数据22222",this.partitions)
|
2141
|
2135
|
|
2142
|
2136
|
const merges = ['A1:A2', 'B1:B2', 'C1:E1', 'F1:H1', 'I1:K1', 'L1:N1', 'O1:Q1', 'R1:T1', 'U1:W1', 'X1:Z1', 'AA1:AC1', 'AD1:AF1', 'AG1:AI1', 'AJ1:AL1', 'AM1:AO1', 'AP1:AR1', 'AS1:AU1', 'AV1:AX1', 'AY1:BA1', 'BB1:BD1', 'BE1:BG1', 'BH1:BJ1', 'BK1:BM1']
|
2143
|
2137
|
var list = []
|
|
@@ -2305,16 +2299,16 @@
|
2305
|
2299
|
var lastWeek = []
|
2306
|
2300
|
var next_start = this.getNextWeekOne(1)
|
2307
|
2301
|
var nextstart = this.getTimestamp(next_start) - 28800
|
2308
|
|
- console.log("下周开始时间",nextstart)
|
|
2302
|
+ // console.log("下周开始时间",nextstart)
|
2309
|
2303
|
var next_end = this.getNextWeek(1)
|
2310
|
2304
|
var nextend = this.getTimestamp(next_end) - 28800
|
2311
|
|
- console.log("下周结束时间",nextend)
|
|
2305
|
+ // console.log("下周结束时间",nextend)
|
2312
|
2306
|
var last_start = this.getNextWeekOne(2)
|
2313
|
2307
|
var last_end = this.getNextWeek(2)
|
2314
|
2308
|
var laststart = this.getTimestamp(last_start) - 28800
|
2315
|
|
- console.log("下下周数据时间",laststart)
|
|
2309
|
+ // console.log("下下周数据时间",laststart)
|
2316
|
2310
|
var lastend = this.getTimestamp(last_end) - 28800
|
2317
|
|
- console.log("下下周数据时间",lastend)
|
|
2311
|
+ // console.log("下下周数据时间",lastend)
|
2318
|
2312
|
|
2319
|
2313
|
if(this.export_type == 0){
|
2320
|
2314
|
for(let i = 0;i<scheduleList.length;i++){
|
|
@@ -2431,7 +2425,7 @@
|
2431
|
2425
|
}
|
2432
|
2426
|
}
|
2433
|
2427
|
|
2434
|
|
- console.log("list5555555555",list)
|
|
2428
|
+ // console.log("list5555555555",list)
|
2435
|
2429
|
|
2436
|
2430
|
if(nextWeek.length > 0 ){
|
2437
|
2431
|
for(let i=0;i<list.length;i++){
|
|
@@ -2534,7 +2528,7 @@
|
2534
|
2528
|
}
|
2535
|
2529
|
}
|
2536
|
2530
|
|
2537
|
|
- console.log("nextWeek",nextWeek)
|
|
2531
|
+ // console.log("nextWeek",nextWeek)
|
2538
|
2532
|
|
2539
|
2533
|
if(lastWeek.length > 0 ){
|
2540
|
2534
|
for(let i=0;i<list.length;i++){
|
|
@@ -2695,7 +2689,7 @@
|
2695
|
2689
|
|
2696
|
2690
|
|
2697
|
2691
|
|
2698
|
|
- console.log("33333333",this.newDay)
|
|
2692
|
+ // console.log("33333333",this.newDay)
|
2699
|
2693
|
this.export_type = 1
|
2700
|
2694
|
this.getThreeWeekList()
|
2701
|
2695
|
},
|
|
@@ -2773,16 +2767,16 @@
|
2773
|
2767
|
let weekOfday = parseInt(moment().format('d'))
|
2774
|
2768
|
start_time = this.getTimestamp(moment().subtract(weekOfday + 6, 'days').format('YYYY-MM-DD')) -28800
|
2775
|
2769
|
end_time = this.getTimestamp(moment().subtract(weekOfday, 'days').format('YYYY-MM-DD')) -28800
|
2776
|
|
- console.log("start",start_time)
|
2777
|
|
- console.log("end",end_time)
|
|
2770
|
+ // console.log("start",start_time)
|
|
2771
|
+ // console.log("end",end_time)
|
2778
|
2772
|
}
|
2779
|
2773
|
|
2780
|
2774
|
//本周
|
2781
|
2775
|
if(this.form.lastweek == "2"){
|
2782
|
2776
|
start_time = this.getTimestamp(this.weekDayArr[0])
|
2783
|
2777
|
end_time = this.getTimestamp(this.weekDayArr[6])
|
2784
|
|
- console.log("start",start_time)
|
2785
|
|
- console.log("end",end_time)
|
|
2778
|
+ // console.log("start",start_time)
|
|
2779
|
+ // console.log("end",end_time)
|
2786
|
2780
|
}
|
2787
|
2781
|
|
2788
|
2782
|
var label = ""
|
|
@@ -2801,7 +2795,7 @@
|
2801
|
2795
|
copy_startime:copy_startime,
|
2802
|
2796
|
copy_endtime:copy_endtime,
|
2803
|
2797
|
}
|
2804
|
|
- console.log("时间",params)
|
|
2798
|
+
|
2805
|
2799
|
|
2806
|
2800
|
this.$refs[formName].validate(valid=>{
|
2807
|
2801
|
if(valid){
|
|
@@ -2820,11 +2814,11 @@
|
2820
|
2814
|
},
|
2821
|
2815
|
created() {
|
2822
|
2816
|
var start_time = moment().weekday(1).format('YYYY-MM-DD');
|
2823
|
|
- console.log("开始时间",start_time)
|
|
2817
|
+
|
2824
|
2818
|
this.start_time = start_time
|
2825
|
2819
|
|
2826
|
2820
|
var end_time = this.getNextWeek(2)
|
2827
|
|
- console.log("结束时间222222",end_time)
|
|
2821
|
+
|
2828
|
2822
|
this.end_time = end_time
|
2829
|
2823
|
this.getWeekPanels()
|
2830
|
2824
|
this.getInitDate()
|