|
|
|
@ -173,11 +173,12 @@ let currentDepartId = route.query.departId; |
|
|
|
import useUserStore from "@/stores/modules/user"; |
|
|
|
import useUserStore from "@/stores/modules/user"; |
|
|
|
const userStore = useUserStore(); |
|
|
|
const userStore = useUserStore(); |
|
|
|
watch(()=>route.query.departId,(newVal)=>{ |
|
|
|
watch(()=>route.query.departId,(newVal)=>{ |
|
|
|
|
|
|
|
debugger |
|
|
|
console.log('newValue',newVal) |
|
|
|
console.log('newValue',newVal) |
|
|
|
if(newVal!= null){ |
|
|
|
if(newVal!= null){ |
|
|
|
currentDepartId = newVal |
|
|
|
currentDepartId = newVal |
|
|
|
}else{ |
|
|
|
}else{ |
|
|
|
currentDepartId=userStore.user.departId; |
|
|
|
currentDepartId=userStore.user.authDepartIds[0]; |
|
|
|
} |
|
|
|
} |
|
|
|
},{immediate:true}) |
|
|
|
},{immediate:true}) |
|
|
|
|
|
|
|
|
|
|
|
@ -502,8 +503,9 @@ const getSubOneProblemBusinessRateData = async (departId = currentDepartId, time |
|
|
|
wtlxlist.value = res.wtlxlist; |
|
|
|
wtlxlist.value = res.wtlxlist; |
|
|
|
} |
|
|
|
} |
|
|
|
const getData = () => { |
|
|
|
const getData = () => { |
|
|
|
if(route.query.departId == null){ |
|
|
|
debugger |
|
|
|
currentDepartId=userStore.user.departId; |
|
|
|
if(currentDepartId == null){ |
|
|
|
|
|
|
|
currentDepartId=userStore.user.authDepartIds[0]; |
|
|
|
console.log(userStore) |
|
|
|
console.log(userStore) |
|
|
|
} |
|
|
|
} |
|
|
|
console.log('currentDepartId',currentDepartId) |
|
|
|
console.log('currentDepartId',currentDepartId) |
|
|
|
|