|
@@ -91,8 +91,7 @@
|
91
|
91
|
</div>
|
92
|
92
|
</div>
|
93
|
93
|
<div class="app-container">
|
94
|
|
- <!-- <el-row>
|
95
|
|
- <el-col :span="24"> -->
|
|
94
|
+
|
96
|
95
|
<div style="right:30px;position:fixed;z-index:99">
|
97
|
96
|
<span>导出周次:</span>
|
98
|
97
|
<el-date-picker
|
|
@@ -547,10 +546,6 @@
|
547
|
546
|
|
548
|
547
|
if(this.export_type == 1){
|
549
|
548
|
|
550
|
|
-
|
551
|
|
- // 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]+")", '', '']]
|
552
|
|
- // const header = ['', '', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上']
|
553
|
|
- // 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']
|
554
|
549
|
const multiHeader = [['区号', '机号', '周一'+"("+this.newDay[0]+")" , '', '', '周二'+"("+this.newDay[1]+")", '', '', '周三'+"("+this.newDay[2]+")" , '', '', '周四'+"("+this.newDay[3]+")" , '', '', '周五'+"("+this.newDay[4]+")" , '', '', '周六'+"("+this.newDay[5]+")" , '', '', '周日'+"("+this.newDay[6]+")" , '', '']]
|
555
|
550
|
const header = ['', '', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上']
|
556
|
551
|
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']
|
|
@@ -2179,12 +2174,11 @@
|
2179
|
2174
|
partition_id:this.partition_id,
|
2180
|
2175
|
schedule_type:this.schedule_type
|
2181
|
2176
|
}
|
2182
|
|
- console.log("params2222",params)
|
|
2177
|
+ console.log("params32323232323223",params)
|
2183
|
2178
|
getThreeWeekList(params).then(response=>{
|
2184
|
2179
|
if(response.data.state == 1){
|
2185
|
2180
|
var partitions = response.data.data.partitions
|
2186
|
|
- // console.log("数据22222",this.partitions)
|
2187
|
|
-
|
|
2181
|
+
|
2188
|
2182
|
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']
|
2189
|
2183
|
var list = []
|
2190
|
2184
|
let i = 0
|
|
@@ -2351,16 +2345,16 @@
|
2351
|
2345
|
var lastWeek = []
|
2352
|
2346
|
var next_start = this.getNextWeekOne(1)
|
2353
|
2347
|
var nextstart = this.getTimestamp(next_start) - 28800
|
2354
|
|
- // console.log("下周开始时间",nextstart)
|
|
2348
|
+
|
2355
|
2349
|
var next_end = this.getNextWeek(1)
|
2356
|
2350
|
var nextend = this.getTimestamp(next_end) - 28800
|
2357
|
|
- // console.log("下周结束时间",nextend)
|
|
2351
|
+
|
2358
|
2352
|
var last_start = this.getNextWeekOne(2)
|
2359
|
2353
|
var last_end = this.getNextWeek(2)
|
2360
|
2354
|
var laststart = this.getTimestamp(last_start) - 28800
|
2361
|
|
- // console.log("下下周数据时间",laststart)
|
|
2355
|
+
|
2362
|
2356
|
var lastend = this.getTimestamp(last_end) - 28800
|
2363
|
|
- // console.log("下下周数据时间",lastend)
|
|
2357
|
+
|
2364
|
2358
|
|
2365
|
2359
|
if(this.export_type == 0){
|
2366
|
2360
|
for(let i = 0;i<scheduleList.length;i++){
|
|
@@ -2477,8 +2471,6 @@
|
2477
|
2471
|
}
|
2478
|
2472
|
}
|
2479
|
2473
|
|
2480
|
|
- // console.log("list5555555555",list)
|
2481
|
|
-
|
2482
|
2474
|
if(nextWeek.length > 0 ){
|
2483
|
2475
|
for(let i=0;i<list.length;i++){
|
2484
|
2476
|
for(let j=0;j<nextWeek.length;j++){
|
|
@@ -2580,8 +2572,6 @@
|
2580
|
2572
|
}
|
2581
|
2573
|
}
|
2582
|
2574
|
|
2583
|
|
- // console.log("nextWeek",nextWeek)
|
2584
|
|
-
|
2585
|
2575
|
if(lastWeek.length > 0 ){
|
2586
|
2576
|
for(let i=0;i<list.length;i++){
|
2587
|
2577
|
for(let j=0;j<lastWeek.length;j++){
|
|
@@ -2682,8 +2672,9 @@
|
2682
|
2672
|
}
|
2683
|
2673
|
}
|
2684
|
2674
|
}
|
2685
|
|
- console.log("list23233223232323232323",list)
|
2686
|
2675
|
this.tableList = list
|
|
2676
|
+ this.start_time = ""
|
|
2677
|
+ this.end_time = ""
|
2687
|
2678
|
}
|
2688
|
2679
|
})
|
2689
|
2680
|
},
|
|
@@ -2706,7 +2697,10 @@
|
2706
|
2697
|
},
|
2707
|
2698
|
|
2708
|
2699
|
changeWeek(val){
|
2709
|
|
-
|
|
2700
|
+
|
|
2701
|
+ this.start_time = ""
|
|
2702
|
+ this.end_time = ""
|
|
2703
|
+ this.newDay =[]
|
2710
|
2704
|
var start = this.getTimestamp(val) - 57600
|
2711
|
2705
|
|
2712
|
2706
|
this.start_time = this.getTime(start)
|