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

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

@@ -132,8 +132,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`
                 });
             });
         },
@@ -193,6 +193,7 @@ export default {
                     this.calendarData = calendarData;
                     this.trueArr = trueArr;
                     this.indexThis = 0;
+                    this.$forceUpdate();
                 }
             });
         },
@@ -249,7 +250,6 @@ export default {
         this.findUser = this.$parent.findUser;
         this.thisObj = this.$parent.thisObj;
         this.thisObj.periodType == 1;
-        console.log(this.thisObj);
         this.$el.querySelector('div.el-calendar__header').remove();
     }
 };