剩余多少

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 currentDate = ref(new Date());
const strValue = ref(dayjs().format('HH:mm')); const strValue = ref();
// 定义props和emit // 定义props和emit
const props = defineProps({ const props = defineProps({
@ -438,13 +438,6 @@ const handleChange = (field, value) => {
}); });
}; };
// 监听主抽屉显示状态,每次打开时更新时间为当前时间
watch(showDriwer, (newVal) => {
if (newVal) {
strValue.value = dayjs().format('HH:mm');
}
});
// 点击创建任务按钮时触发 // 点击创建任务按钮时触发
const handleCreateTask = () => { const handleCreateTask = () => {
// 验证表单 // 验证表单
@ -463,6 +456,7 @@ const handleCreateTask = () => {
message.error('请选择发布内容'); message.error('请选择发布内容');
return; return;
} }
console.log('有问题已返回');
// 准备提交的数据 // 准备提交的数据
const taskData = { const taskData = {
media_account_id: localQuery.value.ids[0], media_account_id: localQuery.value.ids[0],
@ -491,7 +485,6 @@ const showDrawer = (accountInfo = null, selectedDate = null) => {
localQuery.value.ids = [accountInfo.id]; localQuery.value.ids = [accountInfo.id];
}); });
} }
console.log('selectedDate', selectedDate);
// 如果传入了日期,则设置为默认日期 // 如果传入了日期,则设置为默认日期
if (selectedDate) { if (selectedDate) {
currentDate.value = selectedDate; currentDate.value = selectedDate;

View File

@ -60,11 +60,11 @@
<div v-if="record[column.dataIndex].length >= 3" class="task-more"> <div v-if="record[column.dataIndex].length >= 3" class="task-more">
<TaskItem :task="record[column.dataIndex][0]" :record="record" @handle-task="handleTaskAction" /> <TaskItem :task="record[column.dataIndex][0]" :record="record" @handle-task="handleTaskAction" />
<a-trigger trigger="click" position="br"> <a-trigger trigger="click" position="br">
<div class="size-12px color-#8f959f h-19px ml-4px"> <div class="size-12px color-#8f959f h-19px ml-4px rounded-2px cursor-pointer" @click.stop>
还有{{ record[column.dataIndex].length - 1 }} 还有{{ record[column.dataIndex].length - 1 }}
</div> </div>
<template #content> <template #content>
<div class="bg-#fff p-12px shadow-sm rounded-4px"> <div class="bg-#fff w-160px p-12px rounded-4px flex flex-col more-content">
<TaskItem <TaskItem
v-for="task in record[column.dataIndex]" v-for="task in record[column.dataIndex]"
:key="task.id" :key="task.id"
@ -636,6 +636,12 @@ onMounted(() => {
border-bottom-left-radius: 8px !important; border-bottom-left-radius: 8px !important;
} }
/* 任务弹出框样式 */
:deep(.task-popup-content) {
max-height: 300px;
overflow-y: auto;
}
/* 分页样式 */ /* 分页样式 */
.pagination-box { .pagination-box {
display: flex; display: flex;
@ -650,4 +656,12 @@ onMounted(() => {
transform: rotate(180deg); transform: rotate(180deg);
transition: transform 0.2s ease; transition: transform 0.2s ease;
} }
.more-content {
border-radius: 8px;
background: #fff;
/* Shadow 2 */
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.1);
}
</style> </style>