Admin Workflow - Fix Tested Issues

This commit is contained in:
Dillon Ngo
2025-01-16 13:51:31 +08:00
parent c8b20100bd
commit 8fe21cfb22
@@ -287,7 +287,7 @@
@click="addClass($event, 'question.answers')"
style="margin: 15px; padding: 15px 40px; min-width: 210px;">
{{ ans.display_text }}
<span v-if="ans.value ==='fill_po_edit_filled' && !answer_extra">(NOT TALLY)</span>
{{ ans.value === 'fill_po_edit_filled' && !answer_extra ? '(NOT TALLY)' : '' }}
</button>
<!-- <div class="col" v-for="ans in question.question_answers">
<div class="col question.answers">
@@ -572,11 +572,14 @@
const div = event.target;
this.answer = div.getAttribute('answerValue');
this.answerId = div.getAttribute('answerId');
this.removeClass(cls);
if(this.answer === 'fill_po_edit_filled' && !this.answer_extra){
this.answer = div.getAttribute('answerValue') + ",not_tally"
div.classList.add('btn-danger');
}
else{
div.classList.add('btn-primary');
}
this.removeClass(cls);
div.classList.add('btn-primary');
},
removeClass(cls) {
document.getElementsByClassName(cls).forEach(el => {
@@ -584,6 +587,10 @@
if (btnPrimaryEl) {
btnPrimaryEl.classList.remove('btn-primary');
}
const btnDangerEl = el.getElementsByClassName('btn-danger')[0];
if (btnDangerEl) {
btnDangerEl.classList.remove('btn-danger');
}
});
},
startTimer() {