|
@ -132,6 +132,16 @@ const PatrolRecord = (props) => { |
|
|
record?.points?.inspectContent ? Object.keys(record?.points?.inspectContent).map(key => { |
|
|
record?.points?.inspectContent ? Object.keys(record?.points?.inspectContent).map(key => { |
|
|
recordLevels.push(record?.points?.inspectContent[key]?.level) |
|
|
recordLevels.push(record?.points?.inspectContent[key]?.level) |
|
|
}) : '' |
|
|
}) : '' |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (Array.isArray(record?.points?.inspectContent)) { |
|
|
|
|
|
record?.points?.inspectContent?.map(x => { |
|
|
|
|
|
x.checkItems?.map(v => { |
|
|
|
|
|
recordLevels.push(v?.level) |
|
|
|
|
|
}) |
|
|
|
|
|
}) |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
const level = LEVELS_.find(s => recordLevels.find(x => x == s)) |
|
|
const level = LEVELS_.find(s => recordLevels.find(x => x == s)) |
|
|
return level || '-'; |
|
|
return level || '-'; |
|
|
} |
|
|
} |
|
|