code cleanup

This commit is contained in:
Marvin Zhang
2019-05-29 13:10:31 +08:00
parent a5377a45e0
commit f3da64d8b7
10 changed files with 12 additions and 205 deletions

View File

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