diff --git a/public/config/project.config.json b/public/config/project.config.json index fb545f3..206a4f9 100644 --- a/public/config/project.config.json +++ b/public/config/project.config.json @@ -2,7 +2,8 @@ "title": "视频监控系统", "subtitle": "", "theme":"blue", - "baseUrl": "http://111.198.10.15:21610/", + "uri":"http://111.198.10.15:21610/", + "baseUrl": "http://111.198.10.15:21608/", "wsUrl": "ws://192.168.10.6:5903/websocket/", "icsUrl": "ws://127.0.0.1:1234", "mainPage": "http://111.198.10.15:11404/dcms/#", diff --git a/public/config/project.config.json b/public/config/project.config.json index fb545f3..206a4f9 100644 --- a/public/config/project.config.json +++ b/public/config/project.config.json @@ -2,7 +2,8 @@ "title": "视频监控系统", "subtitle": "", "theme":"blue", - "baseUrl": "http://111.198.10.15:21610/", + "uri":"http://111.198.10.15:21610/", + "baseUrl": "http://111.198.10.15:21608/", "wsUrl": "ws://192.168.10.6:5903/websocket/", "icsUrl": "ws://127.0.0.1:1234", "mainPage": "http://111.198.10.15:11404/dcms/#", diff --git a/src/api/device.js b/src/api/device.js index 0ba70ff..e9a596a 100644 --- a/src/api/device.js +++ b/src/api/device.js @@ -3,6 +3,7 @@ */ import request from '@/utils/request' +// 设备分页 export function getDeviceListPage(params) { return request({ url: 'deviceInfo/listPage', @@ -11,6 +12,7 @@ }) } +// 设备不分页 export function getDeviceList(data) { return request({ url: 'deviceInfo/list', @@ -19,6 +21,15 @@ }) } +// 设备在线离线数量 +export function offlineCount(params) { + return request({ + url: 'deviceInfo/offlineCount', + method: 'get', + params + }) +} + export function addDevice(data) { return request({ url: 'deviceInfo/add', diff --git a/public/config/project.config.json b/public/config/project.config.json index fb545f3..206a4f9 100644 --- a/public/config/project.config.json +++ b/public/config/project.config.json @@ -2,7 +2,8 @@ "title": "视频监控系统", "subtitle": "", "theme":"blue", - "baseUrl": "http://111.198.10.15:21610/", + "uri":"http://111.198.10.15:21610/", + "baseUrl": "http://111.198.10.15:21608/", "wsUrl": "ws://192.168.10.6:5903/websocket/", "icsUrl": "ws://127.0.0.1:1234", "mainPage": "http://111.198.10.15:11404/dcms/#", diff --git a/src/api/device.js b/src/api/device.js index 0ba70ff..e9a596a 100644 --- a/src/api/device.js +++ b/src/api/device.js @@ -3,6 +3,7 @@ */ import request from '@/utils/request' +// 设备分页 export function getDeviceListPage(params) { return request({ url: 'deviceInfo/listPage', @@ -11,6 +12,7 @@ }) } +// 设备不分页 export function getDeviceList(data) { return request({ url: 'deviceInfo/list', @@ -19,6 +21,15 @@ }) } +// 设备在线离线数量 +export function offlineCount(params) { + return request({ + url: 'deviceInfo/offlineCount', + method: 'get', + params + }) +} + export function addDevice(data) { return request({ url: 'deviceInfo/add', diff --git a/src/assets/global_images/offline.png b/src/assets/global_images/offline.png new file mode 100644 index 0000000..7948d43 --- /dev/null +++ b/src/assets/global_images/offline.png Binary files differ diff --git a/public/config/project.config.json b/public/config/project.config.json index fb545f3..206a4f9 100644 --- a/public/config/project.config.json +++ b/public/config/project.config.json @@ -2,7 +2,8 @@ "title": "视频监控系统", "subtitle": "", "theme":"blue", - "baseUrl": "http://111.198.10.15:21610/", + "uri":"http://111.198.10.15:21610/", + "baseUrl": "http://111.198.10.15:21608/", "wsUrl": "ws://192.168.10.6:5903/websocket/", "icsUrl": "ws://127.0.0.1:1234", "mainPage": "http://111.198.10.15:11404/dcms/#", diff --git a/src/api/device.js b/src/api/device.js index 0ba70ff..e9a596a 100644 --- a/src/api/device.js +++ b/src/api/device.js @@ -3,6 +3,7 @@ */ import request from '@/utils/request' +// 设备分页 export function getDeviceListPage(params) { return request({ url: 'deviceInfo/listPage', @@ -11,6 +12,7 @@ }) } +// 设备不分页 export function getDeviceList(data) { return request({ url: 'deviceInfo/list', @@ -19,6 +21,15 @@ }) } +// 设备在线离线数量 +export function offlineCount(params) { + return request({ + url: 'deviceInfo/offlineCount', + method: 'get', + params + }) +} + export function addDevice(data) { return request({ url: 'deviceInfo/add', diff --git a/src/assets/global_images/offline.png b/src/assets/global_images/offline.png new file mode 100644 index 0000000..7948d43 --- /dev/null +++ b/src/assets/global_images/offline.png Binary files differ diff --git a/src/assets/global_images/online.png b/src/assets/global_images/online.png new file mode 100644 index 0000000..298bd1b --- /dev/null +++ b/src/assets/global_images/online.png Binary files differ diff --git a/public/config/project.config.json b/public/config/project.config.json index fb545f3..206a4f9 100644 --- a/public/config/project.config.json +++ b/public/config/project.config.json @@ -2,7 +2,8 @@ "title": "视频监控系统", "subtitle": "", "theme":"blue", - "baseUrl": "http://111.198.10.15:21610/", + "uri":"http://111.198.10.15:21610/", + "baseUrl": "http://111.198.10.15:21608/", "wsUrl": "ws://192.168.10.6:5903/websocket/", "icsUrl": "ws://127.0.0.1:1234", "mainPage": "http://111.198.10.15:11404/dcms/#", diff --git a/src/api/device.js b/src/api/device.js index 0ba70ff..e9a596a 100644 --- a/src/api/device.js +++ b/src/api/device.js @@ -3,6 +3,7 @@ */ import request from '@/utils/request' +// 设备分页 export function getDeviceListPage(params) { return request({ url: 'deviceInfo/listPage', @@ -11,6 +12,7 @@ }) } +// 设备不分页 export function getDeviceList(data) { return request({ url: 'deviceInfo/list', @@ -19,6 +21,15 @@ }) } +// 设备在线离线数量 +export function offlineCount(params) { + return request({ + url: 'deviceInfo/offlineCount', + method: 'get', + params + }) +} + export function addDevice(data) { return request({ url: 'deviceInfo/add', diff --git a/src/assets/global_images/offline.png b/src/assets/global_images/offline.png new file mode 100644 index 0000000..7948d43 --- /dev/null +++ b/src/assets/global_images/offline.png Binary files differ diff --git a/src/assets/global_images/online.png b/src/assets/global_images/online.png new file mode 100644 index 0000000..298bd1b --- /dev/null +++ b/src/assets/global_images/online.png Binary files differ diff --git a/src/views/device/deviceList.vue b/src/views/device/deviceList.vue index b5343de..daaf5c7 100644 --- a/src/views/device/deviceList.vue +++ b/src/views/device/deviceList.vue @@ -29,7 +29,7 @@ :value="item.value"/> - + - + - + + + + + + + + + + @@ -149,7 +159,9 @@ position: '', isKeyArea: '', detailLocation: '', - remarks: '' + remarks: '', + longitude: '', + latitude: '', }, // 表单 typeList: [], statusList: [], @@ -172,7 +184,9 @@ detailLocation: [{ required: true, message: '详细位置不能为空', trigger: ['blur', 'change'] }], position: [{ required: true, message: '所在楼栋不能为空', trigger: ['blur', 'change'] }], area: [{ required: true, message: '楼层不能为空', trigger: ['blur', 'change'] }], - ip: [{ required: true, validator: validateip, trigger: ['blur', 'change'] }] + ip: [{ required: true, validator: validateip, trigger: ['blur', 'change'] }], + longitude: [{ required: true, message: '经度不能为空', trigger: ['blur', 'change'] }], + latitude: [{ required: true, message: '纬度不能为空', trigger: ['blur', 'change'] }], } // 前端校验规则 } }, diff --git a/public/config/project.config.json b/public/config/project.config.json index fb545f3..206a4f9 100644 --- a/public/config/project.config.json +++ b/public/config/project.config.json @@ -2,7 +2,8 @@ "title": "视频监控系统", "subtitle": "", "theme":"blue", - "baseUrl": "http://111.198.10.15:21610/", + "uri":"http://111.198.10.15:21610/", + "baseUrl": "http://111.198.10.15:21608/", "wsUrl": "ws://192.168.10.6:5903/websocket/", "icsUrl": "ws://127.0.0.1:1234", "mainPage": "http://111.198.10.15:11404/dcms/#", diff --git a/src/api/device.js b/src/api/device.js index 0ba70ff..e9a596a 100644 --- a/src/api/device.js +++ b/src/api/device.js @@ -3,6 +3,7 @@ */ import request from '@/utils/request' +// 设备分页 export function getDeviceListPage(params) { return request({ url: 'deviceInfo/listPage', @@ -11,6 +12,7 @@ }) } +// 设备不分页 export function getDeviceList(data) { return request({ url: 'deviceInfo/list', @@ -19,6 +21,15 @@ }) } +// 设备在线离线数量 +export function offlineCount(params) { + return request({ + url: 'deviceInfo/offlineCount', + method: 'get', + params + }) +} + export function addDevice(data) { return request({ url: 'deviceInfo/add', diff --git a/src/assets/global_images/offline.png b/src/assets/global_images/offline.png new file mode 100644 index 0000000..7948d43 --- /dev/null +++ b/src/assets/global_images/offline.png Binary files differ diff --git a/src/assets/global_images/online.png b/src/assets/global_images/online.png new file mode 100644 index 0000000..298bd1b --- /dev/null +++ b/src/assets/global_images/online.png Binary files differ diff --git a/src/views/device/deviceList.vue b/src/views/device/deviceList.vue index b5343de..daaf5c7 100644 --- a/src/views/device/deviceList.vue +++ b/src/views/device/deviceList.vue @@ -29,7 +29,7 @@ :value="item.value"/> - + - + + + + + + + + + + @@ -149,7 +159,9 @@ position: '', isKeyArea: '', detailLocation: '', - remarks: '' + remarks: '', + longitude: '', + latitude: '', }, // 表单 typeList: [], statusList: [], @@ -172,7 +184,9 @@ detailLocation: [{ required: true, message: '详细位置不能为空', trigger: ['blur', 'change'] }], position: [{ required: true, message: '所在楼栋不能为空', trigger: ['blur', 'change'] }], area: [{ required: true, message: '楼层不能为空', trigger: ['blur', 'change'] }], - ip: [{ required: true, validator: validateip, trigger: ['blur', 'change'] }] + ip: [{ required: true, validator: validateip, trigger: ['blur', 'change'] }], + longitude: [{ required: true, message: '经度不能为空', trigger: ['blur', 'change'] }], + latitude: [{ required: true, message: '纬度不能为空', trigger: ['blur', 'change'] }], } // 前端校验规则 } }, diff --git a/src/views/overview/listoverview.vue b/src/views/overview/listoverview.vue index ac3a88b..764e2c1 100644 --- a/src/views/overview/listoverview.vue +++ b/src/views/overview/listoverview.vue @@ -3,14 +3,14 @@
- - + + - - + + - - + + - + 查 询
-
+
@@ -53,6 +53,19 @@ + + +
@@ -61,45 +74,28 @@
- + - - - - - - -
- -