update event status
This commit is contained in:
@@ -69,6 +69,14 @@ async function listValid(): Promise<EventItem[]> {
|
||||
return sortEventList(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询登记记录筛选使用的事件,包含已删除事件。
|
||||
* 该接口由后端使用 event.create 权限保护,仅用于历史记录回溯。
|
||||
*/
|
||||
async function listHistory(): Promise<PageResult<EventItem>> {
|
||||
return await axios.post(`${BASE_URI}/list/history`, withCurrentStorePage(withEventOrder({ index: 0, size: 1000 })));
|
||||
}
|
||||
|
||||
async function detail(id: string): Promise<EventItem> {
|
||||
return await axios.post(`${BASE_URI}/detail`, undefined, {
|
||||
params: { id }
|
||||
@@ -102,6 +110,7 @@ async function remove(id: string): Promise<void> {
|
||||
export default {
|
||||
list,
|
||||
listValid,
|
||||
listHistory,
|
||||
detail,
|
||||
create,
|
||||
update,
|
||||
|
||||
Reference in New Issue
Block a user