mirror of
https://gitee.com/dromara/Jpom.git
synced 2024-12-03 20:38:52 +08:00
fix bug: ssh page edit feature when no fileDir config
This commit is contained in:
parent
2b83eb0859
commit
ae0e7fe1ec
@ -23,6 +23,7 @@
|
||||
9. 【Server】修护报警恢复后,报警列表中的报警状态显示报警中的错误(感谢@南有乔木)
|
||||
10. 更新hutool 版本至5.4.x (能避免系统缓存页面里面获取文件大小卡死)
|
||||
11. 调整Jpom启动输出日志,启动消息采用控制台输出不再打印error级别的启动消息
|
||||
12. fix bug: ssh 列表页面编辑弹窗无法加载(当没有设置文件目录时)
|
||||
|
||||
> 特别感谢:@Hotstrip 对Jpom的前端页面采用vue重构编写
|
||||
>
|
||||
|
@ -8,7 +8,9 @@
|
||||
<a-table :data-source="list" :loading="loading" :columns="columns" :scroll="{x: '80vw'}" :pagination="false" bordered :rowKey="(record, index) => index">
|
||||
<template slot="nodeId" slot-scope="text, record">
|
||||
<a-button v-if="!record.nodeModel" type="primary" @click="install(record)">安装节点</a-button>
|
||||
<a-tag color="#2db7f5" v-else @click="toNode(record.nodeModel)">前往节点: {{ `${record.nodeModel.id} ( ${record.nodeModel.name} )` }}</a-tag>
|
||||
<a-tooltip v-else placement="topLeft" :title="`${record.nodeModel.id} ( ${record.nodeModel.name} )`">
|
||||
<a-button type="primary" @click="toNode(record.nodeModel)">前往节点: {{ `${record.nodeModel.id} ( ${record.nodeModel.name} )` }}</a-button>
|
||||
</a-tooltip>
|
||||
</template>
|
||||
<template slot="operation" slot-scope="text, record">
|
||||
<a-button type="primary" @click="handleEdit(record)">编辑</a-button>
|
||||
@ -125,7 +127,7 @@ export default {
|
||||
terminalVisible: false,
|
||||
columns: [
|
||||
{title: '名称', dataIndex: 'name', width: 150},
|
||||
{title: '关联节点', dataIndex: 'nodeId', scopedSlots: {customRender: 'nodeId'}, width: 160},
|
||||
{title: '关联节点', dataIndex: 'nodeId', scopedSlots: {customRender: 'nodeId'}, width: 160, ellipsis: true},
|
||||
{title: 'Host', dataIndex: 'host', width: 150},
|
||||
{title: 'Port', dataIndex: 'port', width: 80},
|
||||
{title: 'User', dataIndex: 'user', width: 120},
|
||||
@ -200,7 +202,7 @@ export default {
|
||||
// 修改
|
||||
handleEdit(record) {
|
||||
this.temp = Object.assign({}, record);
|
||||
this.temp.fileDirs = record.fileDirs.join('\r\n');
|
||||
this.temp.fileDirs = record.fileDirs ? record.fileDirs.join('\r\n') : '';
|
||||
this.temp.type = 'edit';
|
||||
this.editSshVisible = true;
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user