被检设备
This commit is contained in:
@@ -1,18 +1,38 @@
|
||||
import { ResPage } from '@/api/interface'
|
||||
import { Device } from './interface'
|
||||
import type { Device } from './interface'
|
||||
import { ADMIN as rePrefix } from '@/api/config/serviceName'
|
||||
import http from '@/api'
|
||||
|
||||
/**
|
||||
* @name 被检设备管理模块
|
||||
*/
|
||||
// 获取检测脚本列表
|
||||
export const getDeviceList = (params: Device.ReqDeviceParams) => {
|
||||
return http.post<ResPage<Device.ResDeviceList>>(`/RoleList_Post`, params)
|
||||
// return http.post<ResPage<Role.ResRoleList>>(`${rePrefix}/device/list`, params)
|
||||
|
||||
//获取被检设备
|
||||
export const getPqDevList = (params: Device.ReqPqDevParams) => {
|
||||
return http.post(`/pqDev/list`, params)
|
||||
}
|
||||
|
||||
export const getPlan_DeviceList = (params: Device.DeviceList) => {
|
||||
//return http.post<ResPage<Device.ResDeviceList>>(`/RoleList_Post`, params)
|
||||
// return http.post<ResPage<Role.ResRoleList>>(`${rePrefix}/device/list`, params)
|
||||
//添加被检设备
|
||||
export const addPqDev = (params: Device.ResPqDev) => {
|
||||
return http.post(`/pqDev/add`, params)
|
||||
}
|
||||
|
||||
//编辑被检设备
|
||||
export const updatePqDev = (params: Device.ResPqDev) => {
|
||||
return http.post(`/pqDev/update`, params)
|
||||
}
|
||||
|
||||
//删除被检设备
|
||||
export const deletePqDev = (params: string[]) => {
|
||||
return http.post(`/pqDev/delete`, params)
|
||||
}
|
||||
|
||||
//导出被检设备
|
||||
export const exportPqDev=(params: Device.ReqPqDevParams)=>{
|
||||
return http.download(`/pqDev/export`, params)
|
||||
}
|
||||
|
||||
//导入被检设备
|
||||
export const importPqDev=(params: Device.ReqPqDevParams)=>{
|
||||
return http.post(`/pqDev/import`, params)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user