Sfoglia il codice sorgente

Merge branch 'master' of http://47.100.37.243:10191/wutt/manHourHousekeeper

QuYueTing 10 mesi fa
parent
commit
360abc7eda

+ 13 - 10
fhKeeper/formulahousekeeper/timesheet/src/views/project/list.vue

@@ -5821,13 +5821,19 @@ a {
                 }else if(obj.distinction =='6') {
                     this.hasSetGroupInchargerId = obj.id
                 } else if(obj.distinction == '10') {
-                    let userList = obj.arrUserList
-                    let arr = []
-                    for(var i in userList) {
-                        arr.push(userList[i].id)
-                    }
-                    this.participator = JSON.parse(JSON.stringify(this.participator))
-                    this.addForm.auditUserIds = arr
+                    const { arrUserList, id } = obj;
+                    console.log('返回的数据:', obj);
+                    this.participator = [...this.participator];
+                    this.addForm.auditUserIds = (arrUserList && arrUserList.length) 
+                        ? arrUserList.map(user => user.id)
+                        : id;
+                    // let userList = obj.arrUserList
+                    // let arr = []
+                    // for(var i in userList) {
+                    //     arr.push(userList[i].id)
+                    // }
+                    // this.participator = JSON.parse(JSON.stringify(this.participator))
+                    // this.addForm.auditUserIds = arr
                 } else if(obj.distinction == '11') {
                     let userList = obj.id
                     console.log(obj)
@@ -6301,9 +6307,6 @@ a {
     overflow: hidden;
     text-overflow: ellipsis;
 }
-.dialogSwitch {
-    
-}
 
 // 111