|
@@ -97,7 +97,6 @@
|
|
|
import { clockinShortcuts } from '@/data/shortcuts'
|
|
|
import { ref, onMounted } from 'vue'
|
|
|
import { getKeShouFei } from '../../api/querydata/keshishourutongji.js'
|
|
|
-import jsCookie from 'js-cookie'
|
|
|
import { getChargeCode, getDept, getRenYuan } from '../../api/public-api.js'
|
|
|
import { getDateRangeFormatDate } from '../../utils/date.js'
|
|
|
import store from '@/store'
|
|
@@ -109,7 +108,7 @@ export default {
|
|
|
const windowSize = store.state.app.windowSize
|
|
|
const windowHeigth = windowSize.h
|
|
|
|
|
|
- const quanXian = jsCookie.get('roles')
|
|
|
+ const quanXian = store.state.user.info.roles
|
|
|
|
|
|
const queryTerm = ref({
|
|
|
dateRange: clockinShortcuts[0].value,
|
|
@@ -117,7 +116,7 @@ export default {
|
|
|
opId: '',
|
|
|
chargeCodeMx: null,
|
|
|
reqDeptCode: '',
|
|
|
- execUnitList: [jsCookie.get('dept')],
|
|
|
+ execUnitList: [store.state.user.info.deptCode],
|
|
|
fenLei: 3,
|
|
|
currentPage: 1,
|
|
|
pageSize: 40,
|
|
@@ -217,7 +216,7 @@ export default {
|
|
|
deptList.value = res
|
|
|
})
|
|
|
if (!(quanXian.indexOf(1) > -1 || quanXian.indexOf(34) > -1)) {
|
|
|
- queryTerm.value.opId = jsCookie.get('code')
|
|
|
+ queryTerm.value.opId = store.state.user.info.code
|
|
|
}
|
|
|
})
|
|
|
|