| | |
| | | <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"> |
| | |
| | | name: "cycle.vue", |
| | | data() { |
| | | return { |
| | | //模板对话框 |
| | | //模板对话框, |
| | | dialogTableVisible:false, |
| | | forms:{ |
| | | select:"" |
| | |
| | | addHandler(){ |
| | | this.dialogTableVisible=true |
| | | console.log(1) |
| | | |
| | | }, |
| | | deleteNode(id){ |
| | | console.log(id) |
| | | |
| | | handelLife(){ |
| | | console.log("点击成功") |
| | | }, |
| | | addHandlers(){ |
| | | console.log(111) |
| | | } |
| | | } |
| | | } |