Explorar o código

update 选择器

linweizeng %!s(int64=2) %!d(string=hai) anos
pai
achega
57c7b11fea
Modificáronse 1 ficheiros con 5 adicións e 1 borrados
  1. 5 1
      src/business/platform/org/position/panel.vue

+ 5 - 1
src/business/platform/org/position/panel.vue

@@ -219,7 +219,11 @@ export default {
             resolve(this.toTree(treeData))
           } else {
             treeData = type === '1' ? arr : this.filterTreeChildren(arr, 'root')
-            resolve(this.toTree(treeData))
+            if(type === '2'){
+                resolve(treeData)
+            }else{
+                resolve(this.toTree(treeData))
+            }
           }
         }).catch(res => {
           this.loading = false