Sfoglia il codice sorgente

人员列表过滤掉非单位负责人

yuwenfen 4 anni fa
parent
commit
c52635419c
1 ha cambiato i file con 8 aggiunte e 1 eliminazioni
  1. 8 1
      pages/mission-action/components/personnel.vue

+ 8 - 1
pages/mission-action/components/personnel.vue

@@ -106,7 +106,14 @@
 					}
 				}).then(data => {
 					if(data) {
-            this.empDeptList = data || [];
+            let _empDeptList = data.map(item1 => {
+              return {
+                ...item1,
+                responseList: item1.responseList ?  item1.responseList.filter(item2 => item2.deptManage == 1) : []
+              }
+            }) || [];
+            _empDeptList = _empDeptList.filter(item => item.responseList.length > 0);
+            this.empDeptList = _empDeptList || [];
           }
 				});
 			}