feat: 流程模型新增/修改/设计合为一个页面基本切换tab逻辑校验与页面样式优化

This commit is contained in:
GoldenZqqqq
2024-12-09 23:05:36 +08:00
parent 5063db47f3
commit 9459a7296f
5 changed files with 179 additions and 85 deletions

View File

@ -1,6 +1,11 @@
<template>
<ContentWrap :bodyStyle="{ padding: '20px 16px' }">
<SimpleProcessDesigner :model-id="modelId" @success="handleSuccess" />
<SimpleProcessDesigner
:model-id="modelId"
:model-key="modelKey"
:model-name="modelName"
@success="handleSuccess"
/>
</ContentWrap>
</template>
<script setup lang="ts">
@ -11,14 +16,16 @@ defineOptions({
})
defineProps<{
modelId: string
modelId?: string
modelKey?: string
modelName?: string
}>()
const emit = defineEmits(['success'])
// 修改成功回调
const handleSuccess = () => {
emit('success')
const handleSuccess = (data?: any) => {
emit('success', data)
}
</script>
<style lang="scss" scoped></style>