优化爬虫列表页面

This commit is contained in:
marvzhang
2020-02-20 11:52:28 +08:00
parent 6758476e47
commit 17bdbaf8dd
9 changed files with 344 additions and 48 deletions

View File

@@ -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 () {

View File

@@ -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'
}