mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-29 18:00:51 +01:00
code cleanup
This commit is contained in:
@@ -79,6 +79,7 @@
|
||||
<el-row class="button-group-container">
|
||||
<div class="button-group">
|
||||
<el-button type="danger" @click="onCrawl">{{$t('Run')}}</el-button>
|
||||
<el-button type="primary" @click="onExtractFields" v-loading="extractFieldsLoading">{{$t('Extract Fields')}}</el-button>
|
||||
<el-button type="warning" @click="onPreview" v-loading="previewLoading">{{$t('Preview')}}</el-button>
|
||||
<el-button type="success" @click="onSave" v-loading="saveLoading">{{$t('Save')}}</el-button>
|
||||
</div>
|
||||
@@ -126,6 +127,7 @@ export default {
|
||||
{ value: 'detail', label: 'Detail Only' },
|
||||
{ value: 'list-detail', label: 'List + Detail' }
|
||||
],
|
||||
extractFieldsLoading: false,
|
||||
previewLoading: false,
|
||||
saveLoading: false,
|
||||
dialogVisible: false
|
||||
@@ -210,6 +212,8 @@ export default {
|
||||
this.$message.success(this.$t(`Spider task has been scheduled`))
|
||||
})
|
||||
})
|
||||
},
|
||||
onExtractFields () {
|
||||
}
|
||||
},
|
||||
created () {
|
||||
|
||||
@@ -48,13 +48,14 @@ export default {
|
||||
Submit: '提交',
|
||||
'Import Spiders': '导入爬虫',
|
||||
'Deploy All': '部署所有爬虫',
|
||||
Refresh: '刷新',
|
||||
View: '查看',
|
||||
Edit: '编辑',
|
||||
Remove: '删除',
|
||||
Confirm: '确认',
|
||||
Stop: '停止',
|
||||
Preview: '预览',
|
||||
'Refresh': '刷新',
|
||||
'View': '查看',
|
||||
'Edit': '编辑',
|
||||
'Remove': '删除',
|
||||
'Confirm': '确认',
|
||||
'Stop': '停止',
|
||||
'Preview': '预览',
|
||||
'Extract Fields': '提取字段',
|
||||
|
||||
// 主页
|
||||
'Total Tasks': '总任务数',
|
||||
|
||||
Reference in New Issue
Block a user