自定义策略

This commit is contained in:
2023-11-22 15:22:04 +08:00
parent b26a7e24dc
commit f40fe49a35
6 changed files with 403 additions and 1 deletions

View 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 }

View 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'
})
}

View File

@@ -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 }