新增预警页面
This commit is contained in:
60
web-vue/packages/biz/api/biz/calendarSchedule.ts
Normal file
60
web-vue/packages/biz/api/biz/calendarSchedule.ts
Normal file
@@ -0,0 +1,60 @@
|
||||
/**
|
||||
* Copyright (c) 2013-Now http://jeesite.com All rights reserved.
|
||||
* No deletion without permission, or be held responsible to law.
|
||||
* @author gaoxq
|
||||
*/
|
||||
import { defHttp } from '@jeesite/core/utils/http/axios';
|
||||
import { useGlobSetting } from '@jeesite/core/hooks/setting';
|
||||
import { BasicModel, Page } from '@jeesite/core/api/model/baseModel';
|
||||
import { UploadApiResult } from '@jeesite/core/api/sys/upload';
|
||||
import { UploadFileParams } from '@jeesite/types/axios';
|
||||
import { AxiosProgressEvent } from 'axios';
|
||||
|
||||
const { ctxPath, adminPath } = useGlobSetting();
|
||||
|
||||
export interface BizCalendarSchedule extends BasicModel<BizCalendarSchedule> {
|
||||
createTime?: string; // 记录时间
|
||||
scheduleId?: string; // 主键标识
|
||||
scheduleNo: string; // 日程编号
|
||||
title: string; // 日程标题
|
||||
content?: string; // 日程详情/备注
|
||||
startTime: string; // 日程开始时间
|
||||
endTime: string; // 日程结束时间
|
||||
allDay: string; // 是否全天
|
||||
location?: string; // 日程地点
|
||||
priority: string; // 优先等级
|
||||
ustatus: string; // 日程状态
|
||||
remindTime?: string; // 提醒时间
|
||||
creatorUser?: string; // 创建人账号
|
||||
creatorName?: string; // 创建人名称
|
||||
participantUser?: string; // 接收人账号
|
||||
participantName?: string; // 接收人名称
|
||||
updateTime?: string; // 更新时间
|
||||
}
|
||||
|
||||
export const bizCalendarScheduleList = (params?: BizCalendarSchedule | any) =>
|
||||
defHttp.get<BizCalendarSchedule>({ url: adminPath + '/biz/calendarSchedule/list', params });
|
||||
|
||||
export const bizCalendarScheduleListData = (params?: BizCalendarSchedule | any) =>
|
||||
defHttp.post<Page<BizCalendarSchedule>>({ url: adminPath + '/biz/calendarSchedule/listData', params });
|
||||
|
||||
export const bizCalendarScheduleForm = (params?: BizCalendarSchedule | any) =>
|
||||
defHttp.get<BizCalendarSchedule>({ url: adminPath + '/biz/calendarSchedule/form', params });
|
||||
|
||||
export const bizCalendarScheduleSave = (params?: any, data?: BizCalendarSchedule | any) =>
|
||||
defHttp.postJson<BizCalendarSchedule>({ url: adminPath + '/biz/calendarSchedule/save', params, data });
|
||||
|
||||
export const bizCalendarScheduleImportData = (
|
||||
params: UploadFileParams,
|
||||
onUploadProgress: (progressEvent: AxiosProgressEvent) => void,
|
||||
) =>
|
||||
defHttp.uploadFile<UploadApiResult>(
|
||||
{
|
||||
url: ctxPath + adminPath + '/biz/calendarSchedule/importData',
|
||||
onUploadProgress,
|
||||
},
|
||||
params,
|
||||
);
|
||||
|
||||
export const bizCalendarScheduleDelete = (params?: BizCalendarSchedule | any) =>
|
||||
defHttp.get<BizCalendarSchedule>({ url: adminPath + '/biz/calendarSchedule/delete', params });
|
||||
Reference in New Issue
Block a user