暂降治理评估
This commit is contained in:
65
src/api/advance-boot/sgGroven/sgEvent.ts
Normal file
65
src/api/advance-boot/sgGroven/sgEvent.ts
Normal file
@@ -0,0 +1,65 @@
|
||||
import createAxios from '@/utils/request'
|
||||
|
||||
const ADVANCE_BOOT = '/advance-boot'
|
||||
|
||||
|
||||
/**
|
||||
* 导出暂降模板
|
||||
*/
|
||||
export const downloadTemplate = () => {
|
||||
return createAxios({
|
||||
url: ADVANCE_BOOT + '/sgEvent/downloadTemplate',
|
||||
method: 'GET',
|
||||
responseType: 'blob'
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出暂降数据
|
||||
*/
|
||||
export const exportEventData = (data: any) => {
|
||||
return createAxios({
|
||||
url: ADVANCE_BOOT + '/sgEvent/exportEventData',
|
||||
method: 'GET',
|
||||
data: data,
|
||||
responseType: 'blob'
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 新增业务用户
|
||||
*/
|
||||
export const importEventData = (data: any) => {
|
||||
return createAxios({
|
||||
url: ADVANCE_BOOT + '/sgEvent/importEventData',
|
||||
method: 'POST',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 更新业务用户
|
||||
*/
|
||||
export const updateSgEvent = (data: any) => {
|
||||
return createAxios({
|
||||
url: ADVANCE_BOOT + '/sgEvent/update',
|
||||
method: 'POST',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 删除业务用户
|
||||
*/
|
||||
export const deleteSgEvent = (data: any) => {
|
||||
let ids = [data]
|
||||
return createAxios({
|
||||
url: ADVANCE_BOOT + '/sgEvent/delete',
|
||||
method: 'POST',
|
||||
data: ids
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user