【代码评审】Bpm:模型列表的优化

This commit is contained in:
YunaiV
2025-01-23 19:40:49 +08:00
parent bf437421bb
commit 58455cd0a4
3 changed files with 17 additions and 18 deletions

View File

@ -190,10 +190,7 @@
<el-button type="primary" link>更多</el-button>
<template #dropdown>
<el-dropdown-menu>
<el-dropdown-item
command="handleDefinitionList"
v-if="hasPermiPdQuery"
>
<el-dropdown-item command="handleDefinitionList" v-if="hasPermiPdQuery">
历史
</el-dropdown-item>
<el-dropdown-item
@ -278,6 +275,7 @@ const originalData: any = ref([]) // 原始数据
const modelList: any = ref([]) // 模型列表
const isExpand = ref(false) // 是否处于展开状态
/** 权限校验:通过 computed 解决列表的卡顿问题 */
const hasPermiUpdate = computed(() => {
return checkPermi(['bpm:model:update'])
})
@ -294,7 +292,6 @@ const hasPermiPdQuery = computed(() => {
return checkPermi(['bpm:process-definition:query'])
})
/** '更多'操作按钮 */
const handleModelCommand = (command: string, row: any) => {
switch (command) {