UNPKG

ilead-ibpmp-design-new

Version:

基于 `vue` 和 `bpmn.io@7.0` ,实现 flowable 的 modeler 模型设计器

61 lines (58 loc) 1.29 kB
/** * 存储流程设计相关参数 */ export default class BpmData { constructor() { this.controls = [] // 设计器控件 this.init() } init() { this.controls = [ { action: 'create.start-event', title: '开始活动' }, { action: 'create.intermediate-event', title: '中间' }, { action: 'create.end-event', title: '结束活动' }, { action: 'create.task', title: '手动活动' }, // { // action: 'create.user-task', // title: '用户任务' // }, // { // action: 'create.user-sign-task', // title: '会签任务' // }, { action: 'create.autoTask', title: '自动活动' }, { action: 'create.exclusive-gateway', title: '并发活动' }, { action: 'create.Merge-gateway', title: '汇聚活动' }, { action: 'create.split-gateway', title: '分支活动' } ] } // 获取控件配置信息 getControl(action) { const result = this.controls.filter(item => item.action === action) return result[0] || {} } }