信息展示修改
This commit is contained in:
parent
8ca165042b
commit
40c828b52e
@ -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){
|
||||
|
@ -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){
|
||||
|
Loading…
Reference in New Issue
Block a user