mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-14 21:02:49 +00:00
feat: okr结果分析 - 部门负责人也可以看
This commit is contained in:
parent
8144bea613
commit
2813f4c062
@ -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;
|
||||
|
||||
@ -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`)">
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user