File tree Expand file tree Collapse file tree 3 files changed +60
-0
lines changed Expand file tree Collapse file tree 3 files changed +60
-0
lines changed Original file line number Diff line number Diff line change @@ -266,6 +266,18 @@ const remainingRouter: AppRouteRecordRaw[] = [
266
266
activeMenu : '/bpm/manager/model'
267
267
}
268
268
} ,
269
+ {
270
+ path : '/manager/simple/workflow/model/edit' ,
271
+ component : ( ) => import ( '@/views/bpm/simpleWorkflow/index.vue' ) ,
272
+ name : 'SimpleWorkflowDesignEditor' ,
273
+ meta : {
274
+ noCache : true ,
275
+ hidden : true ,
276
+ canTo : true ,
277
+ title : '仿钉钉设计流程' ,
278
+ activeMenu : '/bpm/manager/model'
279
+ }
280
+ } ,
269
281
{
270
282
path : '/manager/definition' ,
271
283
component : ( ) => import ( '@/views/bpm/definition/index.vue' ) ,
Original file line number Diff line number Diff line change 157
157
>
158
158
设计流程
159
159
</el-button >
160
+ <el-button
161
+ link
162
+ type =" primary"
163
+ @click =" handleSimpleDesign(scope.row.id)"
164
+ v-hasPermi =" ['bpm:model:update']"
165
+ >
166
+ 仿钉钉设计流程
167
+ </el-button >
160
168
<el-button
161
169
link
162
170
type =" primary"
@@ -323,6 +331,15 @@ const handleDesign = (row) => {
323
331
})
324
332
}
325
333
334
+ const handleSimpleDesign = (row ) => {
335
+ push ({
336
+ name: ' SimpleWorkflowDesignEditor' ,
337
+ query: {
338
+ modelId: row .id
339
+ }
340
+ })
341
+ }
342
+
326
343
/** 发布流程 */
327
344
const handleDeploy = async (row ) => {
328
345
try {
Original file line number Diff line number Diff line change
1
+ <template >
2
+ <div >
3
+ <section class =" dingflow-design" >
4
+ <div class =" box-scale" >
5
+ <nodeWrap v-model:nodeConfig =" nodeConfig" />
6
+ <div class =" end-node" >
7
+ <div class =" end-node-circle" ></div >
8
+ <div class =" end-node-text" >流程结束</div >
9
+ </div >
10
+ </div >
11
+ </section >
12
+ </div >
13
+ <approverDrawer :directorMaxLevel =" directorMaxLevel" />
14
+ </template >
15
+ <script lang="ts" setup>
16
+ import nodeWrap from ' @/components/SimpleProcessDesigner/src/nodeWrap.vue'
17
+ import approverDrawer from ' @/components/SimpleProcessDesigner/src/drawer/approverDrawer.vue'
18
+ defineOptions ({ name: ' SimpleWorkflowDesignEditor' })
19
+ let nodeConfig = ref ({
20
+ nodeName: ' 发起人' ,
21
+ type: 0 ,
22
+ id: ' root' ,
23
+ formPerms: {},
24
+ nodeUserList: [],
25
+ childNode: {}
26
+ })
27
+ let directorMaxLevel = ref (0 )
28
+ </script >
29
+ <style >
30
+ @import url (' @/components/SimpleProcessDesigner/theme/workflow.css' );
31
+ </style >
You can’t perform that action at this time.
0 commit comments