Shannon_mu 3 years ago
parent
commit
eee612824a
1 changed files with 3 additions and 2 deletions
  1. 3 2
      operationSupport/src/views/patrolManagement/popups/scheduling.vue

+ 3 - 2
operationSupport/src/views/patrolManagement/popups/scheduling.vue

@@ -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) {