fix: 定时器,时间格式化

pull/12/head
xingyu 2023-05-10 15:49:24 +08:00
parent 611da354a1
commit 2fa63d8f2c
1 changed files with 2 additions and 1 deletions

View File

@ -9,7 +9,7 @@
<Description v-if="!isEdit" :column="2" @register="registerDesc" />
<Steps v-if="!isEdit" progress-dot :current="nextTimes && nextTimes.length" direction="vertical">
<template v-for="(nextTime, index) in nextTimes" :key="index">
<Step :title="nextTime" :description="'第' + `${index + 1}` + '次'" />
<Step :title="formatToDateTime(nextTime)" :description="'第' + `${index + 1}` + '次'" />
</template>
</Steps>
</BasicModal>
@ -24,6 +24,7 @@ import { BasicModal, useModalInner } from '@/components/Modal'
import { Description, useDescription } from '@/components/Description'
import { descSchema, formSchema } from './job.data'
import { createJob, getJob, getJobNextTimes, updateJob } from '@/api/infra/job'
import { formatToDateTime } from '@/utils/dateUtil'
const Step = Steps.Step