diff --git a/public/static/webCtrl/hk/demo_embedded_for_iframe.html b/public/static/webCtrl/hk/demo_embedded_for_iframe.html index 3a0be10..5c18f74 100644 --- a/public/static/webCtrl/hk/demo_embedded_for_iframe.html +++ b/public/static/webCtrl/hk/demo_embedded_for_iframe.html @@ -107,6 +107,13 @@ } }); + function destoryPlugin() { + if (oWebControl != null){ + oWebControl.JS_HideWnd(); // 先让窗口隐藏,规避可能的插件窗口滞后于浏览器消失问题 + oWebControl.JS_Disconnect().then(function(){}, function() {}); + } + } + function hide(){ oWebControl.JS_HideWnd(); }; diff --git a/public/static/webCtrl/hk/demo_embedded_for_iframe.html b/public/static/webCtrl/hk/demo_embedded_for_iframe.html index 3a0be10..5c18f74 100644 --- a/public/static/webCtrl/hk/demo_embedded_for_iframe.html +++ b/public/static/webCtrl/hk/demo_embedded_for_iframe.html @@ -107,6 +107,13 @@ } }); + function destoryPlugin() { + if (oWebControl != null){ + oWebControl.JS_HideWnd(); // 先让窗口隐藏,规避可能的插件窗口滞后于浏览器消失问题 + oWebControl.JS_Disconnect().then(function(){}, function() {}); + } + } + function hide(){ oWebControl.JS_HideWnd(); }; diff --git a/src/App.vue b/src/App.vue index d9046c1..b8c5c1a 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,5 +1,5 @@ diff --git a/public/static/webCtrl/hk/demo_embedded_for_iframe.html b/public/static/webCtrl/hk/demo_embedded_for_iframe.html index 3a0be10..5c18f74 100644 --- a/public/static/webCtrl/hk/demo_embedded_for_iframe.html +++ b/public/static/webCtrl/hk/demo_embedded_for_iframe.html @@ -107,6 +107,13 @@ } }); + function destoryPlugin() { + if (oWebControl != null){ + oWebControl.JS_HideWnd(); // 先让窗口隐藏,规避可能的插件窗口滞后于浏览器消失问题 + oWebControl.JS_Disconnect().then(function(){}, function() {}); + } + } + function hide(){ oWebControl.JS_HideWnd(); }; diff --git a/src/App.vue b/src/App.vue index d9046c1..b8c5c1a 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,5 +1,5 @@ diff --git a/src/api/device.js b/src/api/device.js index 0ba70ff..8d6c46b 100644 --- a/src/api/device.js +++ b/src/api/device.js @@ -159,3 +159,21 @@ data }) } + +export function getSwitchStatus(data) { + return request({ + url: '/cockpit/gateLinkage/switchStatus', + method: 'get' + }) +} + +export function gateLinkageSwitch(controlSwitch) { + return request({ + url: '/cockpit/gateLinkage/switch', + method: 'get', + params: { + controlSwitch + } + }) +} + diff --git a/public/static/webCtrl/hk/demo_embedded_for_iframe.html b/public/static/webCtrl/hk/demo_embedded_for_iframe.html index 3a0be10..5c18f74 100644 --- a/public/static/webCtrl/hk/demo_embedded_for_iframe.html +++ b/public/static/webCtrl/hk/demo_embedded_for_iframe.html @@ -107,6 +107,13 @@ } }); + function destoryPlugin() { + if (oWebControl != null){ + oWebControl.JS_HideWnd(); // 先让窗口隐藏,规避可能的插件窗口滞后于浏览器消失问题 + oWebControl.JS_Disconnect().then(function(){}, function() {}); + } + } + function hide(){ oWebControl.JS_HideWnd(); }; diff --git a/src/App.vue b/src/App.vue index d9046c1..b8c5c1a 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,5 +1,5 @@ diff --git a/src/api/device.js b/src/api/device.js index 0ba70ff..8d6c46b 100644 --- a/src/api/device.js +++ b/src/api/device.js @@ -159,3 +159,21 @@ data }) } + +export function getSwitchStatus(data) { + return request({ + url: '/cockpit/gateLinkage/switchStatus', + method: 'get' + }) +} + +export function gateLinkageSwitch(controlSwitch) { + return request({ + url: '/cockpit/gateLinkage/switch', + method: 'get', + params: { + controlSwitch + } + }) +} + diff --git a/src/api/person.js b/src/api/person.js index 8a79c27..0c2a0ff 100644 --- a/src/api/person.js +++ b/src/api/person.js @@ -21,6 +21,14 @@ }) } +export function getStaffOnList(params) { + return request({ + url: '/cockpit/securityStaff/onList', + method: 'GET', + params + }) +} + export function addStaff(data) { return request({ url: 'staffInfo/add', diff --git a/public/static/webCtrl/hk/demo_embedded_for_iframe.html b/public/static/webCtrl/hk/demo_embedded_for_iframe.html index 3a0be10..5c18f74 100644 --- a/public/static/webCtrl/hk/demo_embedded_for_iframe.html +++ b/public/static/webCtrl/hk/demo_embedded_for_iframe.html @@ -107,6 +107,13 @@ } }); + function destoryPlugin() { + if (oWebControl != null){ + oWebControl.JS_HideWnd(); // 先让窗口隐藏,规避可能的插件窗口滞后于浏览器消失问题 + oWebControl.JS_Disconnect().then(function(){}, function() {}); + } + } + function hide(){ oWebControl.JS_HideWnd(); }; diff --git a/src/App.vue b/src/App.vue index d9046c1..b8c5c1a 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,5 +1,5 @@ diff --git a/src/api/device.js b/src/api/device.js index 0ba70ff..8d6c46b 100644 --- a/src/api/device.js +++ b/src/api/device.js @@ -159,3 +159,21 @@ data }) } + +export function getSwitchStatus(data) { + return request({ + url: '/cockpit/gateLinkage/switchStatus', + method: 'get' + }) +} + +export function gateLinkageSwitch(controlSwitch) { + return request({ + url: '/cockpit/gateLinkage/switch', + method: 'get', + params: { + controlSwitch + } + }) +} + diff --git a/src/api/person.js b/src/api/person.js index 8a79c27..0c2a0ff 100644 --- a/src/api/person.js +++ b/src/api/person.js @@ -21,6 +21,14 @@ }) } +export function getStaffOnList(params) { + return request({ + url: '/cockpit/securityStaff/onList', + method: 'GET', + params + }) +} + export function addStaff(data) { return request({ url: 'staffInfo/add', diff --git a/src/api/pop.js b/src/api/pop.js index 01ddde7..6fa7381 100644 --- a/src/api/pop.js +++ b/src/api/pop.js @@ -72,6 +72,39 @@ }) } +export function baoanStatistics() { + return request({ + url: '/cockpit/securityStaff/statistics', + method: 'get', + data: {} + }) +} + +export function visitorStatistics() { + return request({ + url: 'cockpit/visitor/statistics', + method: 'get', + data: {} + }) +} + +export function caseTodayStatistics() { + return request({ + url: 'cockpit/case/todayStatistics', + method: 'get', + data: {} + }) +} + +export function casePieStatistics(params) { + return request({ + url: 'cockpit/caseType/statisticsByTime', + method: 'get', + data: params, + params + }) +} + // 安防事件频次因数组件 export function securityFrequency() { return request({ @@ -158,3 +191,27 @@ method: 'get' }) } + +export function cameraTypeStatistics() { + return request({ + url: '/cockpit/camera/typeStatistics', + method: 'get' + }) +} + +export function deviceStatistics(devType) { + return request({ + url: '/cockpit/device/statistics', + method: 'post', + data: { + devType + } + }) +} + +export function buildPeopleNumber() { + return request({ + url: '/cockpit/build/peopleNumber', + method: 'get' + }) +} diff --git a/public/static/webCtrl/hk/demo_embedded_for_iframe.html b/public/static/webCtrl/hk/demo_embedded_for_iframe.html index 3a0be10..5c18f74 100644 --- a/public/static/webCtrl/hk/demo_embedded_for_iframe.html +++ b/public/static/webCtrl/hk/demo_embedded_for_iframe.html @@ -107,6 +107,13 @@ } }); + function destoryPlugin() { + if (oWebControl != null){ + oWebControl.JS_HideWnd(); // 先让窗口隐藏,规避可能的插件窗口滞后于浏览器消失问题 + oWebControl.JS_Disconnect().then(function(){}, function() {}); + } + } + function hide(){ oWebControl.JS_HideWnd(); }; diff --git a/src/App.vue b/src/App.vue index d9046c1..b8c5c1a 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,5 +1,5 @@ diff --git a/src/api/device.js b/src/api/device.js index 0ba70ff..8d6c46b 100644 --- a/src/api/device.js +++ b/src/api/device.js @@ -159,3 +159,21 @@ data }) } + +export function getSwitchStatus(data) { + return request({ + url: '/cockpit/gateLinkage/switchStatus', + method: 'get' + }) +} + +export function gateLinkageSwitch(controlSwitch) { + return request({ + url: '/cockpit/gateLinkage/switch', + method: 'get', + params: { + controlSwitch + } + }) +} + diff --git a/src/api/person.js b/src/api/person.js index 8a79c27..0c2a0ff 100644 --- a/src/api/person.js +++ b/src/api/person.js @@ -21,6 +21,14 @@ }) } +export function getStaffOnList(params) { + return request({ + url: '/cockpit/securityStaff/onList', + method: 'GET', + params + }) +} + export function addStaff(data) { return request({ url: 'staffInfo/add', diff --git a/src/api/pop.js b/src/api/pop.js index 01ddde7..6fa7381 100644 --- a/src/api/pop.js +++ b/src/api/pop.js @@ -72,6 +72,39 @@ }) } +export function baoanStatistics() { + return request({ + url: '/cockpit/securityStaff/statistics', + method: 'get', + data: {} + }) +} + +export function visitorStatistics() { + return request({ + url: 'cockpit/visitor/statistics', + method: 'get', + data: {} + }) +} + +export function caseTodayStatistics() { + return request({ + url: 'cockpit/case/todayStatistics', + method: 'get', + data: {} + }) +} + +export function casePieStatistics(params) { + return request({ + url: 'cockpit/caseType/statisticsByTime', + method: 'get', + data: params, + params + }) +} + // 安防事件频次因数组件 export function securityFrequency() { return request({ @@ -158,3 +191,27 @@ method: 'get' }) } + +export function cameraTypeStatistics() { + return request({ + url: '/cockpit/camera/typeStatistics', + method: 'get' + }) +} + +export function deviceStatistics(devType) { + return request({ + url: '/cockpit/device/statistics', + method: 'post', + data: { + devType + } + }) +} + +export function buildPeopleNumber() { + return request({ + url: '/cockpit/build/peopleNumber', + method: 'get' + }) +} diff --git a/src/components/NormalTable/index.vue b/src/components/NormalTable/index.vue index df71207..33d701a 100644 --- a/src/components/NormalTable/index.vue +++ b/src/components/NormalTable/index.vue @@ -280,37 +280,37 @@ diff --git a/public/static/webCtrl/hk/demo_embedded_for_iframe.html b/public/static/webCtrl/hk/demo_embedded_for_iframe.html index 3a0be10..5c18f74 100644 --- a/public/static/webCtrl/hk/demo_embedded_for_iframe.html +++ b/public/static/webCtrl/hk/demo_embedded_for_iframe.html @@ -107,6 +107,13 @@ } }); + function destoryPlugin() { + if (oWebControl != null){ + oWebControl.JS_HideWnd(); // 先让窗口隐藏,规避可能的插件窗口滞后于浏览器消失问题 + oWebControl.JS_Disconnect().then(function(){}, function() {}); + } + } + function hide(){ oWebControl.JS_HideWnd(); }; diff --git a/src/App.vue b/src/App.vue index d9046c1..b8c5c1a 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,5 +1,5 @@ diff --git a/src/api/device.js b/src/api/device.js index 0ba70ff..8d6c46b 100644 --- a/src/api/device.js +++ b/src/api/device.js @@ -159,3 +159,21 @@ data }) } + +export function getSwitchStatus(data) { + return request({ + url: '/cockpit/gateLinkage/switchStatus', + method: 'get' + }) +} + +export function gateLinkageSwitch(controlSwitch) { + return request({ + url: '/cockpit/gateLinkage/switch', + method: 'get', + params: { + controlSwitch + } + }) +} + diff --git a/src/api/person.js b/src/api/person.js index 8a79c27..0c2a0ff 100644 --- a/src/api/person.js +++ b/src/api/person.js @@ -21,6 +21,14 @@ }) } +export function getStaffOnList(params) { + return request({ + url: '/cockpit/securityStaff/onList', + method: 'GET', + params + }) +} + export function addStaff(data) { return request({ url: 'staffInfo/add', diff --git a/src/api/pop.js b/src/api/pop.js index 01ddde7..6fa7381 100644 --- a/src/api/pop.js +++ b/src/api/pop.js @@ -72,6 +72,39 @@ }) } +export function baoanStatistics() { + return request({ + url: '/cockpit/securityStaff/statistics', + method: 'get', + data: {} + }) +} + +export function visitorStatistics() { + return request({ + url: 'cockpit/visitor/statistics', + method: 'get', + data: {} + }) +} + +export function caseTodayStatistics() { + return request({ + url: 'cockpit/case/todayStatistics', + method: 'get', + data: {} + }) +} + +export function casePieStatistics(params) { + return request({ + url: 'cockpit/caseType/statisticsByTime', + method: 'get', + data: params, + params + }) +} + // 安防事件频次因数组件 export function securityFrequency() { return request({ @@ -158,3 +191,27 @@ method: 'get' }) } + +export function cameraTypeStatistics() { + return request({ + url: '/cockpit/camera/typeStatistics', + method: 'get' + }) +} + +export function deviceStatistics(devType) { + return request({ + url: '/cockpit/device/statistics', + method: 'post', + data: { + devType + } + }) +} + +export function buildPeopleNumber() { + return request({ + url: '/cockpit/build/peopleNumber', + method: 'get' + }) +} diff --git a/src/components/NormalTable/index.vue b/src/components/NormalTable/index.vue index df71207..33d701a 100644 --- a/src/components/NormalTable/index.vue +++ b/src/components/NormalTable/index.vue @@ -280,37 +280,37 @@ diff --git a/src/views/popup/bottom.vue b/src/views/popup/bottom.vue index e3fe7e2..c95b2a1 100644 --- a/src/views/popup/bottom.vue +++ b/src/views/popup/bottom.vue @@ -1,47 +1,84 @@ diff --git a/public/static/webCtrl/hk/demo_embedded_for_iframe.html b/public/static/webCtrl/hk/demo_embedded_for_iframe.html index 3a0be10..5c18f74 100644 --- a/public/static/webCtrl/hk/demo_embedded_for_iframe.html +++ b/public/static/webCtrl/hk/demo_embedded_for_iframe.html @@ -107,6 +107,13 @@ } }); + function destoryPlugin() { + if (oWebControl != null){ + oWebControl.JS_HideWnd(); // 先让窗口隐藏,规避可能的插件窗口滞后于浏览器消失问题 + oWebControl.JS_Disconnect().then(function(){}, function() {}); + } + } + function hide(){ oWebControl.JS_HideWnd(); }; diff --git a/src/App.vue b/src/App.vue index d9046c1..b8c5c1a 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,5 +1,5 @@ diff --git a/src/api/device.js b/src/api/device.js index 0ba70ff..8d6c46b 100644 --- a/src/api/device.js +++ b/src/api/device.js @@ -159,3 +159,21 @@ data }) } + +export function getSwitchStatus(data) { + return request({ + url: '/cockpit/gateLinkage/switchStatus', + method: 'get' + }) +} + +export function gateLinkageSwitch(controlSwitch) { + return request({ + url: '/cockpit/gateLinkage/switch', + method: 'get', + params: { + controlSwitch + } + }) +} + diff --git a/src/api/person.js b/src/api/person.js index 8a79c27..0c2a0ff 100644 --- a/src/api/person.js +++ b/src/api/person.js @@ -21,6 +21,14 @@ }) } +export function getStaffOnList(params) { + return request({ + url: '/cockpit/securityStaff/onList', + method: 'GET', + params + }) +} + export function addStaff(data) { return request({ url: 'staffInfo/add', diff --git a/src/api/pop.js b/src/api/pop.js index 01ddde7..6fa7381 100644 --- a/src/api/pop.js +++ b/src/api/pop.js @@ -72,6 +72,39 @@ }) } +export function baoanStatistics() { + return request({ + url: '/cockpit/securityStaff/statistics', + method: 'get', + data: {} + }) +} + +export function visitorStatistics() { + return request({ + url: 'cockpit/visitor/statistics', + method: 'get', + data: {} + }) +} + +export function caseTodayStatistics() { + return request({ + url: 'cockpit/case/todayStatistics', + method: 'get', + data: {} + }) +} + +export function casePieStatistics(params) { + return request({ + url: 'cockpit/caseType/statisticsByTime', + method: 'get', + data: params, + params + }) +} + // 安防事件频次因数组件 export function securityFrequency() { return request({ @@ -158,3 +191,27 @@ method: 'get' }) } + +export function cameraTypeStatistics() { + return request({ + url: '/cockpit/camera/typeStatistics', + method: 'get' + }) +} + +export function deviceStatistics(devType) { + return request({ + url: '/cockpit/device/statistics', + method: 'post', + data: { + devType + } + }) +} + +export function buildPeopleNumber() { + return request({ + url: '/cockpit/build/peopleNumber', + method: 'get' + }) +} diff --git a/src/components/NormalTable/index.vue b/src/components/NormalTable/index.vue index df71207..33d701a 100644 --- a/src/components/NormalTable/index.vue +++ b/src/components/NormalTable/index.vue @@ -280,37 +280,37 @@ diff --git a/src/views/popup/bottom.vue b/src/views/popup/bottom.vue index e3fe7e2..c95b2a1 100644 --- a/src/views/popup/bottom.vue +++ b/src/views/popup/bottom.vue @@ -1,47 +1,84 @@ diff --git a/src/views/popup/components/caseTable.vue b/src/views/popup/components/caseTable.vue index 95aa677..c9708d7 100644 --- a/src/views/popup/components/caseTable.vue +++ b/src/views/popup/components/caseTable.vue @@ -1,5 +1,9 @@