Hwt 2 سال پیش
والد
کامیت
7d7f249d18
1فایلهای تغییر یافته به همراه4 افزوده شده و 3 حذف شده
  1. 4 3
      operationSupport/src/views/patrolManagement/popups/schedulingAdd.vue

+ 4 - 3
operationSupport/src/views/patrolManagement/popups/schedulingAdd.vue

@@ -157,10 +157,11 @@ export default {
     }
     if (!!this.params.onj) {
       let resList;
-      if (this.params.index == 1) {
-        resList = (this.params.onj.rosterUserDtos[0].currentUsers).split(',');
-      }
+
       this.params.onj.rosterUserDtos.map((item) => {
+        if (this.params.index == 1 || this.params.index == 2) {
+          resList = (item.currentUsers).split(',');
+        }
         this.timePeriod.push({
           partolName: item.partolName,
           //   partolUserId: item.patrolUserId,