# snakerflow-designer-vue **Repository Path**: gitxuchang/snakerflow-designer-vue ## Basic Information - **Project Name**: snakerflow-designer-vue - **Description**: 基于Logicflow的工作流设计器-用于snakerflow - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 124 - **Created**: 2022-04-21 - **Last Updated**: 2022-04-21 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # snaker工作流引擎web设计器 [在线体验] (https://snaker.mldong.com/) # 构建 ## 安装 ``` npm install ``` ## 开发 ``` npm run serve ``` ## 打包编译 ``` npm run build ``` ## 校验 ``` npm run lint ``` # 数据 ## 样例数据 ``` json { "name": "leave", "displayName": "请假", "expireTime": "", "instanceUrl": "leaveForm", "nodes": [ { "id": "start", "type": "snaker:start", "x": 340, "y": 160, "properties": {}, "text": { "x": 340, "y": 200, "value": "开始" } }, { "id": "applly", "type": "snaker:task", "x": 520, "y": 160, "properties": { "taskType": "Major", "performType": "ANY", "autoExecute": "N", "assignee": "approve.operator" }, "text": { "x": 520, "y": 160, "value": "请假申请" } }, { "id": "approveDept", "type": "snaker:task", "x": 740, "y": 160, "properties": { "assignee": "", "taskType": "Major", "performType": "ANY", "autoExecute": "N", "assignmentHandler": "com.mldong.config.FlowAssignmentHandler" }, "text": { "x": 740, "y": 160, "value": "部门领导审批" } }, { "id": "end", "type": "snaker:end", "x": 1080, "y": 160, "properties": {}, "text": { "x": 1080, "y": 200, "value": "结束" } }, { "id": "2c75eebf-5baf-4cd0-a7b3-05466be13634", "type": "snaker:decision", "x": 740, "y": 340, "properties": {} }, { "id": "approveBoss", "type": "snaker:task", "x": 900, "y": 480, "properties": { "assignee": "", "taskType": "Major", "performType": "ANY", "autoExecute": "N", "assignmentHandler": "com.mldong.config.FlowAssignmentHandler" }, "text": { "x": 900, "y": 480, "value": "公司领导审批" } } ], "edges": [ { "id": "3037be41-5682-4344-b94a-9faf5c3e62ba", "type": "snaker:transition", "sourceNodeId": "start", "targetNodeId": "applly", "startPoint": { "x": 358, "y": 160 }, "endPoint": { "x": 460, "y": 160 }, "properties": {}, "pointsList": [ { "x": 358, "y": 160 }, { "x": 460, "y": 160 } ] }, { "id": "c79642ae-9f28-4213-8cdf-0e0d6467b1b9", "type": "snaker:transition", "sourceNodeId": "applly", "targetNodeId": "approveDept", "startPoint": { "x": 580, "y": 160 }, "endPoint": { "x": 680, "y": 160 }, "properties": {}, "pointsList": [ { "x": 580, "y": 160 }, { "x": 680, "y": 160 } ] }, { "id": "09d9b143-9473-4a0f-8287-9abf6f65baf5", "type": "snaker:transition", "sourceNodeId": "approveDept", "targetNodeId": "2c75eebf-5baf-4cd0-a7b3-05466be13634", "startPoint": { "x": 740, "y": 200 }, "endPoint": { "x": 740, "y": 315 }, "properties": {}, "pointsList": [ { "x": 740, "y": 200 }, { "x": 740, "y": 315 } ] }, { "id": "517ef2c7-3486-4992-b554-0f538ab91751", "type": "snaker:transition", "sourceNodeId": "2c75eebf-5baf-4cd0-a7b3-05466be13634", "targetNodeId": "end", "startPoint": { "x": 764, "y": 339 }, "endPoint": { "x": 1080, "y": 178 }, "properties": { "expr": "#f_day<3" }, "text": { "x": 912, "y": 339, "value": "请假天数小于3" }, "pointsList": [ { "x": 764, "y": 339 }, { "x": 1080, "y": 339 }, { "x": 1080, "y": 178 } ] }, { "id": "d7ec4166-f3fc-4fd6-a2ac-a6c4d509c4dd", "type": "snaker:transition", "sourceNodeId": "2c75eebf-5baf-4cd0-a7b3-05466be13634", "targetNodeId": "approveBoss", "startPoint": { "x": 740, "y": 365 }, "endPoint": { "x": 840, "y": 480 }, "properties": { "expr": "#f_day>=3" }, "text": { "x": 740, "y": 422.5, "value": "请假天数大于等于3" }, "pointsList": [ { "x": 740, "y": 365 }, { "x": 740, "y": 480 }, { "x": 840, "y": 480 } ] }, { "id": "a64348ec-4168-4f36-8a61-15cf12c710b9", "type": "snaker:transition", "sourceNodeId": "approveBoss", "targetNodeId": "end", "startPoint": { "x": 960, "y": 480 }, "endPoint": { "x": 1080, "y": 142 }, "properties": {}, "pointsList": [ { "x": 960, "y": 480 }, { "x": 1140, "y": 480 }, { "x": 1140, "y": 112 }, { "x": 1080, "y": 112 }, { "x": 1080, "y": 142 } ] } ] } ``` ## 高亮数据 ``` json { "historyNodeNames": [ "start", "applly" ], "historyEdgeNames": [ "3037be41-5682-4344-b94a-9faf5c3e62ba", "c79642ae-9f28-4213-8cdf-0e0d6467b1b9" ], "activeNodeNames": [ "approveDept" ] } ``` # 截图 ![1](./doc/images/1.png) ![2](./doc/images/2.png) ![3](./doc/images/3.png) ![4](./doc/images/4.png) ![5](./doc/images/5.png) ![6](./doc/images/6.png) ![7](./doc/images/7.png) ![8](./doc/images/7.png) ![9](./doc/images/7.png) # 相关资料 [LogicFlow] (http://logic-flow.org/) [snaker工作流中文文档] (https://yunmel.gitbooks.io/snakerflow/content/) [snaker源码] (https://gitee.com/yuqs/snakerflow)