|
|
@ -2,16 +2,16 @@ import request from '@/config/axios'
|
|
|
|
|
|
|
|
|
|
|
|
export const driverApi = {
|
|
|
|
export const driverApi = {
|
|
|
|
delete: (id) => request({
|
|
|
|
delete: (id) => request({
|
|
|
|
url: '/manager_api/manager/driver/delete/' + id,
|
|
|
|
url: 'manager_api/manager/driver/delete/' + id,
|
|
|
|
method: 'post'
|
|
|
|
method: 'post'
|
|
|
|
}),
|
|
|
|
}),
|
|
|
|
list: (driver) => request({
|
|
|
|
list: (driver) => request({
|
|
|
|
url: '/manager_api/manager/driver/list',
|
|
|
|
url: 'manager_api/manager/driver/list',
|
|
|
|
method: 'post',
|
|
|
|
method: 'post',
|
|
|
|
data: driver
|
|
|
|
data: driver
|
|
|
|
}),
|
|
|
|
}),
|
|
|
|
status: (driver) => request({
|
|
|
|
status: (driver) => request({
|
|
|
|
url: '/manager_api/manager/driver/status',
|
|
|
|
url: 'manager_api/manager/driver/status',
|
|
|
|
method: 'post',
|
|
|
|
method: 'post',
|
|
|
|
data: driver
|
|
|
|
data: driver
|
|
|
|
})
|
|
|
|
})
|
|
|
@ -19,21 +19,21 @@ export const driverApi = {
|
|
|
|
|
|
|
|
|
|
|
|
export const driverAttributeApi = {
|
|
|
|
export const driverAttributeApi = {
|
|
|
|
add: (driverAttribute) => request({
|
|
|
|
add: (driverAttribute) => request({
|
|
|
|
url: '/manager_api/manager/driverAttribute/add',
|
|
|
|
url: 'manager_api/manager/driverAttribute/add',
|
|
|
|
method: 'post',
|
|
|
|
method: 'post',
|
|
|
|
data: driverAttribute
|
|
|
|
data: driverAttribute
|
|
|
|
}),
|
|
|
|
}),
|
|
|
|
delete: (id) => request({
|
|
|
|
delete: (id) => request({
|
|
|
|
url: '/manager_api/manager/driverAttribute/delete/' + id,
|
|
|
|
url: 'manager_api/manager/driverAttribute/delete/' + id,
|
|
|
|
method: 'post'
|
|
|
|
method: 'post'
|
|
|
|
}),
|
|
|
|
}),
|
|
|
|
update: (driverAttribute) => request({
|
|
|
|
update: (driverAttribute) => request({
|
|
|
|
url: '/manager_api/manager/driverAttribute/update',
|
|
|
|
url: 'manager_api/manager/driverAttribute/update',
|
|
|
|
method: 'post',
|
|
|
|
method: 'post',
|
|
|
|
data: driverAttribute
|
|
|
|
data: driverAttribute
|
|
|
|
}),
|
|
|
|
}),
|
|
|
|
list: (driverAttribute) => request({
|
|
|
|
list: (driverAttribute) => request({
|
|
|
|
url: '/manager_api/manager/driverAttribute/list',
|
|
|
|
url: 'manager_api/manager/driverAttribute/list',
|
|
|
|
method: 'post',
|
|
|
|
method: 'post',
|
|
|
|
data: driverAttribute
|
|
|
|
data: driverAttribute
|
|
|
|
})
|
|
|
|
})
|
|
|
@ -41,21 +41,21 @@ export const driverAttributeApi = {
|
|
|
|
|
|
|
|
|
|
|
|
export const driverInfoApi = {
|
|
|
|
export const driverInfoApi = {
|
|
|
|
add: (driverInfo) => request({
|
|
|
|
add: (driverInfo) => request({
|
|
|
|
url: '/manager_api/manager/driverInfo/add',
|
|
|
|
url: 'manager_api/manager/driverInfo/add',
|
|
|
|
method: 'post',
|
|
|
|
method: 'post',
|
|
|
|
data: driverInfo
|
|
|
|
data: driverInfo
|
|
|
|
}),
|
|
|
|
}),
|
|
|
|
delete: (id) => request({
|
|
|
|
delete: (id) => request({
|
|
|
|
url: '/manager_api/manager/driverInfo/delete/' + id,
|
|
|
|
url: 'manager_api/manager/driverInfo/delete/' + id,
|
|
|
|
method: 'post'
|
|
|
|
method: 'post'
|
|
|
|
}),
|
|
|
|
}),
|
|
|
|
update: (driverInfo) => request({
|
|
|
|
update: (driverInfo) => request({
|
|
|
|
url: '/manager_api/manager/driverInfo/update',
|
|
|
|
url: 'manager_api/manager/driverInfo/update',
|
|
|
|
method: 'post',
|
|
|
|
method: 'post',
|
|
|
|
data: driverInfo
|
|
|
|
data: driverInfo
|
|
|
|
}),
|
|
|
|
}),
|
|
|
|
list: (driverInfo) => request({
|
|
|
|
list: (driverInfo) => request({
|
|
|
|
url: '/manager_api/manager/driverInfo/list',
|
|
|
|
url: 'manager_api/manager/driverInfo/list',
|
|
|
|
method: 'post',
|
|
|
|
method: 'post',
|
|
|
|
data: driverInfo
|
|
|
|
data: driverInfo
|
|
|
|
})
|
|
|
|
})
|
|
|
@ -63,21 +63,21 @@ export const driverInfoApi = {
|
|
|
|
|
|
|
|
|
|
|
|
export const pointAttributeApi = {
|
|
|
|
export const pointAttributeApi = {
|
|
|
|
add: (pointAttribute) => request({
|
|
|
|
add: (pointAttribute) => request({
|
|
|
|
url: '/manager_api/manager/pointAttribute/add',
|
|
|
|
url: 'manager_api/manager/pointAttribute/add',
|
|
|
|
method: 'post',
|
|
|
|
method: 'post',
|
|
|
|
data: pointAttribute
|
|
|
|
data: pointAttribute
|
|
|
|
}),
|
|
|
|
}),
|
|
|
|
delete: (id) => request({
|
|
|
|
delete: (id) => request({
|
|
|
|
url: '/manager_api/manager/pointAttribute/delete/' + id,
|
|
|
|
url: 'manager_api/manager/pointAttribute/delete/' + id,
|
|
|
|
method: 'post'
|
|
|
|
method: 'post'
|
|
|
|
}),
|
|
|
|
}),
|
|
|
|
update: (pointAttribute) => request({
|
|
|
|
update: (pointAttribute) => request({
|
|
|
|
url: '/manager_api/manager/pointAttribute/update',
|
|
|
|
url: 'manager_api/manager/pointAttribute/update',
|
|
|
|
method: 'post',
|
|
|
|
method: 'post',
|
|
|
|
data: pointAttribute
|
|
|
|
data: pointAttribute
|
|
|
|
}),
|
|
|
|
}),
|
|
|
|
list: (pointAttribute) => request({
|
|
|
|
list: (pointAttribute) => request({
|
|
|
|
url: '/manager_api/manager/pointAttribute/list',
|
|
|
|
url: 'manager_api/manager/pointAttribute/list',
|
|
|
|
method: 'post',
|
|
|
|
method: 'post',
|
|
|
|
data: pointAttribute
|
|
|
|
data: pointAttribute
|
|
|
|
})
|
|
|
|
})
|
|
|
@ -85,21 +85,21 @@ export const pointAttributeApi = {
|
|
|
|
|
|
|
|
|
|
|
|
export const pointInfoApi = {
|
|
|
|
export const pointInfoApi = {
|
|
|
|
add: (pointInfo) => request({
|
|
|
|
add: (pointInfo) => request({
|
|
|
|
url: '/manager_api/manager/pointInfo/add',
|
|
|
|
url: 'manager_api/manager/pointInfo/add',
|
|
|
|
method: 'post',
|
|
|
|
method: 'post',
|
|
|
|
data: pointInfo
|
|
|
|
data: pointInfo
|
|
|
|
}),
|
|
|
|
}),
|
|
|
|
delete: (id) => request({
|
|
|
|
delete: (id) => request({
|
|
|
|
url: '/manager_api/manager/pointInfo/delete/' + id,
|
|
|
|
url: 'manager_api/manager/pointInfo/delete/' + id,
|
|
|
|
method: 'post'
|
|
|
|
method: 'post'
|
|
|
|
}),
|
|
|
|
}),
|
|
|
|
update: (pointInfo) => request({
|
|
|
|
update: (pointInfo) => request({
|
|
|
|
url: '/manager_api/manager/pointInfo/update',
|
|
|
|
url: 'manager_api/manager/pointInfo/update',
|
|
|
|
method: 'post',
|
|
|
|
method: 'post',
|
|
|
|
data: pointInfo
|
|
|
|
data: pointInfo
|
|
|
|
}),
|
|
|
|
}),
|
|
|
|
list: (pointInfo) => request({
|
|
|
|
list: (pointInfo) => request({
|
|
|
|
url: '/manager_api/manager/pointInfo/list',
|
|
|
|
url: 'manager_api/manager/pointInfo/list',
|
|
|
|
method: 'post',
|
|
|
|
method: 'post',
|
|
|
|
data: pointInfo
|
|
|
|
data: pointInfo
|
|
|
|
})
|
|
|
|
})
|
|
|
@ -107,21 +107,21 @@ export const pointInfoApi = {
|
|
|
|
|
|
|
|
|
|
|
|
export const profileApi = {
|
|
|
|
export const profileApi = {
|
|
|
|
add: (profile) => request({
|
|
|
|
add: (profile) => request({
|
|
|
|
url: '/manager_api/manager/profile/add',
|
|
|
|
url: 'manager_api/manager/profile/add',
|
|
|
|
method: 'post',
|
|
|
|
method: 'post',
|
|
|
|
data: profile
|
|
|
|
data: profile
|
|
|
|
}),
|
|
|
|
}),
|
|
|
|
delete: (id) => request({
|
|
|
|
delete: (id) => request({
|
|
|
|
url: '/manager_api/manager/profile/delete/' + id,
|
|
|
|
url: 'manager_api/manager/profile/delete/' + id,
|
|
|
|
method: 'post'
|
|
|
|
method: 'post'
|
|
|
|
}),
|
|
|
|
}),
|
|
|
|
update: (profile) => request({
|
|
|
|
update: (profile) => request({
|
|
|
|
url: '/manager_api/manager/profile/update',
|
|
|
|
url: 'manager_api/manager/profile/update',
|
|
|
|
method: 'post',
|
|
|
|
method: 'post',
|
|
|
|
data: profile
|
|
|
|
data: profile
|
|
|
|
}),
|
|
|
|
}),
|
|
|
|
list: (profile) => request({
|
|
|
|
list: (profile) => request({
|
|
|
|
url: '/manager_api/manager/profile/list',
|
|
|
|
url: 'manager_api/manager/profile/list',
|
|
|
|
method: 'post',
|
|
|
|
method: 'post',
|
|
|
|
data: profile
|
|
|
|
data: profile
|
|
|
|
})
|
|
|
|
})
|
|
|
@ -129,21 +129,21 @@ export const profileApi = {
|
|
|
|
|
|
|
|
|
|
|
|
export const groupApi = {
|
|
|
|
export const groupApi = {
|
|
|
|
add: (group) => request({
|
|
|
|
add: (group) => request({
|
|
|
|
url: '/manager_api/manager/group/add',
|
|
|
|
url: 'manager_api/manager/group/add',
|
|
|
|
method: 'post',
|
|
|
|
method: 'post',
|
|
|
|
data: group
|
|
|
|
data: group
|
|
|
|
}),
|
|
|
|
}),
|
|
|
|
delete: (id) => request({
|
|
|
|
delete: (id) => request({
|
|
|
|
url: '/manager_api/manager/group/delete/' + id,
|
|
|
|
url: 'manager_api/manager/group/delete/' + id,
|
|
|
|
method: 'post'
|
|
|
|
method: 'post'
|
|
|
|
}),
|
|
|
|
}),
|
|
|
|
update: (group) => request({
|
|
|
|
update: (group) => request({
|
|
|
|
url: '/manager_api/manager/group/update',
|
|
|
|
url: 'manager_api/manager/group/update',
|
|
|
|
method: 'post',
|
|
|
|
method: 'post',
|
|
|
|
data: group
|
|
|
|
data: group
|
|
|
|
}),
|
|
|
|
}),
|
|
|
|
list: (group) => request({
|
|
|
|
list: (group) => request({
|
|
|
|
url: '/manager_api/manager/group/list',
|
|
|
|
url: 'manager_api/manager/group/list',
|
|
|
|
method: 'post',
|
|
|
|
method: 'post',
|
|
|
|
data: group
|
|
|
|
data: group
|
|
|
|
})
|
|
|
|
})
|
|
|
@ -151,26 +151,26 @@ export const groupApi = {
|
|
|
|
|
|
|
|
|
|
|
|
export const deviceApi = {
|
|
|
|
export const deviceApi = {
|
|
|
|
add: (device) => request({
|
|
|
|
add: (device) => request({
|
|
|
|
url: '/manager_api/manager/device/add',
|
|
|
|
url: 'manager_api/manager/device/add',
|
|
|
|
method: 'post',
|
|
|
|
method: 'post',
|
|
|
|
data: device
|
|
|
|
data: device
|
|
|
|
}),
|
|
|
|
}),
|
|
|
|
delete: (id) => request({
|
|
|
|
delete: (id) => request({
|
|
|
|
url: '/manager_api/manager/device/delete/' + id,
|
|
|
|
url: 'manager_api/manager/device/delete/' + id,
|
|
|
|
method: 'post'
|
|
|
|
method: 'post'
|
|
|
|
}),
|
|
|
|
}),
|
|
|
|
update: (device) => request({
|
|
|
|
update: (device) => request({
|
|
|
|
url: '/manager_api/manager/device/update',
|
|
|
|
url: 'manager_api/manager/device/update',
|
|
|
|
method: 'post',
|
|
|
|
method: 'post',
|
|
|
|
data: device
|
|
|
|
data: device
|
|
|
|
}),
|
|
|
|
}),
|
|
|
|
list: (device) => request({
|
|
|
|
list: (device) => request({
|
|
|
|
url: '/manager_api/manager/device/list',
|
|
|
|
url: 'manager_api/manager/device/list',
|
|
|
|
method: 'post',
|
|
|
|
method: 'post',
|
|
|
|
data: device
|
|
|
|
data: device
|
|
|
|
}),
|
|
|
|
}),
|
|
|
|
status: (device) => request({
|
|
|
|
status: (device) => request({
|
|
|
|
url: '/manager_api/manager/device/status',
|
|
|
|
url: 'manager_api/manager/device/status',
|
|
|
|
method: 'post',
|
|
|
|
method: 'post',
|
|
|
|
data: device
|
|
|
|
data: device
|
|
|
|
})
|
|
|
|
})
|
|
|
@ -178,21 +178,21 @@ export const deviceApi = {
|
|
|
|
|
|
|
|
|
|
|
|
export const pointApi = {
|
|
|
|
export const pointApi = {
|
|
|
|
add: (point) => request({
|
|
|
|
add: (point) => request({
|
|
|
|
url: '/manager_api/manager/point/add',
|
|
|
|
url: 'manager_api/manager/point/add',
|
|
|
|
method: 'post',
|
|
|
|
method: 'post',
|
|
|
|
data: point
|
|
|
|
data: point
|
|
|
|
}),
|
|
|
|
}),
|
|
|
|
delete: (id) => request({
|
|
|
|
delete: (id) => request({
|
|
|
|
url: '/manager_api/manager/point/delete/' + id,
|
|
|
|
url: 'manager_api/manager/point/delete/' + id,
|
|
|
|
method: 'post'
|
|
|
|
method: 'post'
|
|
|
|
}),
|
|
|
|
}),
|
|
|
|
update: (point) => request({
|
|
|
|
update: (point) => request({
|
|
|
|
url: '/manager_api/manager/point/update',
|
|
|
|
url: 'manager_api/manager/point/update',
|
|
|
|
method: 'post',
|
|
|
|
method: 'post',
|
|
|
|
data: point
|
|
|
|
data: point
|
|
|
|
}),
|
|
|
|
}),
|
|
|
|
list: (point) => request({
|
|
|
|
list: (point) => request({
|
|
|
|
url: '/manager_api/manager/point/list',
|
|
|
|
url: 'manager_api/manager/point/list',
|
|
|
|
method: 'post',
|
|
|
|
method: 'post',
|
|
|
|
data: point
|
|
|
|
data: point
|
|
|
|
})
|
|
|
|
})
|
|
|
@ -200,31 +200,31 @@ export const pointApi = {
|
|
|
|
|
|
|
|
|
|
|
|
export const dictionaryApi = {
|
|
|
|
export const dictionaryApi = {
|
|
|
|
driverDictionary: () => request({
|
|
|
|
driverDictionary: () => request({
|
|
|
|
url: '/manager_api/manager/dictionary/driver',
|
|
|
|
url: 'manager_api/manager/dictionary/driver',
|
|
|
|
method: 'get'
|
|
|
|
method: 'get'
|
|
|
|
}),
|
|
|
|
}),
|
|
|
|
profileDictionary: () => request({
|
|
|
|
profileDictionary: () => request({
|
|
|
|
url: '/manager_api/manager/dictionary/profile',
|
|
|
|
url: 'manager_api/manager/dictionary/profile',
|
|
|
|
method: 'get'
|
|
|
|
method: 'get'
|
|
|
|
}),
|
|
|
|
}),
|
|
|
|
driverAttributeDictionary: () => request({
|
|
|
|
driverAttributeDictionary: () => request({
|
|
|
|
url: '/manager_api/manager/dictionary/driverAttribute',
|
|
|
|
url: 'manager_api/manager/dictionary/driverAttribute',
|
|
|
|
method: 'get'
|
|
|
|
method: 'get'
|
|
|
|
}),
|
|
|
|
}),
|
|
|
|
pointAttributeDictionary: () => request({
|
|
|
|
pointAttributeDictionary: () => request({
|
|
|
|
url: '/manager_api/manager/dictionary/pointAttribute',
|
|
|
|
url: 'manager_api/manager/dictionary/pointAttribute',
|
|
|
|
method: 'get'
|
|
|
|
method: 'get'
|
|
|
|
}),
|
|
|
|
}),
|
|
|
|
groupDictionary: () => request({
|
|
|
|
groupDictionary: () => request({
|
|
|
|
url: '/manager_api/manager/dictionary/group',
|
|
|
|
url: 'manager_api/manager/dictionary/group',
|
|
|
|
method: 'get'
|
|
|
|
method: 'get'
|
|
|
|
}),
|
|
|
|
}),
|
|
|
|
deviceDictionary: (parent) => request({
|
|
|
|
deviceDictionary: (parent) => request({
|
|
|
|
url: '/manager_api/manager/dictionary/device/' + parent,
|
|
|
|
url: 'manager_api/manager/dictionary/device/' + parent,
|
|
|
|
method: 'get'
|
|
|
|
method: 'get'
|
|
|
|
}),
|
|
|
|
}),
|
|
|
|
pointDictionary: (parent) => request({
|
|
|
|
pointDictionary: (parent) => request({
|
|
|
|
url: '/manager_api/manager/dictionary/point/' + parent,
|
|
|
|
url: 'manager_api/manager/dictionary/point/' + parent,
|
|
|
|
method: 'get'
|
|
|
|
method: 'get'
|
|
|
|
})
|
|
|
|
})
|
|
|
|
};
|
|
|
|
};
|
|
|
|