Browse Source

Merge pull request #2843 from break60/dev-1.3.0

Fix abnormal display of regular worker parameters
pull/3/MERGE
xingchun-chen 5 years ago committed by GitHub
parent
commit
c2fbd6adaf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 18
      dolphinscheduler-ui/src/js/conf/home/pages/projects/pages/definition/pages/list/_source/timing.vue

18
dolphinscheduler-ui/src/js/conf/home/pages/projects/pages/definition/pages/list/_source/timing.vue

@ -186,7 +186,7 @@
receiversCc: [],
i18n: i18n.globalScope.LOCALE,
processInstancePriority: 'MEDIUM',
workerGroup: 'default',
workerGroup: '',
previewTimes: []
}
},
@ -309,6 +309,20 @@
watch: {
},
created () {
if(this.item.workerGroup===undefined) {
let stateWorkerGroupsList = this.store.state.security.workerGroupsListAll || []
if (stateWorkerGroupsList.length) {
this.workerGroup = stateWorkerGroupsList[0].id
} else {
this.store.dispatch('security/getWorkerGroupsAll').then(res => {
this.$nextTick(() => {
this.workerGroup = res[0].id
})
})
}
} else {
this.workerGroup = this.item.workerGroup
}
if(this.item.crontab !== null){
this.crontab = this.item.crontab
}
@ -336,7 +350,6 @@
},
mounted () {
let item = this.item
// Determine whether to echo
if (this.item.crontab) {
this.crontab = item.crontab
@ -344,7 +357,6 @@
this.failureStrategy = item.failureStrategy
this.warningType = item.warningType
this.processInstancePriority = item.processInstancePriority
this.workerGroup = item.workerGroup || 'default'
this._getNotifyGroupList().then(() => {
this.$nextTick(() => {
// let list = _.filter(this.notifyGroupList, v => v.id === item.warningGroupId)

Loading…
Cancel
Save