feat: 将流程模型新增/修改/设计整合到同一个页面中,分三个步骤进行;跳转传参逻辑与页面绘制

This commit is contained in:
GoldenZqqq
2024-12-03 11:13:53 +08:00
parent 295a43d516
commit 5063db47f3
6 changed files with 648 additions and 43 deletions

View File

@ -1,6 +1,6 @@
<template>
<ContentWrap :bodyStyle="{ padding: '20px 16px' }">
<SimpleProcessDesigner :model-id="modelId" @success="close" />
<SimpleProcessDesigner :model-id="modelId" @success="handleSuccess" />
</ContentWrap>
</template>
<script setup lang="ts">
@ -9,11 +9,16 @@ import { SimpleProcessDesigner } from '@/components/SimpleProcessDesignerV2/src/
defineOptions({
name: 'SimpleModelDesign'
})
const router = useRouter() // 路由
const { query } = useRoute() // 路由的查询
const modelId = query.modelId as string
const close = () => {
router.push({ path: '/bpm/manager/model' })
defineProps<{
modelId: string
}>()
const emit = defineEmits(['success'])
// 修改成功回调
const handleSuccess = () => {
emit('success')
}
</script>
<style lang="scss" scoped></style>