流程模型中增加仿钉钉设计器入口

This commit is contained in:
jason 2024-03-20 22:25:24 +08:00
parent 07dc725857
commit 0d4b6f6344
3 changed files with 60 additions and 0 deletions

View File

@ -266,6 +266,18 @@ const remainingRouter: AppRouteRecordRaw[] = [
activeMenu: '/bpm/manager/model'
}
},
{
path: '/manager/simple/workflow/model/edit',
component: () => import('@/views/bpm/simpleWorkflow/index.vue'),
name: 'SimpleWorkflowDesignEditor',
meta: {
noCache: true,
hidden: true,
canTo: true,
title: '仿钉钉设计流程',
activeMenu: '/bpm/manager/model'
}
},
{
path: '/manager/definition',
component: () => import('@/views/bpm/definition/index.vue'),

View File

@ -157,6 +157,14 @@
>
设计流程
</el-button>
<el-button
link
type="primary"
@click="handleSimpleDesign(scope.row.id)"
v-hasPermi="['bpm:model:update']"
>
仿钉钉设计流程
</el-button>
<el-button
link
type="primary"
@ -323,6 +331,15 @@ const handleDesign = (row) => {
})
}
const handleSimpleDesign = (row) => {
push({
name: 'SimpleWorkflowDesignEditor',
query: {
modelId: row.id
}
})
}
/** 发布流程 */
const handleDeploy = async (row) => {
try {

View File

@ -0,0 +1,31 @@
<template>
<div>
<section class="dingflow-design">
<div class="box-scale">
<nodeWrap v-model:nodeConfig="nodeConfig" />
<div class="end-node">
<div class="end-node-circle"></div>
<div class="end-node-text">流程结束</div>
</div>
</div>
</section>
</div>
<approverDrawer :directorMaxLevel="directorMaxLevel" />
</template>
<script lang="ts" setup>
import nodeWrap from '@/components/SimpleProcessDesigner/src/nodeWrap.vue'
import approverDrawer from '@/components/SimpleProcessDesigner/src/drawer/approverDrawer.vue'
defineOptions({ name: 'SimpleWorkflowDesignEditor' })
let nodeConfig = ref({
nodeName: '发起人',
type: 0,
id: 'root',
formPerms: {},
nodeUserList: [],
childNode: {}
})
let directorMaxLevel = ref(0)
</script>
<style>
@import url('@/components/SimpleProcessDesigner/theme/workflow.css');
</style>