创建任务
This commit is contained in:
@ -393,6 +393,7 @@ const handleProductDrawerVisibleChange = (visible: boolean) => {
|
||||
// 处理筛选条件变化
|
||||
const handleChange = (field, value) => {
|
||||
localQuery.value[field] = value;
|
||||
localQuery.value.ids = [value];
|
||||
emit('filter-change', {
|
||||
accounts: localQuery.value.accounts,
|
||||
});
|
||||
|
||||
@ -244,6 +244,7 @@ const onAfterVisibleChange = (visible: boolean) => {
|
||||
// 抽屉关闭事件处理
|
||||
const handleClose = () => {
|
||||
emit('update:visible', false);
|
||||
emit('cancel');
|
||||
};
|
||||
|
||||
// 取消按钮处理
|
||||
|
||||
@ -265,6 +265,7 @@ const onAfterVisibleChange = (visible: boolean) => {
|
||||
// 抽屉关闭事件处理
|
||||
const handleClose = () => {
|
||||
emit('update:visible', false);
|
||||
emit('cancel');
|
||||
};
|
||||
|
||||
// 取消按钮处理
|
||||
|
||||
@ -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);
|
||||
};
|
||||
@ -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