|
|
@@ -5183,7 +5183,8 @@ export default function IsolationWork({ subMenu }: IsolationWorkProps) {
|
|
|
const colockPersonIds = nodeUserDOList
|
|
|
.filter((u: any) => u.type === 'jtcolocker' && u.userId != null)
|
|
|
.map((u: any) => Number(u.userId));
|
|
|
- const colockPersons = colockPersonIds.length > 0 ? JSON.stringify(colockPersonIds) : undefined;
|
|
|
+ // 共锁人:有则传 JSON 字符串,清空时传空字符串以便后端清空
|
|
|
+ const colockPersons = colockPersonIds.length > 0 ? JSON.stringify(colockPersonIds) : '';
|
|
|
|
|
|
const updateParam: UpdateWorkflowWorkNodeParam = {
|
|
|
nodeId: nodeDO.id,
|
|
|
@@ -5200,7 +5201,7 @@ export default function IsolationWork({ subMenu }: IsolationWorkProps) {
|
|
|
: undefined,
|
|
|
nodeUserDOList: nodeUserDOList.length > 0 ? nodeUserDOList : undefined,
|
|
|
lockPerson,
|
|
|
- colockPersons: (colockPersons != null && colockPersons.length > 0) ? colockPersons : undefined,
|
|
|
+ colockPersons: (selectedWorkflowNode.data?.type === 'isolation' || selectedWorkflowNode.data?.type === '隔离' || selectedWorkflowNode.data?.type === '隔离/方案') && workflowNodeConfig.isolationType === '1' ? colockPersons : undefined,
|
|
|
// 如果获取到了表单数据,将整个对象内容转换成字符串传递给 formData 字段
|
|
|
formData: formData,
|
|
|
// 根据选中值传递模板代码参数(字符串类型的 'true' 或 'false')
|