mirror of
https://github.com/continew-org/continew-admin-ui.git
synced 2025-09-10 08:57:10 +08:00
fix(schedule): 修复无法打开 CRON 生成器的问题
This commit is contained in:
1
src/types/components.d.ts
vendored
1
src/types/components.d.ts
vendored
@@ -12,6 +12,7 @@ declare module 'vue' {
|
|||||||
CellCopy: typeof import('./../components/CellCopy/index.vue')['default']
|
CellCopy: typeof import('./../components/CellCopy/index.vue')['default']
|
||||||
Chart: typeof import('./../components/Chart/index.vue')['default']
|
Chart: typeof import('./../components/Chart/index.vue')['default']
|
||||||
CronForm: typeof import('./../components/GenCron/CronForm/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']
|
CronModel: typeof import('./../components/GenCron/CronModel/index.vue')['default']
|
||||||
DateRangePicker: typeof import('./../components/DateRangePicker/index.vue')['default']
|
DateRangePicker: typeof import('./../components/DateRangePicker/index.vue')['default']
|
||||||
DayForm: typeof import('./../components/GenCron/CronForm/component/day-form.vue')['default']
|
DayForm: typeof import('./../components/GenCron/CronForm/component/day-form.vue')['default']
|
||||||
|
@@ -172,7 +172,7 @@
|
|||||||
</fieldset>
|
</fieldset>
|
||||||
</a-form>
|
</a-form>
|
||||||
|
|
||||||
<CronGeneratorModal ref="genModal" @ok="(e) => form.triggerInterval = e" />
|
<CronModal ref="cronModal" @ok="(e) => form.triggerInterval = e" />
|
||||||
</a-modal>
|
</a-modal>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -198,7 +198,6 @@ const isUpdate = computed(() => !!dataId.value)
|
|||||||
const title = computed(() => (isUpdate.value ? '修改任务' : '新增任务'))
|
const title = computed(() => (isUpdate.value ? '修改任务' : '新增任务'))
|
||||||
const formRef = ref<FormInstance>()
|
const formRef = ref<FormInstance>()
|
||||||
const groupList = ref<LabelValueState[]>([])
|
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(
|
const { job_trigger_type_enum, job_task_type_enum, job_route_strategy_enum, job_block_strategy_enum } = useDict(
|
||||||
'job_trigger_type_enum',
|
'job_trigger_type_enum',
|
||||||
'job_task_type_enum',
|
'job_task_type_enum',
|
||||||
@@ -262,9 +261,10 @@ const onDeleteArgs = (index) => {
|
|||||||
args.value.splice(index, 1)
|
args.value.splice(index, 1)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const cronModal = ref()
|
||||||
// 打开生成表达式
|
// 打开生成表达式
|
||||||
const openGeneratorCron = (cron: string) => {
|
const openGeneratorCron = (cron: string) => {
|
||||||
genModal.value.open(cron)
|
cronModal.value.open(cron)
|
||||||
}
|
}
|
||||||
|
|
||||||
// 保存
|
// 保存
|
||||||
|
Reference in New Issue
Block a user