diff --git a/src/api/allDict.js b/src/api/allDict.js index 389c2b2..c567eb2 100644 --- a/src/api/allDict.js +++ b/src/api/allDict.js @@ -28,6 +28,15 @@ }) } +// 车辆类别 +export function getCarType(params) { + return request({ + url: '/dict/code/carType', + method: 'get', + params + }) +} + // 设备类型 export function getDeviceType(params) { return request({ @@ -52,3 +61,11 @@ method: 'get' }) } + +// 进出园区 +export function getInOutType() { + return request({ + url: '/dict/code/inOut', + method: 'get' + }) +} diff --git a/src/api/allDict.js b/src/api/allDict.js index 389c2b2..c567eb2 100644 --- a/src/api/allDict.js +++ b/src/api/allDict.js @@ -28,6 +28,15 @@ }) } +// 车辆类别 +export function getCarType(params) { + return request({ + url: '/dict/code/carType', + method: 'get', + params + }) +} + // 设备类型 export function getDeviceType(params) { return request({ @@ -52,3 +61,11 @@ method: 'get' }) } + +// 进出园区 +export function getInOutType() { + return request({ + url: '/dict/code/inOut', + method: 'get' + }) +} diff --git a/src/api/car.js b/src/api/car.js index cf638b5..fc55938 100644 --- a/src/api/car.js +++ b/src/api/car.js @@ -1,5 +1,5 @@ import request from '@/utils/request' -import qs from 'qs' +// import qs from 'qs' // 分页查询车辆列表 export function getCarList(params) { diff --git a/src/api/allDict.js b/src/api/allDict.js index 389c2b2..c567eb2 100644 --- a/src/api/allDict.js +++ b/src/api/allDict.js @@ -28,6 +28,15 @@ }) } +// 车辆类别 +export function getCarType(params) { + return request({ + url: '/dict/code/carType', + method: 'get', + params + }) +} + // 设备类型 export function getDeviceType(params) { return request({ @@ -52,3 +61,11 @@ method: 'get' }) } + +// 进出园区 +export function getInOutType() { + return request({ + url: '/dict/code/inOut', + method: 'get' + }) +} diff --git a/src/api/car.js b/src/api/car.js index cf638b5..fc55938 100644 --- a/src/api/car.js +++ b/src/api/car.js @@ -1,5 +1,5 @@ import request from '@/utils/request' -import qs from 'qs' +// import qs from 'qs' // 分页查询车辆列表 export function getCarList(params) { diff --git a/src/api/device.js b/src/api/device.js index b3a3f84..4cf4c36 100644 --- a/src/api/device.js +++ b/src/api/device.js @@ -2,7 +2,7 @@ * 设备管理接口 */ import request from '@/utils/request' -import qs from 'qs' +// import qs from 'qs' // 分页查询设备列表 export function getDeviceList(params) { diff --git a/src/api/allDict.js b/src/api/allDict.js index 389c2b2..c567eb2 100644 --- a/src/api/allDict.js +++ b/src/api/allDict.js @@ -28,6 +28,15 @@ }) } +// 车辆类别 +export function getCarType(params) { + return request({ + url: '/dict/code/carType', + method: 'get', + params + }) +} + // 设备类型 export function getDeviceType(params) { return request({ @@ -52,3 +61,11 @@ method: 'get' }) } + +// 进出园区 +export function getInOutType() { + return request({ + url: '/dict/code/inOut', + method: 'get' + }) +} diff --git a/src/api/car.js b/src/api/car.js index cf638b5..fc55938 100644 --- a/src/api/car.js +++ b/src/api/car.js @@ -1,5 +1,5 @@ import request from '@/utils/request' -import qs from 'qs' +// import qs from 'qs' // 分页查询车辆列表 export function getCarList(params) { diff --git a/src/api/device.js b/src/api/device.js index b3a3f84..4cf4c36 100644 --- a/src/api/device.js +++ b/src/api/device.js @@ -2,7 +2,7 @@ * 设备管理接口 */ import request from '@/utils/request' -import qs from 'qs' +// import qs from 'qs' // 分页查询设备列表 export function getDeviceList(params) { diff --git a/src/api/statistics.js b/src/api/statistics.js new file mode 100644 index 0000000..44e089f --- /dev/null +++ b/src/api/statistics.js @@ -0,0 +1,22 @@ +/** + * 数据查询接口 + */ +import request from '@/utils/request' +// import qs from 'qs' + +export function personInOutRecord(params) { + return request({ + url: '/statistics/personListPage', + method: 'get', + params + }) +} + +export function carInOutRecord(params) { + return request({ + url: '/statistics/carListPage', + method: 'get', + params + }) +} + diff --git a/src/api/allDict.js b/src/api/allDict.js index 389c2b2..c567eb2 100644 --- a/src/api/allDict.js +++ b/src/api/allDict.js @@ -28,6 +28,15 @@ }) } +// 车辆类别 +export function getCarType(params) { + return request({ + url: '/dict/code/carType', + method: 'get', + params + }) +} + // 设备类型 export function getDeviceType(params) { return request({ @@ -52,3 +61,11 @@ method: 'get' }) } + +// 进出园区 +export function getInOutType() { + return request({ + url: '/dict/code/inOut', + method: 'get' + }) +} diff --git a/src/api/car.js b/src/api/car.js index cf638b5..fc55938 100644 --- a/src/api/car.js +++ b/src/api/car.js @@ -1,5 +1,5 @@ import request from '@/utils/request' -import qs from 'qs' +// import qs from 'qs' // 分页查询车辆列表 export function getCarList(params) { diff --git a/src/api/device.js b/src/api/device.js index b3a3f84..4cf4c36 100644 --- a/src/api/device.js +++ b/src/api/device.js @@ -2,7 +2,7 @@ * 设备管理接口 */ import request from '@/utils/request' -import qs from 'qs' +// import qs from 'qs' // 分页查询设备列表 export function getDeviceList(params) { diff --git a/src/api/statistics.js b/src/api/statistics.js new file mode 100644 index 0000000..44e089f --- /dev/null +++ b/src/api/statistics.js @@ -0,0 +1,22 @@ +/** + * 数据查询接口 + */ +import request from '@/utils/request' +// import qs from 'qs' + +export function personInOutRecord(params) { + return request({ + url: '/statistics/personListPage', + method: 'get', + params + }) +} + +export function carInOutRecord(params) { + return request({ + url: '/statistics/carListPage', + method: 'get', + params + }) +} + diff --git a/src/api/visitor.js b/src/api/visitor.js index 1535eed..121d5e2 100644 --- a/src/api/visitor.js +++ b/src/api/visitor.js @@ -1,5 +1,5 @@ import request from '@/utils/request' -import qs from 'qs' +// import qs from 'qs' // 访客登记 export function addVisitorPerson(data) { diff --git a/src/api/allDict.js b/src/api/allDict.js index 389c2b2..c567eb2 100644 --- a/src/api/allDict.js +++ b/src/api/allDict.js @@ -28,6 +28,15 @@ }) } +// 车辆类别 +export function getCarType(params) { + return request({ + url: '/dict/code/carType', + method: 'get', + params + }) +} + // 设备类型 export function getDeviceType(params) { return request({ @@ -52,3 +61,11 @@ method: 'get' }) } + +// 进出园区 +export function getInOutType() { + return request({ + url: '/dict/code/inOut', + method: 'get' + }) +} diff --git a/src/api/car.js b/src/api/car.js index cf638b5..fc55938 100644 --- a/src/api/car.js +++ b/src/api/car.js @@ -1,5 +1,5 @@ import request from '@/utils/request' -import qs from 'qs' +// import qs from 'qs' // 分页查询车辆列表 export function getCarList(params) { diff --git a/src/api/device.js b/src/api/device.js index b3a3f84..4cf4c36 100644 --- a/src/api/device.js +++ b/src/api/device.js @@ -2,7 +2,7 @@ * 设备管理接口 */ import request from '@/utils/request' -import qs from 'qs' +// import qs from 'qs' // 分页查询设备列表 export function getDeviceList(params) { diff --git a/src/api/statistics.js b/src/api/statistics.js new file mode 100644 index 0000000..44e089f --- /dev/null +++ b/src/api/statistics.js @@ -0,0 +1,22 @@ +/** + * 数据查询接口 + */ +import request from '@/utils/request' +// import qs from 'qs' + +export function personInOutRecord(params) { + return request({ + url: '/statistics/personListPage', + method: 'get', + params + }) +} + +export function carInOutRecord(params) { + return request({ + url: '/statistics/carListPage', + method: 'get', + params + }) +} + diff --git a/src/api/visitor.js b/src/api/visitor.js index 1535eed..121d5e2 100644 --- a/src/api/visitor.js +++ b/src/api/visitor.js @@ -1,5 +1,5 @@ import request from '@/utils/request' -import qs from 'qs' +// import qs from 'qs' // 访客登记 export function addVisitorPerson(data) { diff --git a/src/assets/login_images/bg-blue.png b/src/assets/login_images/bg-blue.png new file mode 100644 index 0000000..a408d14 --- /dev/null +++ b/src/assets/login_images/bg-blue.png Binary files differ diff --git a/src/api/allDict.js b/src/api/allDict.js index 389c2b2..c567eb2 100644 --- a/src/api/allDict.js +++ b/src/api/allDict.js @@ -28,6 +28,15 @@ }) } +// 车辆类别 +export function getCarType(params) { + return request({ + url: '/dict/code/carType', + method: 'get', + params + }) +} + // 设备类型 export function getDeviceType(params) { return request({ @@ -52,3 +61,11 @@ method: 'get' }) } + +// 进出园区 +export function getInOutType() { + return request({ + url: '/dict/code/inOut', + method: 'get' + }) +} diff --git a/src/api/car.js b/src/api/car.js index cf638b5..fc55938 100644 --- a/src/api/car.js +++ b/src/api/car.js @@ -1,5 +1,5 @@ import request from '@/utils/request' -import qs from 'qs' +// import qs from 'qs' // 分页查询车辆列表 export function getCarList(params) { diff --git a/src/api/device.js b/src/api/device.js index b3a3f84..4cf4c36 100644 --- a/src/api/device.js +++ b/src/api/device.js @@ -2,7 +2,7 @@ * 设备管理接口 */ import request from '@/utils/request' -import qs from 'qs' +// import qs from 'qs' // 分页查询设备列表 export function getDeviceList(params) { diff --git a/src/api/statistics.js b/src/api/statistics.js new file mode 100644 index 0000000..44e089f --- /dev/null +++ b/src/api/statistics.js @@ -0,0 +1,22 @@ +/** + * 数据查询接口 + */ +import request from '@/utils/request' +// import qs from 'qs' + +export function personInOutRecord(params) { + return request({ + url: '/statistics/personListPage', + method: 'get', + params + }) +} + +export function carInOutRecord(params) { + return request({ + url: '/statistics/carListPage', + method: 'get', + params + }) +} + diff --git a/src/api/visitor.js b/src/api/visitor.js index 1535eed..121d5e2 100644 --- a/src/api/visitor.js +++ b/src/api/visitor.js @@ -1,5 +1,5 @@ import request from '@/utils/request' -import qs from 'qs' +// import qs from 'qs' // 访客登记 export function addVisitorPerson(data) { diff --git a/src/assets/login_images/bg-blue.png b/src/assets/login_images/bg-blue.png new file mode 100644 index 0000000..a408d14 --- /dev/null +++ b/src/assets/login_images/bg-blue.png Binary files differ diff --git a/src/assets/login_images/bg1.png b/src/assets/login_images/bg1.png new file mode 100644 index 0000000..390b452 --- /dev/null +++ b/src/assets/login_images/bg1.png Binary files differ diff --git a/src/api/allDict.js b/src/api/allDict.js index 389c2b2..c567eb2 100644 --- a/src/api/allDict.js +++ b/src/api/allDict.js @@ -28,6 +28,15 @@ }) } +// 车辆类别 +export function getCarType(params) { + return request({ + url: '/dict/code/carType', + method: 'get', + params + }) +} + // 设备类型 export function getDeviceType(params) { return request({ @@ -52,3 +61,11 @@ method: 'get' }) } + +// 进出园区 +export function getInOutType() { + return request({ + url: '/dict/code/inOut', + method: 'get' + }) +} diff --git a/src/api/car.js b/src/api/car.js index cf638b5..fc55938 100644 --- a/src/api/car.js +++ b/src/api/car.js @@ -1,5 +1,5 @@ import request from '@/utils/request' -import qs from 'qs' +// import qs from 'qs' // 分页查询车辆列表 export function getCarList(params) { diff --git a/src/api/device.js b/src/api/device.js index b3a3f84..4cf4c36 100644 --- a/src/api/device.js +++ b/src/api/device.js @@ -2,7 +2,7 @@ * 设备管理接口 */ import request from '@/utils/request' -import qs from 'qs' +// import qs from 'qs' // 分页查询设备列表 export function getDeviceList(params) { diff --git a/src/api/statistics.js b/src/api/statistics.js new file mode 100644 index 0000000..44e089f --- /dev/null +++ b/src/api/statistics.js @@ -0,0 +1,22 @@ +/** + * 数据查询接口 + */ +import request from '@/utils/request' +// import qs from 'qs' + +export function personInOutRecord(params) { + return request({ + url: '/statistics/personListPage', + method: 'get', + params + }) +} + +export function carInOutRecord(params) { + return request({ + url: '/statistics/carListPage', + method: 'get', + params + }) +} + diff --git a/src/api/visitor.js b/src/api/visitor.js index 1535eed..121d5e2 100644 --- a/src/api/visitor.js +++ b/src/api/visitor.js @@ -1,5 +1,5 @@ import request from '@/utils/request' -import qs from 'qs' +// import qs from 'qs' // 访客登记 export function addVisitorPerson(data) { diff --git a/src/assets/login_images/bg-blue.png b/src/assets/login_images/bg-blue.png new file mode 100644 index 0000000..a408d14 --- /dev/null +++ b/src/assets/login_images/bg-blue.png Binary files differ diff --git a/src/assets/login_images/bg1.png b/src/assets/login_images/bg1.png new file mode 100644 index 0000000..390b452 --- /dev/null +++ b/src/assets/login_images/bg1.png Binary files differ diff --git a/src/router/modules/doorSys.js b/src/router/modules/doorSys.js index 605b851..64e8d5e 100644 --- a/src/router/modules/doorSys.js +++ b/src/router/modules/doorSys.js @@ -166,5 +166,32 @@ meta: { title: '车辆登记', icon: '', permission: ['/area/defenceList'], keepAlive: true } } ] + }, + { + path: '/statistics', + component: Layout, + redirect: '/statistics', + name: 'Statistics', + alwaysShow: true, + meta: { + title: '统计管理', + icon: 'icon-statistics', // 图标 + permission: ['/statistics'], // 权限名称 + sys: '/door' + }, + children: [ + { + path: '/statistics/inOutPerson', + name: 'InOutPerson', + component: () => import('@/views/statistics/inOutPerson'), + meta: { title: '人员进出记录', icon: '', permission: ['/statistics/inOutPerson'], keepAlive: true } + }, + { + path: '/statistics/inOutCar', + name: 'InOutCar', + component: () => import('@/views/statistics/inOutCar'), + meta: { title: '车辆进出记录', icon: '', permission: ['/statistics/inOutCar'], keepAlive: true } + } + ] } ] diff --git a/src/api/allDict.js b/src/api/allDict.js index 389c2b2..c567eb2 100644 --- a/src/api/allDict.js +++ b/src/api/allDict.js @@ -28,6 +28,15 @@ }) } +// 车辆类别 +export function getCarType(params) { + return request({ + url: '/dict/code/carType', + method: 'get', + params + }) +} + // 设备类型 export function getDeviceType(params) { return request({ @@ -52,3 +61,11 @@ method: 'get' }) } + +// 进出园区 +export function getInOutType() { + return request({ + url: '/dict/code/inOut', + method: 'get' + }) +} diff --git a/src/api/car.js b/src/api/car.js index cf638b5..fc55938 100644 --- a/src/api/car.js +++ b/src/api/car.js @@ -1,5 +1,5 @@ import request from '@/utils/request' -import qs from 'qs' +// import qs from 'qs' // 分页查询车辆列表 export function getCarList(params) { diff --git a/src/api/device.js b/src/api/device.js index b3a3f84..4cf4c36 100644 --- a/src/api/device.js +++ b/src/api/device.js @@ -2,7 +2,7 @@ * 设备管理接口 */ import request from '@/utils/request' -import qs from 'qs' +// import qs from 'qs' // 分页查询设备列表 export function getDeviceList(params) { diff --git a/src/api/statistics.js b/src/api/statistics.js new file mode 100644 index 0000000..44e089f --- /dev/null +++ b/src/api/statistics.js @@ -0,0 +1,22 @@ +/** + * 数据查询接口 + */ +import request from '@/utils/request' +// import qs from 'qs' + +export function personInOutRecord(params) { + return request({ + url: '/statistics/personListPage', + method: 'get', + params + }) +} + +export function carInOutRecord(params) { + return request({ + url: '/statistics/carListPage', + method: 'get', + params + }) +} + diff --git a/src/api/visitor.js b/src/api/visitor.js index 1535eed..121d5e2 100644 --- a/src/api/visitor.js +++ b/src/api/visitor.js @@ -1,5 +1,5 @@ import request from '@/utils/request' -import qs from 'qs' +// import qs from 'qs' // 访客登记 export function addVisitorPerson(data) { diff --git a/src/assets/login_images/bg-blue.png b/src/assets/login_images/bg-blue.png new file mode 100644 index 0000000..a408d14 --- /dev/null +++ b/src/assets/login_images/bg-blue.png Binary files differ diff --git a/src/assets/login_images/bg1.png b/src/assets/login_images/bg1.png new file mode 100644 index 0000000..390b452 --- /dev/null +++ b/src/assets/login_images/bg1.png Binary files differ diff --git a/src/router/modules/doorSys.js b/src/router/modules/doorSys.js index 605b851..64e8d5e 100644 --- a/src/router/modules/doorSys.js +++ b/src/router/modules/doorSys.js @@ -166,5 +166,32 @@ meta: { title: '车辆登记', icon: '', permission: ['/area/defenceList'], keepAlive: true } } ] + }, + { + path: '/statistics', + component: Layout, + redirect: '/statistics', + name: 'Statistics', + alwaysShow: true, + meta: { + title: '统计管理', + icon: 'icon-statistics', // 图标 + permission: ['/statistics'], // 权限名称 + sys: '/door' + }, + children: [ + { + path: '/statistics/inOutPerson', + name: 'InOutPerson', + component: () => import('@/views/statistics/inOutPerson'), + meta: { title: '人员进出记录', icon: '', permission: ['/statistics/inOutPerson'], keepAlive: true } + }, + { + path: '/statistics/inOutCar', + name: 'InOutCar', + component: () => import('@/views/statistics/inOutCar'), + meta: { title: '车辆进出记录', icon: '', permission: ['/statistics/inOutCar'], keepAlive: true } + } + ] } ] diff --git a/src/router/modules/system.js b/src/router/modules/system.js index 05f97c3..2efd4c5 100644 --- a/src/router/modules/system.js +++ b/src/router/modules/system.js @@ -38,12 +38,6 @@ meta: { title: '字典管理', icon: 'function', permission: ['/dict'] } }, { - path: '/area', - name: 'Area', - component: () => import('@/views/system/area/listArea'), - meta: { title: '区域管理', icon: 'function', permission: ['/area'] } - }, - { path: '/dept', name: 'Dept', component: () => import('@/views/system/dept/listDept'), diff --git a/src/api/allDict.js b/src/api/allDict.js index 389c2b2..c567eb2 100644 --- a/src/api/allDict.js +++ b/src/api/allDict.js @@ -28,6 +28,15 @@ }) } +// 车辆类别 +export function getCarType(params) { + return request({ + url: '/dict/code/carType', + method: 'get', + params + }) +} + // 设备类型 export function getDeviceType(params) { return request({ @@ -52,3 +61,11 @@ method: 'get' }) } + +// 进出园区 +export function getInOutType() { + return request({ + url: '/dict/code/inOut', + method: 'get' + }) +} diff --git a/src/api/car.js b/src/api/car.js index cf638b5..fc55938 100644 --- a/src/api/car.js +++ b/src/api/car.js @@ -1,5 +1,5 @@ import request from '@/utils/request' -import qs from 'qs' +// import qs from 'qs' // 分页查询车辆列表 export function getCarList(params) { diff --git a/src/api/device.js b/src/api/device.js index b3a3f84..4cf4c36 100644 --- a/src/api/device.js +++ b/src/api/device.js @@ -2,7 +2,7 @@ * 设备管理接口 */ import request from '@/utils/request' -import qs from 'qs' +// import qs from 'qs' // 分页查询设备列表 export function getDeviceList(params) { diff --git a/src/api/statistics.js b/src/api/statistics.js new file mode 100644 index 0000000..44e089f --- /dev/null +++ b/src/api/statistics.js @@ -0,0 +1,22 @@ +/** + * 数据查询接口 + */ +import request from '@/utils/request' +// import qs from 'qs' + +export function personInOutRecord(params) { + return request({ + url: '/statistics/personListPage', + method: 'get', + params + }) +} + +export function carInOutRecord(params) { + return request({ + url: '/statistics/carListPage', + method: 'get', + params + }) +} + diff --git a/src/api/visitor.js b/src/api/visitor.js index 1535eed..121d5e2 100644 --- a/src/api/visitor.js +++ b/src/api/visitor.js @@ -1,5 +1,5 @@ import request from '@/utils/request' -import qs from 'qs' +// import qs from 'qs' // 访客登记 export function addVisitorPerson(data) { diff --git a/src/assets/login_images/bg-blue.png b/src/assets/login_images/bg-blue.png new file mode 100644 index 0000000..a408d14 --- /dev/null +++ b/src/assets/login_images/bg-blue.png Binary files differ diff --git a/src/assets/login_images/bg1.png b/src/assets/login_images/bg1.png new file mode 100644 index 0000000..390b452 --- /dev/null +++ b/src/assets/login_images/bg1.png Binary files differ diff --git a/src/router/modules/doorSys.js b/src/router/modules/doorSys.js index 605b851..64e8d5e 100644 --- a/src/router/modules/doorSys.js +++ b/src/router/modules/doorSys.js @@ -166,5 +166,32 @@ meta: { title: '车辆登记', icon: '', permission: ['/area/defenceList'], keepAlive: true } } ] + }, + { + path: '/statistics', + component: Layout, + redirect: '/statistics', + name: 'Statistics', + alwaysShow: true, + meta: { + title: '统计管理', + icon: 'icon-statistics', // 图标 + permission: ['/statistics'], // 权限名称 + sys: '/door' + }, + children: [ + { + path: '/statistics/inOutPerson', + name: 'InOutPerson', + component: () => import('@/views/statistics/inOutPerson'), + meta: { title: '人员进出记录', icon: '', permission: ['/statistics/inOutPerson'], keepAlive: true } + }, + { + path: '/statistics/inOutCar', + name: 'InOutCar', + component: () => import('@/views/statistics/inOutCar'), + meta: { title: '车辆进出记录', icon: '', permission: ['/statistics/inOutCar'], keepAlive: true } + } + ] } ] diff --git a/src/router/modules/system.js b/src/router/modules/system.js index 05f97c3..2efd4c5 100644 --- a/src/router/modules/system.js +++ b/src/router/modules/system.js @@ -38,12 +38,6 @@ meta: { title: '字典管理', icon: 'function', permission: ['/dict'] } }, { - path: '/area', - name: 'Area', - component: () => import('@/views/system/area/listArea'), - meta: { title: '区域管理', icon: 'function', permission: ['/area'] } - }, - { path: '/dept', name: 'Dept', component: () => import('@/views/system/dept/listDept'), diff --git a/src/views/car/carList.vue b/src/views/car/carList.vue index 89555ee..bf2bb70 100644 --- a/src/views/car/carList.vue +++ b/src/views/car/carList.vue @@ -40,7 +40,7 @@ - + diff --git a/src/api/allDict.js b/src/api/allDict.js index 389c2b2..c567eb2 100644 --- a/src/api/allDict.js +++ b/src/api/allDict.js @@ -28,6 +28,15 @@ }) } +// 车辆类别 +export function getCarType(params) { + return request({ + url: '/dict/code/carType', + method: 'get', + params + }) +} + // 设备类型 export function getDeviceType(params) { return request({ @@ -52,3 +61,11 @@ method: 'get' }) } + +// 进出园区 +export function getInOutType() { + return request({ + url: '/dict/code/inOut', + method: 'get' + }) +} diff --git a/src/api/car.js b/src/api/car.js index cf638b5..fc55938 100644 --- a/src/api/car.js +++ b/src/api/car.js @@ -1,5 +1,5 @@ import request from '@/utils/request' -import qs from 'qs' +// import qs from 'qs' // 分页查询车辆列表 export function getCarList(params) { diff --git a/src/api/device.js b/src/api/device.js index b3a3f84..4cf4c36 100644 --- a/src/api/device.js +++ b/src/api/device.js @@ -2,7 +2,7 @@ * 设备管理接口 */ import request from '@/utils/request' -import qs from 'qs' +// import qs from 'qs' // 分页查询设备列表 export function getDeviceList(params) { diff --git a/src/api/statistics.js b/src/api/statistics.js new file mode 100644 index 0000000..44e089f --- /dev/null +++ b/src/api/statistics.js @@ -0,0 +1,22 @@ +/** + * 数据查询接口 + */ +import request from '@/utils/request' +// import qs from 'qs' + +export function personInOutRecord(params) { + return request({ + url: '/statistics/personListPage', + method: 'get', + params + }) +} + +export function carInOutRecord(params) { + return request({ + url: '/statistics/carListPage', + method: 'get', + params + }) +} + diff --git a/src/api/visitor.js b/src/api/visitor.js index 1535eed..121d5e2 100644 --- a/src/api/visitor.js +++ b/src/api/visitor.js @@ -1,5 +1,5 @@ import request from '@/utils/request' -import qs from 'qs' +// import qs from 'qs' // 访客登记 export function addVisitorPerson(data) { diff --git a/src/assets/login_images/bg-blue.png b/src/assets/login_images/bg-blue.png new file mode 100644 index 0000000..a408d14 --- /dev/null +++ b/src/assets/login_images/bg-blue.png Binary files differ diff --git a/src/assets/login_images/bg1.png b/src/assets/login_images/bg1.png new file mode 100644 index 0000000..390b452 --- /dev/null +++ b/src/assets/login_images/bg1.png Binary files differ diff --git a/src/router/modules/doorSys.js b/src/router/modules/doorSys.js index 605b851..64e8d5e 100644 --- a/src/router/modules/doorSys.js +++ b/src/router/modules/doorSys.js @@ -166,5 +166,32 @@ meta: { title: '车辆登记', icon: '', permission: ['/area/defenceList'], keepAlive: true } } ] + }, + { + path: '/statistics', + component: Layout, + redirect: '/statistics', + name: 'Statistics', + alwaysShow: true, + meta: { + title: '统计管理', + icon: 'icon-statistics', // 图标 + permission: ['/statistics'], // 权限名称 + sys: '/door' + }, + children: [ + { + path: '/statistics/inOutPerson', + name: 'InOutPerson', + component: () => import('@/views/statistics/inOutPerson'), + meta: { title: '人员进出记录', icon: '', permission: ['/statistics/inOutPerson'], keepAlive: true } + }, + { + path: '/statistics/inOutCar', + name: 'InOutCar', + component: () => import('@/views/statistics/inOutCar'), + meta: { title: '车辆进出记录', icon: '', permission: ['/statistics/inOutCar'], keepAlive: true } + } + ] } ] diff --git a/src/router/modules/system.js b/src/router/modules/system.js index 05f97c3..2efd4c5 100644 --- a/src/router/modules/system.js +++ b/src/router/modules/system.js @@ -38,12 +38,6 @@ meta: { title: '字典管理', icon: 'function', permission: ['/dict'] } }, { - path: '/area', - name: 'Area', - component: () => import('@/views/system/area/listArea'), - meta: { title: '区域管理', icon: 'function', permission: ['/area'] } - }, - { path: '/dept', name: 'Dept', component: () => import('@/views/system/dept/listDept'), diff --git a/src/views/car/carList.vue b/src/views/car/carList.vue index 89555ee..bf2bb70 100644 --- a/src/views/car/carList.vue +++ b/src/views/car/carList.vue @@ -40,7 +40,7 @@ - + diff --git a/src/views/dashboard/portal.vue b/src/views/dashboard/portal.vue index b517742..4365c4b 100644 --- a/src/views/dashboard/portal.vue +++ b/src/views/dashboard/portal.vue @@ -46,7 +46,8 @@
- + +
@@ -80,12 +81,28 @@ console.log('获取子系统成功') }) }, - doorSubSystem: function() { + changeSubSystem(subSys) { this.$store.commit('SET_CHANGEFLAG', '1') - this.$store.commit('SET_SYSTEM', this.systems[1]) + this.$store.commit('SET_SYSTEM', subSys) this.$store.dispatch('tagsView/delAllViews', true).then(({ visitedViews }) => { - this.$router.replace(this.systems[1].url) + this.$router.replace(subSys.url) }) + }, + settingSystem() { + const setting = this.systems.filter(subsys => { + return subsys.code === 'sys' + }) + if (typeof setting !== 'undefined' && setting.length > 0) { + this.changeSubSystem(setting[0]) + } + }, + doorSubSystem() { + const door = this.systems.filter(subsys => { + return subsys.code === 'door' + }) + if (typeof door !== 'undefined' && door.length > 0) { + this.changeSubSystem(door[0]) + } } } } @@ -147,11 +164,15 @@ .welcome { position: absolute; right: 5vw; - bottom: 30px; + top: 30px; padding-left: 10px; cursor: pointer; } + .welcome img { + filter: drop-shadow(5px 5px 5px rgba(0, 0 , 0, 0.75)); + } + .title { position: absolute; top: 30px; diff --git a/src/api/allDict.js b/src/api/allDict.js index 389c2b2..c567eb2 100644 --- a/src/api/allDict.js +++ b/src/api/allDict.js @@ -28,6 +28,15 @@ }) } +// 车辆类别 +export function getCarType(params) { + return request({ + url: '/dict/code/carType', + method: 'get', + params + }) +} + // 设备类型 export function getDeviceType(params) { return request({ @@ -52,3 +61,11 @@ method: 'get' }) } + +// 进出园区 +export function getInOutType() { + return request({ + url: '/dict/code/inOut', + method: 'get' + }) +} diff --git a/src/api/car.js b/src/api/car.js index cf638b5..fc55938 100644 --- a/src/api/car.js +++ b/src/api/car.js @@ -1,5 +1,5 @@ import request from '@/utils/request' -import qs from 'qs' +// import qs from 'qs' // 分页查询车辆列表 export function getCarList(params) { diff --git a/src/api/device.js b/src/api/device.js index b3a3f84..4cf4c36 100644 --- a/src/api/device.js +++ b/src/api/device.js @@ -2,7 +2,7 @@ * 设备管理接口 */ import request from '@/utils/request' -import qs from 'qs' +// import qs from 'qs' // 分页查询设备列表 export function getDeviceList(params) { diff --git a/src/api/statistics.js b/src/api/statistics.js new file mode 100644 index 0000000..44e089f --- /dev/null +++ b/src/api/statistics.js @@ -0,0 +1,22 @@ +/** + * 数据查询接口 + */ +import request from '@/utils/request' +// import qs from 'qs' + +export function personInOutRecord(params) { + return request({ + url: '/statistics/personListPage', + method: 'get', + params + }) +} + +export function carInOutRecord(params) { + return request({ + url: '/statistics/carListPage', + method: 'get', + params + }) +} + diff --git a/src/api/visitor.js b/src/api/visitor.js index 1535eed..121d5e2 100644 --- a/src/api/visitor.js +++ b/src/api/visitor.js @@ -1,5 +1,5 @@ import request from '@/utils/request' -import qs from 'qs' +// import qs from 'qs' // 访客登记 export function addVisitorPerson(data) { diff --git a/src/assets/login_images/bg-blue.png b/src/assets/login_images/bg-blue.png new file mode 100644 index 0000000..a408d14 --- /dev/null +++ b/src/assets/login_images/bg-blue.png Binary files differ diff --git a/src/assets/login_images/bg1.png b/src/assets/login_images/bg1.png new file mode 100644 index 0000000..390b452 --- /dev/null +++ b/src/assets/login_images/bg1.png Binary files differ diff --git a/src/router/modules/doorSys.js b/src/router/modules/doorSys.js index 605b851..64e8d5e 100644 --- a/src/router/modules/doorSys.js +++ b/src/router/modules/doorSys.js @@ -166,5 +166,32 @@ meta: { title: '车辆登记', icon: '', permission: ['/area/defenceList'], keepAlive: true } } ] + }, + { + path: '/statistics', + component: Layout, + redirect: '/statistics', + name: 'Statistics', + alwaysShow: true, + meta: { + title: '统计管理', + icon: 'icon-statistics', // 图标 + permission: ['/statistics'], // 权限名称 + sys: '/door' + }, + children: [ + { + path: '/statistics/inOutPerson', + name: 'InOutPerson', + component: () => import('@/views/statistics/inOutPerson'), + meta: { title: '人员进出记录', icon: '', permission: ['/statistics/inOutPerson'], keepAlive: true } + }, + { + path: '/statistics/inOutCar', + name: 'InOutCar', + component: () => import('@/views/statistics/inOutCar'), + meta: { title: '车辆进出记录', icon: '', permission: ['/statistics/inOutCar'], keepAlive: true } + } + ] } ] diff --git a/src/router/modules/system.js b/src/router/modules/system.js index 05f97c3..2efd4c5 100644 --- a/src/router/modules/system.js +++ b/src/router/modules/system.js @@ -38,12 +38,6 @@ meta: { title: '字典管理', icon: 'function', permission: ['/dict'] } }, { - path: '/area', - name: 'Area', - component: () => import('@/views/system/area/listArea'), - meta: { title: '区域管理', icon: 'function', permission: ['/area'] } - }, - { path: '/dept', name: 'Dept', component: () => import('@/views/system/dept/listDept'), diff --git a/src/views/car/carList.vue b/src/views/car/carList.vue index 89555ee..bf2bb70 100644 --- a/src/views/car/carList.vue +++ b/src/views/car/carList.vue @@ -40,7 +40,7 @@ - + diff --git a/src/views/dashboard/portal.vue b/src/views/dashboard/portal.vue index b517742..4365c4b 100644 --- a/src/views/dashboard/portal.vue +++ b/src/views/dashboard/portal.vue @@ -46,7 +46,8 @@
- + +
@@ -80,12 +81,28 @@ console.log('获取子系统成功') }) }, - doorSubSystem: function() { + changeSubSystem(subSys) { this.$store.commit('SET_CHANGEFLAG', '1') - this.$store.commit('SET_SYSTEM', this.systems[1]) + this.$store.commit('SET_SYSTEM', subSys) this.$store.dispatch('tagsView/delAllViews', true).then(({ visitedViews }) => { - this.$router.replace(this.systems[1].url) + this.$router.replace(subSys.url) }) + }, + settingSystem() { + const setting = this.systems.filter(subsys => { + return subsys.code === 'sys' + }) + if (typeof setting !== 'undefined' && setting.length > 0) { + this.changeSubSystem(setting[0]) + } + }, + doorSubSystem() { + const door = this.systems.filter(subsys => { + return subsys.code === 'door' + }) + if (typeof door !== 'undefined' && door.length > 0) { + this.changeSubSystem(door[0]) + } } } } @@ -147,11 +164,15 @@ .welcome { position: absolute; right: 5vw; - bottom: 30px; + top: 30px; padding-left: 10px; cursor: pointer; } + .welcome img { + filter: drop-shadow(5px 5px 5px rgba(0, 0 , 0, 0.75)); + } + .title { position: absolute; top: 30px; diff --git a/src/views/deviceManage/deviceDetail.vue b/src/views/deviceManage/deviceDetail.vue index 9896899..81d1bba 100644 --- a/src/views/deviceManage/deviceDetail.vue +++ b/src/views/deviceManage/deviceDetail.vue @@ -122,7 +122,6 @@ this.dialogFormVisible = dialogFormVisible this.resetForm() if (dialogStatus === 'detail') { - this.isEditMode = false // 电子围栏设备有开启字段 diff --git a/src/api/allDict.js b/src/api/allDict.js index 389c2b2..c567eb2 100644 --- a/src/api/allDict.js +++ b/src/api/allDict.js @@ -28,6 +28,15 @@ }) } +// 车辆类别 +export function getCarType(params) { + return request({ + url: '/dict/code/carType', + method: 'get', + params + }) +} + // 设备类型 export function getDeviceType(params) { return request({ @@ -52,3 +61,11 @@ method: 'get' }) } + +// 进出园区 +export function getInOutType() { + return request({ + url: '/dict/code/inOut', + method: 'get' + }) +} diff --git a/src/api/car.js b/src/api/car.js index cf638b5..fc55938 100644 --- a/src/api/car.js +++ b/src/api/car.js @@ -1,5 +1,5 @@ import request from '@/utils/request' -import qs from 'qs' +// import qs from 'qs' // 分页查询车辆列表 export function getCarList(params) { diff --git a/src/api/device.js b/src/api/device.js index b3a3f84..4cf4c36 100644 --- a/src/api/device.js +++ b/src/api/device.js @@ -2,7 +2,7 @@ * 设备管理接口 */ import request from '@/utils/request' -import qs from 'qs' +// import qs from 'qs' // 分页查询设备列表 export function getDeviceList(params) { diff --git a/src/api/statistics.js b/src/api/statistics.js new file mode 100644 index 0000000..44e089f --- /dev/null +++ b/src/api/statistics.js @@ -0,0 +1,22 @@ +/** + * 数据查询接口 + */ +import request from '@/utils/request' +// import qs from 'qs' + +export function personInOutRecord(params) { + return request({ + url: '/statistics/personListPage', + method: 'get', + params + }) +} + +export function carInOutRecord(params) { + return request({ + url: '/statistics/carListPage', + method: 'get', + params + }) +} + diff --git a/src/api/visitor.js b/src/api/visitor.js index 1535eed..121d5e2 100644 --- a/src/api/visitor.js +++ b/src/api/visitor.js @@ -1,5 +1,5 @@ import request from '@/utils/request' -import qs from 'qs' +// import qs from 'qs' // 访客登记 export function addVisitorPerson(data) { diff --git a/src/assets/login_images/bg-blue.png b/src/assets/login_images/bg-blue.png new file mode 100644 index 0000000..a408d14 --- /dev/null +++ b/src/assets/login_images/bg-blue.png Binary files differ diff --git a/src/assets/login_images/bg1.png b/src/assets/login_images/bg1.png new file mode 100644 index 0000000..390b452 --- /dev/null +++ b/src/assets/login_images/bg1.png Binary files differ diff --git a/src/router/modules/doorSys.js b/src/router/modules/doorSys.js index 605b851..64e8d5e 100644 --- a/src/router/modules/doorSys.js +++ b/src/router/modules/doorSys.js @@ -166,5 +166,32 @@ meta: { title: '车辆登记', icon: '', permission: ['/area/defenceList'], keepAlive: true } } ] + }, + { + path: '/statistics', + component: Layout, + redirect: '/statistics', + name: 'Statistics', + alwaysShow: true, + meta: { + title: '统计管理', + icon: 'icon-statistics', // 图标 + permission: ['/statistics'], // 权限名称 + sys: '/door' + }, + children: [ + { + path: '/statistics/inOutPerson', + name: 'InOutPerson', + component: () => import('@/views/statistics/inOutPerson'), + meta: { title: '人员进出记录', icon: '', permission: ['/statistics/inOutPerson'], keepAlive: true } + }, + { + path: '/statistics/inOutCar', + name: 'InOutCar', + component: () => import('@/views/statistics/inOutCar'), + meta: { title: '车辆进出记录', icon: '', permission: ['/statistics/inOutCar'], keepAlive: true } + } + ] } ] diff --git a/src/router/modules/system.js b/src/router/modules/system.js index 05f97c3..2efd4c5 100644 --- a/src/router/modules/system.js +++ b/src/router/modules/system.js @@ -38,12 +38,6 @@ meta: { title: '字典管理', icon: 'function', permission: ['/dict'] } }, { - path: '/area', - name: 'Area', - component: () => import('@/views/system/area/listArea'), - meta: { title: '区域管理', icon: 'function', permission: ['/area'] } - }, - { path: '/dept', name: 'Dept', component: () => import('@/views/system/dept/listDept'), diff --git a/src/views/car/carList.vue b/src/views/car/carList.vue index 89555ee..bf2bb70 100644 --- a/src/views/car/carList.vue +++ b/src/views/car/carList.vue @@ -40,7 +40,7 @@ - + diff --git a/src/views/dashboard/portal.vue b/src/views/dashboard/portal.vue index b517742..4365c4b 100644 --- a/src/views/dashboard/portal.vue +++ b/src/views/dashboard/portal.vue @@ -46,7 +46,8 @@
- + +
@@ -80,12 +81,28 @@ console.log('获取子系统成功') }) }, - doorSubSystem: function() { + changeSubSystem(subSys) { this.$store.commit('SET_CHANGEFLAG', '1') - this.$store.commit('SET_SYSTEM', this.systems[1]) + this.$store.commit('SET_SYSTEM', subSys) this.$store.dispatch('tagsView/delAllViews', true).then(({ visitedViews }) => { - this.$router.replace(this.systems[1].url) + this.$router.replace(subSys.url) }) + }, + settingSystem() { + const setting = this.systems.filter(subsys => { + return subsys.code === 'sys' + }) + if (typeof setting !== 'undefined' && setting.length > 0) { + this.changeSubSystem(setting[0]) + } + }, + doorSubSystem() { + const door = this.systems.filter(subsys => { + return subsys.code === 'door' + }) + if (typeof door !== 'undefined' && door.length > 0) { + this.changeSubSystem(door[0]) + } } } } @@ -147,11 +164,15 @@ .welcome { position: absolute; right: 5vw; - bottom: 30px; + top: 30px; padding-left: 10px; cursor: pointer; } + .welcome img { + filter: drop-shadow(5px 5px 5px rgba(0, 0 , 0, 0.75)); + } + .title { position: absolute; top: 30px; diff --git a/src/views/deviceManage/deviceDetail.vue b/src/views/deviceManage/deviceDetail.vue index 9896899..81d1bba 100644 --- a/src/views/deviceManage/deviceDetail.vue +++ b/src/views/deviceManage/deviceDetail.vue @@ -122,7 +122,6 @@ this.dialogFormVisible = dialogFormVisible this.resetForm() if (dialogStatus === 'detail') { - this.isEditMode = false // 电子围栏设备有开启字段 diff --git a/src/views/layout/components/AppHeader.vue b/src/views/layout/components/AppHeader.vue index 92cb5c5..d187aac 100644 --- a/src/views/layout/components/AppHeader.vue +++ b/src/views/layout/components/AppHeader.vue @@ -1,6 +1,6 @@ @@ -80,12 +81,28 @@ console.log('获取子系统成功') }) }, - doorSubSystem: function() { + changeSubSystem(subSys) { this.$store.commit('SET_CHANGEFLAG', '1') - this.$store.commit('SET_SYSTEM', this.systems[1]) + this.$store.commit('SET_SYSTEM', subSys) this.$store.dispatch('tagsView/delAllViews', true).then(({ visitedViews }) => { - this.$router.replace(this.systems[1].url) + this.$router.replace(subSys.url) }) + }, + settingSystem() { + const setting = this.systems.filter(subsys => { + return subsys.code === 'sys' + }) + if (typeof setting !== 'undefined' && setting.length > 0) { + this.changeSubSystem(setting[0]) + } + }, + doorSubSystem() { + const door = this.systems.filter(subsys => { + return subsys.code === 'door' + }) + if (typeof door !== 'undefined' && door.length > 0) { + this.changeSubSystem(door[0]) + } } } } @@ -147,11 +164,15 @@ .welcome { position: absolute; right: 5vw; - bottom: 30px; + top: 30px; padding-left: 10px; cursor: pointer; } + .welcome img { + filter: drop-shadow(5px 5px 5px rgba(0, 0 , 0, 0.75)); + } + .title { position: absolute; top: 30px; diff --git a/src/views/deviceManage/deviceDetail.vue b/src/views/deviceManage/deviceDetail.vue index 9896899..81d1bba 100644 --- a/src/views/deviceManage/deviceDetail.vue +++ b/src/views/deviceManage/deviceDetail.vue @@ -122,7 +122,6 @@ this.dialogFormVisible = dialogFormVisible this.resetForm() if (dialogStatus === 'detail') { - this.isEditMode = false // 电子围栏设备有开启字段 diff --git a/src/views/layout/components/AppHeader.vue b/src/views/layout/components/AppHeader.vue index 92cb5c5..d187aac 100644 --- a/src/views/layout/components/AppHeader.vue +++ b/src/views/layout/components/AppHeader.vue @@ -1,6 +1,6 @@ @@ -80,12 +81,28 @@ console.log('获取子系统成功') }) }, - doorSubSystem: function() { + changeSubSystem(subSys) { this.$store.commit('SET_CHANGEFLAG', '1') - this.$store.commit('SET_SYSTEM', this.systems[1]) + this.$store.commit('SET_SYSTEM', subSys) this.$store.dispatch('tagsView/delAllViews', true).then(({ visitedViews }) => { - this.$router.replace(this.systems[1].url) + this.$router.replace(subSys.url) }) + }, + settingSystem() { + const setting = this.systems.filter(subsys => { + return subsys.code === 'sys' + }) + if (typeof setting !== 'undefined' && setting.length > 0) { + this.changeSubSystem(setting[0]) + } + }, + doorSubSystem() { + const door = this.systems.filter(subsys => { + return subsys.code === 'door' + }) + if (typeof door !== 'undefined' && door.length > 0) { + this.changeSubSystem(door[0]) + } } } } @@ -147,11 +164,15 @@ .welcome { position: absolute; right: 5vw; - bottom: 30px; + top: 30px; padding-left: 10px; cursor: pointer; } + .welcome img { + filter: drop-shadow(5px 5px 5px rgba(0, 0 , 0, 0.75)); + } + .title { position: absolute; top: 30px; diff --git a/src/views/deviceManage/deviceDetail.vue b/src/views/deviceManage/deviceDetail.vue index 9896899..81d1bba 100644 --- a/src/views/deviceManage/deviceDetail.vue +++ b/src/views/deviceManage/deviceDetail.vue @@ -122,7 +122,6 @@ this.dialogFormVisible = dialogFormVisible this.resetForm() if (dialogStatus === 'detail') { - this.isEditMode = false // 电子围栏设备有开启字段 diff --git a/src/views/layout/components/AppHeader.vue b/src/views/layout/components/AppHeader.vue index 92cb5c5..d187aac 100644 --- a/src/views/layout/components/AppHeader.vue +++ b/src/views/layout/components/AppHeader.vue @@ -1,6 +1,6 @@ @@ -80,12 +81,28 @@ console.log('获取子系统成功') }) }, - doorSubSystem: function() { + changeSubSystem(subSys) { this.$store.commit('SET_CHANGEFLAG', '1') - this.$store.commit('SET_SYSTEM', this.systems[1]) + this.$store.commit('SET_SYSTEM', subSys) this.$store.dispatch('tagsView/delAllViews', true).then(({ visitedViews }) => { - this.$router.replace(this.systems[1].url) + this.$router.replace(subSys.url) }) + }, + settingSystem() { + const setting = this.systems.filter(subsys => { + return subsys.code === 'sys' + }) + if (typeof setting !== 'undefined' && setting.length > 0) { + this.changeSubSystem(setting[0]) + } + }, + doorSubSystem() { + const door = this.systems.filter(subsys => { + return subsys.code === 'door' + }) + if (typeof door !== 'undefined' && door.length > 0) { + this.changeSubSystem(door[0]) + } } } } @@ -147,11 +164,15 @@ .welcome { position: absolute; right: 5vw; - bottom: 30px; + top: 30px; padding-left: 10px; cursor: pointer; } + .welcome img { + filter: drop-shadow(5px 5px 5px rgba(0, 0 , 0, 0.75)); + } + .title { position: absolute; top: 30px; diff --git a/src/views/deviceManage/deviceDetail.vue b/src/views/deviceManage/deviceDetail.vue index 9896899..81d1bba 100644 --- a/src/views/deviceManage/deviceDetail.vue +++ b/src/views/deviceManage/deviceDetail.vue @@ -122,7 +122,6 @@ this.dialogFormVisible = dialogFormVisible this.resetForm() if (dialogStatus === 'detail') { - this.isEditMode = false // 电子围栏设备有开启字段 diff --git a/src/views/layout/components/AppHeader.vue b/src/views/layout/components/AppHeader.vue index 92cb5c5..d187aac 100644 --- a/src/views/layout/components/AppHeader.vue +++ b/src/views/layout/components/AppHeader.vue @@ -1,6 +1,6 @@ @@ -80,12 +81,28 @@ console.log('获取子系统成功') }) }, - doorSubSystem: function() { + changeSubSystem(subSys) { this.$store.commit('SET_CHANGEFLAG', '1') - this.$store.commit('SET_SYSTEM', this.systems[1]) + this.$store.commit('SET_SYSTEM', subSys) this.$store.dispatch('tagsView/delAllViews', true).then(({ visitedViews }) => { - this.$router.replace(this.systems[1].url) + this.$router.replace(subSys.url) }) + }, + settingSystem() { + const setting = this.systems.filter(subsys => { + return subsys.code === 'sys' + }) + if (typeof setting !== 'undefined' && setting.length > 0) { + this.changeSubSystem(setting[0]) + } + }, + doorSubSystem() { + const door = this.systems.filter(subsys => { + return subsys.code === 'door' + }) + if (typeof door !== 'undefined' && door.length > 0) { + this.changeSubSystem(door[0]) + } } } } @@ -147,11 +164,15 @@ .welcome { position: absolute; right: 5vw; - bottom: 30px; + top: 30px; padding-left: 10px; cursor: pointer; } + .welcome img { + filter: drop-shadow(5px 5px 5px rgba(0, 0 , 0, 0.75)); + } + .title { position: absolute; top: 30px; diff --git a/src/views/deviceManage/deviceDetail.vue b/src/views/deviceManage/deviceDetail.vue index 9896899..81d1bba 100644 --- a/src/views/deviceManage/deviceDetail.vue +++ b/src/views/deviceManage/deviceDetail.vue @@ -122,7 +122,6 @@ this.dialogFormVisible = dialogFormVisible this.resetForm() if (dialogStatus === 'detail') { - this.isEditMode = false // 电子围栏设备有开启字段 diff --git a/src/views/layout/components/AppHeader.vue b/src/views/layout/components/AppHeader.vue index 92cb5c5..d187aac 100644 --- a/src/views/layout/components/AppHeader.vue +++ b/src/views/layout/components/AppHeader.vue @@ -1,6 +1,6 @@