Skip to content

Commit a61a405

Browse files
committed
【代码评审】Bpm:更多设置-摘要设置
1 parent 6c504ad commit a61a405

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

src/views/bpm/model/CategoryDraggableModel.vue

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,7 @@
9494
</el-table-column>
9595
<el-table-column label="可见范围" prop="startUserIds" min-width="150">
9696
<template #default="{ row }">
97-
<el-text v-if="!row.startUsers?.length">
98-
全部可见
99-
</el-text>
97+
<el-text v-if="!row.startUsers?.length"> 全部可见 </el-text>
10098
<el-text v-else-if="row.startUsers.length === 1">
10199
{{ row.startUsers[0].nickname }}
102100
</el-text>
@@ -319,12 +317,6 @@ const tableCellStyle = computed(() => ({
319317
paddingLeft: '10px'
320318
}))
321319
322-
// 使用 computed 优化可见性判断
323-
const isManagerUser = computed(() => {
324-
const userId = userStore.getUser?.id
325-
return (row: ModelInfo) => row.managerUserIds?.includes(userId)
326-
})
327-
328320
/** 权限校验:通过 computed 解决列表的卡顿问题 */
329321
const hasPermiUpdate = computed(() => {
330322
return checkPermi(['bpm:model:update'])

0 commit comments

Comments
 (0)