Jelajahi Sumber

修改用户管理分组列表头部筛选的查询逻辑

lm 3 minggu lalu
induk
melakukan
190a777361
1 mengubah file dengan 2 tambahan dan 2 penghapusan
  1. 2 2
      src/views/userPrivilegeManagement/groupList/index.vue

+ 2 - 2
src/views/userPrivilegeManagement/groupList/index.vue

@@ -142,7 +142,7 @@ const userList = computed(()=>{
     if(searchParams.value.city === 'all'){  //所有城市
         // 所有组下的人员
         if(searchParams.value.group == 'all'){
-            let userOption = (cityList.value.slice(1).map(city=>{
+            let userOption = (cityList.value.map(city=>{
                     return Object.values(city.userList)
                 }).flat(Infinity).map(item=>{
                     return {
@@ -158,7 +158,7 @@ const userList = computed(()=>{
             })
         }else{
             // 指定组下的人员,
-            let userOption = (cityList.value.slice(1).map(city=>{
+            let userOption = (cityList.value.map(city=>{
                     return city.userList[searchParams.value.group]
                 }).flat(Infinity).map(item=>{
                     return {