Skip to content

Commit bedee36

Browse files
committed
move method helpUrlEnable and helpUrl nest in 'methods' body
1 parent 1b683b4 commit bedee36

1 file changed

Lines changed: 12 additions & 12 deletions

File tree

  • dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/formModel

dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/formModel/formModel.vue

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -556,18 +556,7 @@
556556
backfillRefresh: true,
557557
// whether this is a new Task
558558
isNewCreate: true,
559-
tasksTypeList: Object.keys(tasksType),
560-
helpUrlEnable: function (typekey) {
561-
const type = tasksType[typekey]
562-
if (!type) return false
563-
if (!type.helperLinkDisable) return true
564-
return !type.helperLinkDisable
565-
},
566-
helpUrl: function (tasktype) {
567-
return 'https://dolphinscheduler.apache.org/' +
568-
findLocale(i18n.globalScope.LOCALE).helperContext +
569-
'/docs/latest/user_doc/guide/task/' + tasktype.toLowerCase() + '.html'
570-
}
559+
tasksTypeList: Object.keys(tasksType)
571560
}
572561
},
573562
provide () {
@@ -591,6 +580,17 @@
591580
inject: ['dagChart'],
592581
methods: {
593582
...mapActions('dag', ['getTaskInstanceList']),
583+
helpUrlEnable (typekey) {
584+
const type = tasksType[typekey]
585+
if (!type) return false
586+
if (!type.helperLinkDisable) return true
587+
return !type.helperLinkDisable
588+
},
589+
helpUrl (tasktype) {
590+
return 'https://dolphinscheduler.apache.org/' +
591+
findLocale(i18n.globalScope.LOCALE).helperContext +
592+
'/docs/latest/user_doc/guide/task/' + tasktype.toLowerCase() + '.html'
593+
},
594594
taskToBackfillItem (task) {
595595
return {
596596
code: task.code,

0 commit comments

Comments
 (0)