《开源精选》是我们分享Github、Gitee等开源社区中优质项目的栏目,包括技术、学习、实用与各种有趣的内容。本期推荐的是一个仿钉钉审批流程设置——Workflow。
安装
git clone https://github.com/StavinLi/Workflow.git运行
1、环境依赖 npm i
2、本地运行 npm run serve
3、打包运行 npm run build
{{nowVal}}%
指定成员
主管
发起人自选
发起人自己
连续多级主管
...
审批人
抄送人
条件分支
... let {type,error,nodeName,conditionNodes} = childNode
if (type == 1 || type == 2) {
if (error) {
this.tipList.push({ name: nodeName, type: ["","审核人","抄送人"][type] })
}
this.reErr(childNode)
} else if (type == 3) {
this.reErr(childNode)
} else if (type == 4) {
this.reErr(childNode)
for (var i = 0; i < conditionNodes.length; i++) {
if (conditionNodes[i].error) {
this.tipList.push({ name: conditionNodes[i].nodeName, type: "条件" })
}
this.reErr(conditionNodes[i])
}
}
—END—
开源协议:MIT
开源地址:https://github.com/StavinLi/Workflow
| 留言与评论(共有 0 条评论) “” |