|
|
@@ -21,7 +21,8 @@ export const usePrepareStore = defineStore('prepare-lessons-store', {
|
|
|
isEditResource: false, // 是否编辑资源 - 课件编辑状态
|
|
|
iseditTrain: false, // 是否编辑训练,
|
|
|
isAddTrain: false, // 是否添加训练,
|
|
|
- classGroupId: null as any // 班级编号
|
|
|
+ classGroupId: null as any, // 班级编号
|
|
|
+ beforeLoading: false, // 添加空白课件时,相关资源图片没有值时,默认选中共享资源
|
|
|
}),
|
|
|
getters: {
|
|
|
/** 获取资源状态 */
|
|
|
@@ -173,9 +174,15 @@ export const usePrepareStore = defineStore('prepare-lessons-store', {
|
|
|
/** 获取班级编号 */
|
|
|
getClassGroupId(): string | number {
|
|
|
return this.classGroupId;
|
|
|
+ },
|
|
|
+ getBeforeLoading(): boolean {
|
|
|
+ return this.beforeLoading
|
|
|
}
|
|
|
},
|
|
|
actions: {
|
|
|
+ setBeforeLoading(val: boolean) {
|
|
|
+ this.beforeLoading = val
|
|
|
+ },
|
|
|
/** 设置基础声部 */
|
|
|
setSubjectId(subjectId: string | number) {
|
|
|
this.subjectId = subjectId;
|