|
@@ -329,6 +329,8 @@ export default defineComponent({
|
|
|
if (data.type === 'preview') {
|
|
|
rightList.splice(1, 1);
|
|
|
}
|
|
|
+
|
|
|
+ rollCallStudentList();
|
|
|
});
|
|
|
|
|
|
// const onFullScreen = () => {
|
|
@@ -1285,7 +1287,15 @@ export default defineComponent({
|
|
|
break;
|
|
|
case 10:
|
|
|
// 点名
|
|
|
- await rollCallStudentList();
|
|
|
+ // await rollCallStudentList();
|
|
|
+ if (studyData.callStudentList.length > 0) {
|
|
|
+ openStudyTool({
|
|
|
+ type: 'call',
|
|
|
+ icon: iconWhite,
|
|
|
+ name: '点名'
|
|
|
+ });
|
|
|
+ return;
|
|
|
+ }
|
|
|
break;
|
|
|
default:
|
|
|
break;
|
|
@@ -1295,15 +1305,8 @@ export default defineComponent({
|
|
|
// 点名学生列表
|
|
|
const rollCallStudentList = async () => {
|
|
|
//
|
|
|
+ if (!data.classId) return;
|
|
|
try {
|
|
|
- if (studyData.callStudentList.length > 0) {
|
|
|
- openStudyTool({
|
|
|
- type: 'call',
|
|
|
- icon: iconWhite,
|
|
|
- name: '点名'
|
|
|
- });
|
|
|
- return;
|
|
|
- }
|
|
|
const res = await getStudentList({
|
|
|
classGroupId: data.classGroupId,
|
|
|
page: 1,
|
|
@@ -1319,13 +1322,6 @@ export default defineComponent({
|
|
|
});
|
|
|
});
|
|
|
studyData.callStudentList = [...tempStudents];
|
|
|
- openStudyTool({
|
|
|
- type: 'call',
|
|
|
- icon: iconWhite,
|
|
|
- name: '点名'
|
|
|
- });
|
|
|
- } else {
|
|
|
- message.error('班级中暂无学员');
|
|
|
}
|
|
|
} catch {
|
|
|
//
|
|
@@ -1595,7 +1591,8 @@ export default defineComponent({
|
|
|
<div
|
|
|
class={[
|
|
|
styles.rightItem,
|
|
|
- item.id === 2 && data.preStudentNum <= 0
|
|
|
+ (item.id === 2 && data.preStudentNum <= 0) ||
|
|
|
+ (item.id === 10 && studyData.callStudentList.length <= 0)
|
|
|
? styles.itemDisabled
|
|
|
: '',
|
|
|
item.id === 10 && !data.classId ? styles.itemHide : ''
|