diff --git a/yudao-admin-ui/src/components/bpmnProcessDesigner/package/designer/ProcessViewer.vue b/yudao-admin-ui/src/components/bpmnProcessDesigner/package/designer/ProcessViewer.vue new file mode 100644 index 000000000..fccf2e376 --- /dev/null +++ b/yudao-admin-ui/src/components/bpmnProcessDesigner/package/designer/ProcessViewer.vue @@ -0,0 +1,65 @@ + + + diff --git a/yudao-admin-ui/src/components/bpmnProcessDesigner/package/designer/index2.js b/yudao-admin-ui/src/components/bpmnProcessDesigner/package/designer/index2.js new file mode 100644 index 000000000..b32e26320 --- /dev/null +++ b/yudao-admin-ui/src/components/bpmnProcessDesigner/package/designer/index2.js @@ -0,0 +1,7 @@ +import MyProcessViewer from "./ProcessViewer.vue"; + +MyProcessViewer.install = function(Vue) { + Vue.component(MyProcessViewer.name, MyProcessViewer); +}; + +export default MyProcessViewer; diff --git a/yudao-admin-ui/src/components/bpmnProcessDesigner/package/index.js b/yudao-admin-ui/src/components/bpmnProcessDesigner/package/index.js index 5695d8fdc..cac33e7aa 100644 --- a/yudao-admin-ui/src/components/bpmnProcessDesigner/package/index.js +++ b/yudao-admin-ui/src/components/bpmnProcessDesigner/package/index.js @@ -1,7 +1,8 @@ import MyProcessDesigner from "./designer"; import MyProcessPenal from "./penal"; +import MyProcessViewer from './designer/index2'; -const components = [MyProcessDesigner, MyProcessPenal]; +const components = [MyProcessDesigner, MyProcessPenal, MyProcessViewer]; const install = function(Vue) { components.forEach(component => { diff --git a/yudao-admin-ui/src/router/index.js b/yudao-admin-ui/src/router/index.js index 1e50a329a..1d4938213 100644 --- a/yudao-admin-ui/src/router/index.js +++ b/yudao-admin-ui/src/router/index.js @@ -176,6 +176,19 @@ export const constantRoutes = [ } ] }, + { + path: '/bpm', + component: Layout, + hidden: true, // TODO 芋艿:未来可删除,暂时作为一个测试页 + children: [ + { + path: 'manager/model/view', + component: (resolve) => require(['@/views/bpm/model/modelViewer'], resolve), + name: '流程模型-浏览', + meta: { title: '流程模型-浏览' } + } + ] + }, ] export default new Router({ diff --git a/yudao-admin-ui/src/views/bpm/model/index.vue b/yudao-admin-ui/src/views/bpm/model/index.vue index 4594830bc..e71491455 100644 --- a/yudao-admin-ui/src/views/bpm/model/index.vue +++ b/yudao-admin-ui/src/views/bpm/model/index.vue @@ -34,7 +34,13 @@ - + + + + + diff --git a/yudao-admin-ui/src/views/bpm/model/modelViewer.vue b/yudao-admin-ui/src/views/bpm/model/modelViewer.vue new file mode 100644 index 000000000..c0aeb27df --- /dev/null +++ b/yudao-admin-ui/src/views/bpm/model/modelViewer.vue @@ -0,0 +1,41 @@ + + + + +