Added search per exam
This commit is contained in:
@@ -42,7 +42,7 @@ interface UserCount {
|
|||||||
maxUserCount: number;
|
maxUserCount: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
const searchFilters = [["email"], ["user"], ["userId"]];
|
const searchFilters = [["email"], ["user"], ["userId"], ["exams"], ["assignment"]];
|
||||||
|
|
||||||
const SIZE = 16;
|
const SIZE = 16;
|
||||||
|
|
||||||
@@ -82,6 +82,7 @@ const MasterStatistical = (props: Props) => {
|
|||||||
email: userData?.email || "N/A",
|
email: userData?.email || "N/A",
|
||||||
userId: assignee,
|
userId: assignee,
|
||||||
corporateId: a.corporateId,
|
corporateId: a.corporateId,
|
||||||
|
exams: a.exams.map((x) => x.id).join(", "),
|
||||||
corporate,
|
corporate,
|
||||||
assignment: a.name,
|
assignment: a.name,
|
||||||
};
|
};
|
||||||
@@ -90,7 +91,7 @@ const MasterStatistical = (props: Props) => {
|
|||||||
...commonData,
|
...commonData,
|
||||||
correct: 0,
|
correct: 0,
|
||||||
submitted: false,
|
submitted: false,
|
||||||
// date: moment(),
|
date: null,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -208,7 +209,7 @@ const MasterStatistical = (props: Props) => {
|
|||||||
cell: (info) => {
|
cell: (info) => {
|
||||||
const date = info.getValue();
|
const date = info.getValue();
|
||||||
if (date) {
|
if (date) {
|
||||||
return <span>{date.format("DD/MM/YYYY")}</span>;
|
return <span>{!!date ? date.format("DD/MM/YYYY") : "N/A"}</span>;
|
||||||
}
|
}
|
||||||
|
|
||||||
return <span>{""}</span>;
|
return <span>{""}</span>;
|
||||||
|
|||||||
Reference in New Issue
Block a user