工作日历修改
This commit is contained in:
parent
cadc67c596
commit
ea08f9c812
@ -1,41 +1,42 @@
|
|||||||
import request from '@/config/axios'
|
import request from '@/config/axios'
|
||||||
|
|
||||||
// 工作日历数据 VO
|
// 工作日历数据 VO
|
||||||
export interface CalendarVO {
|
export interface CalendarVO {
|
||||||
id: number // id
|
id: number // id
|
||||||
date: string // 字符串日期
|
date: string // 字符串日期
|
||||||
isWorkday: number // 是否是节假日
|
isWorkday: number // 是否是节假日
|
||||||
}
|
content: number // 是否是节假日
|
||||||
|
}
|
||||||
// 工作日历数据 API
|
|
||||||
export const CalendarApi = {
|
// 工作日历数据 API
|
||||||
// 查询工作日历数据分页
|
export const CalendarApi = {
|
||||||
getCalendarPage: async (params: any) => {
|
// 查询工作日历数据分页
|
||||||
return await request.get({ url: `/home/calendar/page`, params })
|
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 })
|
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 })
|
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 })
|
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 })
|
deleteCalendar: async (id: number) => {
|
||||||
},
|
return await request.delete({ url: `/home/calendar/delete?id=` + id })
|
||||||
|
},
|
||||||
// 导出工作日历数据 Excel
|
|
||||||
exportCalendar: async (params) => {
|
// 导出工作日历数据 Excel
|
||||||
return await request.download({ url: `/home/calendar/export-excel`, params })
|
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',
|
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',
|
||||||
|
@ -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
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user