Browse Source

小组长角色 右键不允许出现“强制考核分发”菜单

刘洋 1 year ago
parent
commit
7838618bee

+ 3 - 1
src/modules/analysis/personnel-statistics/components/RightKeyMenu.vue

@@ -23,7 +23,7 @@
       分数分布曲线
     </div>
     <div
-      v-if="curRow.markingStatus === '正评'"
+      v-if="curRow.markingStatus === '正评' && mainStore?.myUserInfo?.role !== 'DEPUTY'"
       class="rightKeyMenuItem"
       @click="curRow?.markerId && emits('forceAssessment', unref(curRow))"
     >
@@ -33,6 +33,8 @@
 </template>
 <script setup lang="ts" name="RightKeyMenu">
 import { ref, onUnmounted, unref } from 'vue'
+import useMainStore from '@/store/main'
+const mainStore = useMainStore()
 let rkm = ref()
 const emits = defineEmits(['rightClick', 'onSetWorkload', 'onSendMessage', 'forceAssessment', 'onShowScoreLines'])
 const fun = () => {