|
|
|
|
@ -106,10 +106,17 @@ const expandedProjects = ref(new Set()); // 追踪展开的项目
|
|
|
|
|
const referenceAnswerSaving = reactive({});
|
|
|
|
|
let activeLoadGeneration = 0;
|
|
|
|
|
|
|
|
|
|
function sameValue(left, right) {
|
|
|
|
|
return String(left ?? "").trim() === String(right ?? "").trim();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const currentUserId = computed(() => userStore.userInfo.userId);
|
|
|
|
|
const teachingClassList = computed(() => classList.value.filter((item) => item.classType === "TEACHING" || !item.classType && item.createdBy));
|
|
|
|
|
const teachingClassList = computed(() => classList.value.filter((item) =>
|
|
|
|
|
(item.classType === "TEACHING" || (!item.classType && item.createdBy))
|
|
|
|
|
&& sameValue(item.createdBy, currentUserId.value)
|
|
|
|
|
));
|
|
|
|
|
const selectedClass = computed(() => teachingClassList.value.find((item) => item.schoolClassId === classId.value));
|
|
|
|
|
const canOperateSelectedClass = computed(() => selectedClass.value?.createdBy === currentUserId.value);
|
|
|
|
|
const canOperateSelectedClass = computed(() => sameValue(selectedClass.value?.createdBy, currentUserId.value));
|
|
|
|
|
|
|
|
|
|
// 按项目分组任务
|
|
|
|
|
const groupedTasks = computed(() => {
|
|
|
|
|
|