创建任务
This commit is contained in:
@ -76,9 +76,9 @@
|
||||
修改发布时间
|
||||
</button> -->
|
||||
<a-date-picker
|
||||
v-model="datePickerValue"
|
||||
v-model:value="datePickerValue"
|
||||
placeholder="修改发布时间"
|
||||
show-time
|
||||
:show-time="{ format: 'HH:mm' }"
|
||||
format="YYYY-MM-DD HH:mm"
|
||||
value-format="YYYY-MM-DD HH:mm"
|
||||
@change="onChange"
|
||||
@ -149,11 +149,14 @@ const getTaskDetail = async () => {
|
||||
|
||||
const onChange = (date, dateString) => {
|
||||
console.log('Selected Date: ', date, dateString);
|
||||
if (date) {
|
||||
emit('handle-task', 'edit-time', props.task, dateString);
|
||||
}
|
||||
};
|
||||
|
||||
const onOk = (value) => {
|
||||
console.log('DatePicker OK: ', value);
|
||||
if (value) {
|
||||
console.log('DatePicker OK: ', value);
|
||||
emit('handle-task', 'edit-time', props.task, value);
|
||||
}
|
||||
};
|
||||
@ -171,7 +174,11 @@ const gotoDetail = () => {
|
||||
console.log('跳转详情');
|
||||
emit('handle-task', 'goto-detail', props.task, props.record);
|
||||
};
|
||||
|
||||
const handleTimeChange = (time: string) => {
|
||||
// if (time) {
|
||||
// emit('handle-task', 'edit-time', props.task, timestampToTime1() + ' ' + time + ':00');
|
||||
// }
|
||||
};
|
||||
const handleAICreate = () => {
|
||||
emit('handle-task', 'ai-create', props.task, props.record);
|
||||
};
|
||||
@ -193,7 +200,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'); // 补零
|
||||
@ -205,7 +212,7 @@ const timestampToTime1 = (timestamp: number): string => {
|
||||
const emit = defineEmits(['filter-change', 'handle-task']);
|
||||
|
||||
// 日期选择器的值
|
||||
const datePickerValue = ref('2025-09-25 16:18');
|
||||
const datePickerValue = ref(null);
|
||||
|
||||
// 平台配置
|
||||
const platformConfig = {
|
||||
|
||||
Reference in New Issue
Block a user