style:证书预览
Showing
6 changed files
with
51 additions
and
3 deletions
| ... | @@ -18,6 +18,7 @@ | ... | @@ -18,6 +18,7 @@ |
| 18 | "diagram-js": "^6.8.2", | 18 | "diagram-js": "^6.8.2", |
| 19 | "js-cookie": "2.2.0", | 19 | "js-cookie": "2.2.0", |
| 20 | "lodash": "^4.17.21", | 20 | "lodash": "^4.17.21", |
| 21 | "mxdraw": "^0.1.157", | ||
| 21 | "node-sass": "^4.14.1", | 22 | "node-sass": "^4.14.1", |
| 22 | "normalize.css": "7.0.0", | 23 | "normalize.css": "7.0.0", |
| 23 | "nprogress": "0.2.0", | 24 | "nprogress": "0.2.0", | ... | ... |
src/views/workflow/components/cad.dwg
0 → 100644
No preview for this file type
| 1 | <!-- | 1 | <!-- |
| 2 | * @Description: | 2 | * @Description: |
| 3 | * @Autor: renchao | 3 | * @Autor: renchao |
| 4 | * @LastEditTime: 2023-05-31 16:03:39 | 4 | * @LastEditTime: 2023-05-31 16:04:44 |
| 5 | --> | 5 | --> |
| 6 | <template> | 6 | <template> |
| 7 | <div class="from-clues loadingtext" v-Loading="loading" element-loading-text="拼命加载中..." style="height:720px"> | 7 | <div class="from-clues loadingtext" v-Loading="loading" element-loading-text="拼命加载中..." style="height:720px"> | ... | ... |
src/views/workflow/components/zdt.vue
0 → 100644
| 1 | <!-- | ||
| 2 | 功能:初始化功能描述 | ||
| 3 | 作者:calliope | ||
| 4 | --> | ||
| 5 | <template> | ||
| 6 | <canvas id="mxcad"> | ||
| 7 | </canvas> | ||
| 8 | </template> | ||
| 9 | <script> | ||
| 10 | import Mx from "mxdraw" | ||
| 11 | export default { | ||
| 12 | mounted () { | ||
| 13 | // 动态加载 js库核心代码 | ||
| 14 | Mx.loadCoreCode().then(() => { | ||
| 15 | // Mx.MxFun.setMxServer("ws://localhost:5090") // 开启socket通信 可编辑图纸 | ||
| 16 | // 创建控件对象 | ||
| 17 | Mx.MxFun.createMxObject({ | ||
| 18 | canvasId: "mxcad", // canvas元素的id | ||
| 19 | cadFile: "./cad.dwg", // http方式(预览): 加载public/demo文件夹下转换后的图纸 | ||
| 20 | // cadFile: "test2.dwg", // socket通信方式请直接提供图纸名称 如:text.dwg | ||
| 21 | callback: (mxDraw, { | ||
| 22 | canvas, | ||
| 23 | canvasParent | ||
| 24 | }) => { | ||
| 25 | // 可以拿到canvas元素和它的父级元素 | ||
| 26 | console.log(canvas, canvasParent) | ||
| 27 | console.log(mxDraw) | ||
| 28 | // 拿到图层数据 | ||
| 29 | mxDraw.addEvent('uiSetLayerData', (listLayer) => { | ||
| 30 | console.log(listLayer) | ||
| 31 | }) | ||
| 32 | }, | ||
| 33 | isNewFile: true // 是否新建文件 | ||
| 34 | }) | ||
| 35 | }) | ||
| 36 | } | ||
| 37 | } | ||
| 38 | </script> | ||
| 39 | <style scoped lang='scss'> | ||
| 40 | #cad-container { | ||
| 41 | width: 100%; | ||
| 42 | height: 100%; | ||
| 43 | } | ||
| 44 | </style> | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
| 1 | /* | 1 | /* |
| 2 | * @Description: | 2 | * @Description: |
| 3 | * @Autor: renchao | 3 | * @Autor: renchao |
| 4 | * @LastEditTime: 2023-05-17 10:38:37 | 4 | * @LastEditTime: 2023-05-29 14:39:11 |
| 5 | */ | 5 | */ |
| 6 | //流程环节操作按钮 | 6 | //流程环节操作按钮 |
| 7 | export function getForm (tabName, djywbm) { | 7 | export function getForm (tabName, djywbm) { |
| ... | @@ -86,6 +86,9 @@ export function getForm (tabName, djywbm) { | ... | @@ -86,6 +86,9 @@ export function getForm (tabName, djywbm) { |
| 86 | case "fzxx": | 86 | case "fzxx": |
| 87 | form = require("@/views/workflow/components/fzxx.vue"); | 87 | form = require("@/views/workflow/components/fzxx.vue"); |
| 88 | break; | 88 | break; |
| 89 | case "zdt": | ||
| 90 | form = require("@/views/workflow/components/zdt.vue"); | ||
| 91 | break; | ||
| 89 | default: | 92 | default: |
| 90 | form = require("@/views/error-page/404.vue"); | 93 | form = require("@/views/error-page/404.vue"); |
| 91 | break; | 94 | break; | ... | ... |
-
Please register or sign in to post a comment