Kaynağa Gözat

修改样式

lex 1 yıl önce
ebeveyn
işleme
de0bc213a9

+ 2 - 2
public/roll-call/css/index.css

@@ -96,8 +96,8 @@ a {
   border: 3px solid #4daaff;
 }
 .element .symbolBox img {
-  width: 98px;
-  height: 98px;
+  width: 100%;
+  height: 100%;
 }
 
 .element .details {

+ 1 - 1
public/version.json

@@ -1 +1 @@
-{"version":1709621176604}
+{"version":1709696993673}

+ 14 - 17
src/views/attend-class/index.tsx

@@ -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 : ''