Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
a61a4053
authored
Jan 24, 2025
by
YunaiV
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
【代码评审】Bpm:更多设置-摘要设置
parent
6c504adc
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
9 deletions
+1
-9
src/views/bpm/model/CategoryDraggableModel.vue
+1
-9
No files found.
src/views/bpm/model/CategoryDraggableModel.vue
View file @
a61a4053
...
@@ -94,9 +94,7 @@
...
@@ -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(() => ({
...
@@ -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'
])
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment