浏览代码

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

chenrui  3 年之前
父节点
当前提交
7bf537cd98
共有 1 个文件被更改,包括 3 次插入0 次删除
  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;