工作日历修改
This commit is contained in:
parent
cadc67c596
commit
ea08f9c812
@ -1,41 +1,42 @@
|
||||
import request from '@/config/axios'
|
||||
|
||||
// 工作日历数据 VO
|
||||
export interface CalendarVO {
|
||||
id: number // id
|
||||
date: string // 字符串日期
|
||||
isWorkday: number // 是否是节假日
|
||||
}
|
||||
|
||||
// 工作日历数据 API
|
||||
export const CalendarApi = {
|
||||
// 查询工作日历数据分页
|
||||
getCalendarPage: async (params: any) => {
|
||||
return await request.get({ url: `/home/calendar/page`, params })
|
||||
},
|
||||
|
||||
// 查询工作日历数据详情
|
||||
getCalendar: async (id: number) => {
|
||||
return await request.get({ url: `/home/calendar/get?id=` + id })
|
||||
},
|
||||
|
||||
// 新增工作日历数据
|
||||
createCalendar: async (data: CalendarVO) => {
|
||||
return await request.post({ url: `/home/calendar/create`, data })
|
||||
},
|
||||
|
||||
// 修改工作日历数据
|
||||
updateCalendar: async (data: CalendarVO) => {
|
||||
return await request.put({ url: `/home/calendar/update`, data })
|
||||
},
|
||||
|
||||
// 删除工作日历数据
|
||||
deleteCalendar: async (id: number) => {
|
||||
return await request.delete({ url: `/home/calendar/delete?id=` + id })
|
||||
},
|
||||
|
||||
// 导出工作日历数据 Excel
|
||||
exportCalendar: async (params) => {
|
||||
return await request.download({ url: `/home/calendar/export-excel`, params })
|
||||
},
|
||||
}
|
||||
import request from '@/config/axios'
|
||||
|
||||
// 工作日历数据 VO
|
||||
export interface CalendarVO {
|
||||
id: number // id
|
||||
date: string // 字符串日期
|
||||
isWorkday: number // 是否是节假日
|
||||
content: number // 是否是节假日
|
||||
}
|
||||
|
||||
// 工作日历数据 API
|
||||
export const CalendarApi = {
|
||||
// 查询工作日历数据分页
|
||||
getCalendarPage: async (params: any) => {
|
||||
return await request.get({ url: `/home/calendar/page`, params })
|
||||
},
|
||||
|
||||
// 查询工作日历数据详情
|
||||
getCalendar: async (id: number) => {
|
||||
return await request.get({ url: `/home/calendar/get?id=` + id })
|
||||
},
|
||||
|
||||
// 新增工作日历数据
|
||||
createCalendar: async (data: CalendarVO) => {
|
||||
return await request.post({ url: `/home/calendar/create`, data })
|
||||
},
|
||||
|
||||
// 修改工作日历数据
|
||||
updateCalendar: async (data: CalendarVO) => {
|
||||
return await request.put({ url: `/home/calendar/update`, data })
|
||||
},
|
||||
|
||||
// 删除工作日历数据
|
||||
deleteCalendar: async (id: number) => {
|
||||
return await request.delete({ url: `/home/calendar/delete?id=` + id })
|
||||
},
|
||||
|
||||
// 导出工作日历数据 Excel
|
||||
exportCalendar: async (params) => {
|
||||
return await request.download({ url: `/home/calendar/export-excel`, params })
|
||||
},
|
||||
}
|
||||
|
@ -134,6 +134,7 @@ export enum DICT_TYPE {
|
||||
DRIVER_GENDER = 'driver_Gender',
|
||||
NJGL_STATUS = 'njgl_status',
|
||||
NJGL_DATA_STATUS = 'njgl_data_status',
|
||||
CALENDAR_CONTENT = 'calendar_content',
|
||||
|
||||
// ========== SYSTEM 模块 ==========
|
||||
SYSTEM_USER_SEX = 'system_user_sex',
|
||||
|
@ -71,6 +71,7 @@ const queryParamsDate = reactive({
|
||||
id: undefined,
|
||||
date: [currentYear.value+"-01-01",currentYear.value+"-12-31"],//只获取本年的数据
|
||||
isWorkday: undefined,
|
||||
content: undefined,
|
||||
createTime: [],
|
||||
})
|
||||
|
||||
@ -78,6 +79,7 @@ const formDataCaln = ref({
|
||||
id: undefined,
|
||||
date: undefined,
|
||||
isWorkday: undefined,
|
||||
content: undefined,
|
||||
})
|
||||
|
||||
/** 创建数据 */
|
||||
@ -108,6 +110,7 @@ const mapDate = async ()=> {
|
||||
holidayDate.value = list.value.reduce((map, item) => {
|
||||
map[item.date] = {
|
||||
isWorkday: item.isWorkday,
|
||||
content: item.content,
|
||||
date: item.date,
|
||||
id: item.id
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user