add report page

This commit is contained in:
2023-02-03 22:47:51 +08:00
parent 5e016dccef
commit e77173a8af
3 changed files with 55 additions and 2 deletions

View File

@@ -62,7 +62,7 @@ const Timetable = ({ user }) => {
// revert conflict changed input
for (const { input, disable } of changedInputs) {
if (disable) {
input.addAttribute("disabled", "true");
input.setAttribute("disabled", "true");
} else {
input.removeAttribute("disabled");
}
@@ -154,7 +154,7 @@ const Timetable = ({ user }) => {
// after checked, find conflicts input
if (includes) {
for (const input of conflicts[index]) {
console.log("conflict", input);
if (input.name === index) continue;
input.setAttribute("disabled", "true");
}
}