diff --git a/ruoyi-ui/src/components/RecursiveTree/index.vue b/ruoyi-ui/src/components/RecursiveTree/index.vue
index ba89e22..5dc5c61 100644
--- a/ruoyi-ui/src/components/RecursiveTree/index.vue
+++ b/ruoyi-ui/src/components/RecursiveTree/index.vue
@@ -2,31 +2,32 @@
▪{{ nodeData.code }} »
-
-
+
+
-
-
- 标题
- 占比引用
- 不占比引用
-
+
-->
-
+
+ 汇总选项
@@ -219,6 +226,8 @@ export default {
gatherList: [],
// 弹出层标题
title: "",
+ // 操作类型 1 新增 2 查看
+ optType: 1,
// 是否显示弹出层
open: false,
treeData: {
@@ -298,16 +307,18 @@ export default {
handleAdd() {
this.reset();
this.open = true
+ this.optType = 1;
this.title = "添加生成汇总"
},
/** 修改按钮操作 */
handleUpdate(row) {
- this.reset()
+ this.reset();
const id = row.id || this.ids
getGather(id).then(response => {
- this.form = response.data
- this.open = true
- this.title = "修改生成汇总"
+ this.treeData = JSON.parse(response.data.titleStr)
+ this.open = true;
+ this.optType = 2;
+ this.title = "查看汇总选项"
})
},
/** 提交按钮 */