信息展示修改

This commit is contained in:
XaoLi717 2024-12-02 11:49:55 +08:00
parent 8ca165042b
commit 40c828b52e
2 changed files with 9 additions and 5 deletions

View File

@ -30,7 +30,7 @@
<template #date-cell="{ data }">
<div class='holiday'>
<span style="font-size: 14px">
{{ data.date.getDate() === currentDay? data.date.getDate()+'(今天)':data.date.getDate() }}
{{ formatDate2(data.date) === current? data.date.getDate()+'(今天)':data.date.getDate() }}
</span>
<br/>
<span
@ -71,9 +71,11 @@ import {DICT_TYPE, getIntDictOptions} from "@/utils/dict";
defineOptions({ name: 'HyInfo' })
//
const currentDay = ref(new Date().getDate()) //
const currentMonth = ref(new Date().getMonth()) //
const currentYear = ref(new Date().getFullYear()) //
const currentDay = ref(new Date().getDate().toString().padStart(2, '0'));
const currentMonth2 = ref(new Date().getMonth()+1)
const current = currentYear.value+"-"+currentMonth2.value+"-"+currentDay.value
//
const selectDate = (val:number) => {
if (!val){

View File

@ -30,7 +30,7 @@
class='holiday'
>
<span style="font-size: 14px">
{{ data.date.getDate() === currentDay? data.date.getDate()+'(今天)':data.date.getDate() }}
{{ formatDate2(data.date) === current? data.date.getDate()+'(今天)':data.date.getDate() }}
</span>
<br/>
<span
@ -84,9 +84,11 @@ const queryParamsRcgl = reactive({
createTime: [] as string[],
})
const currentDay = ref(new Date().getDate()) //
const currentMonth = ref(new Date().getMonth()) //
const currentMonth = ref(new Date().getMonth()) //
const currentYear = ref(new Date().getFullYear()) //
const currentDay = ref(new Date().getDate().toString().padStart(2, '0'));
const currentMonth2 = ref(new Date().getMonth()+1)
const current = currentYear.value+"-"+currentMonth2.value+"-"+currentDay.value
//
const selectDate = (val:number) => {
if (!val){