mirror of
https://gitee.com/dromara/Jpom.git
synced 2024-12-03 04:18:21 +08:00
fix bug for manage node-project console component feature
This commit is contained in:
parent
3b956f78e2
commit
de538c1b04
@ -223,6 +223,13 @@ export default {
|
||||
// 展开行
|
||||
expand(expanded, record) {
|
||||
if (expanded) {
|
||||
if (!record.openStatus) {
|
||||
this.$notification.error({
|
||||
message: '节点未启用',
|
||||
duration: 2
|
||||
});
|
||||
return false;
|
||||
}
|
||||
// 请求节点状态数据
|
||||
this.childLoading = true;
|
||||
getNodeStatus(record.id).then(res => {
|
||||
|
@ -145,11 +145,25 @@ export default {
|
||||
this.project.status = true;
|
||||
}
|
||||
}
|
||||
// 如果是 status
|
||||
if (res.op === 'status') {
|
||||
if (this.copyId) {
|
||||
this.replica.status = true;
|
||||
} else {
|
||||
this.project.status = true;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
this.$notification.error({
|
||||
message: res.msg,
|
||||
duration: 5
|
||||
});
|
||||
// 设置未启动
|
||||
if (this.copyId) {
|
||||
this.replica.status = false;
|
||||
} else {
|
||||
this.project.status = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
this.logContext += `${msg.data}\r\n`;
|
||||
@ -197,7 +211,7 @@ export default {
|
||||
stop() {
|
||||
this.$confirm({
|
||||
title: '系统提示',
|
||||
content: '真的要重启项目么?',
|
||||
content: '真的要停止项目么?',
|
||||
okText: '确认',
|
||||
cancelText: '取消',
|
||||
onOk: () => {
|
||||
|
Loading…
Reference in New Issue
Block a user