Skip to content

Commit

Permalink
fix(schedule): 修复无法打开 CRON 生成器的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
Charles7c committed Dec 11, 2024
1 parent ef4b6b9 commit 9ac54b7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
File renamed without changes.
6 changes: 3 additions & 3 deletions src/views/schedule/job/JobAddModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@
</fieldset>
</a-form>

<CronGeneratorModal ref="genModal" @ok="(e) => form.triggerInterval = e" />
<CronModal ref="cronModal" @ok="(e) => form.triggerInterval = e" />
</a-modal>
</template>

Expand All @@ -198,7 +198,6 @@ const isUpdate = computed(() => !!dataId.value)
const title = computed(() => (isUpdate.value ? '修改任务' : '新增任务'))
const formRef = ref<FormInstance>()
const groupList = ref<LabelValueState[]>([])
const genModal = ref()
const { job_trigger_type_enum, job_task_type_enum, job_route_strategy_enum, job_block_strategy_enum } = useDict(
'job_trigger_type_enum',
'job_task_type_enum',
Expand Down Expand Up @@ -262,9 +261,10 @@ const onDeleteArgs = (index) => {
args.value.splice(index, 1)
}
const cronModal = ref()
// 打开生成表达式
const openGeneratorCron = (cron: string) => {
genModal.value.open(cron)
cronModal.value.open(cron)
}
// 保存
Expand Down

0 comments on commit 9ac54b7

Please sign in to comment.