Browse Source

Merge branch 'fix' into debug

Karsa 4 months ago
parent
commit
ebfb903ac5
1 changed files with 1 additions and 3 deletions
  1. 1 3
      src/views/financialManagement/components/permissionDia.vue

+ 1 - 3
src/views/financialManagement/components/permissionDia.vue

@@ -80,9 +80,7 @@ import {getPermissionList} from '@/api/crm'
   }
  
   const submit=()=>{
-    permissionDia.permissionList.map(item =>{
-      permissionDia.permissionChecked=[...permissionDia.permissionChecked,...item.check_list]
-    })
+    permissionDia.permissionChecked = Array.from(new Set(permissionDia.permissionList.map(item =>item.check_list).flat(Infinity)))
     emits('selectFinish',permissionDia.permissionChecked)
     closeDia()
   }