Explorar o código

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

chenrui  %!s(int64=3) %!d(string=hai) anos
pai
achega
7bf537cd98
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  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;