feat: 排班日历视图
This commit is contained in:
@@ -1,18 +1,25 @@
|
||||
import type { ArrangementVO, ArrangementForm, ArrangementQuery } from './model';
|
||||
import type {
|
||||
ArrangementVO,
|
||||
ArrangementForm,
|
||||
ArrangementQuery,
|
||||
arrangmentListQuery,
|
||||
} from './model';
|
||||
|
||||
import type { ID, IDS } from '#/api/common';
|
||||
import type { PageResult } from '#/api/common';
|
||||
|
||||
import { commonExport } from '#/api/helper';
|
||||
import { requestClient } from '#/api/request';
|
||||
|
||||
/**
|
||||
* 分页查询排班列表
|
||||
* @param params
|
||||
* @returns 排班列表
|
||||
*/
|
||||
* 分页查询排班列表
|
||||
* @param params
|
||||
* @returns 排班列表
|
||||
*/
|
||||
export function arrangementList(params?: ArrangementQuery) {
|
||||
return requestClient.get<PageResult<ArrangementVO>>('/property/arrangement/list', { params });
|
||||
return requestClient.get<PageResult<ArrangementVO>>(
|
||||
'/property/arrangement/list',
|
||||
{ params },
|
||||
);
|
||||
}
|
||||
/**
|
||||
* 根据月份查询排班列表
|
||||
@@ -58,3 +65,16 @@ export function arrangementUpdate(data: ArrangementForm) {
|
||||
export function arrangementRemove(id: ID | IDS) {
|
||||
return requestClient.deleteWithMsg<void>(`/property/arrangement/${id}`);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询某天排班详情列表
|
||||
* @param params
|
||||
* @returns 排班列表
|
||||
*/
|
||||
|
||||
export function arrangmentList(params?: arrangmentListQuery) {
|
||||
return requestClient.get<PageResult<ArrangementVO>>(
|
||||
'/property/arrangement/list',
|
||||
{ params },
|
||||
);
|
||||
}
|
||||
|
Reference in New Issue
Block a user