Browse Source

过滤新增选择职员名称位null

chenrui  3 years ago
parent
commit
7bf537cd98
1 changed files with 3 additions and 0 deletions
  1. 3 0
      src/views/systemManagement/addSystem/index.vue

+ 3 - 0
src/views/systemManagement/addSystem/index.vue

@@ -344,6 +344,9 @@ export default {
               const arrs = this.arrList.flat();
               const msgs = _.unionBy(arrs, "UserId");
               this.FormData.Unuselist = msgs;
+              this.FormData.Unuselist = this.FormData.Unuselist.filter(
+                (i) => i.UserName
+              );
               this.dataList = msgs;
               this.total = num;
               this.loading = false;