Files
yudao-ui-admin-vue3/src/views/bpm/simple/SimpleModelDesign.vue

39 lines
822 B
Vue
Raw Normal View History

<template>
<ContentWrap :bodyStyle="{ padding: '20px 16px' }">
<SimpleProcessDesigner
:model-id="modelId"
:model-key="modelKey"
:model-name="modelName"
@success="handleSuccess"
:start-user-ids="startUserIds"
ref="designerRef"
/>
</ContentWrap>
</template>
<script setup lang="ts">
import { SimpleProcessDesigner } from '@/components/SimpleProcessDesignerV2/src/'
2024-04-27 00:35:18 +08:00
defineOptions({
name: 'SimpleModelDesign'
})
2025-01-15 20:25:07 +08:00
defineProps<{
modelId?: string
modelKey?: string
modelName?: string
startUserIds?: number[]
}>()
const emit = defineEmits(['success'])
const designerRef = ref()
// 修改成功回调
const handleSuccess = (data?: any) => {
console.info('handleSuccess', data)
if (data) {
emit('success', data)
}
}
</script>
<style lang="scss" scoped></style>