diff --git a/src/components/GenCron/CronModel/index.vue b/src/components/GenCron/CronModal/index.vue similarity index 100% rename from src/components/GenCron/CronModel/index.vue rename to src/components/GenCron/CronModal/index.vue diff --git a/src/types/components.d.ts b/src/types/components.d.ts index 515713c0..a9bab95c 100644 --- a/src/types/components.d.ts +++ b/src/types/components.d.ts @@ -12,6 +12,7 @@ declare module 'vue' { CellCopy: typeof import('./../components/CellCopy/index.vue')['default'] Chart: typeof import('./../components/Chart/index.vue')['default'] CronForm: typeof import('./../components/GenCron/CronForm/index.vue')['default'] + CronModal: typeof import('./../components/GenCron/CronModal/index.vue')['default'] CronModel: typeof import('./../components/GenCron/CronModel/index.vue')['default'] DateRangePicker: typeof import('./../components/DateRangePicker/index.vue')['default'] DayForm: typeof import('./../components/GenCron/CronForm/component/day-form.vue')['default'] diff --git a/src/views/schedule/job/JobAddModal.vue b/src/views/schedule/job/JobAddModal.vue index 7b38a06d..36cd66f2 100644 --- a/src/views/schedule/job/JobAddModal.vue +++ b/src/views/schedule/job/JobAddModal.vue @@ -172,7 +172,7 @@ - + @@ -198,7 +198,6 @@ const isUpdate = computed(() => !!dataId.value) const title = computed(() => (isUpdate.value ? '修改任务' : '新增任务')) const formRef = ref() const groupList = ref([]) -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', @@ -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) } // 保存