mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-29 18:00:51 +01:00
updated configurable spider
This commit is contained in:
@@ -48,7 +48,7 @@
|
||||
</el-form>
|
||||
</el-row>
|
||||
<el-row class="button-container" v-if="!isView">
|
||||
<el-button v-if="isShowRun" type="danger" @click="onRun">{{$t('Run')}}</el-button>
|
||||
<el-button v-if="isShowRun" type="danger" @click="onCrawl">{{$t('Run')}}</el-button>
|
||||
<el-button v-if="isCustomized" type="primary" @click="onDeploy">{{$t('Deploy')}}</el-button>
|
||||
<el-button type="success" @click="onSave">{{$t('Save')}}</el-button>
|
||||
</el-row>
|
||||
|
||||
@@ -131,6 +131,11 @@ const actions = {
|
||||
fields: JSON.stringify(state.spiderForm.fields)
|
||||
})
|
||||
},
|
||||
updateSpiderDetailFields ({ state }) {
|
||||
return request.post(`/spiders/${state.spiderForm._id}/update_detail_fields`, {
|
||||
detail_fields: JSON.stringify(state.spiderForm.detail_fields)
|
||||
})
|
||||
},
|
||||
getSpiderData ({ state, commit }, id) {
|
||||
return request.get(`/spiders/${id}`)
|
||||
.then(response => {
|
||||
|
||||
Reference in New Issue
Block a user