|
@@ -296,7 +296,7 @@
|
296
|
296
|
return false
|
297
|
297
|
}
|
298
|
298
|
var partitions = response.data.data.partitions
|
299
|
|
- console.log("分区",partitions)
|
|
299
|
+ // console.log("分区",partitions)
|
300
|
300
|
this.theWeek.thisWeek = response.data.data.theWeek
|
301
|
301
|
this.theWeek.lastWeek = this.theWeek.thisWeek - 1
|
302
|
302
|
this.theWeek.nextWeek = this.theWeek.thisWeek + 1
|
|
@@ -516,14 +516,13 @@
|
516
|
516
|
}
|
517
|
517
|
i++
|
518
|
518
|
}
|
519
|
|
- console.log("listw22222222",list)
|
520
|
519
|
var data = []
|
521
|
520
|
|
522
|
521
|
this.tableList.map(item=>{
|
523
|
522
|
data.push(Object.values(item))
|
524
|
523
|
|
525
|
524
|
})
|
526
|
|
- console.log("data",data)
|
|
525
|
+
|
527
|
526
|
|
528
|
527
|
const filename = '排班模版'
|
529
|
528
|
|
|
@@ -538,8 +537,6 @@
|
538
|
537
|
}
|
539
|
538
|
|
540
|
539
|
if(this.export_type == 1){
|
541
|
|
-
|
542
|
|
- console.log("44444444",this.tableList)
|
543
|
540
|
// 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]+")", '', '']]
|
544
|
541
|
// const header = ['', '', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上']
|
545
|
542
|
// 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']
|
|
@@ -575,7 +572,7 @@
|
575
|
572
|
data.push(Object.values(item))
|
576
|
573
|
|
577
|
574
|
})
|
578
|
|
- console.log("data",data)
|
|
575
|
+ // console.log("data",data)
|
579
|
576
|
|
580
|
577
|
const filename = '排班模版'
|
581
|
578
|
|
|
@@ -602,7 +599,7 @@
|
602
|
599
|
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']
|
603
|
600
|
|
604
|
601
|
var data = []
|
605
|
|
- console.log("33333",this.tableList)
|
|
602
|
+ // console.log("33333",this.tableList)
|
606
|
603
|
|
607
|
604
|
this.tableList.map(item=>{
|
608
|
605
|
data.push(Object.values(item))
|
|
@@ -627,10 +624,7 @@
|
627
|
624
|
formatJson(filterVal, jsonData) {
|
628
|
625
|
return jsonData.map(v =>
|
629
|
626
|
filterVal.map(j => {
|
630
|
|
- console.log(v)
|
631
|
|
- console.log(j)
|
632
|
|
- console.log(v[j])
|
633
|
|
-
|
|
627
|
+
|
634
|
628
|
if (j === 'timestamp') {
|
635
|
629
|
return parseTime(v[j])
|
636
|
630
|
} else {
|
|
@@ -2139,11 +2133,11 @@
|
2139
|
2133
|
partition_id:this.partition_id,
|
2140
|
2134
|
schedule_type:this.schedule_type
|
2141
|
2135
|
}
|
2142
|
|
- console.log("params2222",params)
|
|
2136
|
+ // console.log("params2222",params)
|
2143
|
2137
|
getThreeWeekList(params).then(response=>{
|
2144
|
2138
|
if(response.data.state == 1){
|
2145
|
2139
|
var partitions = response.data.data.partitions
|
2146
|
|
- console.log("数据22222",this.partitions)
|
|
2140
|
+ // console.log("数据22222",this.partitions)
|
2147
|
2141
|
|
2148
|
2142
|
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']
|
2149
|
2143
|
var list = []
|
|
@@ -2311,16 +2305,16 @@
|
2311
|
2305
|
var lastWeek = []
|
2312
|
2306
|
var next_start = this.getNextWeekOne(1)
|
2313
|
2307
|
var nextstart = this.getTimestamp(next_start) - 28800
|
2314
|
|
- console.log("下周开始时间",nextstart)
|
|
2308
|
+ // console.log("下周开始时间",nextstart)
|
2315
|
2309
|
var next_end = this.getNextWeek(1)
|
2316
|
2310
|
var nextend = this.getTimestamp(next_end) - 28800
|
2317
|
|
- console.log("下周结束时间",nextend)
|
|
2311
|
+ // console.log("下周结束时间",nextend)
|
2318
|
2312
|
var last_start = this.getNextWeekOne(2)
|
2319
|
2313
|
var last_end = this.getNextWeek(2)
|
2320
|
2314
|
var laststart = this.getTimestamp(last_start) - 28800
|
2321
|
|
- console.log("下下周数据时间",laststart)
|
|
2315
|
+ // console.log("下下周数据时间",laststart)
|
2322
|
2316
|
var lastend = this.getTimestamp(last_end) - 28800
|
2323
|
|
- console.log("下下周数据时间",lastend)
|
|
2317
|
+ // console.log("下下周数据时间",lastend)
|
2324
|
2318
|
|
2325
|
2319
|
if(this.export_type == 0){
|
2326
|
2320
|
for(let i = 0;i<scheduleList.length;i++){
|
|
@@ -2437,7 +2431,7 @@
|
2437
|
2431
|
}
|
2438
|
2432
|
}
|
2439
|
2433
|
|
2440
|
|
- console.log("list5555555555",list)
|
|
2434
|
+ // console.log("list5555555555",list)
|
2441
|
2435
|
|
2442
|
2436
|
if(nextWeek.length > 0 ){
|
2443
|
2437
|
for(let i=0;i<list.length;i++){
|
|
@@ -2540,7 +2534,7 @@
|
2540
|
2534
|
}
|
2541
|
2535
|
}
|
2542
|
2536
|
|
2543
|
|
- console.log("nextWeek",nextWeek)
|
|
2537
|
+ // console.log("nextWeek",nextWeek)
|
2544
|
2538
|
|
2545
|
2539
|
if(lastWeek.length > 0 ){
|
2546
|
2540
|
for(let i=0;i<list.length;i++){
|
|
@@ -2701,7 +2695,7 @@
|
2701
|
2695
|
|
2702
|
2696
|
|
2703
|
2697
|
|
2704
|
|
- console.log("33333333",this.newDay)
|
|
2698
|
+ // console.log("33333333",this.newDay)
|
2705
|
2699
|
this.export_type = 1
|
2706
|
2700
|
this.getThreeWeekList()
|
2707
|
2701
|
},
|
|
@@ -2779,16 +2773,16 @@
|
2779
|
2773
|
let weekOfday = parseInt(moment().format('d'))
|
2780
|
2774
|
start_time = this.getTimestamp(moment().subtract(weekOfday + 6, 'days').format('YYYY-MM-DD')) -28800
|
2781
|
2775
|
end_time = this.getTimestamp(moment().subtract(weekOfday, 'days').format('YYYY-MM-DD')) -28800
|
2782
|
|
- console.log("start",start_time)
|
2783
|
|
- console.log("end",end_time)
|
|
2776
|
+ // console.log("start",start_time)
|
|
2777
|
+ // console.log("end",end_time)
|
2784
|
2778
|
}
|
2785
|
2779
|
|
2786
|
2780
|
//本周
|
2787
|
2781
|
if(this.form.lastweek == "2"){
|
2788
|
2782
|
start_time = this.getTimestamp(this.weekDayArr[0])
|
2789
|
2783
|
end_time = this.getTimestamp(this.weekDayArr[6])
|
2790
|
|
- console.log("start",start_time)
|
2791
|
|
- console.log("end",end_time)
|
|
2784
|
+ // console.log("start",start_time)
|
|
2785
|
+ // console.log("end",end_time)
|
2792
|
2786
|
}
|
2793
|
2787
|
|
2794
|
2788
|
var label = ""
|
|
@@ -2807,7 +2801,7 @@
|
2807
|
2801
|
copy_startime:copy_startime,
|
2808
|
2802
|
copy_endtime:copy_endtime,
|
2809
|
2803
|
}
|
2810
|
|
- console.log("时间",params)
|
|
2804
|
+
|
2811
|
2805
|
|
2812
|
2806
|
this.$refs[formName].validate(valid=>{
|
2813
|
2807
|
if(valid){
|
|
@@ -2826,11 +2820,11 @@
|
2826
|
2820
|
},
|
2827
|
2821
|
created() {
|
2828
|
2822
|
var start_time = moment().weekday(1).format('YYYY-MM-DD');
|
2829
|
|
- console.log("开始时间",start_time)
|
|
2823
|
+
|
2830
|
2824
|
this.start_time = start_time
|
2831
|
2825
|
|
2832
|
2826
|
var end_time = this.getNextWeek(2)
|
2833
|
|
- console.log("结束时间222222",end_time)
|
|
2827
|
+
|
2834
|
2828
|
this.end_time = end_time
|
2835
|
2829
|
this.getWeekPanels()
|
2836
|
2830
|
this.getInitDate()
|