Commit 09e989b2 authored by dcy's avatar dcy

Merge remote-tracking branch 'origin/dev' into dev

parents d6de6bb8 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">
...@@ -30,6 +34,8 @@ ...@@ -30,6 +34,8 @@
</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>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment