剩余多少

This commit is contained in:
lq
2025-09-24 17:12:33 +08:00
parent e7a4d9383d
commit 6aa532bebe
2 changed files with 18 additions and 11 deletions

View File

@ -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;