ludc
2023-04-21 e55cf23dc536ce06b9a8b14edd889215956c1eda
Source/UBCS-WEB/src/views/modeling/cycle.vue
@@ -1,14 +1,15 @@
<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="addHandlers">编辑模板</el-button>
    <el-button type="primary" size="small" @click="$refs.flow.addNode('测试节点')">添加节点</el-button>
    <br/><br/>
    <avue-flow ref="flow" v-model="form" :height="703" :option="option" :width="1500">
@@ -47,7 +48,7 @@
  name: "cycle.vue",
  data() {
    return {
      //模板对话框
      //模板对话框,
      dialogTableVisible:false,
      forms:{
        select:""
@@ -182,10 +183,13 @@
        addHandler(){
          this.dialogTableVisible=true
          console.log(1)
        },
        deleteNode(id){
          console.log(id)
        handelLife(){
          console.log("点击成功")
        },
        addHandlers(){
          console.log(111)
        }
      }
    }