diff --git a/yudao-admin-ui/src/components/bpmnProcessDesigner/package/penal/base/ElementBaseInfo.vue b/yudao-admin-ui/src/components/bpmnProcessDesigner/package/penal/base/ElementBaseInfo.vue index 6a77a948f..e59738127 100644 --- a/yudao-admin-ui/src/components/bpmnProcessDesigner/package/penal/base/ElementBaseInfo.vue +++ b/yudao-admin-ui/src/components/bpmnProcessDesigner/package/penal/base/ElementBaseInfo.vue @@ -3,10 +3,10 @@ + :disabled="model.id !== undefined && model.id.length > 0" @change="handleKeyUpdate" /> - + @@ -71,6 +71,15 @@ export default { this.bpmnElement = window?.bpmnInstances?.bpmnElement; this.elementBaseInfo = JSON.parse(JSON.stringify(this.bpmnElement.businessObject)); }, + handleKeyUpdate(value) { + // 在 BPMN 的 XML 中,流程标识 key,其实对应的是 id 节点 + this.elementBaseInfo['id'] = value; + this.updateBaseInfo('id'); + }, + handleNameUpdate(value) { + this.elementBaseInfo['name'] = value; + this.updateBaseInfo('name'); + }, updateBaseInfo(key) { // 触发 elementBaseInfo 对应的字段 const attrObj = Object.create(null);