diff --git a/src/pages/Account/invoice.vue b/src/pages/Account/invoice.vue index 61dec45..fac20b1 100644 --- a/src/pages/Account/invoice.vue +++ b/src/pages/Account/invoice.vue @@ -933,11 +933,12 @@ export default { headers: { Authorization: "Bearer " + this.token }, }) .then((response) => { - response.data.data.unshift({ + this.studentList = response.data.data.filter((item) => item.status); + this.studentList.unshift({ name: "Select All", _id: "Select All", }); - this.studentList = response.data.data; + console.log("=======studentist====", this.studentList); this.showLoader = false; }) .catch((err) => { @@ -1074,7 +1075,7 @@ export default { if (this.invoiceData.studentId === "Select All") { for (let i = 1; i < this.studentList.length; i++) { this.invoiceData.students.push(this.studentList[i]._id); - console.log("data", this.invoiceData.students); + // console.log("data", this.invoiceData.students); // data.push(this.studentList[i]._id); // console.log("data", data); }