Files
admin-govern/src/api/cs-device-boot/edData.ts

83 lines
1.9 KiB
TypeScript
Raw Normal View History

2024-01-23 14:05:03 +08:00
import request from '@/utils/request'
// 新增程序版本
2026-02-02 13:56:50 +08:00
export const addEdData = data => {
2024-01-23 14:05:03 +08:00
return request({
url: '/cs-device-boot/edData/addEdData',
method: 'post',
headers: {
2026-02-02 13:56:50 +08:00
'Content-Type': 'multipart/form-data'
2024-01-23 14:05:03 +08:00
},
2026-02-02 13:56:50 +08:00
data: data
2024-01-23 14:05:03 +08:00
})
}
2026-02-02 13:56:50 +08:00
export const auditEdData = data => {
2024-01-23 14:05:03 +08:00
return request({
url: '/cs-device-boot/edData/auditEdData',
method: 'post',
headers: {
2026-02-02 13:56:50 +08:00
'Content-Type': 'multipart/form-data'
2024-01-23 14:05:03 +08:00
},
2026-02-02 13:56:50 +08:00
data: data
2024-11-01 16:17:10 +08:00
})
}
2025-10-11 10:35:25 +08:00
// 修改-删除工程
2026-02-02 13:56:50 +08:00
export const auditEngineering = (data: any) => {
2024-11-01 16:17:10 +08:00
return request({
url: '/cs-device-boot/engineering/auditEngineering',
method: 'post',
2026-02-02 13:56:50 +08:00
data: data
2025-07-15 16:31:06 +08:00
})
}
// 修改项目
2026-02-02 13:56:50 +08:00
export const updateProject = (data: any) => {
2025-07-15 16:31:06 +08:00
return request({
url: '/cs-device-boot/project/updateProject',
method: 'post',
2026-02-02 13:56:50 +08:00
data: data
2024-01-23 14:05:03 +08:00
})
2026-02-02 13:56:50 +08:00
}
// 新增工程
export const addEngineering = (data: any) => {
return request({
url: '/cs-device-boot/engineeringProjectRelation/addEngineering',
method: 'post',
data: data
})
}
// 修改工程
export const updateEngineering = (data: any) => {
return request({
url: '/cs-device-boot/engineeringProjectRelation/updateEngineering',
method: 'post',
data: data
})
}
// 刪除工程
export const deleteEngineering = (data: any) => {
return request({
url: '/cs-device-boot/engineeringProjectRelation/deleteEngineering',
method: 'post',
params: data
})
}
// 刪除項目
export const deleteProject = (data: any) => {
return request({
url: '/cs-device-boot/engineeringProjectRelation/deleteProject',
method: 'post',
params: data
})
}
// 新增项目
export const addProject = (data: any) => {
return request({
url: '/cs-device-boot/engineeringProjectRelation/addProject',
method: 'post',
data: data
})
}