fix: 点击修改流程模型按钮报错问题修复

This commit is contained in:
GoldenZqqq 2024-10-22 15:42:20 +08:00
parent cd9cefa2c8
commit dfa9cd5a3c

View File

@ -35,7 +35,7 @@
<Icon icon="fa:sort-amount-desc" class="mr-5px" />
排序
</el-button>
<el-button v-else link type="info" class="mr-20px" @click.stop="handleAddModel('create')">
<el-button v-else link type="info" class="mr-20px" @click.stop="openModelForm('create')">
<Icon icon="fa:plus" class="mr-5px" />
新建
</el-button>
@ -150,7 +150,7 @@
<el-button
link
type="primary"
@click="openForm('update', scope.row.id)"
@click="openModelForm('update', scope.row.id)"
v-hasPermi="['bpm:model:update']"
:disabled="!isManagerUser(scope.row)"
>
@ -299,12 +299,6 @@ const handleCategoryCommand = (command: string) => {
}
}
/** 添加/修改操作 */
const formRef = ref()
const openForm = (type: string, id?: number) => {
formRef.value.open(type, id)
}
/** 删除按钮操作 */
const handleDelete = async (row: any) => {
try {
@ -481,8 +475,8 @@ const handleDeleteGroup = async () => {
//
const modelFormRef = ref()
const handleAddModel = (type: string) => {
modelFormRef.value.open(type)
const openModelForm = (type: string, id?: number) => {
modelFormRef.value.open(type, id)
}
watch(() => props.categoryInfo.modelList, updateTableData, { immediate: true })