From 7bc36a09fbe9ac550b4484cbc5d8719d1ed124cb Mon Sep 17 00:00:00 2001 From: YunaiV Date: Mon, 3 Jan 2022 02:41:24 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=B5=81=E7=A8=8B=E5=9B=BE?= =?UTF-8?q?=E7=9A=84=E9=A2=84=E8=A7=88=E7=95=8C=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../package/designer/ProcessViewer.vue | 65 +++++++++++++++++++ .../package/designer/index2.js | 7 ++ .../bpmnProcessDesigner/package/index.js | 3 +- yudao-admin-ui/src/router/index.js | 13 ++++ yudao-admin-ui/src/views/bpm/model/index.vue | 39 +++++++++-- .../src/views/bpm/model/modelViewer.vue | 41 ++++++++++++ 6 files changed, 161 insertions(+), 7 deletions(-) create mode 100644 yudao-admin-ui/src/components/bpmnProcessDesigner/package/designer/ProcessViewer.vue create mode 100644 yudao-admin-ui/src/components/bpmnProcessDesigner/package/designer/index2.js create mode 100644 yudao-admin-ui/src/views/bpm/model/modelViewer.vue 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 @@ + + + + +