Ver Fonte

fix:修复表单类型为空问题

lph há 1 ano atrás
pai
commit
f32b2346a1

+ 4 - 4
zkqy-ui/src/views/system/bpmnPro/components/bo-utils/getNodeMsg.js

@@ -73,10 +73,10 @@ export function getNodeMsg(xmlObj) {
     });
     nodeObj.nodeKey = node.id;
     nodeObj.nodeName = node.getAttribute('name');
-    if (nodeObj.nodeName.includes('-')) {
-      nodeObj.nodeFormType = 'designForm';
-      nodeObj.nodeFormKey = nodeObj.nodeName.split('-')[0]
-    }
+    // if (nodeObj.nodeName.includes('-')) {
+    nodeObj.nodeFormType = 'designForm';
+    nodeObj.nodeFormKey = node.getAttribute(`${prefix}:nodeFormKey`)
+    // }
     bpmNodeHandleUser.length && (nodeObj.nodeRolePermission = node.getAttribute(`${prefix}:virtuallyRole`));
     let asyncBefore = node.getAttribute(`${prefix}:asyncBefore`)
     if (asyncBefore == 'true') {