Skip to content

Commit dfa9cd5

Browse files
committed
fix: 点击修改流程模型按钮报错问题修复
1 parent cd9cefa commit dfa9cd5

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

src/views/bpm/model/CategoryDraggableModel.vue

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
<Icon icon="fa:sort-amount-desc" class="mr-5px" />
3636
排序
3737
</el-button>
38-
<el-button v-else link type="info" class="mr-20px" @click.stop="handleAddModel('create')">
38+
<el-button v-else link type="info" class="mr-20px" @click.stop="openModelForm('create')">
3939
<Icon icon="fa:plus" class="mr-5px" />
4040
新建
4141
</el-button>
@@ -150,7 +150,7 @@
150150
<el-button
151151
link
152152
type="primary"
153-
@click="openForm('update', scope.row.id)"
153+
@click="openModelForm('update', scope.row.id)"
154154
v-hasPermi="['bpm:model:update']"
155155
:disabled="!isManagerUser(scope.row)"
156156
>
@@ -299,12 +299,6 @@ const handleCategoryCommand = (command: string) => {
299299
}
300300
}
301301
302-
/** 添加/修改操作 */
303-
const formRef = ref()
304-
const openForm = (type: string, id?: number) => {
305-
formRef.value.open(type, id)
306-
}
307-
308302
/** 删除按钮操作 */
309303
const handleDelete = async (row: any) => {
310304
try {
@@ -481,8 +475,8 @@ const handleDeleteGroup = async () => {
481475
482476
// 添加流程模型弹窗
483477
const modelFormRef = ref()
484-
const handleAddModel = (type: string) => {
485-
modelFormRef.value.open(type)
478+
const openModelForm = (type: string, id?: number) => {
479+
modelFormRef.value.open(type, id)
486480
}
487481
488482
watch(() => props.categoryInfo.modelList, updateTableData, { immediate: true })

0 commit comments

Comments
 (0)