b2
parent
16c8e5e936
commit
bb6f9e4356
|
@ -35,7 +35,7 @@
|
|||
<!-- <input @click="saveAns();" type="submit" id="testdis" class="bg-green-700 float-right p-2.5 text-white font-bold rounded-lg" value="Save Answer" /> -->
|
||||
<button :disabled="this.saveAnswer <= 0" :class="{ 'button-visibility': this.saveAnswer <= 0 }" @click="saveAns();" class="bg-green-700 float-right p-2.5 text-white font-bold rounded-lg">Save Answer</button>
|
||||
<!-- :class="{ 'button-visibility': this.saveAnswer <= 0 }" -->
|
||||
<button :disabled="this.saveAnswer >= 1" :class="{ 'button-visibility': this.saveAnswer >= 1 }" v-on:click="reviewLater" class="bg-[#7C4C23] float-right p-2.5 text-white font-bold rounded-lg">Review Later</button>
|
||||
<button v-on:click="reviewLater" class="bg-[#7C4C23] float-right p-2.5 text-white font-bold rounded-lg">Review Later</button>
|
||||
<!-- :class="{ 'button-visibility': this.saveAnswer >= 1 }" -->
|
||||
</div>
|
||||
<button :disabled="qPoint >= noOfQs + 2" @click="getNextQs(); selectOption(index);" class="bg-green-700 float-right p-1 sm:p-2.5 text-white font-bold rounded-lg active:bg-green-700/75"> Next Question</button>
|
||||
|
@ -89,7 +89,7 @@ export default {
|
|||
view: this.viewStatus = 1, // Set status to 1 for "Save Answer"
|
||||
};
|
||||
this.totalAnswer.push(selectedAnswer);
|
||||
console.log('array', this.totalAnswer);
|
||||
console.log('Save Ansr', this.totalAnswer);
|
||||
// } else {
|
||||
// // Show an alert or set a message indicating that no option is selected
|
||||
// alert("Select an answer before saving.");
|
||||
|
@ -133,12 +133,12 @@ export default {
|
|||
reviewLater(){
|
||||
this.getNextQs();
|
||||
const selectedAnswer = {
|
||||
questionId: this.qsData[this.qPoint - 1].id,
|
||||
answer: 0,
|
||||
questionId: this.qsData[this.qPoint].id,
|
||||
view: this.viewStatus = 1// Set status to 1 for "Save Answer"
|
||||
};
|
||||
this.totalAnswer.push(selectedAnswer);
|
||||
console.log('array later', this.totalAnswer);
|
||||
console.log('Review later', this.totalAnswer);
|
||||
|
||||
},
|
||||
selectOption(index) {
|
||||
|
|
Loading…
Reference in New Issue