feat: bpm 添加流程模型复制功能

This commit is contained in:
zws 2025-01-15 15:04:23 +08:00
parent 8df285aefb
commit b117431318
3 changed files with 15 additions and 3 deletions

View File

@ -344,7 +344,7 @@ const remainingRouter: AppRouteRecordRaw[] = [
}
},
{
path: 'manager/model/update/:id',
path: 'manager/model/:type/:id',
component: () => import('@/views/bpm/model/form/index.vue'),
name: 'BpmModelUpdate',
meta: {

View File

@ -163,6 +163,15 @@
>
修改
</el-button>
<el-button
link
type="primary"
@click="openModelForm('copy', scope.row.id)"
v-hasPermi="['bpm:model:update']"
:disabled="!isManagerUser(scope.row)"
>
复制
</el-button>
<el-button
link
class="!ml-5px"
@ -473,7 +482,7 @@ const openModelForm = (type: string, id?: number) => {
} else {
push({
name: 'BpmModelUpdate',
params: { id }
params: { id, type }
})
}
}

View File

@ -162,7 +162,10 @@ const initData = async () => {
if (modelId) {
//
formData.value = await ModelApi.getModel(modelId)
//
if (route.params.type === 'copy') {
delete formData.value.id
}
} else {
//
formData.value.managerUserIds.push(userStore.getUser.id)