diff --git a/frontend/src/components/Status/StatusLegend.vue b/frontend/src/components/Status/StatusLegend.vue new file mode 100644 index 00000000..7a4e443f --- /dev/null +++ b/frontend/src/components/Status/StatusLegend.vue @@ -0,0 +1,40 @@ + + + + + diff --git a/frontend/src/views/spider/SpiderList.vue b/frontend/src/views/spider/SpiderList.vue index 2ddd2369..45c04f7f 100644 --- a/frontend/src/views/spider/SpiderList.vue +++ b/frontend/src/views/spider/SpiderList.vue @@ -170,7 +170,6 @@ -
- - - {{$t('Pending')}} - - - - {{$t('Running')}} - - - - {{$t('Finished')}} - - - - {{$t('Error')}} - - - - {{$t('Cancelled')}} - - - - {{$t('Abnormal')}} - -
+ @@ -578,10 +552,12 @@ import { import dayjs from 'dayjs' import CrawlConfirmDialog from '../../components/Common/CrawlConfirmDialog' import StatusTag from '../../components/Status/StatusTag' +import StatusLegend from '../../components/Status/StatusLegend' export default { name: 'SpiderList', components: { + StatusLegend, CrawlConfirmDialog, StatusTag }, @@ -1201,8 +1177,4 @@ export default { .el-table >>> .latest-tasks .el-tag { margin: 3px 3px 0 0; } - - .legend .el-tag { - margin-right: 5px; - } diff --git a/frontend/src/views/task/TaskList.vue b/frontend/src/views/task/TaskList.vue index 1eb5d484..906cd291 100644 --- a/frontend/src/views/task/TaskList.vue +++ b/frontend/src/views/task/TaskList.vue @@ -45,6 +45,10 @@ + + + +