fix -- 修复流程图设计页面404以及显示异常bug

This commit is contained in:
hewenqiang
2022-02-10 11:10:49 +08:00
parent 64db44e542
commit f0fb432504
5 changed files with 43 additions and 2 deletions

View File

@@ -93,7 +93,7 @@ public class FlowDefinitionController extends BaseController {
@GetMapping("/readXml/{definitionId}")
public R<String> readXml(@ApiParam(value = "流程定义ID") @PathVariable(value = "definitionId") String definitionId) {
try {
return R.ok(null, flowDefinitionService.readXml(definitionId));
return R.ok(flowDefinitionService.readXml(definitionId), null);
} catch (Exception e) {
return R.fail("加载xml文件异常", null);
}

View File

@@ -445,6 +445,7 @@ public class FlowTaskServiceImpl extends FlowServiceFactory implements IFlowTask
.processDefinitionId(hisIns.getProcessDefinitionId())
.singleResult();
flowTask.setDeployId(pd.getDeploymentId());
flowTask.setProcDefId(hisIns.getProcessDefinitionId());
flowTask.setProcDefName(pd.getName());
flowTask.setProcDefVersion(pd.getVersion());
flowTask.setCategory(pd.getCategory());

View File

@@ -74,6 +74,45 @@ export const constantRoutes = [
}
]
},
{
path: '/definition',
component: Layout,
hidden: true,
children: [
{
path: 'designer',
component: () => import('@/views/workflow/definition/designer'),
name: 'WorkflowDesigner',
meta: { title: '流程设计', icon: '' }
}
]
},
{
path: '/task',
component: Layout,
hidden: true,
children: [
{
path: 'record/index',
component: () => import('@/views/workflow/task/record/index'),
name: 'Record',
meta: { title: '流程处理', icon: '' }
}
]
},
{
path: '/tool',
component: Layout,
hidden: true,
children: [
{
path: 'build/index',
component: () => import('@/views/tool/build/index'),
name: 'FormBuild',
meta: { title: '表单配置', icon: '' }
}
]
},
{
path: '/user',
component: Layout,

View File

@@ -476,7 +476,7 @@ export default {
handleLoadXml(row) {
this.process.open = false;
this.$router.push({
path: '/definition/designer/index',
path: '/definition/designer',
query: {
definitionId: row.definitionId,
processId: row.processKey,

View File

@@ -295,6 +295,7 @@ export default {
handleFlowRecord(row){
this.$router.push({ path: '/task/record/index',
query: {
definitionId: row.procDefId,
procInsId: row.procInsId,
deployId: row.deployId,
taskId: row.taskId,