Vue3 重构:form 和 model 编辑器,调整路由
This commit is contained in:
parent
9e798fb7f8
commit
d0ed5edb6e
@ -225,7 +225,7 @@ const remainingRouter: AppRouteRecordRaw[] = [
|
|||||||
children: [
|
children: [
|
||||||
{
|
{
|
||||||
path: '/manager/form/edit',
|
path: '/manager/form/edit',
|
||||||
component: () => import('@/views/bpm/form/FormEditor.vue'),
|
component: () => import('@/views/bpm/form/editor/index.vue'),
|
||||||
name: 'bpmFormEditor',
|
name: 'bpmFormEditor',
|
||||||
meta: {
|
meta: {
|
||||||
noCache: true,
|
noCache: true,
|
||||||
@ -237,14 +237,14 @@ const remainingRouter: AppRouteRecordRaw[] = [
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '/manager/model/edit',
|
path: '/manager/model/edit',
|
||||||
component: () => import('@/views/bpm/model/modelEditor.vue'),
|
component: () => import('@/views/bpm/model/editor/index.vue'),
|
||||||
name: 'modelEditor',
|
name: 'modelEditor',
|
||||||
meta: {
|
meta: {
|
||||||
noCache: true,
|
noCache: true,
|
||||||
hidden: true,
|
hidden: true,
|
||||||
canTo: true,
|
canTo: true,
|
||||||
title: '设计流程',
|
title: '设计流程',
|
||||||
activeMenu: 'bpm/manager/model/design'
|
activeMenu: '/bpm/manager/model'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
|
<ContentWrap>
|
||||||
<!-- 流程设计器,负责绘制流程等 -->
|
<!-- 流程设计器,负责绘制流程等 -->
|
||||||
<my-process-designer
|
<my-process-designer
|
||||||
key="designer"
|
key="designer"
|
||||||
@ -20,6 +21,7 @@
|
|||||||
class="process-panel"
|
class="process-panel"
|
||||||
:model="model"
|
:model="model"
|
||||||
/>
|
/>
|
||||||
|
</ContentWrap>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
@ -34,7 +36,7 @@ const { query } = useRoute() // 路由的查询
|
|||||||
const message = useMessage() // 国际化
|
const message = useMessage() // 国际化
|
||||||
|
|
||||||
const xmlString = ref(undefined) // BPMN XML
|
const xmlString = ref(undefined) // BPMN XML
|
||||||
const modeler = ref(null)
|
const modeler = ref(null) // BPMN Modeler
|
||||||
const controlForm = ref({
|
const controlForm = ref({
|
||||||
simulation: true,
|
simulation: true,
|
||||||
labelEditing: false,
|
labelEditing: false,
|
||||||
@ -92,27 +94,9 @@ onMounted(async () => {
|
|||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
.control-form {
|
|
||||||
.el-radio {
|
|
||||||
width: 100%;
|
|
||||||
line-height: 32px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
.element-overlays {
|
|
||||||
box-sizing: border-box;
|
|
||||||
padding: 8px;
|
|
||||||
background: rgba(0, 0, 0, 0.6);
|
|
||||||
border-radius: 4px;
|
|
||||||
color: #fafafa;
|
|
||||||
}
|
|
||||||
|
|
||||||
.my-process-designer {
|
|
||||||
height: calc(100vh - 84px);
|
|
||||||
}
|
|
||||||
.process-panel__container {
|
.process-panel__container {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
right: 0;
|
right: 60px;
|
||||||
top: 55px;
|
top: 90px;
|
||||||
height: calc(100vh - 84px);
|
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
Loading…
Reference in New Issue
Block a user