mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-30 18:00:56 +01:00
优化爬虫列表页面
This commit is contained in:
@@ -68,7 +68,7 @@
|
||||
<span style="margin-left: 5px">我已阅读并同意 <a href="javascript:"
|
||||
@click="onClickDisclaimer">《免责声明》</a> 所有内容</span>
|
||||
</div>
|
||||
<div v-if="spiderForm.is_long_task">
|
||||
<div v-if="!spiderForm.is_long_task">
|
||||
<el-checkbox v-model="isRedirect"/>
|
||||
<span style="margin-left: 5px">跳转到任务详情页</span>
|
||||
</div>
|
||||
@@ -172,6 +172,8 @@ export default {
|
||||
this.$router.push('/tasks/' + id)
|
||||
this.$st.sendEv('爬虫确认', '跳转到任务详情')
|
||||
}
|
||||
|
||||
this.$emit('confirm')
|
||||
})
|
||||
},
|
||||
onClickDisclaimer () {
|
||||
|
||||
@@ -21,7 +21,8 @@ export default {
|
||||
running: { label: 'Running', type: 'warning' },
|
||||
finished: { label: 'Finished', type: 'success' },
|
||||
error: { label: 'Error', type: 'danger' },
|
||||
cancelled: { label: 'Cancelled', type: 'info' }
|
||||
cancelled: { label: 'Cancelled', type: 'info' },
|
||||
abnormal: { label: 'Abnormal', type: 'danger' }
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -43,6 +44,8 @@ export default {
|
||||
icon () {
|
||||
if (this.status === 'finished') {
|
||||
return 'el-icon-check'
|
||||
} else if (this.status === 'pending') {
|
||||
return 'el-icon-loading'
|
||||
} else if (this.status === 'running') {
|
||||
return 'el-icon-loading'
|
||||
} else if (this.status === 'error') {
|
||||
@@ -50,7 +53,7 @@ export default {
|
||||
} else if (this.status === 'cancelled') {
|
||||
return 'el-icon-video-pause'
|
||||
} else if (this.status === 'abnormal') {
|
||||
return 'el-icon-question'
|
||||
return 'el-icon-warning'
|
||||
} else {
|
||||
return 'el-icon-question'
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user