Selaa lähdekoodia

Merge branch '王立生' of sckj/mz-cloud into master

sckj 1 vuosi sitten
vanhempi
commit
9e0c0ac65b

+ 2 - 2
ruoyi-web/src/components/Org_tree/index.js

@@ -24,8 +24,8 @@ Org_tree.install = function (app) {
       instance.component.props.cancel = cancel
     }
     console.log(instance,"wwwwwwwwwwwwww嗯嗯");
-    instance.component.setupState.getList("DDDDD");
-    instance.component.setupState.wwwwwwtest("999","099");
+   // instance.component.setupState.getList("DDDDD");
+  //  instance.component.props.wls("999");
     instance.component.props.isShow=false;
     instance.component.props.isShow=true;
   }

+ 8 - 1
ruoyi-web/src/components/Org_tree/index.vue

@@ -38,6 +38,13 @@ const props = defineProps({
       console.log('cancel');
     }
   },
+
+  wls: {
+    type: Function,
+    default: (para) => {
+      //loading.value = true;
+    }
+  },
   // 当前的值
   value: [Number, String, Array],
 })
@@ -59,7 +66,7 @@ const values = computed(() => {
     return [];
   }
 })
-//defineExpose({ getList });
+defineExpose({ getList,wwwwwwtest });
 watch(() => props.isShow, val => {
   if (val) {
     loading.value = true;