【代码评审】Bpm:更多设置-摘要设置
parent
6c504adcbc
commit
a61a405346
|
@ -94,9 +94,7 @@
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="可见范围" prop="startUserIds" min-width="150">
|
<el-table-column label="可见范围" prop="startUserIds" min-width="150">
|
||||||
<template #default="{ row }">
|
<template #default="{ row }">
|
||||||
<el-text v-if="!row.startUsers?.length">
|
<el-text v-if="!row.startUsers?.length"> 全部可见 </el-text>
|
||||||
全部可见
|
|
||||||
</el-text>
|
|
||||||
<el-text v-else-if="row.startUsers.length === 1">
|
<el-text v-else-if="row.startUsers.length === 1">
|
||||||
{{ row.startUsers[0].nickname }}
|
{{ row.startUsers[0].nickname }}
|
||||||
</el-text>
|
</el-text>
|
||||||
|
@ -319,12 +317,6 @@ const tableCellStyle = computed(() => ({
|
||||||
paddingLeft: '10px'
|
paddingLeft: '10px'
|
||||||
}))
|
}))
|
||||||
|
|
||||||
// 使用 computed 优化可见性判断
|
|
||||||
const isManagerUser = computed(() => {
|
|
||||||
const userId = userStore.getUser?.id
|
|
||||||
return (row: ModelInfo) => row.managerUserIds?.includes(userId)
|
|
||||||
})
|
|
||||||
|
|
||||||
/** 权限校验:通过 computed 解决列表的卡顿问题 */
|
/** 权限校验:通过 computed 解决列表的卡顿问题 */
|
||||||
const hasPermiUpdate = computed(() => {
|
const hasPermiUpdate = computed(() => {
|
||||||
return checkPermi(['bpm:model:update'])
|
return checkPermi(['bpm:model:update'])
|
||||||
|
|
Loading…
Reference in New Issue