mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-10 01:03:26 +08:00
优化界面
This commit is contained in:
@@ -23,7 +23,7 @@ Vue.component("grant-selector", {
|
|||||||
// 创建授权
|
// 创建授权
|
||||||
create: function () {
|
create: function () {
|
||||||
teaweb.popup("/clusters/grants/createPopup", {
|
teaweb.popup("/clusters/grants/createPopup", {
|
||||||
height: "31em",
|
height: "26em",
|
||||||
callback: (resp) => {
|
callback: (resp) => {
|
||||||
this.grantId = resp.data.grant.id;
|
this.grantId = resp.data.grant.id;
|
||||||
if (this.grantId > 0) {
|
if (this.grantId > 0) {
|
||||||
@@ -40,7 +40,7 @@ Vue.component("grant-selector", {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
teaweb.popup("/clusters/grants/updatePopup?grantId=" + this.grant.id, {
|
teaweb.popup("/clusters/grants/updatePopup?grantId=" + this.grant.id, {
|
||||||
height: "31em",
|
height: "26em",
|
||||||
callback: (resp) => {
|
callback: (resp) => {
|
||||||
this.grant = resp.data.grant;
|
this.grant = resp.data.grant;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -114,6 +114,7 @@ Tea.context(function () {
|
|||||||
case "EMPTY_GRANT":
|
case "EMPTY_GRANT":
|
||||||
teaweb.warn("需要填写SSH登录信息", function () {
|
teaweb.warn("需要填写SSH登录信息", function () {
|
||||||
teaweb.popup("/clusters/cluster/updateNodeSSH?nodeId=" + nodeId, {
|
teaweb.popup("/clusters/cluster/updateNodeSSH?nodeId=" + nodeId, {
|
||||||
|
height: "30em",
|
||||||
callback: function () {
|
callback: function () {
|
||||||
teaweb.reload()
|
teaweb.reload()
|
||||||
}
|
}
|
||||||
@@ -123,6 +124,7 @@ Tea.context(function () {
|
|||||||
case "SSH登录失败,请检查设置":
|
case "SSH登录失败,请检查设置":
|
||||||
teaweb.warn("需要填写SSH登录信息", function () {
|
teaweb.warn("需要填写SSH登录信息", function () {
|
||||||
teaweb.popup("/clusters/cluster/updateNodeSSH?nodeId=" + nodeId, {
|
teaweb.popup("/clusters/cluster/updateNodeSSH?nodeId=" + nodeId, {
|
||||||
|
height: "30em",
|
||||||
callback: function () {
|
callback: function () {
|
||||||
teaweb.reload()
|
teaweb.reload()
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -60,6 +60,7 @@ Tea.context(function () {
|
|||||||
case "EMPTY_GRANT":
|
case "EMPTY_GRANT":
|
||||||
teaweb.warn("需要填写SSH登录信息", function () {
|
teaweb.warn("需要填写SSH登录信息", function () {
|
||||||
teaweb.popup("/clusters/cluster/updateNodeSSH?nodeId=" + nodeId, {
|
teaweb.popup("/clusters/cluster/updateNodeSSH?nodeId=" + nodeId, {
|
||||||
|
height: "30em",
|
||||||
callback: function () {
|
callback: function () {
|
||||||
that.install()
|
that.install()
|
||||||
}
|
}
|
||||||
@@ -69,6 +70,7 @@ Tea.context(function () {
|
|||||||
case "SSH_LOGIN_FAILED":
|
case "SSH_LOGIN_FAILED":
|
||||||
teaweb.warn("SSH登录失败,请检查设置", function () {
|
teaweb.warn("SSH登录失败,请检查设置", function () {
|
||||||
teaweb.popup("/clusters/cluster/updateNodeSSH?nodeId=" + nodeId, {
|
teaweb.popup("/clusters/cluster/updateNodeSSH?nodeId=" + nodeId, {
|
||||||
|
height: "30em",
|
||||||
callback: function () {
|
callback: function () {
|
||||||
that.install()
|
that.install()
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -114,6 +114,7 @@ Tea.context(function () {
|
|||||||
case "EMPTY_GRANT":
|
case "EMPTY_GRANT":
|
||||||
teaweb.warn("需要填写SSH登录信息", function () {
|
teaweb.warn("需要填写SSH登录信息", function () {
|
||||||
teaweb.popup("/clusters/cluster/updateNodeSSH?nodeId=" + nodeId, {
|
teaweb.popup("/clusters/cluster/updateNodeSSH?nodeId=" + nodeId, {
|
||||||
|
height: "30em",
|
||||||
callback: function () {
|
callback: function () {
|
||||||
teaweb.reload()
|
teaweb.reload()
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -60,6 +60,7 @@ Tea.context(function () {
|
|||||||
case "EMPTY_GRANT":
|
case "EMPTY_GRANT":
|
||||||
teaweb.warn("需要填写SSH登录信息", function () {
|
teaweb.warn("需要填写SSH登录信息", function () {
|
||||||
teaweb.popup("/ns/clusters/cluster/updateNodeSSH?nodeId=" + nodeId, {
|
teaweb.popup("/ns/clusters/cluster/updateNodeSSH?nodeId=" + nodeId, {
|
||||||
|
height: "30em",
|
||||||
callback: function () {
|
callback: function () {
|
||||||
that.install()
|
that.install()
|
||||||
}
|
}
|
||||||
@@ -69,6 +70,7 @@ Tea.context(function () {
|
|||||||
case "SSH_LOGIN_FAILED":
|
case "SSH_LOGIN_FAILED":
|
||||||
teaweb.warn("SSH登录失败,请检查设置", function () {
|
teaweb.warn("SSH登录失败,请检查设置", function () {
|
||||||
teaweb.popup("/ns/clusters/cluster/updateNodeSSH?nodeId=" + nodeId, {
|
teaweb.popup("/ns/clusters/cluster/updateNodeSSH?nodeId=" + nodeId, {
|
||||||
|
height: "30em",
|
||||||
callback: function () {
|
callback: function () {
|
||||||
that.install()
|
that.install()
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user