From e3c97db099eca6679ef36401aada2933430e56a5 Mon Sep 17 00:00:00 2001 From: XaoLi717 <144221124+XaoLi717@users.noreply.github.com> Date: Tue, 19 Nov 2024 15:19:17 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=94=B9=E6=97=A5=E7=A8=8B=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/Home/rcgl/rcglInfo/index.vue | 33 +++++++++++++------------- 1 file changed, 16 insertions(+), 17 deletions(-) diff --git a/src/views/Home/rcgl/rcglInfo/index.vue b/src/views/Home/rcgl/rcglInfo/index.vue index 1c851df..77fc47c 100644 --- a/src/views/Home/rcgl/rcglInfo/index.vue +++ b/src/views/Home/rcgl/rcglInfo/index.vue @@ -8,7 +8,7 @@ - - {{item.status}} + + {{item.startTime}} {{item.endTime}} {{item.location}} - {{item.remarks}}
@@ -61,7 +62,6 @@ import { CalendarInstance} from 'element-plus'; import {RcglApi, RcglVO} from "@/api/home/rcgl"; import RcglInfoForm from './RcglInfoForm.vue' -import {DICT_TYPE, getIntDictOptions} from "@/utils/dict"; defineOptions({ name: 'RcInfo' }) @@ -103,7 +103,7 @@ const formRef = ref() const openForm = (id: number) => { formRef.value.open(id) } - +//自定义头部需要使用 const calendar = ref() // 获取当前日期和14天前的日期 @@ -133,8 +133,8 @@ const getList = async () => { holidays2[formattedDate].push({ id:item.id, title:item.title, + startTime:formatDate2(item.startTime), endTime:formatDate2(item.endTime), - status:getStatus(item.status), location:item.location, remarks:item.remarks } @@ -143,14 +143,6 @@ const getList = async () => { } finally { } } -const getStatus = (status:number)=>{ - const dict = getIntDictOptions(DICT_TYPE.RCGL_RC_STATUS); - for (let item of dict){ - if (item.value === status){ - return item.label - } - } -} //获取详细日期时间 function formatDate(date: Date,time:boolean) { @@ -180,17 +172,21 @@ onMounted(()=> { .holiday::-webkit-scrollbar { display: none; } +/*今天显示为其他颜色*/ .custom-calendar .is-today { width: 100%; height: 100%; + background-color: #FFE6E6 ; font-size: 16px; } +/*设置日历组件边框大小圆角*/ .custom-calendar { width: 100%; height: 100%; border: 1px solid #1f1f1f !important; /* 使用 !important 确保样式生效 */ border-radius: 5px; /* 可选:添加圆角 */ } +/*每个小各自大小*/ .el-calendar-table .el-calendar-day { height: 105px/*这个覆盖了原组件宽度*/ } @@ -200,6 +196,7 @@ onMounted(()=> { font-size: 20px; font-weight: bold; } +//每个各自展示的内容 .holiday { overflow-x: scroll; text-overflow: ellipsis; @@ -221,13 +218,15 @@ onMounted(()=> { text-align: left; font-size: 22px; } +//border: 1px solid var(--el-color-primary); +//展示的小标题样式 .seSpan { font-size: 14px; color: var(--el-color-primary); - border: 1px solid var(--el-color-primary); border-radius: 2px; /* 可选:添加圆角 */ padding: 0 2px 0 2px; } +//悬浮信息展示的数据 .el-descriptions-item__content { white-space: normal !important; /* 允许换行 */ word-wrap: break-word; /* 长单词换行 */