【功能修复】工作流:新建的流程,部分数据的 NPE 问题

pull/452/head
YunaiV 2024-10-04 11:47:45 +08:00
parent 926eb70fe5
commit dd4c4817e4
1 changed files with 2 additions and 2 deletions

View File

@ -125,7 +125,7 @@
</el-tag>
<el-tag v-else type="warning">未部署</el-tag>
<el-tag
v-if="scope.row.processDefinition.suspensionState === 2"
v-if="scope.row.processDefinition?.suspensionState === 2"
type="warning"
class="ml-10px"
>
@ -180,7 +180,7 @@
</el-dropdown-item>
<el-dropdown-item
command="handleChangeState"
v-if="checkPermi(['bpm:model:update'])"
v-if="checkPermi(['bpm:model:update']) && scope.row.processDefinition"
:disabled="!isManagerUser(scope.row)"
>
{{ scope.row.processDefinition.suspensionState === 1 ? '停用' : '启用' }}