mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-28 17:50:56 +01:00
加入教程数据统计
This commit is contained in:
@@ -86,11 +86,13 @@ export default {
|
||||
if (currentStep === 3) {
|
||||
this.activeTabName = 'overview'
|
||||
}
|
||||
this.$utils.tour.prevStep('node-detail', currentStep)
|
||||
},
|
||||
onNextStep: (currentStep) => {
|
||||
if (currentStep === 2) {
|
||||
this.activeTabName = 'installation'
|
||||
}
|
||||
this.$utils.tour.nextStep('node-detail', currentStep)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -123,6 +125,7 @@ export default {
|
||||
mounted () {
|
||||
if (!this.$utils.tour.isFinishedTour('node-detail')) {
|
||||
this.$tours['node-detail'].start()
|
||||
this.$st.sendEv('教程', '开始', 'node-detail')
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -281,6 +281,7 @@ export default {
|
||||
if (currentStep === 2) {
|
||||
this.dialogVisible = false
|
||||
}
|
||||
this.$utils.tour.prevStep('schedule-list', currentStep)
|
||||
},
|
||||
onNextStep: (currentStep) => {
|
||||
if (currentStep === 1) {
|
||||
@@ -288,6 +289,7 @@ export default {
|
||||
this.dialogVisible = true
|
||||
this.$store.commit('schedule/SET_SCHEDULE_FORM', { node_ids: [] })
|
||||
}
|
||||
this.$utils.tour.nextStep('schedule-list', currentStep)
|
||||
}
|
||||
},
|
||||
tourAddSteps: [
|
||||
@@ -365,6 +367,7 @@ export default {
|
||||
} else if (currentStep === 6) {
|
||||
this.isShowCron = true
|
||||
}
|
||||
this.$utils.tour.prevStep('schedule-list-add', currentStep)
|
||||
},
|
||||
onNextStep: (currentStep) => {
|
||||
if (currentStep === 3) {
|
||||
@@ -372,6 +375,7 @@ export default {
|
||||
} else if (currentStep === 5) {
|
||||
this.isShowCron = false
|
||||
}
|
||||
this.$utils.tour.nextStep('schedule-list-add', currentStep)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -418,6 +422,7 @@ export default {
|
||||
if (!this.$utils.tour.isFinishedTour('schedule-list-add')) {
|
||||
setTimeout(() => {
|
||||
this.$tours['schedule-list-add'].start()
|
||||
this.$st.sendEv('教程', '开始', 'schedule-list-add')
|
||||
}, 500)
|
||||
}
|
||||
},
|
||||
@@ -528,6 +533,7 @@ export default {
|
||||
if (!this.isDisabledSpiderSchedule) {
|
||||
if (!this.$utils.tour.isFinishedTour('schedule-list')) {
|
||||
this.$tours['schedule-list'].start()
|
||||
this.$st.sendEv('教程', '开始', 'schedule-list')
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -180,6 +180,7 @@ export default {
|
||||
} else if (currentStep === 2) {
|
||||
this.activeName = 'notify'
|
||||
}
|
||||
this.$utils.tour.prevStep('setting', currentStep)
|
||||
},
|
||||
onNextStep: (currentStep) => {
|
||||
if (currentStep === 0) {
|
||||
@@ -187,8 +188,9 @@ export default {
|
||||
} else if (currentStep === 1) {
|
||||
this.activeName = 'global-variable'
|
||||
}
|
||||
this.$utils.tour.nextStep('setting', currentStep)
|
||||
}
|
||||
},
|
||||
}
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
@@ -260,6 +262,7 @@ export default {
|
||||
mounted () {
|
||||
if (!this.$utils.tour.isFinishedTour('setting')) {
|
||||
this.$tours['setting'].start()
|
||||
this.$st.sendEv('教程', '开始', 'setting')
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -143,6 +143,7 @@ export default {
|
||||
} else if (currentStep === 9) {
|
||||
this.activeTabName = 'environment'
|
||||
}
|
||||
this.$utils.tour.prevStep('spider-detail', currentStep)
|
||||
},
|
||||
onNextStep: (currentStep) => {
|
||||
if (currentStep === 4) {
|
||||
@@ -152,6 +153,7 @@ export default {
|
||||
} else if (currentStep === 8) {
|
||||
this.activeTabName = 'schedules'
|
||||
}
|
||||
this.$utils.tour.nextStep('spider-detail', currentStep)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -188,6 +190,7 @@ export default {
|
||||
if (!this.$utils.tour.isFinishedTour('spider-detail-config')) {
|
||||
setTimeout(() => {
|
||||
this.$tours['spider-detail-config'].start()
|
||||
this.$st.sendEv('教程', '开始', 'spider-detail-config')
|
||||
}, 100)
|
||||
}
|
||||
}
|
||||
@@ -222,6 +225,7 @@ export default {
|
||||
mounted () {
|
||||
if (!this.$utils.tour.isFinishedTour('spider-detail')) {
|
||||
this.$tours['spider-detail'].start()
|
||||
this.$st.sendEv('教程', '开始', 'spider-detail')
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -386,6 +386,12 @@ export default {
|
||||
tourCallbacks: {
|
||||
onStop: () => {
|
||||
this.$utils.tour.finishTour('spider-list')
|
||||
},
|
||||
onPreviousStep: (currentStep) => {
|
||||
this.$utils.tour.prevStep('spider-list', currentStep)
|
||||
},
|
||||
onNextStep: (currentStep) => {
|
||||
this.$utils.tour.nextStep('spider-list', currentStep)
|
||||
}
|
||||
},
|
||||
tourAddSteps: [
|
||||
@@ -463,11 +469,13 @@ export default {
|
||||
if (currentStep === 7) {
|
||||
this.spiderType = 'customized'
|
||||
}
|
||||
this.$utils.tour.prevStep('spider-list-add', currentStep)
|
||||
},
|
||||
onNextStep: (currentStep) => {
|
||||
if (currentStep === 6) {
|
||||
this.spiderType = 'configurable'
|
||||
}
|
||||
this.$utils.tour.nextStep('spider-list-add', currentStep)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -517,6 +525,7 @@ export default {
|
||||
setTimeout(() => {
|
||||
if (!this.$utils.tour.isFinishedTour('spider-list-add')) {
|
||||
this.$tours['spider-list-add'].start()
|
||||
this.$st.sendEv('教程', '开始', 'spider-list-add')
|
||||
}
|
||||
}, 300)
|
||||
},
|
||||
@@ -751,6 +760,7 @@ export default {
|
||||
|
||||
if (!this.$utils.tour.isFinishedTour('spider-list')) {
|
||||
this.$tours['spider-list'].start()
|
||||
this.$st.sendEv('教程', '开始', 'spider-list')
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -122,6 +122,7 @@ export default {
|
||||
} else if (currentStep === 6) {
|
||||
this.activeTabName = 'log'
|
||||
}
|
||||
this.$utils.tour.prevStep('task-detail', currentStep)
|
||||
},
|
||||
onNextStep: (currentStep) => {
|
||||
if (currentStep === 4) {
|
||||
@@ -129,6 +130,7 @@ export default {
|
||||
} else if (currentStep === 5) {
|
||||
this.activeTabName = 'results'
|
||||
}
|
||||
this.$utils.tour.nextStep('task-detail', currentStep)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -201,6 +203,7 @@ export default {
|
||||
mounted () {
|
||||
if (!this.$utils.tour.isFinishedTour('task-detail')) {
|
||||
this.$tours['task-detail'].start()
|
||||
this.$st.sendEv('教程', '开始', 'task-detail')
|
||||
}
|
||||
},
|
||||
destroyed () {
|
||||
|
||||
@@ -236,8 +236,10 @@ export default {
|
||||
this.$utils.tour.finishTour('task-list')
|
||||
},
|
||||
onPreviousStep: (currentStep) => {
|
||||
this.$utils.tour.prevStep('task-list', currentStep)
|
||||
},
|
||||
onNextStep: (currentStep) => {
|
||||
this.$utils.tour.nextStep('task-list', currentStep)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -401,6 +403,7 @@ export default {
|
||||
|
||||
if (!this.$utils.tour.isFinishedTour('task-list')) {
|
||||
this.$tours['task-list'].start()
|
||||
this.$st.sendEv('教程', '开始', 'task-list')
|
||||
}
|
||||
},
|
||||
destroyed () {
|
||||
|
||||
Reference in New Issue
Block a user