Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jiedao-app-operator-master
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
lanbaoming
jiedao-app-operator-master
Commits
a028fd89
Commit
a028fd89
authored
Jul 30, 2022
by
chenjiuping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
工作流组件 未例
parent
08730cf0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
2 deletions
+33
-2
index.vue
src/views/index.vue
+33
-2
No files found.
src/views/index.vue
View file @
a028fd89
...
@@ -11,6 +11,10 @@
...
@@ -11,6 +11,10 @@
<ueditor
/>
<ueditor
/>
</el-row>
</el-row>
<el-row>
<my-process-viewer
key=
"designer"
v-model=
"bpmnXML"
v-bind=
"bpmnControlForm"
/>
</el-row>
<el-row
:gutter=
"32"
>
<el-row
:gutter=
"32"
>
<el-col
:xs=
"24"
:sm=
"24"
:lg=
"8"
>
<el-col
:xs=
"24"
:sm=
"24"
:lg=
"8"
>
<div
class=
"chart-wrapper"
>
<div
class=
"chart-wrapper"
>
...
@@ -29,7 +33,9 @@
...
@@ -29,7 +33,9 @@
</el-col>
</el-col>
</el-row>
</el-row>
</div>
</div>
</
template
>
</
template
>
...
@@ -40,6 +46,9 @@ import RaddarChart from './dashboard/RaddarChart'
...
@@ -40,6 +46,9 @@ import RaddarChart from './dashboard/RaddarChart'
import
PieChart
from
'
./dashboard/PieChart
'
import
PieChart
from
'
./dashboard/PieChart
'
import
BarChart
from
'
./dashboard/BarChart
'
import
BarChart
from
'
./dashboard/BarChart
'
import
Ueditor
from
'
@/components/Ueditor
'
import
Ueditor
from
'
@/components/Ueditor
'
import
{
getProcessDefinitionBpmnXMLByKey
}
from
"
@/api/bpm/definition
"
;
const
lineChartData
=
{
const
lineChartData
=
{
newVisitis
:
{
newVisitis
:
{
...
@@ -72,12 +81,26 @@ export default {
...
@@ -72,12 +81,26 @@ export default {
},
},
data
()
{
data
()
{
return
{
return
{
lineChartData
:
lineChartData
.
newVisitis
lineChartData
:
lineChartData
.
newVisitis
,
// BPMN 数据
bpmnXML
:
null
,
bpmnControlForm
:
{
prefix
:
"
activiti
"
},
}
}
},
},
created
()
{
this
.
handlerBpm
();
},
methods
:
{
methods
:
{
handleSetLineChartData
(
type
)
{
handleSetLineChartData
(
type
)
{
this
.
lineChartData
=
lineChartData
[
type
]
this
.
lineChartData
=
lineChartData
[
type
]
},
handlerBpm
(){
getProcessDefinitionBpmnXMLByKey
(
"
free_apply
"
).
then
(
response
=>
{
this
.
bpmnXML
=
response
.
data
})
}
}
}
}
}
}
...
@@ -101,4 +124,12 @@ export default {
...
@@ -101,4 +124,12 @@ export default {
padding
:
8px
;
padding
:
8px
;
}
}
}
}
.my-process-designer
{
height
:
calc
(
100vh
-
200px
);
}
.box-card
{
width
:
100%
;
margin-bottom
:
20px
;
}
</
style
>
</
style
>
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