|
@@ -23,6 +23,7 @@ import Train from '/src/views/prepare-lessons/components/lesson-main/train';
|
|
|
import ResourceMain from '/src/views/prepare-lessons/components/resource-main';
|
|
|
import dayjs from 'dayjs';
|
|
|
import { useResizeObserver } from '@vueuse/core';
|
|
|
+import TheEmpty from '/src/components/TheEmpty';
|
|
|
|
|
|
export default defineComponent({
|
|
|
name: 'class-work',
|
|
@@ -46,6 +47,10 @@ export default defineComponent({
|
|
|
courseScheduleId: {
|
|
|
type: String,
|
|
|
default: ''
|
|
|
+ },
|
|
|
+ activeName: {
|
|
|
+ type: String,
|
|
|
+ default: ''
|
|
|
}
|
|
|
},
|
|
|
emits: ['close'],
|
|
@@ -87,13 +92,13 @@ export default defineComponent({
|
|
|
lessonPreTrainingDetails.forEach((child: any) => {
|
|
|
if (child.trainingType === 'PRACTICE' && child.musicName) {
|
|
|
tList.pTitle += tList.pTitle
|
|
|
- ? '、' + child.musicName
|
|
|
- : child.musicName;
|
|
|
+ ? '、《' + child.musicName + '》'
|
|
|
+ : '练习曲目《' + child.musicName + '》';
|
|
|
}
|
|
|
if (child.trainingType === 'EVALUATION' && child.musicName) {
|
|
|
tList.eTitle += tList.eTitle
|
|
|
- ? '、' + child.musicName
|
|
|
- : child.musicName;
|
|
|
+ ? '、《' + child.musicName + '》'
|
|
|
+ : '评测曲目《' + child.musicName + '》';
|
|
|
}
|
|
|
});
|
|
|
|
|
@@ -181,7 +186,7 @@ export default defineComponent({
|
|
|
|
|
|
<NScrollbar style={{ height: '60vh' }} class={[styles.listContainer]}>
|
|
|
<NSpin show={forms.loadingStatus}>
|
|
|
- <div class={styles.listSection} style={{ minHeight: '60vh' }}>
|
|
|
+ <div class={styles.listSection} style={{ minHeight: '55vh' }}>
|
|
|
<NSpace vertical>
|
|
|
{forms.tableList.map((item: any) => (
|
|
|
<WorkSection
|
|
@@ -213,6 +218,10 @@ export default defineComponent({
|
|
|
/>
|
|
|
))}
|
|
|
</NSpace>
|
|
|
+
|
|
|
+ {!forms.loadingStatus && forms.tableList.length <= 0 && (
|
|
|
+ <TheEmpty description="暂无作业" />
|
|
|
+ )}
|
|
|
</div>
|
|
|
</NSpin>
|
|
|
</NScrollbar>
|
|
@@ -277,7 +286,9 @@ export default defineComponent({
|
|
|
classGroupId={props.classGroupId}
|
|
|
courseScheduleId={props.courseScheduleId}
|
|
|
lessonPreTraining={{
|
|
|
- title: dayjs().format('YYYY年MM月DD日') + '-课堂作业',
|
|
|
+ title:
|
|
|
+ (props.activeName || dayjs().format('YYYY年MM月DD日')) +
|
|
|
+ '-课堂作业',
|
|
|
id: forms.selectItem.id
|
|
|
}}
|
|
|
// cardType={'homeworkRecord'}
|