Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mes-ui
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
周远喜
mes-ui
Commits
824c765e
Commit
824c765e
authored
Oct 09, 2020
by
renjintao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
design
parent
f4417a0c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
108 additions
and
102 deletions
+108
-102
design.vue
pages/workflow/process/design.vue
+108
-102
No files found.
pages/workflow/process/design.vue
View file @
824c765e
<
template
>
<
template
>
<div
class=
"Design"
>
<div
class=
"Design"
>
<Timeline>
<Timeline>
<TimelineItem
v-for=
"(node,i) in nodes"
:key=
"node.id"
>
<TimelineItem
v-for=
"(node,i) in nodes"
:key=
"node.id"
>
<Badge
:count=
"i+1"
type=
"primary"
slot=
"dot"
></Badge>
<Badge
:count=
"i+1"
type=
"primary"
slot=
"dot"
></Badge>
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
(
(
<state
code=
"workflow.form.audit.type"
:value=
"node.operation"
/>
)
<state
code=
"workflow.form.audit.type"
:value=
"node.operation"
/>
)
<Icon
type=
"md-build"
/>
<Icon
type=
"md-build"
/>
<Icon
v-if=
"node.isFixed"
type=
"ios-lock"
color=
"orange"
title=
"人员固定"
/>
<Icon
v-if=
"node.isFixed"
type=
"ios-lock"
color=
"orange"
title=
"人员固定"
/>
</a>
</a>
</div>
</div>
<div
v-if=
"node.userIds&&node.userIds.length>0"
>
<div
v-if=
"node.userIds&&node.userIds.length>0"
>
...
@@ -19,10 +19,7 @@
...
@@ -19,10 +19,7 @@
</div>
</div>
<div
v-if=
"node.roleList&&node.roleList.length>0"
>
<div
v-if=
"node.roleList&&node.roleList.length>0"
>
审批角色:
审批角色:
<span
<span
v-for=
"(role,k) in node.roleList"
class=
"mr10"
>
{{
role
.
name
}}
(
{{
role
.
userIdList
.
length
}}
)
</span>
v-for=
"(role,k) in node.roleList"
class=
"mr10"
>
{{
role
.
name
}}
(
{{
role
.
userIdList
.
length
}}
)
</span>
</div>
</div>
</div>
</div>
</TimelineItem>
</TimelineItem>
...
@@ -33,8 +30,9 @@
...
@@ -33,8 +30,9 @@
<Modal
v-model=
"startModal"
title=
"开始节点编辑"
footer-hide
width=
"800"
>
<Modal
v-model=
"startModal"
title=
"开始节点编辑"
footer-hide
width=
"800"
>
<StartEdit
:eid=
"startId"
@
on-close=
"cancel"
@
on-ok=
"addOk"
/>
<StartEdit
:eid=
"startId"
@
on-close=
"cancel"
@
on-ok=
"addOk"
/>
</Modal>
</Modal>
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
import
Api
from
'./api'
import
Api
from
'./api'
import
Edit
from
'./node'
import
Edit
from
'./node'
...
@@ -58,24 +56,29 @@ export default {
...
@@ -58,24 +56,29 @@ export default {
props
:
{
props
:
{
eid
:
String
eid
:
String
},
},
async
fetch
({
store
,
params
})
{
async
fetch
({
store
,
params
})
{
await
store
.
dispatch
(
'loadDictionary'
)
// 加载数据字典
await
store
.
dispatch
(
'loadDictionary'
)
// 加载数据字典
},
},
mounted
()
{
mounted
()
{
this
.
load
(
this
.
eid
)
this
.
load
(
this
.
eid
)
},
},
methods
:
{
methods
:
{
load
(
v
)
{
load
(
v
)
{
alert
(
v
)
//alert(v)
Api
.
detail
({
id
:
v
}).
then
((
r
)
=>
{
Api
.
detail
({
id
:
v
}).
then
((
r
)
=>
{
this
.
nodes
=
r
.
result
.
nodes
this
.
nodes
=
r
.
result
.
nodes
// this.$emit('on-load')
// this.$emit('on-load')
})
})
},
},
edit
(
id
,
i
)
{
edit
(
id
,
i
)
{
if
(
i
==
0
)
{
if
(
i
==
0
)
{
this
.
startModal
=
true
this
.
startModal
=
true
this
.
startId
=
id
;
this
.
startId
=
id
;
}
else
{
}
else
{
this
.
editModal
=
true
this
.
editModal
=
true
this
.
curId
=
id
this
.
curId
=
id
...
@@ -109,14 +112,17 @@ export default {
...
@@ -109,14 +112,17 @@ export default {
}
}
}
}
</
script
>
</
script
>
<
style
lang=
"less"
>
<
style
lang=
"less"
>
.Design {
.Design {
background: white;
background: white;
padding: 20px 50px;
padding: 20px 50px;
.node {
.node {
.title {
.title {
font-size: 14px;
font-size: 14px;
font-weight: bold;
font-weight: bold;
.auditedTime {
.auditedTime {
font-size: 12px;
font-size: 12px;
color: #ddd;
color: #ddd;
...
...
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