From 05dbbc535e114acf44474a0490bc101e26ce9313 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E9=99=88=E6=99=AF=E9=98=B3?= <1656488874@qq.com>
Date: Fri, 23 Aug 2019 20:39:14 +0800
Subject: [PATCH 1/7] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=B8=80=E7=82=B9?=
=?UTF-8?q?=E5=89=8D=E7=AB=AF=E7=9A=84UI?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
frontend/src/views/node/NodeList.vue | 2 +-
frontend/src/views/spider/SpiderList.vue | 10 +++++-----
frontend/src/views/task/TaskList.vue | 16 ++++++++--------
frontend/src/views/user/UserList.vue | 22 ++++++++++++++++++++++
4 files changed, 36 insertions(+), 14 deletions(-)
diff --git a/frontend/src/views/node/NodeList.vue b/frontend/src/views/node/NodeList.vue
index 8542d753..641009f3 100644
--- a/frontend/src/views/node/NodeList.vue
+++ b/frontend/src/views/node/NodeList.vue
@@ -165,7 +165,7 @@ export default {
{ name: 'ip', label: 'IP', width: '160' },
{ name: 'type', label: 'Type', width: '120' },
// { name: 'port', label: 'Port', width: '80' },
- { name: 'status', label: 'Status', width: '120', sortable: true },
+ { name: 'status', label: 'Status', width: '120' },
{ name: 'description', label: 'Description', width: 'auto' }
],
nodeFormRules: {
diff --git a/frontend/src/views/spider/SpiderList.vue b/frontend/src/views/spider/SpiderList.vue
index d791b862..c866ae6e 100644
--- a/frontend/src/views/spider/SpiderList.vue
+++ b/frontend/src/views/spider/SpiderList.vue
@@ -114,7 +114,7 @@
-
-
+
{{$t('Import Spiders')}}
-
{{$t('Add Spider')}}
-
@@ -538,7 +538,7 @@ export default {
}
.table {
- margin-top: 20px;
+ margin-top: 8px;
border-radius: 5px;
.el-button {
diff --git a/frontend/src/views/task/TaskList.vue b/frontend/src/views/task/TaskList.vue
index e15aa661..9cbceb20 100644
--- a/frontend/src/views/task/TaskList.vue
+++ b/frontend/src/views/task/TaskList.vue
@@ -4,7 +4,7 @@
-
-
-
@@ -119,7 +119,7 @@
:width="col.width">
-
+
@@ -172,11 +172,11 @@ export default {
{ name: 'node_name', label: 'Node', width: '120' },
{ name: 'spider_name', label: 'Spider', width: '120' },
{ name: 'status', label: 'Status', width: '120' },
- { name: 'create_ts', label: 'Create Time', width: '100' },
+ // { name: 'create_ts', label: 'Create Time', width: '100' },
{ name: 'start_ts', label: 'Start Time', width: '100' },
{ name: 'finish_ts', label: 'Finish Time', width: '100' },
- { name: 'wait_duration', label: 'Wait Duration (sec)', width: '80', align: 'right' },
- { name: 'runtime_duration', label: 'Runtime Duration (sec)', width: '80', align: 'right' },
+ { name: 'wait_duration', label: 'Wait Duration (sec)', align: 'right' },
+ { name: 'runtime_duration', label: 'Runtime Duration (sec)', align: 'right' },
{ name: 'total_duration', label: 'Total Duration (sec)', width: '80', align: 'right' },
{ name: 'result_count', label: 'Results Count', width: '80' }
// { name: 'avg_num_results', label: 'Average Results Count per Second', width: '80' }
@@ -348,7 +348,7 @@ export default {
}
.table {
- margin-top: 20px;
+ margin-top: 8px;
border-radius: 5px;
.el-button {
diff --git a/frontend/src/views/user/UserList.vue b/frontend/src/views/user/UserList.vue
index ff4db016..fece9f61 100644
--- a/frontend/src/views/user/UserList.vue
+++ b/frontend/src/views/user/UserList.vue
@@ -24,6 +24,12 @@
+
+