refactor frontend terminology to course system mapping

Align frontend wording with final domain terms (course system/course/lesson block), keep PickTargets backward compatible with backend values, and fix related import paths.

Made-with: Cursor
This commit is contained in:
2026-04-23 21:47:02 +08:00
parent 3849426ad9
commit 3007c73c80
35 changed files with 112 additions and 109 deletions
+3 -3
View File
@@ -24,7 +24,7 @@ import useLianxi from "~/store/lianxi";
import useComment from "~/store/comment";
import usePiyue from "~/store/piyue";
import useNotify from "~/store/notify";
import useCourseCategory from "~/store/course-category";
import useCourseCategory from "~/store/qumu-category";
const initialDaka = () => ({
start_date: dayjs().startOf('day').toDate(),
@@ -197,7 +197,7 @@ export default function useDaka() {
return false;
}
if (!course_sections?.length) {
showFailToast('请添加科目')
showFailToast('请添加课程')
return false;
}
return true
@@ -217,7 +217,7 @@ export default function useDaka() {
let { resources, ref_resources, id, resource_note_group, ...rest } = course_sections[i];
ref_resources = ref_resources || resources;
if (!ref_resources?.some(r => r.ref_type === RefTypes.CourseSection && r.resource_type === RefResourceTypes.Picture)) {
showFailToast("科目【" + rest.course_name + "(" + rest.section_name + ")" + "】没有曲谱!")
showFailToast("课程【" + rest.course_name + "(" + rest.section_name + ")" + "】没有曲谱!")
return false;
}
if (!resource_note_group) {