From 3b19fdf6f0d4c2fbdf5b07b065e7748d1e0caf4a Mon Sep 17 00:00:00 2001
From: jym503558564 <503558564@qq.com>
Date: Sun, 22 Mar 2020 11:46:09 +0800
Subject: [PATCH] =?UTF-8?q?[Update]=20=E5=A2=9E=E5=8A=A0=E5=91=BD=E4=BB=A4?=
=?UTF-8?q?=E8=BF=87=E6=BB=A4=E5=99=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/api/asset.js | 8 ++
src/i18n/langs/cn.js | 2 +-
src/router/index.js | 8 +-
src/views/assets/CommandFilterList.vue | 132 +++++++++++++++++++++++++
4 files changed, 145 insertions(+), 5 deletions(-)
create mode 100644 src/views/assets/CommandFilterList.vue
diff --git a/src/api/asset.js b/src/api/asset.js
index 6538977fa..ffd8a8099 100644
--- a/src/api/asset.js
+++ b/src/api/asset.js
@@ -32,3 +32,11 @@ export function getLabelList(data) {
})
}
+export function getCommandFilterList(data) {
+ return request({
+ url: '/api/v1/assets/cmd-filters/',
+ method: 'get',
+ params: data
+ })
+}
+
diff --git a/src/i18n/langs/cn.js b/src/i18n/langs/cn.js
index 68156814a..8f64e0e8b 100644
--- a/src/i18n/langs/cn.js
+++ b/src/i18n/langs/cn.js
@@ -21,7 +21,7 @@ const cn = {
'AdminUserList': '管理用户',
'SystemUserList': '系统用户',
'LabelList': '标签管理',
- 'commandFilterList': '命令过滤',
+ 'CommandFilterList': '命令过滤',
'platformList': '平台列表',
'applications': '应用管理',
'perms': '权限管理',
diff --git a/src/router/index.js b/src/router/index.js
index 40015d254..d9009b392 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -146,10 +146,10 @@ export const constantRoutes = [
meta: { title: 'LabelList' }
},
{
- path: 'command-filters',
- name: 'commandFilterList',
- component: () => import('@/views/tree/index'),
- meta: { title: 'commandFilterList' }
+ path: 'cmd-filter/list',
+ name: 'CommandFilterList',
+ component: () => import('@/views/assets/CommandFilterList.vue'),
+ meta: { title: 'CommandFilterList' }
},
{
path: 'platforms',
diff --git a/src/views/assets/CommandFilterList.vue b/src/views/assets/CommandFilterList.vue
new file mode 100644
index 000000000..a58246559
--- /dev/null
+++ b/src/views/assets/CommandFilterList.vue
@@ -0,0 +1,132 @@
+
+
+
+
+
+
+
+ {{ scope.row.name }}
+
+
+
+
+ {{ scope.row.rules.length }}
+
+
+
+
+ {{ scope.row.system_users.length }}
+
+
+
+
+ {{ scope.row.comment }}
+
+
+
+
+ {{ $t('assets.update') }}
+ {{ $t('assets.delete') }}
+
+
+
+
+
+
+
+
+
+