From 5254018426a8ea5b5d2a96d9c767514b99f630d6 Mon Sep 17 00:00:00 2001 From: jym503558564 <503558564@qq.com> Date: Thu, 2 Apr 2020 15:36:05 +0800 Subject: [PATCH 01/26] =?UTF-8?q?[Update]=20=E4=BF=AE=E6=94=B9=E7=AE=A1?= =?UTF-8?q?=E7=90=86=E7=94=A8=E6=88=B7=E5=88=97=E8=A1=A8=E7=BB=84=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/assets/AdminUserList.vue | 46 ++++++++++++------------------ 1 file changed, 19 insertions(+), 27 deletions(-) diff --git a/src/views/assets/AdminUserList.vue b/src/views/assets/AdminUserList.vue index c805d6ac4..60152ee5a 100644 --- a/src/views/assets/AdminUserList.vue +++ b/src/views/assets/AdminUserList.vue @@ -1,57 +1,49 @@ - From 13b9449645769b5fd1c79c9d893896ce5c110b44 Mon Sep 17 00:00:00 2001 From: jym503558564 <503558564@qq.com> Date: Thu, 2 Apr 2020 16:00:15 +0800 Subject: [PATCH 03/26] =?UTF-8?q?[Update]=20=E4=BF=AE=E6=94=B9=E7=BD=91?= =?UTF-8?q?=E5=9F=9F=E5=88=97=E8=A1=A8=E7=BB=84=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/assets/DomainList.vue | 53 ++++++++++++++------------------- 1 file changed, 23 insertions(+), 30 deletions(-) diff --git a/src/views/assets/DomainList.vue b/src/views/assets/DomainList.vue index 96b878db6..34c2fb687 100644 --- a/src/views/assets/DomainList.vue +++ b/src/views/assets/DomainList.vue @@ -1,57 +1,50 @@ - From 32e9a69aca075e5b88c6dff6338c0a6ef92a2531 Mon Sep 17 00:00:00 2001 From: jym503558564 <503558564@qq.com> Date: Thu, 2 Apr 2020 16:07:29 +0800 Subject: [PATCH 05/26] =?UTF-8?q?[Update]=20=E4=BF=AE=E6=94=B9=E6=A0=87?= =?UTF-8?q?=E7=AD=BE=E5=88=97=E8=A1=A8=E7=BB=84=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/assets/LabelList.vue | 56 ++++++++++++++-------------------- 1 file changed, 23 insertions(+), 33 deletions(-) diff --git a/src/views/assets/LabelList.vue b/src/views/assets/LabelList.vue index 5257a61c8..82a7360c4 100644 --- a/src/views/assets/LabelList.vue +++ b/src/views/assets/LabelList.vue @@ -1,62 +1,52 @@ - From 911df84460cd47a99c8d39c02afbfa9e421f4c47 Mon Sep 17 00:00:00 2001 From: jym503558564 <503558564@qq.com> Date: Thu, 2 Apr 2020 16:25:29 +0800 Subject: [PATCH 06/26] =?UTF-8?q?[Update]=20=E4=BF=AE=E6=94=B9=E5=91=BD?= =?UTF-8?q?=E4=BB=A4=E5=88=97=E8=A1=A8=E7=BB=84=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/i18n/langs/cn.js | 2 +- src/views/assets/CommandFilterList.vue | 53 +++++++++++--------------- 2 files changed, 24 insertions(+), 31 deletions(-) diff --git a/src/i18n/langs/cn.js b/src/i18n/langs/cn.js index 33d519e75..172d45300 100644 --- a/src/i18n/langs/cn.js +++ b/src/i18n/langs/cn.js @@ -244,7 +244,7 @@ const cn = { 'update_command_filter': '更新命令过滤器', 'command_filter_detail': '命令过滤器详情', 'rules': '规则', - 'system_user': '系统用户', + 'systemUser': '系统用户', 'date_updated': '更新日期', 'binding_to_system_user': '绑定到系统用户', // 系统平台 diff --git a/src/views/assets/CommandFilterList.vue b/src/views/assets/CommandFilterList.vue index ddd98ef89..75abd3b4a 100644 --- a/src/views/assets/CommandFilterList.vue +++ b/src/views/assets/CommandFilterList.vue @@ -1,63 +1,56 @@ - From cbfc52adfef52536f30dfa155f47650238b490b8 Mon Sep 17 00:00:00 2001 From: jym503558564 <503558564@qq.com> Date: Thu, 2 Apr 2020 16:31:34 +0800 Subject: [PATCH 07/26] =?UTF-8?q?[Update]=20=E5=A2=9E=E5=8A=A0=E5=B9=B3?= =?UTF-8?q?=E5=8F=B0=E5=88=97=E8=A1=A8=E7=BB=84=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/i18n/langs/cn.js | 2 +- src/router/index.js | 2 +- src/views/assets/PlatformList.vue | 52 +++++++++++++++++++++++++++++++ 3 files changed, 54 insertions(+), 2 deletions(-) create mode 100644 src/views/assets/PlatformList.vue diff --git a/src/i18n/langs/cn.js b/src/i18n/langs/cn.js index 172d45300..0ef98da19 100644 --- a/src/i18n/langs/cn.js +++ b/src/i18n/langs/cn.js @@ -252,7 +252,7 @@ const cn = { 'create_platform': '创建系统平台', 'update_platform': '更新系统平台', 'platform_detail': '平台详情', - 'base_platform': '基础平台', + 'BasePlatform': '基础平台', 'charset': '编码', 'meta': '元数据' }, diff --git a/src/router/index.js b/src/router/index.js index 4b9e8623a..39d9e027d 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -161,7 +161,7 @@ export const constantRoutes = [ { path: 'platforms', name: 'PlatformList', - component: () => import('@/views/tree/index'), + component: () => import('@/views/assets/PlatformList'), meta: { title: 'PlatformList' } } ] diff --git a/src/views/assets/PlatformList.vue b/src/views/assets/PlatformList.vue new file mode 100644 index 000000000..5baa88a9a --- /dev/null +++ b/src/views/assets/PlatformList.vue @@ -0,0 +1,52 @@ + + + + + From 3793c484ecd19d698ac596f993f9bfb14ee4a727 Mon Sep 17 00:00:00 2001 From: jym503558564 <503558564@qq.com> Date: Thu, 2 Apr 2020 16:44:01 +0800 Subject: [PATCH 08/26] =?UTF-8?q?[Update]=20=E5=A2=9E=E5=8A=A0=E8=BF=9C?= =?UTF-8?q?=E7=A8=8B=E5=BA=94=E7=94=A8=E5=88=97=E8=A1=A8=E7=BB=84=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/i18n/langs/cn.js | 2 +- src/router/index.js | 6 +- src/views/applications/DatabaseAppList.vue | 64 ++++++++++++++++++++++ src/views/applications/RemoteAppList.vue | 56 +++++++++++++++++++ src/views/assets/CommandFilterList.vue | 2 +- src/views/assets/PlatformList.vue | 6 +- 6 files changed, 128 insertions(+), 8 deletions(-) create mode 100644 src/views/applications/DatabaseAppList.vue create mode 100644 src/views/applications/RemoteAppList.vue diff --git a/src/i18n/langs/cn.js b/src/i18n/langs/cn.js index 0ef98da19..75921f479 100644 --- a/src/i18n/langs/cn.js +++ b/src/i18n/langs/cn.js @@ -263,7 +263,7 @@ const cn = { 'remote_app_detail': '远程应用详情', 'update_remote_app': '更新远程应用', 'name': '名称', - 'app_type': '应用类型', + 'appType': '应用类型', 'asset': '资产', 'action': '操作', 'update': '更新', diff --git a/src/router/index.js b/src/router/index.js index 39d9e027d..d6d7f8ed3 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -175,14 +175,14 @@ export const constantRoutes = [ children: [ { path: 'remote-apps', - name: 'remoteAppList', - component: () => import('@/views/tree/index'), + name: 'RemoteAppList', + component: () => import('@/views/applications/RemoteAppList'), meta: { title: 'RemoteApp' } }, { path: 'database-apps', name: 'DatabaseAppList', - component: () => import('@/views/tree/index'), + component: () => import('@/views/applications/DatabaseAppList'), meta: { title: 'DatabaseApp' } } ] diff --git a/src/views/applications/DatabaseAppList.vue b/src/views/applications/DatabaseAppList.vue new file mode 100644 index 000000000..fa47350ed --- /dev/null +++ b/src/views/applications/DatabaseAppList.vue @@ -0,0 +1,64 @@ + + + + + diff --git a/src/views/applications/RemoteAppList.vue b/src/views/applications/RemoteAppList.vue new file mode 100644 index 000000000..c959291c0 --- /dev/null +++ b/src/views/applications/RemoteAppList.vue @@ -0,0 +1,56 @@ + + + + + diff --git a/src/views/assets/CommandFilterList.vue b/src/views/assets/CommandFilterList.vue index 75abd3b4a..1d8dea975 100644 --- a/src/views/assets/CommandFilterList.vue +++ b/src/views/assets/CommandFilterList.vue @@ -32,7 +32,7 @@ export default { label: this.$t('assets.systemUser') }, { - prop: '', + prop: 'comment', label: this.$t('assets.comment') } ], diff --git a/src/views/assets/PlatformList.vue b/src/views/assets/PlatformList.vue index 5baa88a9a..8945b8c6e 100644 --- a/src/views/assets/PlatformList.vue +++ b/src/views/assets/PlatformList.vue @@ -21,14 +21,14 @@ export default { label: this.$t('assets.name'), formatter: DetailFormatter, sortable: true, - route: 'CommandFilterDetail' + route: 'PlatformDetail' }, { prop: 'base', label: this.$t('assets.BasePlatform') }, { - prop: '', + prop: 'comment', label: this.$t('assets.comment') } ], @@ -40,7 +40,7 @@ export default { headerActions: { hasDelete: false, hasUpdate: false, - createRoute: 'CommandFilterCreate' + createRoute: 'PlatformCreate' } } } From f2bc4c6bb73c2b684c8624894457bcb0917b8d52 Mon Sep 17 00:00:00 2001 From: jym503558564 <503558564@qq.com> Date: Thu, 2 Apr 2020 17:05:20 +0800 Subject: [PATCH 09/26] =?UTF-8?q?[Update]=20=E5=A2=9E=E5=8A=A0=E6=8E=88?= =?UTF-8?q?=E6=9D=83=E5=88=97=E8=A1=A8=E7=BB=84=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/i18n/langs/cn.js | 8 +-- src/router/index.js | 8 +-- src/views/perms/AssetPermissionList.vue | 68 +++++++++++++++++++ src/views/perms/DatabaseAppPermissionList.vue | 64 +++++++++++++++++ src/views/perms/RemoteAppPermissionList.vue | 64 +++++++++++++++++ 5 files changed, 204 insertions(+), 8 deletions(-) create mode 100644 src/views/perms/AssetPermissionList.vue create mode 100644 src/views/perms/DatabaseAppPermissionList.vue create mode 100644 src/views/perms/RemoteAppPermissionList.vue diff --git a/src/i18n/langs/cn.js b/src/i18n/langs/cn.js index 75921f479..d148d8504 100644 --- a/src/i18n/langs/cn.js +++ b/src/i18n/langs/cn.js @@ -291,10 +291,10 @@ const cn = { 'Asset permissions': '资产授权', 'name': '名称', 'user': '用户', - 'user_group': '用户组', + 'userGroup': '用户组', 'asset': '资产', 'node': '节点', - 'system_user': '系统用户', + 'systemUser': '系统用户', 'validity': '有效', 'action': '动作', 'update': '更新', @@ -315,14 +315,14 @@ const cn = { 'users_and_user_groups': '用户或用户组', 'assets_and_node': '资产或节点', // - 'remote_app': '远程应用', + 'RemoteApp': '远程应用', 'remote_app_permission_list': '远程应用授权列表', 'remote_app_permission_detail': '远程应用授权详情', 'create_remote_app_permission': '创建远程应用授权规则', 'update_remote_app_permission': '更新远程应用授权规则', 'remote_app_count': '远程应用数量', // - 'database_app': '数据库应用', + 'DatabaseaApp': '数据库应用', 'database_app_permission_list': '数据库应用授权列表', 'database_app_permission_detail': '数据库应用授权详情', 'create_database_app_permission': '创建数据库应用授权规则', diff --git a/src/router/index.js b/src/router/index.js index d6d7f8ed3..f228e8c08 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -190,26 +190,26 @@ export const constantRoutes = [ { path: '/perms/', component: Layout, - redirect: '/perms/asset-permission/', + redirect: '/perms/asset-permissions/', name: 'Perms', meta: { title: 'Perms', icon: 'edit' }, children: [ { path: 'asset-permissions', name: 'AssetPermissionList', - component: import('@/views/tree/index'), + component: () => import('@/views/perms/AssetPermissionList'), meta: { title: 'AssetPermission' } }, { path: 'remote-app-permissions', name: 'RemoteAppPermissionList', - component: () => import('@/views/tree/index'), + component: () => import('@/views/perms/RemoteAppPermissionList'), meta: { title: 'RemoteAppPermission' } }, { path: 'database-app-permissions', name: 'DatabaseAppPermissionList', - component: () => import('@/views/tree/index'), + component: () => import('@/views/perms/DatabaseAppPermissionList'), meta: { title: 'DatabaseAppPermission' } } ] diff --git a/src/views/perms/AssetPermissionList.vue b/src/views/perms/AssetPermissionList.vue new file mode 100644 index 000000000..9f81d835e --- /dev/null +++ b/src/views/perms/AssetPermissionList.vue @@ -0,0 +1,68 @@ + + + + + diff --git a/src/views/perms/DatabaseAppPermissionList.vue b/src/views/perms/DatabaseAppPermissionList.vue new file mode 100644 index 000000000..8b5581ccf --- /dev/null +++ b/src/views/perms/DatabaseAppPermissionList.vue @@ -0,0 +1,64 @@ + + + + + diff --git a/src/views/perms/RemoteAppPermissionList.vue b/src/views/perms/RemoteAppPermissionList.vue new file mode 100644 index 000000000..fe6291070 --- /dev/null +++ b/src/views/perms/RemoteAppPermissionList.vue @@ -0,0 +1,64 @@ + + + + + From 6729defb1e23fa55de2d728a398ae27d8085e520 Mon Sep 17 00:00:00 2001 From: jym503558564 <503558564@qq.com> Date: Thu, 2 Apr 2020 17:12:06 +0800 Subject: [PATCH 10/26] =?UTF-8?q?[Update]=20=E4=BF=AE=E6=94=B9=E7=BF=BB?= =?UTF-8?q?=E8=AF=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/i18n/langs/cn.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/i18n/langs/cn.js b/src/i18n/langs/cn.js index d148d8504..305b250d1 100644 --- a/src/i18n/langs/cn.js +++ b/src/i18n/langs/cn.js @@ -322,7 +322,7 @@ const cn = { 'update_remote_app_permission': '更新远程应用授权规则', 'remote_app_count': '远程应用数量', // - 'DatabaseaApp': '数据库应用', + 'DatabaseApp': '数据库应用', 'database_app_permission_list': '数据库应用授权列表', 'database_app_permission_detail': '数据库应用授权详情', 'create_database_app_permission': '创建数据库应用授权规则', From 45dcb1e9f5823384a73d564f4f0e99c0fc46536e Mon Sep 17 00:00:00 2001 From: jym503558564 <503558564@qq.com> Date: Thu, 2 Apr 2020 18:07:26 +0800 Subject: [PATCH 11/26] =?UTF-8?q?[Update]=20=E5=A2=9E=E5=8A=A0=E5=9C=A8?= =?UTF-8?q?=E7=BA=BF=E4=BC=9A=E8=AF=9D=E5=92=8C=E5=8E=86=E5=8F=B2=E4=BC=9A?= =?UTF-8?q?=E8=AF=9D=E5=88=97=E8=A1=A8=E7=BB=84=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/i18n/langs/cn.js | 8 +-- src/router/index.js | 4 +- src/views/sessions/SessionOfflineList.vue | 82 +++++++++++++++++++++++ src/views/sessions/SessionOnlineList.vue | 81 ++++++++++++++++++++++ 4 files changed, 169 insertions(+), 6 deletions(-) create mode 100644 src/views/sessions/SessionOfflineList.vue create mode 100644 src/views/sessions/SessionOnlineList.vue diff --git a/src/i18n/langs/cn.js b/src/i18n/langs/cn.js index 305b250d1..ac17643df 100644 --- a/src/i18n/langs/cn.js +++ b/src/i18n/langs/cn.js @@ -336,12 +336,12 @@ const cn = { 'id': 'ID', 'user': '用户', 'asset': '资产', - 'system_user': '系统用户', - 'remote_addr': '远端地址', + 'systemUser': '系统用户', + 'remoteAddr': '远端地址', 'protocol': '协议', - 'login_form': '登录来源', + 'loginForm': '登录来源', 'command': '命令', - 'date_start': '开始日期', + 'dateStart': '开始日期', 'duration': '时长', 'action': '动作', 'search': '搜索', diff --git a/src/router/index.js b/src/router/index.js index f228e8c08..71aa8a490 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -224,13 +224,13 @@ export const constantRoutes = [ { path: 'session-online', name: 'SessionOnlineList', - component: () => import('@/views/tree/index'), + component: () => import('@/views/sessions/SessionOnlineList'), meta: { title: 'SessionOnline' } }, { path: 'session-offline', name: 'SessionOfflineList', - component: () => import('@/views/tree/index'), + component: () => import('@/views/sessions/SessionOfflineList'), meta: { title: 'SessionOffline' } }, { diff --git a/src/views/sessions/SessionOfflineList.vue b/src/views/sessions/SessionOfflineList.vue new file mode 100644 index 000000000..784aef657 --- /dev/null +++ b/src/views/sessions/SessionOfflineList.vue @@ -0,0 +1,82 @@ + + + + + diff --git a/src/views/sessions/SessionOnlineList.vue b/src/views/sessions/SessionOnlineList.vue new file mode 100644 index 000000000..39a8d7b5b --- /dev/null +++ b/src/views/sessions/SessionOnlineList.vue @@ -0,0 +1,81 @@ + + + + + From 36af2d0ea8db8bfaf972adb8c78673e641662d64 Mon Sep 17 00:00:00 2001 From: jym503558564 <503558564@qq.com> Date: Thu, 2 Apr 2020 18:15:54 +0800 Subject: [PATCH 12/26] =?UTF-8?q?[Update]=20=E4=BF=AE=E6=94=B9=E4=BC=9A?= =?UTF-8?q?=E8=AF=9D=E5=88=97=E8=A1=A8=E8=87=AA=E5=AE=9A=E4=B9=89=E6=8C=89?= =?UTF-8?q?=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/i18n/langs/cn.js | 4 +++- src/views/sessions/SessionOfflineList.vue | 26 ++++++++++++++++++++--- src/views/sessions/SessionOnlineList.vue | 14 ++++++++++-- 3 files changed, 38 insertions(+), 6 deletions(-) diff --git a/src/i18n/langs/cn.js b/src/i18n/langs/cn.js index ac17643df..5d74acc5f 100644 --- a/src/i18n/langs/cn.js +++ b/src/i18n/langs/cn.js @@ -354,7 +354,9 @@ const cn = { 'quick_modify': '快速修改', 'terminate_session': '终止会话', 'confirm': '确认', - 'commands': '命令记录' + 'commands': '命令记录', + 'replay': '回放', + 'download': '下载' }, setting: { 'setting': '系统设置', diff --git a/src/views/sessions/SessionOfflineList.vue b/src/views/sessions/SessionOfflineList.vue index 784aef657..a339325d5 100644 --- a/src/views/sessions/SessionOfflineList.vue +++ b/src/views/sessions/SessionOfflineList.vue @@ -23,7 +23,10 @@ export default { }, url: '/api/v1/terminal/sessions/', columns: [ - { type: 'index' }, + { + label: this.$t('sessions.id'), + type: 'index' + }, { prop: 'user', label: this.$t('sessions.user'), @@ -64,8 +67,25 @@ export default { ], tableActions: { hasEdit: false, - hadDelete: false - } + hasDelete: false + }, + extraButtons: [ + { + type: 'warning', + text: this.$t('sessions.replay'), + // 必须使用箭头函数 + atClick: (row) => { + this.$router.push({ name: '404' }) + } + }, + { + type: 'primary', + text: this.$t('sessions.download'), + atClick: (row) => { + this.$router.push({ name: '404' }) + } + } + ] }, headerActions: { hasCreate: false, diff --git a/src/views/sessions/SessionOnlineList.vue b/src/views/sessions/SessionOnlineList.vue index 39a8d7b5b..9002191ad 100644 --- a/src/views/sessions/SessionOnlineList.vue +++ b/src/views/sessions/SessionOnlineList.vue @@ -63,8 +63,18 @@ export default { ], tableActions: { hasEdit: false, - hadDelete: false - } + hasDelete: false + }, + extraButtons: [ + { + type: 'danger', + text: this.$t('sessions.terminate'), + // 必须使用箭头函数 + atClick: (row) => { + this.$router.push({ name: '404' }) + } + } + ] }, headerActions: { hasCreate: false, From 904100cadd7c334f3725706a49e8a8cdd95a8505 Mon Sep 17 00:00:00 2001 From: jym503558564 <503558564@qq.com> Date: Fri, 3 Apr 2020 10:24:18 +0800 Subject: [PATCH 13/26] =?UTF-8?q?[Update]=20=E4=BF=AE=E6=94=B9=E5=88=97?= =?UTF-8?q?=E8=A1=A8=E7=BB=84=E4=BB=B6=E7=9A=84=E9=BB=98=E8=AE=A4=E5=A4=8D?= =?UTF-8?q?=E9=80=89=E6=A1=86=E5=AF=B9=E5=85=B6=E5=B1=9E=E6=80=A7=E4=B8=BA?= =?UTF-8?q?selectionAlign?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../DataTable/compenents/el-data-table/el-data-table.vue | 6 +++++- src/views/sessions/SessionOnlineList.vue | 4 ++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/components/DataTable/compenents/el-data-table/el-data-table.vue b/src/components/DataTable/compenents/el-data-table/el-data-table.vue index c375ead5f..72a3e0aa7 100644 --- a/src/components/DataTable/compenents/el-data-table/el-data-table.vue +++ b/src/components/DataTable/compenents/el-data-table/el-data-table.vue @@ -90,7 +90,7 @@