mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-16 14:12:51 +00:00
feat: okr结果分析 - 部门负责人也可以看
This commit is contained in:
parent
8144bea613
commit
2813f4c062
@ -302,6 +302,7 @@ export default {
|
|||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
...mapState([
|
...mapState([
|
||||||
|
'userInfo',
|
||||||
'userIsAdmin',
|
'userIsAdmin',
|
||||||
'reportUnreadNumber',
|
'reportUnreadNumber',
|
||||||
'approveUnreadNumber',
|
'approveUnreadNumber',
|
||||||
@ -354,6 +355,12 @@ export default {
|
|||||||
return h;
|
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) => {
|
this.applyList = [...applyList, ...appApplyList, ...adminApplyList].sort((a, b) => {
|
||||||
if (a.sort < b.sort) {
|
if (a.sort < b.sort) {
|
||||||
return -1;
|
return -1;
|
||||||
|
|||||||
@ -94,7 +94,7 @@
|
|||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</template>
|
</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">
|
||||||
<div class="nopage-icon">
|
<div class="nopage-icon">
|
||||||
<img :src="$A.apiUrl(`../images/empty/complete.svg`)">
|
<img :src="$A.apiUrl(`../images/empty/complete.svg`)">
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user