工作日历修改

This commit is contained in:
XaoLi717 2024-12-06 15:01:06 +08:00
parent cadc67c596
commit ea08f9c812
3 changed files with 46 additions and 41 deletions

View File

@ -5,6 +5,7 @@ export interface CalendarVO {
id: number // id id: number // id
date: string // 字符串日期 date: string // 字符串日期
isWorkday: number // 是否是节假日 isWorkday: number // 是否是节假日
content: number // 是否是节假日
} }
// 工作日历数据 API // 工作日历数据 API

View File

@ -134,6 +134,7 @@ export enum DICT_TYPE {
DRIVER_GENDER = 'driver_Gender', DRIVER_GENDER = 'driver_Gender',
NJGL_STATUS = 'njgl_status', NJGL_STATUS = 'njgl_status',
NJGL_DATA_STATUS = 'njgl_data_status', NJGL_DATA_STATUS = 'njgl_data_status',
CALENDAR_CONTENT = 'calendar_content',
// ========== SYSTEM 模块 ========== // ========== SYSTEM 模块 ==========
SYSTEM_USER_SEX = 'system_user_sex', SYSTEM_USER_SEX = 'system_user_sex',

View File

@ -71,6 +71,7 @@ const queryParamsDate = reactive({
id: undefined, id: undefined,
date: [currentYear.value+"-01-01",currentYear.value+"-12-31"],// date: [currentYear.value+"-01-01",currentYear.value+"-12-31"],//
isWorkday: undefined, isWorkday: undefined,
content: undefined,
createTime: [], createTime: [],
}) })
@ -78,6 +79,7 @@ const formDataCaln = ref({
id: undefined, id: undefined,
date: undefined, date: undefined,
isWorkday: undefined, isWorkday: undefined,
content: undefined,
}) })
/** 创建数据 */ /** 创建数据 */
@ -108,6 +110,7 @@ const mapDate = async ()=> {
holidayDate.value = list.value.reduce((map, item) => { holidayDate.value = list.value.reduce((map, item) => {
map[item.date] = { map[item.date] = {
isWorkday: item.isWorkday, isWorkday: item.isWorkday,
content: item.content,
date: item.date, date: item.date,
id: item.id id: item.id
} }