挂牌上锁程序开发
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.
 
 
 
 
 
 

47 lines
1.6 KiB

import request from '@/config/axios'
import type { Dayjs } from 'dayjs'
/** 指导书与隔离点关联信息 */
export interface IsolationPoint {
id?: number // id
guideId?: number // 隔离指导书ID
isolationPointId?: number // 隔离点ID
}
// 指导书与隔离点关联 API
export const IsolationPointApi = {
// 查询指导书与隔离点关联分页
getIsolationPointPage: async (params: any) => {
return await request.get({ url: `/guide/isolation-point/page`, params })
},
// 查询指导书与隔离点关联详情
getIsolationPoint: async (id: number) => {
return await request.get({ url: `/guide/isolation-point/get?id=` + id })
},
// 新增指导书与隔离点关联
createIsolationPoint: async (data: IsolationPoint) => {
return await request.post({ url: `/guide/isolation-point/create`, data })
},
// 修改指导书与隔离点关联
updateIsolationPoint: async (data: IsolationPoint) => {
return await request.put({ url: `/guide/isolation-point/update`, data })
},
// 删除指导书与隔离点关联
deleteIsolationPoint: async (id: number) => {
return await request.delete({ url: `/guide/isolation-point/delete?id=` + id })
},
/** 批量删除指导书与隔离点关联 */
deleteIsolationPointList: async (ids: number[]) => {
return await request.delete({ url: `/guide/isolation-point/delete-list?ids=${ids.join(',')}` })
},
// 导出指导书与隔离点关联 Excel
exportIsolationPoint: async (params) => {
return await request.download({ url: `/guide/isolation-point/export-excel`, params })
}
}