diff --git a/dc3/nginx/conf.d/default.conf b/dc3/nginx/conf.d/default.conf index c171bfc..d67e112 100644 --- a/dc3/nginx/conf.d/default.conf +++ b/dc3/nginx/conf.d/default.conf @@ -40,7 +40,7 @@ server { proxy_pass http://dc3-auth:8300/; } - location ^~/device_api/ { + location ^~/manager_api/ { proxy_pass http://dc3-manager:8400/; } diff --git a/package.json b/package.json index 11e256e..08ac9c9 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,7 @@ "@antv/g2": "^3.5.11", "@antv/l7": "latest", "@antv/l7-maps": "latest", - "@smallwei/avue": "^2.3.9", + "@smallwei/avue": "^2.4.0", "axios": "^0.19.2", "core-js": "^3.6.4", "echarts": "^4.6.0", diff --git a/src/api/data.js b/src/api/data.js new file mode 100644 index 0000000..f00e9a2 --- /dev/null +++ b/src/api/data.js @@ -0,0 +1,9 @@ +import request from '@/config/axios' + +export const pointValueApi = { + list: (pointValue) => request({ + url: '/data_api/data/list', + method: 'post', + data: pointValue + }) +}; diff --git a/src/api/manager.js b/src/api/manager.js index 7c7740a..583cb96 100644 --- a/src/api/manager.js +++ b/src/api/manager.js @@ -2,11 +2,11 @@ import request from '@/config/axios' export const driverApi = { delete: (id) => request({ - url: '/device_api/manager/driver/delete/' + id, + url: '/manager_api/manager/driver/delete/' + id, method: 'post' }), list: (driver) => request({ - url: '/device_api/manager/driver/list', + url: '/manager_api/manager/driver/list', method: 'post', data: driver }) @@ -14,21 +14,21 @@ export const driverApi = { export const driverAttributeApi = { add: (driverAttribute) => request({ - url: '/device_api/manager/driverAttribute/add', + url: '/manager_api/manager/driverAttribute/add', method: 'post', data: driverAttribute }), delete: (id) => request({ - url: '/device_api/manager/driverAttribute/delete/' + id, + url: '/manager_api/manager/driverAttribute/delete/' + id, method: 'post' }), update: (driverAttribute) => request({ - url: '/device_api/manager/driverAttribute/update', + url: '/manager_api/manager/driverAttribute/update', method: 'post', data: driverAttribute }), list: (driverAttribute) => request({ - url: '/device_api/manager/driverAttribute/list', + url: '/manager_api/manager/driverAttribute/list', method: 'post', data: driverAttribute }) @@ -36,21 +36,21 @@ export const driverAttributeApi = { export const driverInfoApi = { add: (driverInfo) => request({ - url: '/device_api/manager/driverInfo/add', + url: '/manager_api/manager/driverInfo/add', method: 'post', data: driverInfo }), delete: (id) => request({ - url: '/device_api/manager/driverInfo/delete/' + id, + url: '/manager_api/manager/driverInfo/delete/' + id, method: 'post' }), update: (driverInfo) => request({ - url: '/device_api/manager/driverInfo/update', + url: '/manager_api/manager/driverInfo/update', method: 'post', data: driverInfo }), list: (driverInfo) => request({ - url: '/device_api/manager/driverInfo/list', + url: '/manager_api/manager/driverInfo/list', method: 'post', data: driverInfo }) @@ -58,21 +58,21 @@ export const driverInfoApi = { export const pointAttributeApi = { add: (pointAttribute) => request({ - url: '/device_api/manager/pointAttribute/add', + url: '/manager_api/manager/pointAttribute/add', method: 'post', data: pointAttribute }), delete: (id) => request({ - url: '/device_api/manager/pointAttribute/delete/' + id, + url: '/manager_api/manager/pointAttribute/delete/' + id, method: 'post' }), update: (pointAttribute) => request({ - url: '/device_api/manager/pointAttribute/update', + url: '/manager_api/manager/pointAttribute/update', method: 'post', data: pointAttribute }), list: (pointAttribute) => request({ - url: '/device_api/manager/pointAttribute/list', + url: '/manager_api/manager/pointAttribute/list', method: 'post', data: pointAttribute }) @@ -80,21 +80,21 @@ export const pointAttributeApi = { export const pointInfoApi = { add: (pointInfo) => request({ - url: '/device_api/manager/pointInfo/add', + url: '/manager_api/manager/pointInfo/add', method: 'post', data: pointInfo }), delete: (id) => request({ - url: '/device_api/manager/pointInfo/delete/' + id, + url: '/manager_api/manager/pointInfo/delete/' + id, method: 'post' }), update: (pointInfo) => request({ - url: '/device_api/manager/pointInfo/update', + url: '/manager_api/manager/pointInfo/update', method: 'post', data: pointInfo }), list: (pointInfo) => request({ - url: '/device_api/manager/pointInfo/list', + url: '/manager_api/manager/pointInfo/list', method: 'post', data: pointInfo }) @@ -102,21 +102,21 @@ export const pointInfoApi = { export const profileApi = { add: (profile) => request({ - url: '/device_api/manager/profile/add', + url: '/manager_api/manager/profile/add', method: 'post', data: profile }), delete: (id) => request({ - url: '/device_api/manager/profile/delete/' + id, + url: '/manager_api/manager/profile/delete/' + id, method: 'post' }), update: (profile) => request({ - url: '/device_api/manager/profile/update', + url: '/manager_api/manager/profile/update', method: 'post', data: profile }), list: (profile) => request({ - url: '/device_api/manager/profile/list', + url: '/manager_api/manager/profile/list', method: 'post', data: profile }) @@ -124,21 +124,21 @@ export const profileApi = { export const groupApi = { add: (group) => request({ - url: '/device_api/manager/group/add', + url: '/manager_api/manager/group/add', method: 'post', data: group }), delete: (id) => request({ - url: '/device_api/manager/group/delete/' + id, + url: '/manager_api/manager/group/delete/' + id, method: 'post' }), update: (group) => request({ - url: '/device_api/manager/group/update', + url: '/manager_api/manager/group/update', method: 'post', data: group }), list: (group) => request({ - url: '/device_api/manager/group/list', + url: '/manager_api/manager/group/list', method: 'post', data: group }) @@ -146,21 +146,21 @@ export const groupApi = { export const deviceApi = { add: (device) => request({ - url: '/device_api/manager/device/add', + url: '/manager_api/manager/device/add', method: 'post', data: device }), delete: (id) => request({ - url: '/device_api/manager/device/delete/' + id, + url: '/manager_api/manager/device/delete/' + id, method: 'post' }), update: (device) => request({ - url: '/device_api/manager/device/update', + url: '/manager_api/manager/device/update', method: 'post', data: device }), list: (device) => request({ - url: '/device_api/manager/device/list', + url: '/manager_api/manager/device/list', method: 'post', data: device }) @@ -168,21 +168,21 @@ export const deviceApi = { export const pointApi = { add: (point) => request({ - url: '/device_api/manager/point/add', + url: '/manager_api/manager/point/add', method: 'post', data: point }), delete: (id) => request({ - url: '/device_api/manager/point/delete/' + id, + url: '/manager_api/manager/point/delete/' + id, method: 'post' }), update: (point) => request({ - url: '/device_api/manager/point/update', + url: '/manager_api/manager/point/update', method: 'post', data: point }), list: (point) => request({ - url: '/device_api/manager/point/list', + url: '/manager_api/manager/point/list', method: 'post', data: point }) @@ -190,31 +190,31 @@ export const pointApi = { export const dictionaryApi = { driverDictionary: () => request({ - url: '/device_api/manager/dictionary/driver', + url: '/manager_api/manager/dictionary/driver', method: 'get' }), profileDictionary: () => request({ - url: '/device_api/manager/dictionary/profile', + url: '/manager_api/manager/dictionary/profile', method: 'get' }), driverAttributeDictionary: () => request({ - url: '/device_api/manager/dictionary/driverAttribute', + url: '/manager_api/manager/dictionary/driverAttribute', method: 'get' }), pointAttributeDictionary: () => request({ - url: '/device_api/manager/dictionary/pointAttribute', + url: '/manager_api/manager/dictionary/pointAttribute', method: 'get' }), groupDictionary: () => request({ - url: '/device_api/manager/dictionary/group', + url: '/manager_api/manager/dictionary/group', method: 'get' }), deviceDictionary: (parent) => request({ - url: '/device_api/manager/dictionary/device/' + parent, + url: '/manager_api/manager/dictionary/device/' + parent, method: 'get' }), pointDictionary: (parent) => request({ - url: '/device_api/manager/dictionary/point/' + parent, + url: '/manager_api/manager/dictionary/point/' + parent, method: 'get' }) }; diff --git a/src/router/views/index.js b/src/router/views/index.js index fcd38e2..162ffaf 100644 --- a/src/router/views/index.js +++ b/src/router/views/index.js @@ -77,19 +77,12 @@ export default [ }, component: () => import('@/views/point/PointInfo') }, { - name: 'now', - path: '/now', + name: 'pointValue', + path: '/pointValue', meta: { isAuth: true }, - component: () => import('@/views/Now') - }, { - name: 'history', - path: '/history', - meta: { - isAuth: true - }, - component: () => import('@/views/History') + component: () => import('@/views/point/PointValue') }, { name: 'alarm', path: '/alarm', diff --git a/src/views/History.vue b/src/views/History.vue deleted file mode 100644 index 3fa2807..0000000 --- a/src/views/History.vue +++ /dev/null @@ -1,5 +0,0 @@ - diff --git a/src/views/Now.vue b/src/views/Now.vue deleted file mode 100644 index e8869ec..0000000 --- a/src/views/Now.vue +++ /dev/null @@ -1,109 +0,0 @@ - - - diff --git a/src/views/layout/Layout.vue b/src/views/layout/Layout.vue index 22849c0..1ade20b 100644 --- a/src/views/layout/Layout.vue +++ b/src/views/layout/Layout.vue @@ -19,6 +19,7 @@ 分组 设备 位号配置 + 历史值