diff --git a/src/api/person.js b/src/api/person.js index 4e01b02..7e250ba 100644 --- a/src/api/person.js +++ b/src/api/person.js @@ -4,6 +4,17 @@ import request from '@/utils/request' import qs from 'qs' +// 查询员工照片 +export function getPersonPhoto(personId) { + return request({ + url: '/person/getPhoto', + method: 'get', + params: { + personId: personId + } + }) +} + // 查询员工列表 export function getPersonListAll(params) { return request({ diff --git a/src/api/person.js b/src/api/person.js index 4e01b02..7e250ba 100644 --- a/src/api/person.js +++ b/src/api/person.js @@ -4,6 +4,17 @@ import request from '@/utils/request' import qs from 'qs' +// 查询员工照片 +export function getPersonPhoto(personId) { + return request({ + url: '/person/getPhoto', + method: 'get', + params: { + personId: personId + } + }) +} + // 查询员工列表 export function getPersonListAll(params) { return request({ diff --git a/src/components/Clock/clock.vue b/src/components/Clock/clock.vue index 0478860..618b989 100644 --- a/src/components/Clock/clock.vue +++ b/src/components/Clock/clock.vue @@ -1,10 +1,10 @@ diff --git a/src/api/person.js b/src/api/person.js index 4e01b02..7e250ba 100644 --- a/src/api/person.js +++ b/src/api/person.js @@ -4,6 +4,17 @@ import request from '@/utils/request' import qs from 'qs' +// 查询员工照片 +export function getPersonPhoto(personId) { + return request({ + url: '/person/getPhoto', + method: 'get', + params: { + personId: personId + } + }) +} + // 查询员工列表 export function getPersonListAll(params) { return request({ diff --git a/src/components/Clock/clock.vue b/src/components/Clock/clock.vue index 0478860..618b989 100644 --- a/src/components/Clock/clock.vue +++ b/src/components/Clock/clock.vue @@ -1,10 +1,10 @@ diff --git a/src/store/modules/user.js b/src/store/modules/user.js index 5db6ce0..c151568 100644 --- a/src/store/modules/user.js +++ b/src/store/modules/user.js @@ -88,7 +88,7 @@ } else { reject('该用户无角色') } - if (data.deptId || data.deptId === 0) { + if (data.deptId) { commit('SET_DEPTID', data.deptId) commit('SET_DEPTNAME', data.deptName) } else { diff --git a/src/api/person.js b/src/api/person.js index 4e01b02..7e250ba 100644 --- a/src/api/person.js +++ b/src/api/person.js @@ -4,6 +4,17 @@ import request from '@/utils/request' import qs from 'qs' +// 查询员工照片 +export function getPersonPhoto(personId) { + return request({ + url: '/person/getPhoto', + method: 'get', + params: { + personId: personId + } + }) +} + // 查询员工列表 export function getPersonListAll(params) { return request({ diff --git a/src/components/Clock/clock.vue b/src/components/Clock/clock.vue index 0478860..618b989 100644 --- a/src/components/Clock/clock.vue +++ b/src/components/Clock/clock.vue @@ -1,10 +1,10 @@ diff --git a/src/store/modules/user.js b/src/store/modules/user.js index 5db6ce0..c151568 100644 --- a/src/store/modules/user.js +++ b/src/store/modules/user.js @@ -88,7 +88,7 @@ } else { reject('该用户无角色') } - if (data.deptId || data.deptId === 0) { + if (data.deptId) { commit('SET_DEPTID', data.deptId) commit('SET_DEPTNAME', data.deptName) } else { diff --git a/src/utils/structure.js b/src/utils/structure.js index 9c7e0eb..34a6672 100644 --- a/src/utils/structure.js +++ b/src/utils/structure.js @@ -45,7 +45,7 @@ const n = plainList[i] const id = '' + n.id const pid = '' + n.pid - if (parseInt(pid) === parseInt(parentId)) { + if (pid === parentId) { n.children = fa(id) temp.push(n) } diff --git a/src/api/person.js b/src/api/person.js index 4e01b02..7e250ba 100644 --- a/src/api/person.js +++ b/src/api/person.js @@ -4,6 +4,17 @@ import request from '@/utils/request' import qs from 'qs' +// 查询员工照片 +export function getPersonPhoto(personId) { + return request({ + url: '/person/getPhoto', + method: 'get', + params: { + personId: personId + } + }) +} + // 查询员工列表 export function getPersonListAll(params) { return request({ diff --git a/src/components/Clock/clock.vue b/src/components/Clock/clock.vue index 0478860..618b989 100644 --- a/src/components/Clock/clock.vue +++ b/src/components/Clock/clock.vue @@ -1,10 +1,10 @@ diff --git a/src/store/modules/user.js b/src/store/modules/user.js index 5db6ce0..c151568 100644 --- a/src/store/modules/user.js +++ b/src/store/modules/user.js @@ -88,7 +88,7 @@ } else { reject('该用户无角色') } - if (data.deptId || data.deptId === 0) { + if (data.deptId) { commit('SET_DEPTID', data.deptId) commit('SET_DEPTNAME', data.deptName) } else { diff --git a/src/utils/structure.js b/src/utils/structure.js index 9c7e0eb..34a6672 100644 --- a/src/utils/structure.js +++ b/src/utils/structure.js @@ -45,7 +45,7 @@ const n = plainList[i] const id = '' + n.id const pid = '' + n.pid - if (parseInt(pid) === parseInt(parentId)) { + if (pid === parentId) { n.children = fa(id) temp.push(n) } diff --git a/src/views/dashboard/components/PanelGroup.vue b/src/views/dashboard/components/PanelGroup.vue index 8784075..914d9b8 100644 --- a/src/views/dashboard/components/PanelGroup.vue +++ b/src/views/dashboard/components/PanelGroup.vue @@ -51,7 +51,7 @@ permission: '/device' }, { - title: 'Staff Access Records', + title: 'Staff Recognition Records', context: '', icon: 'icon-step-staff', color: '#c4b4e4', diff --git a/src/api/person.js b/src/api/person.js index 4e01b02..7e250ba 100644 --- a/src/api/person.js +++ b/src/api/person.js @@ -4,6 +4,17 @@ import request from '@/utils/request' import qs from 'qs' +// 查询员工照片 +export function getPersonPhoto(personId) { + return request({ + url: '/person/getPhoto', + method: 'get', + params: { + personId: personId + } + }) +} + // 查询员工列表 export function getPersonListAll(params) { return request({ diff --git a/src/components/Clock/clock.vue b/src/components/Clock/clock.vue index 0478860..618b989 100644 --- a/src/components/Clock/clock.vue +++ b/src/components/Clock/clock.vue @@ -1,10 +1,10 @@ diff --git a/src/store/modules/user.js b/src/store/modules/user.js index 5db6ce0..c151568 100644 --- a/src/store/modules/user.js +++ b/src/store/modules/user.js @@ -88,7 +88,7 @@ } else { reject('该用户无角色') } - if (data.deptId || data.deptId === 0) { + if (data.deptId) { commit('SET_DEPTID', data.deptId) commit('SET_DEPTNAME', data.deptName) } else { diff --git a/src/utils/structure.js b/src/utils/structure.js index 9c7e0eb..34a6672 100644 --- a/src/utils/structure.js +++ b/src/utils/structure.js @@ -45,7 +45,7 @@ const n = plainList[i] const id = '' + n.id const pid = '' + n.pid - if (parseInt(pid) === parseInt(parentId)) { + if (pid === parentId) { n.children = fa(id) temp.push(n) } diff --git a/src/views/dashboard/components/PanelGroup.vue b/src/views/dashboard/components/PanelGroup.vue index 8784075..914d9b8 100644 --- a/src/views/dashboard/components/PanelGroup.vue +++ b/src/views/dashboard/components/PanelGroup.vue @@ -51,7 +51,7 @@ permission: '/device' }, { - title: 'Staff Access Records', + title: 'Staff Recognition Records', context: '', icon: 'icon-step-staff', color: '#c4b4e4', diff --git a/src/views/dashboard/index.vue b/src/views/dashboard/index.vue index 6dce9c1..710f07a 100644 --- a/src/views/dashboard/index.vue +++ b/src/views/dashboard/index.vue @@ -2,11 +2,27 @@
+ + + Welcome, {{ name }} ! + + + + + + + + + + + +
diff --git a/src/api/person.js b/src/api/person.js index 4e01b02..7e250ba 100644 --- a/src/api/person.js +++ b/src/api/person.js @@ -4,6 +4,17 @@ import request from '@/utils/request' import qs from 'qs' +// 查询员工照片 +export function getPersonPhoto(personId) { + return request({ + url: '/person/getPhoto', + method: 'get', + params: { + personId: personId + } + }) +} + // 查询员工列表 export function getPersonListAll(params) { return request({ diff --git a/src/components/Clock/clock.vue b/src/components/Clock/clock.vue index 0478860..618b989 100644 --- a/src/components/Clock/clock.vue +++ b/src/components/Clock/clock.vue @@ -1,10 +1,10 @@ diff --git a/src/store/modules/user.js b/src/store/modules/user.js index 5db6ce0..c151568 100644 --- a/src/store/modules/user.js +++ b/src/store/modules/user.js @@ -88,7 +88,7 @@ } else { reject('该用户无角色') } - if (data.deptId || data.deptId === 0) { + if (data.deptId) { commit('SET_DEPTID', data.deptId) commit('SET_DEPTNAME', data.deptName) } else { diff --git a/src/utils/structure.js b/src/utils/structure.js index 9c7e0eb..34a6672 100644 --- a/src/utils/structure.js +++ b/src/utils/structure.js @@ -45,7 +45,7 @@ const n = plainList[i] const id = '' + n.id const pid = '' + n.pid - if (parseInt(pid) === parseInt(parentId)) { + if (pid === parentId) { n.children = fa(id) temp.push(n) } diff --git a/src/views/dashboard/components/PanelGroup.vue b/src/views/dashboard/components/PanelGroup.vue index 8784075..914d9b8 100644 --- a/src/views/dashboard/components/PanelGroup.vue +++ b/src/views/dashboard/components/PanelGroup.vue @@ -51,7 +51,7 @@ permission: '/device' }, { - title: 'Staff Access Records', + title: 'Staff Recognition Records', context: '', icon: 'icon-step-staff', color: '#c4b4e4', diff --git a/src/views/dashboard/index.vue b/src/views/dashboard/index.vue index 6dce9c1..710f07a 100644 --- a/src/views/dashboard/index.vue +++ b/src/views/dashboard/index.vue @@ -2,11 +2,27 @@
+ + + Welcome, {{ name }} ! + + + + + + + + + + + +
diff --git a/src/views/deviceManage/listDevice.vue b/src/views/deviceManage/listDevice.vue index 18bc551..ef1e872 100644 --- a/src/views/deviceManage/listDevice.vue +++ b/src/views/deviceManage/listDevice.vue @@ -3,7 +3,7 @@
-
Device list
+
Device List
Synchronize recognition records Send data to device diff --git a/src/api/person.js b/src/api/person.js index 4e01b02..7e250ba 100644 --- a/src/api/person.js +++ b/src/api/person.js @@ -4,6 +4,17 @@ import request from '@/utils/request' import qs from 'qs' +// 查询员工照片 +export function getPersonPhoto(personId) { + return request({ + url: '/person/getPhoto', + method: 'get', + params: { + personId: personId + } + }) +} + // 查询员工列表 export function getPersonListAll(params) { return request({ diff --git a/src/components/Clock/clock.vue b/src/components/Clock/clock.vue index 0478860..618b989 100644 --- a/src/components/Clock/clock.vue +++ b/src/components/Clock/clock.vue @@ -1,10 +1,10 @@ diff --git a/src/store/modules/user.js b/src/store/modules/user.js index 5db6ce0..c151568 100644 --- a/src/store/modules/user.js +++ b/src/store/modules/user.js @@ -88,7 +88,7 @@ } else { reject('该用户无角色') } - if (data.deptId || data.deptId === 0) { + if (data.deptId) { commit('SET_DEPTID', data.deptId) commit('SET_DEPTNAME', data.deptName) } else { diff --git a/src/utils/structure.js b/src/utils/structure.js index 9c7e0eb..34a6672 100644 --- a/src/utils/structure.js +++ b/src/utils/structure.js @@ -45,7 +45,7 @@ const n = plainList[i] const id = '' + n.id const pid = '' + n.pid - if (parseInt(pid) === parseInt(parentId)) { + if (pid === parentId) { n.children = fa(id) temp.push(n) } diff --git a/src/views/dashboard/components/PanelGroup.vue b/src/views/dashboard/components/PanelGroup.vue index 8784075..914d9b8 100644 --- a/src/views/dashboard/components/PanelGroup.vue +++ b/src/views/dashboard/components/PanelGroup.vue @@ -51,7 +51,7 @@ permission: '/device' }, { - title: 'Staff Access Records', + title: 'Staff Recognition Records', context: '', icon: 'icon-step-staff', color: '#c4b4e4', diff --git a/src/views/dashboard/index.vue b/src/views/dashboard/index.vue index 6dce9c1..710f07a 100644 --- a/src/views/dashboard/index.vue +++ b/src/views/dashboard/index.vue @@ -2,11 +2,27 @@
+ + + Welcome, {{ name }} ! + + + + + + + + + + + +
diff --git a/src/views/deviceManage/listDevice.vue b/src/views/deviceManage/listDevice.vue index 18bc551..ef1e872 100644 --- a/src/views/deviceManage/listDevice.vue +++ b/src/views/deviceManage/listDevice.vue @@ -3,7 +3,7 @@
-
Device list
+
Device List
Synchronize recognition records Send data to device diff --git a/src/views/deviceManage/syncRecord.vue b/src/views/deviceManage/syncRecord.vue index 4d93fb0..612aa75 100644 --- a/src/views/deviceManage/syncRecord.vue +++ b/src/views/deviceManage/syncRecord.vue @@ -6,6 +6,7 @@ v-model="timeRange" :picker-options="pickerOptions" :default-time="['00:00:00', '23:59:59']" + value-format="yyyy-MM-dd HH:mm:ss" type="datetimerange" size="small" class="my-datepick" @@ -104,7 +105,7 @@ if (end.valueOf() - s.valueOf() > (7 * 24 * 60 * 60 * 1000)) { this.$message.warning('The date range cannot be more than 7 days') end = moment(s).add(7, 'days').format('YYYY-MM-DD 23:59:59') - s = s.format('yyyy-MM-DD 00:00:00') + s = s.format('YYYY-MM-DD 00:00:00') } if (s.valueOf() - end.valueOf() > (7 * 24 * 60 * 60 * 1000)) { this.$message.warning('The date range cannot be more than 7 days') diff --git a/src/api/person.js b/src/api/person.js index 4e01b02..7e250ba 100644 --- a/src/api/person.js +++ b/src/api/person.js @@ -4,6 +4,17 @@ import request from '@/utils/request' import qs from 'qs' +// 查询员工照片 +export function getPersonPhoto(personId) { + return request({ + url: '/person/getPhoto', + method: 'get', + params: { + personId: personId + } + }) +} + // 查询员工列表 export function getPersonListAll(params) { return request({ diff --git a/src/components/Clock/clock.vue b/src/components/Clock/clock.vue index 0478860..618b989 100644 --- a/src/components/Clock/clock.vue +++ b/src/components/Clock/clock.vue @@ -1,10 +1,10 @@ diff --git a/src/store/modules/user.js b/src/store/modules/user.js index 5db6ce0..c151568 100644 --- a/src/store/modules/user.js +++ b/src/store/modules/user.js @@ -88,7 +88,7 @@ } else { reject('该用户无角色') } - if (data.deptId || data.deptId === 0) { + if (data.deptId) { commit('SET_DEPTID', data.deptId) commit('SET_DEPTNAME', data.deptName) } else { diff --git a/src/utils/structure.js b/src/utils/structure.js index 9c7e0eb..34a6672 100644 --- a/src/utils/structure.js +++ b/src/utils/structure.js @@ -45,7 +45,7 @@ const n = plainList[i] const id = '' + n.id const pid = '' + n.pid - if (parseInt(pid) === parseInt(parentId)) { + if (pid === parentId) { n.children = fa(id) temp.push(n) } diff --git a/src/views/dashboard/components/PanelGroup.vue b/src/views/dashboard/components/PanelGroup.vue index 8784075..914d9b8 100644 --- a/src/views/dashboard/components/PanelGroup.vue +++ b/src/views/dashboard/components/PanelGroup.vue @@ -51,7 +51,7 @@ permission: '/device' }, { - title: 'Staff Access Records', + title: 'Staff Recognition Records', context: '', icon: 'icon-step-staff', color: '#c4b4e4', diff --git a/src/views/dashboard/index.vue b/src/views/dashboard/index.vue index 6dce9c1..710f07a 100644 --- a/src/views/dashboard/index.vue +++ b/src/views/dashboard/index.vue @@ -2,11 +2,27 @@
+ + + Welcome, {{ name }} ! + + + + + + + + + + + +
diff --git a/src/views/deviceManage/listDevice.vue b/src/views/deviceManage/listDevice.vue index 18bc551..ef1e872 100644 --- a/src/views/deviceManage/listDevice.vue +++ b/src/views/deviceManage/listDevice.vue @@ -3,7 +3,7 @@
-
Device list
+
Device List
Synchronize recognition records Send data to device diff --git a/src/views/deviceManage/syncRecord.vue b/src/views/deviceManage/syncRecord.vue index 4d93fb0..612aa75 100644 --- a/src/views/deviceManage/syncRecord.vue +++ b/src/views/deviceManage/syncRecord.vue @@ -6,6 +6,7 @@ v-model="timeRange" :picker-options="pickerOptions" :default-time="['00:00:00', '23:59:59']" + value-format="yyyy-MM-dd HH:mm:ss" type="datetimerange" size="small" class="my-datepick" @@ -104,7 +105,7 @@ if (end.valueOf() - s.valueOf() > (7 * 24 * 60 * 60 * 1000)) { this.$message.warning('The date range cannot be more than 7 days') end = moment(s).add(7, 'days').format('YYYY-MM-DD 23:59:59') - s = s.format('yyyy-MM-DD 00:00:00') + s = s.format('YYYY-MM-DD 00:00:00') } if (s.valueOf() - end.valueOf() > (7 * 24 * 60 * 60 * 1000)) { this.$message.warning('The date range cannot be more than 7 days') diff --git a/src/views/memberManage/addPerson.vue b/src/views/memberManage/addPerson.vue index cad8ec4..fbde1fd 100644 --- a/src/views/memberManage/addPerson.vue +++ b/src/views/memberManage/addPerson.vue @@ -6,7 +6,7 @@ - + @@ -14,7 +14,7 @@ - + @@ -45,7 +45,7 @@ - + @@ -133,10 +133,10 @@