feat: okr结果分析 - 部门负责人也可以看

This commit is contained in:
weifashi 2023-12-14 16:34:43 +08:00
parent 8144bea613
commit 2813f4c062
2 changed files with 8 additions and 1 deletions

View File

@ -302,6 +302,7 @@ export default {
},
computed: {
...mapState([
'userInfo',
'userIsAdmin',
'reportUnreadNumber',
'approveUnreadNumber',
@ -354,6 +355,12 @@ export default {
return h;
});
//
if(this.userInfo.department_owner && !this.userIsAdmin){
adminApplyList = [
{ value: "okrAnalyze", label: "OKR结果", sort: 15, type: 'admin' },
]
}
//
this.applyList = [...applyList, ...appApplyList, ...adminApplyList].sort((a, b) => {
if (a.sort < b.sort) {
return -1;

View File

@ -94,7 +94,7 @@
</li>
</ul>
</template>
<template v-if="columns.length <= 0">
<template v-if="columns.filter(h=>h.list.length > 0).length == 0">
<div class="nopage">
<div class="nopage-icon">
<img :src="$A.apiUrl(`../images/empty/complete.svg`)">