From ade2341195cc2bee5bc1a14ce1f0488f5c8bbb51 Mon Sep 17 00:00:00 2001 From: wangting <675591594@qq.com> Date: 星期五, 15 十一月 2024 16:47:33 +0800 Subject: [PATCH] 修改action --- Source/plt-web/plt-web-ui/src/views/custom-ui/product.vue | 22 ++++++++++++++++------ 1 files changed, 16 insertions(+), 6 deletions(-) diff --git a/Source/plt-web/plt-web-ui/src/views/custom-ui/product.vue b/Source/plt-web/plt-web-ui/src/views/custom-ui/product.vue index 5107974..ef252e5 100644 --- a/Source/plt-web/plt-web-ui/src/views/custom-ui/product.vue +++ b/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> -- Gitblit v1.9.3