From d3120ed3613d63d46d7efb2396c45f663c6c6590 Mon Sep 17 00:00:00 2001 From: ibuler Date: Thu, 4 Jun 2020 17:07:00 +0800 Subject: [PATCH 1/6] =?UTF-8?q?feat:=20=E4=BF=AE=E6=94=B9xpack=E5=92=8Caud?= =?UTF-8?q?its=E9=83=A8=E5=88=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/i18n/langs/cn.json | 3 +++ src/i18n/langs/en.json | 3 +++ src/views/audits/CommandExecutionList.vue | 24 ++++++++++++++++++- .../xpack/GatheredUser/TaskCreateUpdate.vue | 4 ++++ src/views/xpack/router.js | 6 ++--- 5 files changed, 36 insertions(+), 4 deletions(-) diff --git a/src/i18n/langs/cn.json b/src/i18n/langs/cn.json index a52cacf50..71fbb6659 100644 --- a/src/i18n/langs/cn.json +++ b/src/i18n/langs/cn.json @@ -650,6 +650,9 @@ "DeleteNode": "删除节点", "RenameNode": "重命名节点" }, + "audits": { + "View": "查看" + }, "users": { "SSHKey": "SSH公钥", "TermsAndConditions": "条款和条件", diff --git a/src/i18n/langs/en.json b/src/i18n/langs/en.json index ef71c1ab6..1bbd92ef4 100644 --- a/src/i18n/langs/en.json +++ b/src/i18n/langs/en.json @@ -272,6 +272,9 @@ "Weekly": "Weekly", "TimesWeekUnit": "times/week" }, + "audits": { + "View": "查看" + }, "ops": { "ID": "ID", "No": "No", diff --git a/src/views/audits/CommandExecutionList.vue b/src/views/audits/CommandExecutionList.vue index df96a8bb3..85a8a8239 100644 --- a/src/views/audits/CommandExecutionList.vue +++ b/src/views/audits/CommandExecutionList.vue @@ -5,6 +5,7 @@ diff --git a/src/views/xpack/Vault.vue b/src/views/xpack/index/Vault.vue similarity index 100% rename from src/views/xpack/Vault.vue rename to src/views/xpack/index/Vault.vue From a6ed8333f449731ed9c5c05b322588f96b788eca Mon Sep 17 00:00:00 2001 From: xinwen Date: Thu, 4 Jun 2020 17:23:55 +0800 Subject: [PATCH 4/6] =?UTF-8?q?[Fix]=20Xpack/=E6=94=B6=E9=9B=86=E7=94=A8?= =?UTF-8?q?=E6=88=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/xpack/GatheredUser/TaskCreateUpdate.vue | 2 +- src/views/xpack/router.js | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/views/xpack/GatheredUser/TaskCreateUpdate.vue b/src/views/xpack/GatheredUser/TaskCreateUpdate.vue index c2d29a761..1b217f7bc 100644 --- a/src/views/xpack/GatheredUser/TaskCreateUpdate.vue +++ b/src/views/xpack/GatheredUser/TaskCreateUpdate.vue @@ -19,7 +19,7 @@ export default { url: '/api/v1/xpack/gathered-user/tasks/', initial: { is_periodic: true, - interval: 24 + interval: null }, fieldsMeta: { crontab: { diff --git a/src/views/xpack/router.js b/src/views/xpack/router.js index 7db5457ab..d2c6dea54 100644 --- a/src/views/xpack/router.js +++ b/src/views/xpack/router.js @@ -32,27 +32,27 @@ export default { path: '', component: () => import('@/views/xpack/GatheredUser/GatheredUserList'), name: 'GatherUserList', - meta: { title: i18n.t('xpack.GatherUserList') } + meta: { title: i18n.t('xpack.GatherUserList'), activeMenu: '/xpack/gathered-users' } }, { path: 'gathered-users/tasks', component: () => import('@/views/xpack/GatheredUser/TaskList'), name: 'GatherUserTaskList', - meta: { title: i18n.t('xpack.GatherUserTaskList') }, + meta: { title: i18n.t('xpack.GatherUserTaskList'), activeMenu: '/xpack/gathered-users' }, hidden: true }, { path: 'gathered-users/tasks/create', component: () => import('@/views/xpack/GatheredUser/TaskCreateUpdate'), name: 'GatherUserTaskCreate', - meta: { title: i18n.t('xpack.GatherUserTaskCreate'), activeMenu: '/xpack/gather-users' }, + meta: { title: i18n.t('xpack.GatherUserTaskCreate'), activeMenu: '/xpack/gathered-users' }, hidden: true }, { path: 'gathered-users/tasks/:id/update', component: () => import('@/views/xpack/GatheredUser/TaskCreateUpdate'), name: 'GatherUserTaskUpdate', - meta: { title: i18n.t('xpack.GatherUserTaskUpdate'), action: 'update', activeMenu: '/xpack/gather-users' }, + meta: { title: i18n.t('xpack.GatherUserTaskUpdate'), action: 'update', activeMenu: '/xpack/gathered-users' }, hidden: true } ] From da70f1cba736add2d545a21c4ddf352b7f4f198a Mon Sep 17 00:00:00 2001 From: xinwen Date: Thu, 4 Jun 2020 17:30:41 +0800 Subject: [PATCH 5/6] =?UTF-8?q?[Fix]=20Xpack/=E7=BB=84=E7=BB=87=E7=AE=A1?= =?UTF-8?q?=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/xpack/Org/OrganizationCreateUpdate.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/xpack/Org/OrganizationCreateUpdate.vue b/src/views/xpack/Org/OrganizationCreateUpdate.vue index 9900c779a..147d650bb 100644 --- a/src/views/xpack/Org/OrganizationCreateUpdate.vue +++ b/src/views/xpack/Org/OrganizationCreateUpdate.vue @@ -42,7 +42,7 @@ export default { } }, users: { - label: this.$t('xpack.USER'), + label: this.$t('xpack.User'), el: { value: [], ajax: { From 8268862b52e8deaae6248b1a89c222016b81f38f Mon Sep 17 00:00:00 2001 From: Eric Date: Thu, 4 Jun 2020 17:58:10 +0800 Subject: [PATCH 6/6] add dialogDetailformatter --- .../formatters/DialogDetailFormatter.vue | 63 +++++++++++++++++++ src/components/ListTable/formatters/index.js | 7 ++- src/userviews/assets/index.vue | 33 +++++++++- 3 files changed, 99 insertions(+), 4 deletions(-) create mode 100644 src/components/ListTable/formatters/DialogDetailFormatter.vue diff --git a/src/components/ListTable/formatters/DialogDetailFormatter.vue b/src/components/ListTable/formatters/DialogDetailFormatter.vue new file mode 100644 index 000000000..3a8ab0600 --- /dev/null +++ b/src/components/ListTable/formatters/DialogDetailFormatter.vue @@ -0,0 +1,63 @@ + + + + + diff --git a/src/components/ListTable/formatters/index.js b/src/components/ListTable/formatters/index.js index 0071ac161..ccc164ade 100644 --- a/src/components/ListTable/formatters/index.js +++ b/src/components/ListTable/formatters/index.js @@ -7,6 +7,7 @@ import DeleteActionFormatter from './DeleteActionFormatter' import DateFormatter from './DateFormatter' import SystemUserFormatter from './GrantedSystemUsersShowFormatter' import ShowKeyFormatter from '@/components/ListTable/formatters/ShowKeyFormatter' +import DialogDetailFormatter from './DialogDetailFormatter' export default { DetailFormatter, @@ -17,7 +18,8 @@ export default { DeleteActionFormatter, DateFormatter, SystemUserFormatter, - ShowKeyFormatter + ShowKeyFormatter, + DialogDetailFormatter } export { @@ -29,5 +31,6 @@ export { DeleteActionFormatter, DateFormatter, SystemUserFormatter, - ShowKeyFormatter + ShowKeyFormatter, + DialogDetailFormatter } diff --git a/src/userviews/assets/index.vue b/src/userviews/assets/index.vue index 4223c1e4d..f06e573a5 100644 --- a/src/userviews/assets/index.vue +++ b/src/userviews/assets/index.vue @@ -4,7 +4,7 @@