From 6aa532bebe29076f908d6f141160dc1d921c7988 Mon Sep 17 00:00:00 2001 From: lq <121091329@qq.com> Date: Wed, 24 Sep 2025 17:12:33 +0800 Subject: [PATCH] =?UTF-8?q?=E5=89=A9=E4=BD=99=E5=A4=9A=E5=B0=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/draw-popup.vue | 11 ++--------- .../assignment-management/index.vue | 18 ++++++++++++++++-- 2 files changed, 18 insertions(+), 11 deletions(-) diff --git a/src/views/property-marketing/assignment-management/components/draw-popup.vue b/src/views/property-marketing/assignment-management/components/draw-popup.vue index e60a9fe..16acce9 100644 --- a/src/views/property-marketing/assignment-management/components/draw-popup.vue +++ b/src/views/property-marketing/assignment-management/components/draw-popup.vue @@ -275,7 +275,7 @@ const publishType = ref('immediate'); // 时间选择相关 const currentDate = ref(new Date()); -const strValue = ref(dayjs().format('HH:mm')); +const strValue = ref(); // 定义props和emit const props = defineProps({ @@ -438,13 +438,6 @@ const handleChange = (field, value) => { }); }; -// 监听主抽屉显示状态,每次打开时更新时间为当前时间 -watch(showDriwer, (newVal) => { - if (newVal) { - strValue.value = dayjs().format('HH:mm'); - } -}); - // 点击创建任务按钮时触发 const handleCreateTask = () => { // 验证表单 @@ -463,6 +456,7 @@ const handleCreateTask = () => { message.error('请选择发布内容'); return; } + console.log('有问题已返回'); // 准备提交的数据 const taskData = { media_account_id: localQuery.value.ids[0], @@ -491,7 +485,6 @@ const showDrawer = (accountInfo = null, selectedDate = null) => { localQuery.value.ids = [accountInfo.id]; }); } - console.log('selectedDate', selectedDate); // 如果传入了日期,则设置为默认日期 if (selectedDate) { currentDate.value = selectedDate; diff --git a/src/views/property-marketing/assignment-management/index.vue b/src/views/property-marketing/assignment-management/index.vue index 69bb657..7238362 100644 --- a/src/views/property-marketing/assignment-management/index.vue +++ b/src/views/property-marketing/assignment-management/index.vue @@ -60,11 +60,11 @@