@@ -102,16 +103,7 @@ export default {
'spiderForm'
]),
isShowRun () {
- if (this.isCustomized) {
- // customized spider
- return !!this.spiderForm.cmd
- } else {
- // configurable spider
- return !!this.spiderForm.fields
- }
- },
- isCustomized () {
- return this.spiderForm.type === 'customized'
+ return !!this.spiderForm.cmd
}
},
methods: {
diff --git a/frontend/src/views/result/ResultDetail.vue b/frontend/src/views/result/ResultDetail.vue
index f42bee5c..df8487ef 100644
--- a/frontend/src/views/result/ResultDetail.vue
+++ b/frontend/src/views/result/ResultDetail.vue
@@ -59,7 +59,7 @@ export default {
},
created () {
// get the list of the spiders
- this.$store.dispatch('spider/getSpiderList')
+ // this.$store.dispatch('spider/getSpiderList')
// get spider basic info
this.$store.dispatch('spider/getSpiderData', this.$route.params.id)
diff --git a/frontend/src/views/result/ResultList.vue b/frontend/src/views/result/ResultList.vue
index 85c70098..2f3e820b 100644
--- a/frontend/src/views/result/ResultList.vue
+++ b/frontend/src/views/result/ResultList.vue
@@ -195,7 +195,7 @@ export default {
this.dialogVisible = true
},
onRefresh () {
- this.$store.dispatch('spider/getSpiderList')
+ // this.$store.dispatch('spider/getSpiderList')
},
onSubmit () {
const vm = this
@@ -257,7 +257,7 @@ export default {
}
},
created () {
- this.$store.dispatch('spider/getSpiderList')
+ // this.$store.dispatch('spider/getSpiderList')
}
}
diff --git a/frontend/src/views/schedule/ScheduleList.vue b/frontend/src/views/schedule/ScheduleList.vue
index 743a186e..c44d46e2 100644
--- a/frontend/src/views/schedule/ScheduleList.vue
+++ b/frontend/src/views/schedule/ScheduleList.vue
@@ -269,7 +269,7 @@ export default {
},
created () {
this.$store.dispatch('schedule/getScheduleList')
- this.$store.dispatch('spider/getSpiderList')
+ // this.$store.dispatch('spider/getSpiderList')
this.$store.dispatch('node/getNodeList')
}
}
diff --git a/frontend/src/views/spider/SpiderDetail.vue b/frontend/src/views/spider/SpiderDetail.vue
index 69fdd770..916592f4 100644
--- a/frontend/src/views/spider/SpiderDetail.vue
+++ b/frontend/src/views/spider/SpiderDetail.vue
@@ -87,7 +87,7 @@ export default {
},
created () {
// get the list of the spiders
- this.$store.dispatch('spider/getSpiderList')
+ // this.$store.dispatch('spider/getSpiderList')
// get spider basic info
this.$store.dispatch('spider/getSpiderData', this.$route.params.id)
diff --git a/frontend/src/views/spider/SpiderList.vue b/frontend/src/views/spider/SpiderList.vue
index 5b93afb4..743aabbe 100644
--- a/frontend/src/views/spider/SpiderList.vue
+++ b/frontend/src/views/spider/SpiderList.vue
@@ -111,12 +111,13 @@
-
-
+
+
-
+
@@ -156,8 +157,7 @@
align="left"
:width="col.width">
- {{$t('Configurable')}}
- {{$t('Customized')}}
+ {{scope.row.type === 'customized' ? '自定义' : scope.row.type}}
{
- console.log('resp', resp)
+ this.types = resp.data.data
})
}
},