whyczyk
2021-11-05 6165429964c79c831b85570d8bac6b67775846b0
src/pages/manage/node/nodeManage.vue
@@ -14,6 +14,7 @@
               <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>
@@ -102,17 +103,26 @@
            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',
               })
            }
         }
      }
   }
}