From f2c3e7a75b46dad29cb22ad9bb1b753869690698 Mon Sep 17 00:00:00 2001
From: 田源 <lastanimals@163.com>
Date: 星期五, 15 十一月 2024 17:45:34 +0800
Subject: [PATCH] 整合代码
---
Source/plt-web/plt-web-ui/src/components/dynamic-components/dynamic-tree.vue | 1 -
Source/plt-web/plt-web-ui/src/views/custom-ui/product.vue | 14 ++++++++++----
2 files changed, 10 insertions(+), 5 deletions(-)
diff --git a/Source/plt-web/plt-web-ui/src/components/dynamic-components/dynamic-tree.vue b/Source/plt-web/plt-web-ui/src/components/dynamic-components/dynamic-tree.vue
index 4802752..58fe016 100644
--- a/Source/plt-web/plt-web-ui/src/components/dynamic-components/dynamic-tree.vue
+++ b/Source/plt-web/plt-web-ui/src/components/dynamic-components/dynamic-tree.vue
@@ -252,7 +252,6 @@
this.isRefresh=false;
}
})
-
}).catch(error => {
this.$message.error(error);
})
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 ef252e5..108ce6e 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,12 @@
<template>
<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 style="font-size: 15px">
+ <i class="el-icon-s-promotion"></i>
+ {{ (node || {}).label }}
+ </span>
+ </span>
</avue-tree>
</div>
</template>
@@ -60,16 +66,16 @@
}
},
created() {
- console.log('create');
+ console.log('this.dataStore',this.dataStore);
},
methods: {
- nodeClick(row){
+ nodeClick(row) {
console.log(row);
this.$emit("setDataStore", {
area: 'westAreaInDialog',
type: 'tree',
- btmType:'workcontext',
- dataStore:[row]
+ btmType: 'workcontext',
+ dataStore: [row]
});
}
}
--
Gitblit v1.9.3