From c1c8ac27338c1e883a3a9260185df58e76a3d7a9 Mon Sep 17 00:00:00 2001
From: wangting <675591594@qq.com>
Date: 星期二, 13 六月 2023 11:18:28 +0800
Subject: [PATCH] 修改参照组件
---
Source/UBCS-WEB/src/views/modeling/cycle.vue | 39 ++++++++++++++-------------------------
1 files changed, 14 insertions(+), 25 deletions(-)
diff --git a/Source/UBCS-WEB/src/views/modeling/cycle.vue b/Source/UBCS-WEB/src/views/modeling/cycle.vue
index 0e86d37..5e3686d 100644
--- a/Source/UBCS-WEB/src/views/modeling/cycle.vue
+++ b/Source/UBCS-WEB/src/views/modeling/cycle.vue
@@ -1,22 +1,23 @@
<template>
<el-container>
<el-aside width="240px">
+ <el-button @click="addHandlers"></el-button>
<basic-container style="margin-top: 10px">
- <avue-tree id="basic" :data="treeData" :option="treeOption" @node-click="nodeClick" >
+ <avue-tree id="basic" :data="treeData" :option="treeOption" >
</avue-tree>
</basic-container>
</el-aside>
<basic-container >
<el-button type="primary" @click="dialogTableVisible=true" size="small">鍒涘缓妯℃澘</el-button>
- <el-button type="primary" size="small">缂栬緫妯℃澘</el-button>
- <el-button type="primary" size="small" @click="$refs.flow.addNode('娴嬭瘯鑺傜偣')">娣诲姞鑺傜偣</el-button>
+ <el-button type="primary" size="small" @click="addHandlers">缂栬緫妯℃澘</el-button>
+ <el-button type="primary" size="small" @click="$refs.flow.addNode('ffff')">娣诲姞鑺傜偣</el-button>
<br/><br/>
<avue-flow ref="flow" v-model="form" :height="703" :option="option" :width="1500">
<template slot="header" slot-scope="scope">
<i class="el-icon-delete" @click="$refs.flow.deleteNode(scope.node.id)" style="margin-top: 8px"></i>
</template>
<div slot-scope="{node}">
- <span>鑷畾涔墈{ (node || {}).name }}</span>
+ <span>{{ (node || {}).name }}</span>
</div>
</avue-flow>
<!-- 鍒涘缓瀵硅瘽妗�-->
@@ -47,7 +48,7 @@
name: "cycle.vue",
data() {
return {
- //妯℃澘瀵硅瘽妗�
+ //妯℃澘瀵硅瘽妗�,
dialogTableVisible:false,
forms:{
select:""
@@ -69,21 +70,6 @@
prop:"filetype",
formslot: true,
span:24
- // type:"select",
- // dicData:[
- // {
- // label:"娴嬭瘯1",
- // value:0
- // },
- // {
- // label:"娴嬭瘯2",
- // value:1
- // },
- // {
- // label:"娴嬭瘯3",
- // value:2
- // },
- // ]
},
{
label: "鎻忚堪",
@@ -125,7 +111,7 @@
defaultExpandAll: true,
},
option: {
- "nodeList": [
+ nodeList: [
{
"id": "nodeA",
"name": "娴佺▼A-鑺傜偣A",
@@ -151,7 +137,7 @@
"top": 20,
}
],
- "lineList": [
+ lineList: [
{
"from": "nodeA",
"to": "nodeB"
@@ -182,10 +168,13 @@
addHandler(){
this.dialogTableVisible=true
console.log(1)
-
},
- deleteNode(id){
- console.log(id)
+
+ handelLife(){
+ console.log("鐐瑰嚮鎴愬姛")
+ },
+ addHandlers(){
+ console.log(111)
}
}
}
--
Gitblit v1.9.3