@@ -566,7 +575,7 @@
>
-
+
+
+
+
@@ -619,10 +636,12 @@ import dayjs from 'dayjs'
import CrawlConfirmDialog from '../../components/Common/CrawlConfirmDialog'
import StatusTag from '../../components/Status/StatusTag'
import StatusLegend from '../../components/Status/StatusLegend'
+import CopySpiderDialog from '../../components/Spider/CopySpiderDialog'
export default {
name: 'SpiderList',
components: {
+ CopySpiderDialog,
StatusLegend,
CrawlConfirmDialog,
StatusTag
@@ -784,7 +803,8 @@ export default {
selectedSpiders: [],
isStopLoading: false,
isRemoveLoading: false,
- isMultiple: false
+ isMultiple: false,
+ copyDialogVisible: false
}
},
computed: {
@@ -966,6 +986,17 @@ export default {
this.getList()
}, 1000)
},
+ onCopy (row, ev) {
+ ev.stopPropagation()
+ this.copyDialogVisible = true
+ this.activeSpiderId = row._id
+ this.$st.sendEv('爬虫列表', '点击复制')
+ },
+ onCopyConfirm () {
+ setTimeout(() => {
+ this.getList()
+ }, 1000)
+ },
onView (row, ev) {
ev.stopPropagation()
this.$router.push('/spiders/' + row._id)