diff --git a/src/api/area.js b/src/api/area.js index e8217a4..9a17cfa 100644 --- a/src/api/area.js +++ b/src/api/area.js @@ -75,6 +75,7 @@ }) } +// 查询区域详情 export function detailRegion(id) { return request({ url: 'region/detail/' + id, @@ -93,3 +94,28 @@ params }) } + +// 查询区域名称列表 +export function getAreaNameList(params) { + return request({ + url: '/region/getAreaNameList', + method: 'post', + params + }) +} + +// 根据当前子系统返回areaType +export function getAreaTypeBySubSystem(system) { + switch (system.code) { + case 'door': + return '1' + case 'fence': + return '2' + case 'region': + return '3' + case 'key': + return '4' + default: + return '' + } +} diff --git a/src/api/area.js b/src/api/area.js index e8217a4..9a17cfa 100644 --- a/src/api/area.js +++ b/src/api/area.js @@ -75,6 +75,7 @@ }) } +// 查询区域详情 export function detailRegion(id) { return request({ url: 'region/detail/' + id, @@ -93,3 +94,28 @@ params }) } + +// 查询区域名称列表 +export function getAreaNameList(params) { + return request({ + url: '/region/getAreaNameList', + method: 'post', + params + }) +} + +// 根据当前子系统返回areaType +export function getAreaTypeBySubSystem(system) { + switch (system.code) { + case 'door': + return '1' + case 'fence': + return '2' + case 'region': + return '3' + case 'key': + return '4' + default: + return '' + } +} diff --git a/src/api/statistics.js b/src/api/statistics.js index 44e089f..454c11c 100644 --- a/src/api/statistics.js +++ b/src/api/statistics.js @@ -20,3 +20,20 @@ }) } +// 各营门人员出入次数 +export function personInOutCount(params) { + return request({ + url: '/statistics/personPassCount', + method: 'get', + params + }) +} + +// 各营门车辆出入次数 +export function carInOutCount(params) { + return request({ + url: '/statistics/carPassCount', + method: 'get', + params + }) +} diff --git a/src/api/area.js b/src/api/area.js index e8217a4..9a17cfa 100644 --- a/src/api/area.js +++ b/src/api/area.js @@ -75,6 +75,7 @@ }) } +// 查询区域详情 export function detailRegion(id) { return request({ url: 'region/detail/' + id, @@ -93,3 +94,28 @@ params }) } + +// 查询区域名称列表 +export function getAreaNameList(params) { + return request({ + url: '/region/getAreaNameList', + method: 'post', + params + }) +} + +// 根据当前子系统返回areaType +export function getAreaTypeBySubSystem(system) { + switch (system.code) { + case 'door': + return '1' + case 'fence': + return '2' + case 'region': + return '3' + case 'key': + return '4' + default: + return '' + } +} diff --git a/src/api/statistics.js b/src/api/statistics.js index 44e089f..454c11c 100644 --- a/src/api/statistics.js +++ b/src/api/statistics.js @@ -20,3 +20,20 @@ }) } +// 各营门人员出入次数 +export function personInOutCount(params) { + return request({ + url: '/statistics/personPassCount', + method: 'get', + params + }) +} + +// 各营门车辆出入次数 +export function carInOutCount(params) { + return request({ + url: '/statistics/carPassCount', + method: 'get', + params + }) +} diff --git a/src/router/modules/doorSys.js b/src/router/modules/doorSys.js index 5d734c2..39b783b 100644 --- a/src/router/modules/doorSys.js +++ b/src/router/modules/doorSys.js @@ -191,6 +191,12 @@ name: 'InOutCar', component: () => import('@/views/statistics/inOutCar'), meta: { title: '车辆进出记录', icon: '', permission: ['/statistics/inOutCar'], keepAlive: true } + }, + { + path: '/statistics/doorCount', + name: 'DoorCount', + component: () => import('@/views/statistics/doorCount'), + meta: { title: '营门出入次数统计', icon: '', permission: ['/statistics/doorCount'], keepAlive: true } } ] }, diff --git a/src/api/area.js b/src/api/area.js index e8217a4..9a17cfa 100644 --- a/src/api/area.js +++ b/src/api/area.js @@ -75,6 +75,7 @@ }) } +// 查询区域详情 export function detailRegion(id) { return request({ url: 'region/detail/' + id, @@ -93,3 +94,28 @@ params }) } + +// 查询区域名称列表 +export function getAreaNameList(params) { + return request({ + url: '/region/getAreaNameList', + method: 'post', + params + }) +} + +// 根据当前子系统返回areaType +export function getAreaTypeBySubSystem(system) { + switch (system.code) { + case 'door': + return '1' + case 'fence': + return '2' + case 'region': + return '3' + case 'key': + return '4' + default: + return '' + } +} diff --git a/src/api/statistics.js b/src/api/statistics.js index 44e089f..454c11c 100644 --- a/src/api/statistics.js +++ b/src/api/statistics.js @@ -20,3 +20,20 @@ }) } +// 各营门人员出入次数 +export function personInOutCount(params) { + return request({ + url: '/statistics/personPassCount', + method: 'get', + params + }) +} + +// 各营门车辆出入次数 +export function carInOutCount(params) { + return request({ + url: '/statistics/carPassCount', + method: 'get', + params + }) +} diff --git a/src/router/modules/doorSys.js b/src/router/modules/doorSys.js index 5d734c2..39b783b 100644 --- a/src/router/modules/doorSys.js +++ b/src/router/modules/doorSys.js @@ -191,6 +191,12 @@ name: 'InOutCar', component: () => import('@/views/statistics/inOutCar'), meta: { title: '车辆进出记录', icon: '', permission: ['/statistics/inOutCar'], keepAlive: true } + }, + { + path: '/statistics/doorCount', + name: 'DoorCount', + component: () => import('@/views/statistics/doorCount'), + meta: { title: '营门出入次数统计', icon: '', permission: ['/statistics/doorCount'], keepAlive: true } } ] }, diff --git a/src/views/statistics/doorCount.vue b/src/views/statistics/doorCount.vue new file mode 100644 index 0000000..45eaed7 --- /dev/null +++ b/src/views/statistics/doorCount.vue @@ -0,0 +1,364 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +