mirror of
https://gitee.com/hhyykk/ipms-sjy-ui.git
synced 2025-02-08 22:55:00 +08:00
fix: 点击修改流程模型按钮报错问题修复
This commit is contained in:
parent
cd9cefa2c8
commit
dfa9cd5a3c
@ -35,7 +35,7 @@
|
|||||||
<Icon icon="fa:sort-amount-desc" class="mr-5px" />
|
<Icon icon="fa:sort-amount-desc" class="mr-5px" />
|
||||||
排序
|
排序
|
||||||
</el-button>
|
</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" />
|
<Icon icon="fa:plus" class="mr-5px" />
|
||||||
新建
|
新建
|
||||||
</el-button>
|
</el-button>
|
||||||
@ -150,7 +150,7 @@
|
|||||||
<el-button
|
<el-button
|
||||||
link
|
link
|
||||||
type="primary"
|
type="primary"
|
||||||
@click="openForm('update', scope.row.id)"
|
@click="openModelForm('update', scope.row.id)"
|
||||||
v-hasPermi="['bpm:model:update']"
|
v-hasPermi="['bpm:model:update']"
|
||||||
:disabled="!isManagerUser(scope.row)"
|
: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) => {
|
const handleDelete = async (row: any) => {
|
||||||
try {
|
try {
|
||||||
@ -481,8 +475,8 @@ const handleDeleteGroup = async () => {
|
|||||||
|
|
||||||
// 添加流程模型弹窗
|
// 添加流程模型弹窗
|
||||||
const modelFormRef = ref()
|
const modelFormRef = ref()
|
||||||
const handleAddModel = (type: string) => {
|
const openModelForm = (type: string, id?: number) => {
|
||||||
modelFormRef.value.open(type)
|
modelFormRef.value.open(type, id)
|
||||||
}
|
}
|
||||||
|
|
||||||
watch(() => props.categoryInfo.modelList, updateTableData, { immediate: true })
|
watch(() => props.categoryInfo.modelList, updateTableData, { immediate: true })
|
||||||
|
Loading…
Reference in New Issue
Block a user