You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

51 lines
1.7 KiB

import request from '@/config/axios'
import type { Dayjs } from 'dayjs';
/** 个人生命锁信息 */
export interface PlanLifeLock {
id: number; // 主键ID
isolationPlanItemDetailId?: number; // 子项详情ID
userId?: number; // 上锁人ID
lockType?: number; // 生命锁类型
lockStatus?: number; // 锁定状态: 0=未上锁, 1=已上锁
lockTime?: number; // 上锁时间
unlockTime?: number; // 解锁时间
}
// 个人生命锁 API
export const PlanLifeLockApi = {
// 查询个人生命锁分页
getPlanLifeLockPage: async (params: any) => {
return await request.get({ url: `/isolation/plan-life-lock/page`, params })
},
// 查询个人生命锁详情
getPlanLifeLock: async (id: number) => {
return await request.get({ url: `/isolation/plan-life-lock/get?id=` + id })
},
// 新增个人生命锁
createPlanLifeLock: async (data: PlanLifeLock) => {
return await request.post({ url: `/isolation/plan-life-lock/create`, data })
},
// 修改个人生命锁
updatePlanLifeLock: async (data: PlanLifeLock) => {
return await request.put({ url: `/isolation/plan-life-lock/update`, data })
},
// 删除个人生命锁
deletePlanLifeLock: async (id: number) => {
return await request.delete({ url: `/isolation/plan-life-lock/delete?id=` + id })
},
/** 批量删除个人生命锁 */
deletePlanLifeLockList: async (ids: number[]) => {
return await request.delete({ url: `/isolation/plan-life-lock/delete-list?ids=${ids.join(',')}` })
},
// 导出个人生命锁 Excel
exportPlanLifeLock: async (params) => {
return await request.download({ url: `/isolation/plan-life-lock/export-excel`, params })
}
}