自定义策略
This commit is contained in:
33
acs/nladmin-ui/src/api/acs/device/customPolicy.js
Normal file
33
acs/nladmin-ui/src/api/acs/device/customPolicy.js
Normal file
@@ -0,0 +1,33 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
export function add(data) {
|
||||
return request({
|
||||
url: 'api/customPolicy',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export function del(ids) {
|
||||
return request({
|
||||
url: 'api/customPolicy/',
|
||||
method: 'delete',
|
||||
data: ids
|
||||
})
|
||||
}
|
||||
|
||||
export function edit(data) {
|
||||
return request({
|
||||
url: 'api/customPolicy',
|
||||
method: 'put',
|
||||
data
|
||||
})
|
||||
}
|
||||
export function updateOn(id, is_on) {
|
||||
console.log(is_on)
|
||||
return request({
|
||||
url: '/api/customPolicy/updateOn?id=' + id + '&is_on=' + is_on,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
export default { add, edit, del, updateOn }
|
||||
22
acs/nladmin-ui/src/api/acs/device/customPolicyType.js
Normal file
22
acs/nladmin-ui/src/api/acs/device/customPolicyType.js
Normal file
@@ -0,0 +1,22 @@
|
||||
import request from '@/utils/request'
|
||||
export function updateConfig(plans, deviceCode, id) {
|
||||
const data = {
|
||||
plans,
|
||||
deviceCode,
|
||||
id
|
||||
}
|
||||
return request({
|
||||
url: '/api/customPolicy/plantAdd',
|
||||
data,
|
||||
method: 'post'
|
||||
})
|
||||
|
||||
}
|
||||
|
||||
export function selectById(id) {
|
||||
return request({
|
||||
url: '/api/customPolicy/plantList?id=' + id,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
@@ -157,6 +157,13 @@ export function excelImport(data) {
|
||||
})
|
||||
}
|
||||
|
||||
export function selectListByType() {
|
||||
return request({
|
||||
url: 'api/device//type/stacker',
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
export default { add, edit, del, selectDeviceList, selectDeviceListByRegion, callAgv, responseAgv, selectDeviceDevicerInfo, autoCreateTask,
|
||||
changeDeviceStatus, cleanTask, queryStorageExtra, selectConDeviceList, saveBarcode, selectDeviceListOne, selectDeviceListTwo, selectDeviceListThree,
|
||||
addMaterial, cleanMaterial, reload, excelImport }
|
||||
addMaterial, cleanMaterial, reload, excelImport, selectListByType }
|
||||
|
||||
Reference in New Issue
Block a user