Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
0d4b6f63
authored
Mar 20, 2024
by
jason
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
流程模型中增加仿钉钉设计器入口
parent
07dc7258
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
61 additions
and
0 deletions
+61
-0
src/router/modules/remaining.ts
+12
-0
src/views/bpm/model/index.vue
+17
-0
src/views/bpm/simpleWorkflow/index.vue
+32
-0
No files found.
src/router/modules/remaining.ts
View file @
0d4b6f63
...
@@ -267,6 +267,18 @@ const remainingRouter: AppRouteRecordRaw[] = [
...
@@ -267,6 +267,18 @@ const remainingRouter: AppRouteRecordRaw[] = [
}
}
},
},
{
{
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'
,
path
:
'/manager/definition'
,
component
:
()
=>
import
(
'@/views/bpm/definition/index.vue'
),
component
:
()
=>
import
(
'@/views/bpm/definition/index.vue'
),
name
:
'BpmProcessDefinition'
,
name
:
'BpmProcessDefinition'
,
...
...
src/views/bpm/model/index.vue
View file @
0d4b6f63
...
@@ -160,6 +160,14 @@
...
@@ -160,6 +160,14 @@
<el-button
<el-button
link
link
type=
"primary"
type=
"primary"
@
click=
"handleSimpleDesign(scope.row.id)"
v-hasPermi=
"['bpm:model:update']"
>
仿钉钉设计流程
</el-button>
<el-button
link
type=
"primary"
@
click=
"handleDeploy(scope.row)"
@
click=
"handleDeploy(scope.row)"
v-hasPermi=
"['bpm:model:deploy']"
v-hasPermi=
"['bpm:model:deploy']"
>
>
...
@@ -323,6 +331,15 @@ const handleDesign = (row) => {
...
@@ -323,6 +331,15 @@ const handleDesign = (row) => {
})
})
}
}
const
handleSimpleDesign
=
(
row
)
=>
{
push
({
name
:
'SimpleWorkflowDesignEditor'
,
query
:
{
modelId
:
row
.
id
}
})
}
/** 发布流程 */
/** 发布流程 */
const
handleDeploy
=
async
(
row
)
=>
{
const
handleDeploy
=
async
(
row
)
=>
{
try
{
try
{
...
...
src/views/bpm/simpleWorkflow/index.vue
0 → 100644
View file @
0d4b6f63
<
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
>
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment