fix:【antd/ele】【bpm】修复模型管理的权限控制错误,对应 https://github.com/yudaocode/yudao-ui-admin-vben/issues/142
This commit is contained in:
@@ -669,7 +669,7 @@ function handleRenameSuccess() {
|
||||
size="small"
|
||||
class="px-1"
|
||||
@click="modelOperation('update', row.id)"
|
||||
:disabled="!isManagerUser(row) || !hasPermiUpdate"
|
||||
:disabled="!isManagerUser(row) && !hasPermiUpdate"
|
||||
>
|
||||
修改
|
||||
</Button>
|
||||
@@ -678,7 +678,7 @@ function handleRenameSuccess() {
|
||||
size="small"
|
||||
class="px-1"
|
||||
@click="handleDeploy(row)"
|
||||
:disabled="!isManagerUser(row) || !hasPermiDeploy"
|
||||
:disabled="!isManagerUser(row) && !hasPermiDeploy"
|
||||
>
|
||||
发布
|
||||
</Button>
|
||||
@@ -718,7 +718,7 @@ function handleRenameSuccess() {
|
||||
<Menu.Item
|
||||
danger
|
||||
key="handleDelete"
|
||||
:disabled="!isManagerUser(row) || !hasPermiDelete"
|
||||
:disabled="!isManagerUser(row) && !hasPermiDelete"
|
||||
>
|
||||
删除
|
||||
</Menu.Item>
|
||||
|
||||
@@ -137,7 +137,7 @@ const [Grid, gridApi] = useVbenVxeGrid({
|
||||
<template
|
||||
v-if="
|
||||
row.status === BpmProcessInstanceStatus.RUNNING &&
|
||||
row.tasks!.length > 0
|
||||
row.tasks?.length! > 0
|
||||
"
|
||||
>
|
||||
<!-- 单人审批 -->
|
||||
|
||||
@@ -665,7 +665,7 @@ function handleRenameSuccess() {
|
||||
link
|
||||
size="small"
|
||||
@click="modelOperation('update', row.id)"
|
||||
:disabled="!isManagerUser(row) || !hasPermiUpdate"
|
||||
:disabled="!isManagerUser(row) && !hasPermiUpdate"
|
||||
>
|
||||
修改
|
||||
</ElButton>
|
||||
@@ -673,7 +673,7 @@ function handleRenameSuccess() {
|
||||
link
|
||||
size="small"
|
||||
@click="handleDeploy(row)"
|
||||
:disabled="!isManagerUser(row) || !hasPermiDeploy"
|
||||
:disabled="!isManagerUser(row) && !hasPermiDeploy"
|
||||
>
|
||||
发布
|
||||
</ElButton>
|
||||
@@ -717,7 +717,7 @@ function handleRenameSuccess() {
|
||||
</el-dropdown-item>
|
||||
<el-dropdown-item
|
||||
@click="handleModelCommand('handleDelete', row)"
|
||||
:disabled="!isManagerUser(row) || !hasPermiDelete"
|
||||
:disabled="!isManagerUser(row) && !hasPermiDelete"
|
||||
>
|
||||
删除
|
||||
</el-dropdown-item>
|
||||
|
||||
@@ -138,7 +138,7 @@ const [Grid, gridApi] = useVbenVxeGrid({
|
||||
<template
|
||||
v-if="
|
||||
row.status === BpmProcessInstanceStatus.RUNNING &&
|
||||
row.tasks!.length > 0
|
||||
row.tasks?.length! > 0
|
||||
"
|
||||
>
|
||||
<!-- 单人审批 -->
|
||||
|
||||
Reference in New Issue
Block a user