|
|
@ -21,9 +21,11 @@ |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="clearfix list"> |
|
|
|
<div class="clearfix list"> |
|
|
|
|
|
|
|
<x-button type="info" style="margin-left:20px" shape="circle" :loading="spinnerLoading" @click="preview()" v-ps="['GENERAL_USER']">执行时间</x-button> |
|
|
|
<div class="text"> |
|
|
|
<div class="text"> |
|
|
|
{{$t('Timing')}} |
|
|
|
{{$t('Timing')}} |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
<div class="cont"> |
|
|
|
<div class="cont"> |
|
|
|
<template> |
|
|
|
<template> |
|
|
|
<x-poptip :ref="'poptip'" placement="bottom-start"> |
|
|
|
<x-poptip :ref="'poptip'" placement="bottom-start"> |
|
|
@ -43,6 +45,13 @@ |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
<div class="clearfix list"> |
|
|
|
|
|
|
|
<div style = "padding-left: 150px;">未来五次执行时间</div> |
|
|
|
|
|
|
|
<ul style = "padding-left: 150px;"> |
|
|
|
|
|
|
|
<li v-for="time in previewTimes">{{time}}</li> |
|
|
|
|
|
|
|
</ul> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
<div class="clearfix list"> |
|
|
|
<div class="clearfix list"> |
|
|
|
<div class="text"> |
|
|
|
<div class="text"> |
|
|
|
{{$t('Failure Strategy')}} |
|
|
|
{{$t('Failure Strategy')}} |
|
|
@ -162,7 +171,8 @@ |
|
|
|
receiversCc: [], |
|
|
|
receiversCc: [], |
|
|
|
i18n: i18n.globalScope.LOCALE, |
|
|
|
i18n: i18n.globalScope.LOCALE, |
|
|
|
processInstancePriority: 'MEDIUM', |
|
|
|
processInstancePriority: 'MEDIUM', |
|
|
|
workerGroupId: -1 |
|
|
|
workerGroupId: -1, |
|
|
|
|
|
|
|
previewTimes: [] |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
props: { |
|
|
|
props: { |
|
|
@ -225,6 +235,29 @@ |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
_preview () { |
|
|
|
|
|
|
|
if (this._verification()) { |
|
|
|
|
|
|
|
let api = 'dag/previewSchedule' |
|
|
|
|
|
|
|
let searchParams = { |
|
|
|
|
|
|
|
schedule: JSON.stringify({ |
|
|
|
|
|
|
|
startTime: this.scheduleTime[0], |
|
|
|
|
|
|
|
endTime: this.scheduleTime[1], |
|
|
|
|
|
|
|
crontab: this.crontab |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
let msg = '' |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.store.dispatch(api, searchParams).then(res => { |
|
|
|
|
|
|
|
this.previewTimes = res |
|
|
|
|
|
|
|
if (this.previewTimes.length) { |
|
|
|
|
|
|
|
resolve() |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
reject(new Error(0)) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
_getNotifyGroupList () { |
|
|
|
_getNotifyGroupList () { |
|
|
|
return new Promise((resolve, reject) => { |
|
|
|
return new Promise((resolve, reject) => { |
|
|
|
let notifyGroupListS = _.cloneDeep(this.store.state.dag.notifyGroupListS) || [] |
|
|
|
let notifyGroupListS = _.cloneDeep(this.store.state.dag.notifyGroupListS) || [] |
|
|
@ -248,6 +281,9 @@ |
|
|
|
}, |
|
|
|
}, |
|
|
|
close () { |
|
|
|
close () { |
|
|
|
this.$emit('close') |
|
|
|
this.$emit('close') |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
preview () { |
|
|
|
|
|
|
|
this._preview() |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
watch: { |
|
|
|
watch: { |
|
|
|