diff --git a/web/public/js/components/grant/grant-selector.js b/web/public/js/components/grant/grant-selector.js index dca2ad5c..a3019667 100644 --- a/web/public/js/components/grant/grant-selector.js +++ b/web/public/js/components/grant/grant-selector.js @@ -23,7 +23,7 @@ Vue.component("grant-selector", { // 创建授权 create: function () { teaweb.popup("/clusters/grants/createPopup", { - height: "31em", + height: "26em", callback: (resp) => { this.grantId = resp.data.grant.id; if (this.grantId > 0) { @@ -40,7 +40,7 @@ Vue.component("grant-selector", { return; } teaweb.popup("/clusters/grants/updatePopup?grantId=" + this.grant.id, { - height: "31em", + height: "26em", callback: (resp) => { this.grant = resp.data.grant; } diff --git a/web/views/@default/clusters/cluster/installRemote.js b/web/views/@default/clusters/cluster/installRemote.js index 7fd030d4..4808cd4f 100644 --- a/web/views/@default/clusters/cluster/installRemote.js +++ b/web/views/@default/clusters/cluster/installRemote.js @@ -114,6 +114,7 @@ Tea.context(function () { case "EMPTY_GRANT": teaweb.warn("需要填写SSH登录信息", function () { teaweb.popup("/clusters/cluster/updateNodeSSH?nodeId=" + nodeId, { + height: "30em", callback: function () { teaweb.reload() } @@ -123,6 +124,7 @@ Tea.context(function () { case "SSH登录失败,请检查设置": teaweb.warn("需要填写SSH登录信息", function () { teaweb.popup("/clusters/cluster/updateNodeSSH?nodeId=" + nodeId, { + height: "30em", callback: function () { teaweb.reload() } diff --git a/web/views/@default/clusters/cluster/node/install.js b/web/views/@default/clusters/cluster/node/install.js index b0492682..c9518945 100644 --- a/web/views/@default/clusters/cluster/node/install.js +++ b/web/views/@default/clusters/cluster/node/install.js @@ -60,6 +60,7 @@ Tea.context(function () { case "EMPTY_GRANT": teaweb.warn("需要填写SSH登录信息", function () { teaweb.popup("/clusters/cluster/updateNodeSSH?nodeId=" + nodeId, { + height: "30em", callback: function () { that.install() } @@ -69,6 +70,7 @@ Tea.context(function () { case "SSH_LOGIN_FAILED": teaweb.warn("SSH登录失败,请检查设置", function () { teaweb.popup("/clusters/cluster/updateNodeSSH?nodeId=" + nodeId, { + height: "30em", callback: function () { that.install() } diff --git a/web/views/@default/clusters/cluster/upgradeRemote.js b/web/views/@default/clusters/cluster/upgradeRemote.js index 36a5cb3e..a105db08 100644 --- a/web/views/@default/clusters/cluster/upgradeRemote.js +++ b/web/views/@default/clusters/cluster/upgradeRemote.js @@ -114,6 +114,7 @@ Tea.context(function () { case "EMPTY_GRANT": teaweb.warn("需要填写SSH登录信息", function () { teaweb.popup("/clusters/cluster/updateNodeSSH?nodeId=" + nodeId, { + height: "30em", callback: function () { teaweb.reload() } diff --git a/web/views/@default/ns/clusters/cluster/node/install.js b/web/views/@default/ns/clusters/cluster/node/install.js index cfd71772..1ed4abb7 100644 --- a/web/views/@default/ns/clusters/cluster/node/install.js +++ b/web/views/@default/ns/clusters/cluster/node/install.js @@ -60,6 +60,7 @@ Tea.context(function () { case "EMPTY_GRANT": teaweb.warn("需要填写SSH登录信息", function () { teaweb.popup("/ns/clusters/cluster/updateNodeSSH?nodeId=" + nodeId, { + height: "30em", callback: function () { that.install() } @@ -69,6 +70,7 @@ Tea.context(function () { case "SSH_LOGIN_FAILED": teaweb.warn("SSH登录失败,请检查设置", function () { teaweb.popup("/ns/clusters/cluster/updateNodeSSH?nodeId=" + nodeId, { + height: "30em", callback: function () { that.install() }