|
@@ -88,6 +88,7 @@
|
88
|
88
|
</el-select>
|
89
|
89
|
</div>
|
90
|
90
|
<el-table
|
|
91
|
+ v-loading="loading"
|
91
|
92
|
:row-style="{ color: '#303133' }"
|
92
|
93
|
:data="scheduleData"
|
93
|
94
|
border
|
|
@@ -304,7 +305,8 @@ export default {
|
304
|
305
|
zone:"",
|
305
|
306
|
// zoneList:[{id:0,name:"全部"}],
|
306
|
307
|
zoneList:[],
|
307
|
|
- start_time:moment().week(moment().week() + 1).startOf('week').unix()
|
|
308
|
+ start_time:moment().week(moment().week() + 1).startOf('week').unix(),
|
|
309
|
+ loading:false,
|
308
|
310
|
};
|
309
|
311
|
},
|
310
|
312
|
watch: {
|
|
@@ -343,6 +345,7 @@ export default {
|
343
|
345
|
}
|
344
|
346
|
},
|
345
|
347
|
getNextScheduleWeekDay() {
|
|
348
|
+ this.loading = true
|
346
|
349
|
const start = moment().weekday(1).format('YYYY-MM-DD'); //本周一
|
347
|
350
|
const end = moment().weekday(7).format('YYYY-MM-DD')
|
348
|
351
|
// console.log("start",moment(start).unix())
|
|
@@ -375,6 +378,7 @@ export default {
|
375
|
378
|
// zone:str,
|
376
|
379
|
// record_date:this.getTime(now_time)
|
377
|
380
|
// }
|
|
381
|
+
|
378
|
382
|
const params = {
|
379
|
383
|
start_time:next_monday,
|
380
|
384
|
end_time:next_sunday,
|
|
@@ -387,6 +391,7 @@ export default {
|
387
|
391
|
getNextScheduleWeekDay(params).then(response => {
|
388
|
392
|
this.scheduleData = [];
|
389
|
393
|
if (response.data.state == 1) {
|
|
394
|
+ this.loading = false
|
390
|
395
|
var scheduleData = response.data.data.schedule;
|
391
|
396
|
if(this.pre_status == 0){
|
392
|
397
|
for(let i=0;i<scheduleData.length;i++){
|