From 7f503f3af35a34f0e097031961cf39787a7c1faf Mon Sep 17 00:00:00 2001 From: Charles7c Date: Wed, 11 Dec 2024 20:55:26 +0800 Subject: [PATCH] =?UTF-8?q?fix(schedule):=20=E4=BF=AE=E5=A4=8D=E6=97=A0?= =?UTF-8?q?=E6=B3=95=E6=89=93=E5=BC=80=20CRON=20=E7=94=9F=E6=88=90?= =?UTF-8?q?=E5=99=A8=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/GenCron/{CronModel => CronModal}/index.vue | 0 src/types/components.d.ts | 1 + src/views/schedule/job/JobAddModal.vue | 6 +++--- 3 files changed, 4 insertions(+), 3 deletions(-) rename src/components/GenCron/{CronModel => CronModal}/index.vue (100%) 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 515713c..a9bab95 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 7b38a06..36cd66f 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) } // 保存