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,