页面接口推介
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import request from '../js/request';
|
||||
import config from '../js/config';
|
||||
import request from '../js/request'
|
||||
import config from '../js/config'
|
||||
|
||||
export function addEngineering(params) {
|
||||
return request({
|
||||
@@ -9,10 +9,9 @@ export function addEngineering(params) {
|
||||
header: {
|
||||
'Content-Type': 'application/json',
|
||||
},
|
||||
});
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
export function auditEngineering(params) {
|
||||
return request({
|
||||
url: '/cs-device-boot/engineering/auditEngineering',
|
||||
@@ -21,7 +20,7 @@ export function auditEngineering(params) {
|
||||
header: {
|
||||
'Content-Type': 'application/json',
|
||||
},
|
||||
});
|
||||
})
|
||||
}
|
||||
|
||||
export function queryEngineering(params) {
|
||||
@@ -32,5 +31,20 @@ export function queryEngineering(params) {
|
||||
header: {
|
||||
'Content-Type': 'application/json',
|
||||
},
|
||||
});
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// 删除工程
|
||||
export function deleteEngineering(id) {
|
||||
return request({
|
||||
url: '/cs-device-boot/engineering/auditEngineering',
|
||||
method: 'post',
|
||||
data: {
|
||||
id: id,
|
||||
status: 0,
|
||||
},
|
||||
header: {
|
||||
'Content-Type': 'application/json',
|
||||
},
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user