田源
2025-01-16 39269c81905457378a73dc83050349d7a364a1f8
Source/plt-web/plt-web-ui/src/views/custom-ui/product.vue
@@ -1,6 +1,14 @@
<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">
           <span slot-scope="{ node, data }" class="el-tree-node__label">
               <span>
                  <i class="el-icon-s-promotion"></i>
                    {{ (node || {}).label }}
                </span>
              </span>
    </avue-tree>
  </div>
</template>
<script>
@@ -58,11 +66,19 @@
    }
  },
  created() {
    // console.log(this.sourceData);
    console.log(this.dataStore);
    // console.log(this.paramVOS);
    console.log('this.dataStore',this.dataStore);
  },
  methods: {}
  methods: {
    nodeClick(row) {
      console.log(row);
      this.$emit("setDataStore", {
        area: 'westAreaInDialog',
        type: 'tree',
        btmType: 'workcontext',
        dataStore: [row]
      });
    }
  }
}
</script>