Check all checkboxes with filter (active tab)

Hi Guys,

I am currently stuck on how to select all checkboxes on the active tab only.
Was thinking by grabbing the “tag” on the database to determine to select but dont know how to put it additional as i already need the “this.checked = => p.doc_no);”

Can somebody give me a pointer ?

checkPackage(doc_no) {
if (!this.checked.includes(doc_no)) this.checked.push(doc_no);
else this.checked = this.checked.filter(item => item != doc_no);
checkAll() {
this.checked = => p.doc_no);
this.allSelected = true;
uncheckAll() {
this.checked = [];
this.allSelected = false;