| | |
| | | <el-table-column fixed="right" label="操作"> |
| | | <template slot-scope="scope"> |
| | | <el-button type="text" style="margin-right:8px;" @click="toAddPage(scope.row)">编辑</el-button> |
| | | <el-button type="text" style="margin-right:8px;" @click="toAddPage(scope.row,true)">节点动作管理</el-button> |
| | | <el-popconfirm title="确定删除该节点吗?" @confirm="remove(scope.row)"> |
| | | <el-button slot="reference" type="text">删除</el-button> |
| | | </el-popconfirm> |
| | |
| | | console.log(err) |
| | | }); |
| | | }, |
| | | toAddPage(data) { |
| | | if (data) { |
| | | toAddPage(data, action) { |
| | | if (action) { |
| | | data.action = true; |
| | | this.$router.push({ |
| | | path: '/manage/addNode', |
| | | query: { data: JSON.stringify(data) } |
| | | }) |
| | | } else { |
| | | this.$router.push({ |
| | | path: '/manage/addNode', |
| | | }) |
| | | if (data) { |
| | | this.$router.push({ |
| | | path: '/manage/addNode', |
| | | query: { data: JSON.stringify(data) } |
| | | }) |
| | | } else { |
| | | this.$router.push({ |
| | | path: '/manage/addNode', |
| | | }) |
| | | } |
| | | } |
| | | |
| | | } |
| | | } |
| | | } |