Skip to content

Commit d0da7d6

Browse files
committed
feat: 流程发布校验是否存在进行中的单据
1 parent 4f8b283 commit d0da7d6

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

src/views/bpm/model/CategoryDraggableModel.vue

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@
159159
<el-button
160160
link
161161
type="primary"
162-
@click="openModelForm('update', scope.row.id, scope.row.processDefinition?.id)"
162+
@click="openModelForm('update', scope.row.id)"
163163
v-if="hasPermiUpdate"
164164
:disabled="!isManagerUser(scope.row)"
165165
>
@@ -590,14 +590,13 @@ const handleDeleteCategory = async () => {
590590
591591
/** 添加流程模型弹窗 */
592592
const tagsView = useTagsView()
593-
const openModelForm = async (type: string, id?: number, processDefinitionId?: any) => {
593+
const openModelForm = async (type: string, id?: number) => {
594594
if (type === 'create') {
595595
await push({ name: 'BpmModelCreate' })
596596
} else {
597-
const params = processDefinitionId ? { id, type, processDefinitionId } : { id, type }
598597
await push({
599598
name: 'BpmModelUpdate',
600-
params: params
599+
params: { id, type }
601600
})
602601
// 设置标题
603602
if (type === 'copy') {

src/views/bpm/model/form/index.vue

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,8 +162,7 @@ const formData: any = ref({
162162
summarySetting: {
163163
enable: false,
164164
summary: []
165-
},
166-
processDefinitionId: undefined
165+
}
167166
})
168167
169168
//流程数据

0 commit comments

Comments
 (0)