perf: bpm模型复制优化

pull/667/head
zws 2025-01-16 09:27:30 +08:00
parent 2f7200abdb
commit e44f48c0c4
2 changed files with 8 additions and 0 deletions

View File

@ -254,6 +254,7 @@ import { checkPermi } from '@/utils/permission'
import { useUserStoreWithOut } from '@/store/modules/user'
import { useAppStore } from '@/store/modules/app'
import { cloneDeep } from 'lodash-es'
import {useTagsView} from "@/hooks/web/useTagsView";
defineOptions({ name: 'BpmModel' })
@ -474,6 +475,7 @@ const handleDeleteCategory = async () => {
} catch {}
}
const tagsView = useTagsView();
/** 添加流程模型弹窗 */
const modelFormRef = ref()
const openModelForm = (type: string, id?: number) => {
@ -483,6 +485,10 @@ const openModelForm = (type: string, id?: number) => {
push({
name: 'BpmModelUpdate',
params: { id, type }
}).then((_) => {
if (type === 'copy') {
tagsView.setTitle('复制流程')
}
})
}
}

View File

@ -160,6 +160,8 @@ const initData = async () => {
//
if (route.params.type === 'copy') {
delete formData.value.id
formData.value.name += '副本'
formData.value.key += '_copy'
}
} else {
//