diff --git a/web/views/@default/clusters/grants/create.html b/web/views/@default/clusters/grants/create.html
index e1c7b84d..fd48f397 100644
--- a/web/views/@default/clusters/grants/create.html
+++ b/web/views/@default/clusters/grants/create.html
@@ -8,7 +8,7 @@
名称 * |
-
+
|
@@ -26,7 +26,7 @@
| SSH用户名 * |
-
+
|
@@ -42,7 +42,7 @@
| SSH用户名 * |
-
+
|
@@ -62,17 +62,18 @@
+
+ | 执行sudo |
+
+
+
+ |
+
+
|
-
- | 执行sudo |
-
-
-
- |
-
| 备注 |
diff --git a/web/views/@default/clusters/grants/create.js b/web/views/@default/clusters/grants/create.js
index bdb850ae..b87e53f7 100644
--- a/web/views/@default/clusters/grants/create.js
+++ b/web/views/@default/clusters/grants/create.js
@@ -1,5 +1,6 @@
Tea.context(function () {
this.method = "user";
+ this.username = "root"
this.success = NotifySuccess("保存成功", "/clusters/grants");
});
\ No newline at end of file
diff --git a/web/views/@default/clusters/grants/createPopup.html b/web/views/@default/clusters/grants/createPopup.html
index 3725aebd..da7a1fe4 100644
--- a/web/views/@default/clusters/grants/createPopup.html
+++ b/web/views/@default/clusters/grants/createPopup.html
@@ -7,6 +7,7 @@
| 名称 * |
+
|
@@ -24,7 +25,7 @@
| SSH用户名 * |
-
+
|
@@ -40,7 +41,7 @@
| SSH用户名 * |
-
+
|
@@ -60,18 +61,19 @@
+
+ | 执行sudo |
+
+
+
+ |
+
+
|
-
- | 执行sudo |
-
-
-
- |
-
| 备注 |
diff --git a/web/views/@default/clusters/grants/createPopup.js b/web/views/@default/clusters/grants/createPopup.js
index aca9c205..f6a68ba8 100644
--- a/web/views/@default/clusters/grants/createPopup.js
+++ b/web/views/@default/clusters/grants/createPopup.js
@@ -1,5 +1,6 @@
Tea.context(function () {
this.method = "user";
+ this.username = "root"
this.success = NotifyPopup;
});
\ No newline at end of file
diff --git a/web/views/@default/clusters/grants/update.html b/web/views/@default/clusters/grants/update.html
index 477773fd..152ac95d 100644
--- a/web/views/@default/clusters/grants/update.html
+++ b/web/views/@default/clusters/grants/update.html
@@ -9,7 +9,7 @@
| 名称 * |
-
+
|
@@ -62,11 +62,11 @@
-
+
| 执行sudo |
-
+
|
diff --git a/web/views/@default/clusters/grants/updatePopup.html b/web/views/@default/clusters/grants/updatePopup.html
index 99673c44..f4fcdf02 100644
--- a/web/views/@default/clusters/grants/updatePopup.html
+++ b/web/views/@default/clusters/grants/updatePopup.html
@@ -9,6 +9,7 @@
| 名称 * |
+
|
@@ -61,19 +62,19 @@
+
+ | 执行sudo |
+
+
+
+ |
+
|
-
- | 执行sudo |
-
-
-
- |
-
| 备注 |
|