mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-27 17:50:53 +01:00
added param to task
This commit is contained in:
@@ -19,6 +19,9 @@
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item :label="$t('Parameters')">
|
||||
<el-input v-model="param" :placeholder="$t('Parameters')"></el-input>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<template slot="footer">
|
||||
<el-button type="plain" size="small" @click="$emit('close')">{{$t('Cancel')}}</el-button>
|
||||
@@ -42,7 +45,8 @@ export default {
|
||||
},
|
||||
data () {
|
||||
return {
|
||||
nodeId: ''
|
||||
nodeId: '',
|
||||
param: ''
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
@@ -50,7 +54,7 @@ export default {
|
||||
this.$emit('close')
|
||||
},
|
||||
onConfirm () {
|
||||
this.$store.dispatch('spider/crawlSpider', { id: this.spiderId, nodeId: this.nodeId })
|
||||
this.$store.dispatch('spider/crawlSpider', { id: this.spiderId, nodeId: this.nodeId, param: this.param })
|
||||
.then(() => {
|
||||
this.$message.success(this.$t('A task has been scheduled successfully'))
|
||||
})
|
||||
|
||||
@@ -15,6 +15,9 @@
|
||||
<el-form-item :label="$t('Log File Path')">
|
||||
<el-input v-model="taskForm.log_path" placeholder="Log File Path" disabled></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item :label="$t('Parameters')">
|
||||
<el-input v-model="taskForm.param" placeholder="Parameters" disabled></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item :label="$t('Create Time')">
|
||||
<el-input :value="getTime(taskForm.create_ts)" placeholder="Create Time" disabled></el-input>
|
||||
</el-form-item>
|
||||
|
||||
Reference in New Issue
Block a user