-
{{ getMember(member.memberId)?.lastname }}, {{ getMember(member.memberId)?.firstname }} {{ getMember(member.memberId)?.nameaffix ? `- ${getMember(member.memberId)?.nameaffix}` : "" }}
-
-
+
+ {{ getMember(member.memberId)?.lastname }}, {{ getMember(member.memberId)?.firstname }}
+ {{ getMember(member.memberId)?.nameaffix ? `- ${getMember(member.memberId)?.nameaffix}` : "" }}
+
+
+
+
+
+
{
- return (this.query === ""
- ? this.members
- : this.members.filter((member) =>
- (member.firstname + " " + member.lastname)
- .toLowerCase()
- .replace(/\s+/g, "")
- .includes(this.query.toLowerCase().replace(/\s+/g, ""))
- )).map(m =>({memberId: m.id, absent:false, protocolId:parseInt(this.protocolId ?? "")}));
+ filtered(): Array<{ memberId: number; absent: boolean; excused: boolean; protocolId: number }> {
+ return (
+ this.query === ""
+ ? this.members
+ : this.members.filter((member) =>
+ (member.firstname + " " + member.lastname)
+ .toLowerCase()
+ .replace(/\s+/g, "")
+ .includes(this.query.toLowerCase().replace(/\s+/g, ""))
+ )
+ ).map((m) => ({ memberId: m.id, absent: false, excused: true, protocolId: parseInt(this.protocolId ?? "") }));
+ },
+ getMember() {
+ return (memberId: number) => {
+ return this.members.find((m) => memberId == m.id);
+ };
},
- getMember(){
- return (memberId:number) => {
- return this.members.find(m => memberId == m.id)
- }
- }
},
mounted() {
this.fetchMembers(0, 1000, "", true);