Files
app-govern/common/api/engineering.js

71 lines
1.6 KiB
JavaScript
Raw Normal View History

2023-07-31 09:00:30 +08:00
import request from '../js/request'
import config from '../js/config'
2023-04-12 18:39:52 +08:00
2023-05-25 10:10:22 +08:00
export function addEngineering(params) {
2023-04-12 18:39:52 +08:00
return request({
2023-07-03 20:29:24 +08:00
url: '/cs-device-boot/engineering/addEngineering',
2023-04-12 18:39:52 +08:00
method: 'post',
data: params,
header: {
'Content-Type': 'application/json',
},
2023-07-31 09:00:30 +08:00
})
2023-04-12 18:39:52 +08:00
}
export function auditEngineering(params) {
return request({
2023-07-03 20:29:24 +08:00
url: '/cs-device-boot/engineering/auditEngineering',
2023-04-12 18:39:52 +08:00
method: 'post',
data: params,
header: {
'Content-Type': 'application/json',
},
2023-07-31 09:00:30 +08:00
})
2023-04-12 18:39:52 +08:00
}
export function queryEngineering(params) {
return request({
2023-07-03 20:29:24 +08:00
url: '/cs-device-boot/engineering/queryEngineering',
2023-04-12 18:39:52 +08:00
method: 'post',
data: params,
header: {
'Content-Type': 'application/json',
},
2023-07-31 09:00:30 +08:00
})
}
// 删除工程
export function deleteEngineering(id) {
return request({
url: '/cs-device-boot/engineering/auditEngineering',
method: 'post',
data: {
id: id,
status: 0,
},
header: {
'Content-Type': 'application/json',
},
})
}
2023-08-10 09:18:17 +08:00
// 查询工程配置列表
export function queryAllEnginner(params) {
return request({
url: '/cs-device-boot/csMarketData/queryAllEnginner',
method: 'post',
})
}
// 更新工程配置
export function csMarketDataAdd(params) {
return request({
url: '/cs-device-boot/csMarketData/follow',
method: 'post',
data: params,
header: {
'Content-Type': 'application/json',
},
})
}