Ignore placeholder check title fields
This commit is contained in:
@@ -1600,7 +1600,7 @@ function findingTitle(item) {
|
||||
if (dynamicTitle) return dynamicTitle;
|
||||
const display = checkDisplay(item);
|
||||
if (display.title) return display.title;
|
||||
return safeUserText(item?.checkTitleZh || item?.check?.titleZh) || "未登记监测项";
|
||||
return safeDisplayTitle(item?.checkTitleZh, item?.check?.titleZh) || "未登记监测项";
|
||||
}
|
||||
|
||||
function findingCode(item) {
|
||||
@@ -1781,7 +1781,7 @@ function checkDisplay(item) {
|
||||
const dynamicTitle = safeDisplayTitle(item?.displayTitleZh, item?.errorTitleZh, item?.timeoutDisplay?.titleZh, detailEvidence.displayTitleZh);
|
||||
return {
|
||||
code: serviceCode || publicCheckCode(rawId || rawCode) || stableCheckCode(rawCode || rawId),
|
||||
title: dynamicTitle || safeUserText(item?.checkTitleZh || item?.check?.titleZh) || "未登记监测项",
|
||||
title: dynamicTitle || safeDisplayTitle(item?.checkTitleZh, item?.check?.titleZh) || "未登记监测项",
|
||||
summary: safeUserText(item?.checkSummaryZh || item?.check?.summaryZh || detailEvidence.summary || detailEvidence.evidenceSummary) || "已记录监测项详情,见报告原文。",
|
||||
action: safeUserText(item?.checkActionZh || item?.check?.actionZh || detailEvidence.nextAction) || "查看详情后处理",
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user