发起变更草稿保存修改
This commit is contained in:
@@ -174,10 +174,14 @@ const findRowWithParents = (rowIndex: number = -1) => {
|
||||
...row,
|
||||
scene: `${row.cause?row.cause+';':''}${currentDev.value?.deviation+';'}${row.consequence?'可能导致:'+row.consequence:''}`,
|
||||
source: 'HAZOP',
|
||||
risk_item: `${currentDev.value?.deviation}${currentNode.value?.node_name?`(${currentNode.value?.node_name}${currentObj.value?.obj_name?`-${currentObj.value?.obj_name}`:''})`:''}`,
|
||||
safe: row?.safeguards?.map((item:any) => item.name).join(';') || '',
|
||||
suggestion: row?.suggestions?.map((item:any) => item.name).join(';') || '',
|
||||
to_pssr: 0
|
||||
item: `${currentDev.value?.deviation}${currentNode.value?.node_name?`(${currentNode.value?.node_name}${currentObj.value?.obj_name?`-${currentObj.value?.obj_name}`:''})`:''}`,
|
||||
inherent_level: row?.risk_value || '',
|
||||
safeguards: row?.safeguards?.map((item:any) => item.name).join(';') || '',
|
||||
suggestions: row?.suggestions?.map((item:any) => item.name).join(';') || '',
|
||||
residual_level: countRiskLevel(row)?.name || '',
|
||||
to_pssr: 0,
|
||||
safes: row?.safeguards || [],
|
||||
sugs: row?.suggestions || [],
|
||||
};
|
||||
}
|
||||
return null;
|
||||
@@ -203,10 +207,14 @@ const enterToTable = (type: string, rowIndex: number = -1) => {
|
||||
...row,
|
||||
scene: `${row.cause?row.cause+';':''}${deviation?deviation+';':''}${row.consequence?'可能导致:'+row.consequence:''}`,
|
||||
source: 'HAZOP',
|
||||
risk_item: `${deviation}${node_ame?`(${node_ame}${obj_ame?`-${obj_ame}`:''})`:''}`,
|
||||
safe: row?.safeguards?.map((item:any) => item.name).join(';') || '',
|
||||
suggestion: row?.suggestions?.map((item:any) => item.name).join(';') || '',
|
||||
to_pssr: 0
|
||||
item: `${deviation}${node_ame?`(${node_ame}${obj_ame?`-${obj_ame}`:''})`:''}`,
|
||||
inherent_level: row?.risk_value || '',
|
||||
safeguards: row?.safeguards?.map((item:any) => item.name).join(';') || '',
|
||||
suggestions: row?.suggestions?.map((item:any) => item.name).join(';') || '',
|
||||
residual_level: countRiskLevel(row)?.name || '',
|
||||
to_pssr: 0,
|
||||
safes: row?.safeguards || [],
|
||||
sugs: row?.suggestions || [],
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user