|
@@ -159,8 +159,8 @@ export default {
|
|
|
let time = new Date(timeArr[0], Number(timeArr[1]), 0);
|
|
|
this.getShiftInformation({
|
|
|
patrolRouteId: this.thisObj.id,
|
|
|
- startTime: `${timeArr[0]}-${timeArr[1]}-01`,
|
|
|
- endTime: `${timeArr[0]}-${timeArr[1]}-${time.getDate()}`
|
|
|
+ startTime: `${timeArr[0]}-${timeArr[1]}-01 00:00:00`,
|
|
|
+ endTime: `${timeArr[0]}-${timeArr[1]}-${time.getDate()} 23:59:59`
|
|
|
});
|
|
|
});
|
|
|
},
|
|
@@ -173,6 +173,7 @@ export default {
|
|
|
getShiftInformation(obj) {
|
|
|
this.$http.post('/sc-community/patrolRoute/getShiftInformation', obj).then(({ data, status, msg }) => {
|
|
|
if (!!data) {
|
|
|
+ this.calendarData = [];
|
|
|
let calendarData = [],
|
|
|
trueArr = [];
|
|
|
for (let inx in data) {
|