剩余多少
This commit is contained in:
@ -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;
|
||||
|
||||
@ -60,11 +60,11 @@
|
||||
<div v-if="record[column.dataIndex].length >= 3" class="task-more">
|
||||
<TaskItem :task="record[column.dataIndex][0]" :record="record" @handle-task="handleTaskAction" />
|
||||
<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 }}项
|
||||
</div>
|
||||
<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
|
||||
v-for="task in record[column.dataIndex]"
|
||||
:key="task.id"
|
||||
@ -636,6 +636,12 @@ onMounted(() => {
|
||||
border-bottom-left-radius: 8px !important;
|
||||
}
|
||||
|
||||
/* 任务弹出框样式 */
|
||||
:deep(.task-popup-content) {
|
||||
max-height: 300px;
|
||||
overflow-y: auto;
|
||||
}
|
||||
|
||||
/* 分页样式 */
|
||||
.pagination-box {
|
||||
display: flex;
|
||||
@ -650,4 +656,12 @@ onMounted(() => {
|
||||
transform: rotate(180deg);
|
||||
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>
|
||||
|
||||
Reference in New Issue
Block a user