修改创建任务

This commit is contained in:
lq
2025-09-24 16:53:14 +08:00
parent 7bb1984b3b
commit e7a4d9383d
3 changed files with 46 additions and 14 deletions

View File

@ -72,11 +72,8 @@
<icon-delete style="font-size: 20px; margin-left: 0" />
</div>
<div class="flex w-full" :class="{ 'justify-between': task.ai_generate_status == 0 }">
<!-- <button class="opt-btn" :class="{ 'flex-1': task.ai_generate_status != 0 }" @click.stop="handleTimeChange">
修改发布时间
</button> -->
<a-date-picker
v-model:value="datePickerValue"
v-model="datePickerValue"
placeholder="修改发布时间"
:show-time="{ format: 'HH:mm' }"
format="YYYY-MM-DD HH:mm"
@ -200,7 +197,7 @@ const timestampToTime1 = (timestamp: number): string => {
if (!timestamp) {
timestamp = Date.now() / 1000; // 使用秒级时间戳保持一致性
}
const date = new Date(timestamp * 1000);
const year = date.getFullYear();
const month = String(date.getMonth() + 1).padStart(2, '0'); // 补零