| | |
| | | } |
| | | }, |
| | | { |
| | | name: '流程阶段', |
| | | name: '是否允许挂起', |
| | | value: false, |
| | | vueType: 'switch', |
| | | method: (name, value) => { |
| | | this.propertyForm.name = name |
| | | this.propertyForm.value = value |
| | | this.saveAttribute() |
| | | } |
| | | }, |
| | | { |
| | | name: '项目阶段', |
| | | value: null, |
| | | vueType: 'select', |
| | | options: [ |
| | |
| | | return ex.$type === `flowable:Properties`; |
| | | }) ?? []; |
| | | // 保存所有的 扩展属性字段 |
| | | this.bpmnElementPropertyList = this.bpmnElementProperties.reduce((pre, current) => pre.concat(current.values), []); |
| | | console.log("bpmnElementPropertyList",this.bpmnElementPropertyList) |
| | | this.bpmnElementPropertyList = this.bpmnElementProperties.reduce((pre, current) => { |
| | | // 检查 current.values 是否是数组,如果不是则使用空数组 |
| | | const values = current.values ? current.values : []; |
| | | return pre.concat(values); |
| | | }, []); |
| | | console.log("bpmnElementProperties",this.bpmnElementProperties) |
| | | // 回显 |
| | | this.canConfigPropertyList.forEach(item => { |
| | | const find = this.bpmnElementPropertyList.find(el => el.name === item.name); |
| | | if (find) { |
| | | if (item.vueType === 'switch') { |
| | | item.value = find.value === '是' ? true : false |
| | | }else if (item.vueType === 'select') { |
| | | item.value = find.value |
| | | } |
| | | } else { |
| | | item.value = null |