This pull request includes several changes to improve the display and validation of explanations in the evidence profile components. The most important changes include adding formatted text for explanations, updating validation logic, and introducing a new utility function to generate explanations.
src/components/utils/commons.js: Added generateCerqualExplanation function to generate explanations based on selected options, and displaySelectedOption function to display text for selected options.
This pull request includes several changes to improve the display and validation of explanations in the evidence profile components. The most important changes include adding formatted text for explanations, updating validation logic, and introducing a new utility function to generate explanations.
Improvements to display and formatting:
src/components/list/editListEvidenceProfile.vue
: Added formatted text for explanations in multiple sections (coherence
,adequacy
,relevance
, andcerqual
). [1] [2] [3] [4]Validation logic updates:
src/components/list/editListEvidenceProfile.vue
: Updated validation logic to useparseInt
for numerical comparisons in thecheckValidationText
method.src/components/list/evidenceProfileForm.vue
: Updated validation logic to useparseInt
for numerical comparisons in thecheckValidationText
method.New utility functions:
src/components/utils/commons.js
: AddedgenerateCerqualExplanation
function to generate explanations based on selected options, anddisplaySelectedOption
function to display text for selected options.Event handling and method changes:
src/components/list/evidenceProfileForm.vue
: Added@change
event tocerqual
radio group to callcommonGenerateCerqualExplanation
method.src/components/list/evidenceProfileForm.vue
: Removed computed propertycerqualExplanation
and addedcommonGenerateCerqualExplanation
method to generate explanations.