|
@@ -60,15 +60,15 @@
|
|
|
<!-- 加载节点信息 -->
|
|
|
<a-table :row-selection="rowSelection" :columns="columns" :data-source="datalist" rowKey="id" :style="{ height: '100%', borderRight: 0 }">
|
|
|
<template v-slot:bodyCell="{column , record}">
|
|
|
- <template v-if="column.dataIndex === 'delete'">
|
|
|
- <a-popconfirm
|
|
|
- v-if="datalist.length"
|
|
|
- title="是否删除这条记录"
|
|
|
- @confirm="onDeleteNode(record)"
|
|
|
- >
|
|
|
- <a>删除</a>
|
|
|
- </a-popconfirm>
|
|
|
- </template>
|
|
|
+<!-- <template v-if="column.dataIndex === 'delete'">-->
|
|
|
+<!-- <a-popconfirm-->
|
|
|
+<!-- v-if="datalist.length"-->
|
|
|
+<!-- title="是否删除这条记录"-->
|
|
|
+<!-- @confirm="onDeleteNode(record)"-->
|
|
|
+<!-- >-->
|
|
|
+<!-- <a>删除</a>-->
|
|
|
+<!-- </a-popconfirm>-->
|
|
|
+<!-- </template>-->
|
|
|
|
|
|
<template v-if="column.dataIndex === 'edit'">
|
|
|
<a @click="onEditNode(record)">编辑</a>
|
|
@@ -179,12 +179,12 @@ export default defineComponent({
|
|
|
key: 'Sshusername',
|
|
|
dataIndex:'Sshusername',
|
|
|
},
|
|
|
- {
|
|
|
- title: '删除',
|
|
|
- key: 'delete',
|
|
|
- dataIndex: 'delete',
|
|
|
- // slots: { customRender: 'delete' },
|
|
|
- },
|
|
|
+ // {
|
|
|
+ // title: '删除',
|
|
|
+ // key: 'delete',
|
|
|
+ // dataIndex: 'delete',
|
|
|
+ // // slots: { customRender: 'delete' },
|
|
|
+ // },
|
|
|
{
|
|
|
title: '编辑',
|
|
|
key: 'edit',
|
|
@@ -323,9 +323,7 @@ export default defineComponent({
|
|
|
|
|
|
const onSubmit = (isedit) =>{
|
|
|
const reqdata = {
|
|
|
- "id" : toRaw(formState).Serverid,
|
|
|
- "name" : toRaw(formState).Name,
|
|
|
- "host" : toRaw(formState).Host,
|
|
|
+ "serverid" : toRaw(formState).Serverid,
|
|
|
"sshcom" : toRaw(formState).Sshcommand,
|
|
|
"sshuser" : toRaw(formState).Sshusername,
|
|
|
"sshpass" : toRaw(formState).Sshpassword,
|