田源
2024-11-15 b77c70bb4fd39f3a08d2a3bc5e16155652452990
Source/plt-web/plt-web-ui/src/views/custom-ui/product.vue
@@ -1,6 +1,8 @@
<template>
  <avue-tree ref="tree" v-loading="treeLoading" :data="treeData" :option="treeOption" @node-click="nodeClick">
  </avue-tree>
  <div style="height: 720px">
    <avue-tree ref="tree" v-loading="treeLoading" :data="treeData" :option="treeOption" @node-click="nodeClick">
    </avue-tree>
  </div>
</template>
<script>
@@ -58,11 +60,19 @@
    }
  },
  created() {
    // console.log(this.sourceData);
    console.log(this.dataStore);
    // console.log(this.paramVOS);
    console.log('create');
  },
  methods: {}
  methods: {
    nodeClick(row){
      console.log(row);
      this.$emit("setDataStore", {
        area: 'westAreaInDialog',
        type: 'tree',
        btmType:'workcontext',
        dataStore:row
      });
    }
  }
}
</script>