lex 1 năm trước cách đây
mục cha
commit
f78db9f845

+ 1 - 1
dev-dist/sw.js

@@ -82,7 +82,7 @@ define(['./workbox-5357ef54'], (function (workbox) { 'use strict';
     "revision": "3ca0b8505b4bec776b69afdba2768812"
   }, {
     "url": "index.html",
-    "revision": "0.up40tbtrlqg"
+    "revision": "0.s728ohtnejg"
   }], {});
   workbox.cleanupOutdatedCaches();
   workbox.registerRoute(new workbox.NavigationRoute(workbox.createHandlerBoundToURL("index.html"), {

BIN
src/views/attend-class/model/train-type/images/e-back-look.png


BIN
src/views/attend-class/model/train-type/images/e-delete.png


+ 0 - 23
src/views/attend-class/model/train-type/images/e-delete.svg

@@ -1,23 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<svg width="26px" height="26px" viewBox="0 0 26 26" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
-    <title>切片</title>
-    <g id="页面-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" stroke-linecap="round" stroke-linejoin="round">
-        <g id="64、布置作业-训练设置" transform="translate(-1388.000000, -701.000000)" stroke="#F92D53" stroke-width="1.86666667">
-            <g id="编组-4" transform="translate(446.000000, 206.000000)">
-                <g id="位图备份" transform="translate(526.000000, 169.000000)">
-                    <g id="删除" transform="translate(416.000000, 326.000000)">
-                        <g transform="translate(4.000000, 4.000000)" id="编组">
-                            <line x1="11.5634909" y1="7.66953939" x2="11.5634909" y2="14.4243273" id="Stroke-1"></line>
-                            <line x1="7.02112727" y1="7.66953939" x2="7.02112727" y2="14.4243273" id="Stroke-2"></line>
-                            <g>
-                                <path d="M16.1212121,6.78787879 L16.1212121,17.1818182 C16.1212121,18.002303 15.3609697,18.6666667 14.4242424,18.6666667 L4.24242424,18.6666667 C3.30569697,18.6666667 2.54545455,18.002303 2.54545455,17.1818182 L2.54545455,6.78787879" id="Stroke-3"></path>
-                                <line x1="0" y1="4.24242424" x2="18.6666667" y2="4.24242424" id="Stroke-5"></line>
-                                <path d="M12.7272727,0 L5.93939394,0 C5.00266667,0 4.24242424,0.760242424 4.24242424,1.6969697 L4.24242424,4.24242424 L14.4242424,4.24242424 L14.4242424,1.6969697 C14.4242424,0.760242424 13.664,0 12.7272727,0 Z" id="Stroke-7"></path>
-                            </g>
-                        </g>
-                    </g>
-                </g>
-            </g>
-        </g>
-    </g>
-</svg>

BIN
src/views/attend-class/model/train-type/images/e-edit.png


+ 0 - 23
src/views/attend-class/model/train-type/images/e-edit.svg

@@ -1,23 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<svg width="26px" height="26px" viewBox="0 0 26 26" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
-    <title>切片</title>
-    <g id="页面-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" stroke-linecap="round">
-        <g id="64、布置作业-训练设置" transform="translate(-1388.000000, -696.000000)" stroke="#F92D53" stroke-width="1.89584019">
-            <g id="编组-4" transform="translate(446.000000, 219.000000)">
-                <g id="位图备份" transform="translate(526.000000, 168.000000)">
-                    <g id="图标/通用/返回备份" transform="translate(416.000000, 309.000000)">
-                        <g id="编组" transform="translate(4.875000, 3.791667)">
-                            <path d="M16.2496553,13.0856648 L16.2498599,16.2494713 C16.249793,17.446032 15.279894,18.4161211 14.0833334,18.4164223 L12.221101,18.4166667 L12.221101,18.4166667" id="Stroke-1" stroke-linejoin="round"></path>
-                            <path d="M16.2496553,5.52567849 L16.2496553,2.16666667 C16.2496553,0.970049709 15.2796056,-2.19814969e-16 14.0829886,0 L2.16666667,0 C0.970049709,2.19814969e-16 2.97545897e-16,0.970049709 0,2.16666667 L0,16.2494713 C5.90632523e-16,17.4460883 0.970049709,18.416138 2.16666667,18.416138 L4.87491383,18.416138 L4.87491383,18.416138" id="Stroke-3" stroke-linejoin="round"></path>
-                            <g id="编组-2" transform="translate(4.333333, 3.323284)">
-                                <line x1="0" y1="1.523912" x2="7.58359185" y2="1.55171575" id="Stroke-5"></line>
-                                <line x1="0" y1="6.48380889" x2="3.79158049" y2="6.48380889" id="Stroke-9"></line>
-                            </g>
-                            <line x1="8.19289145" y1="18.4164904" x2="16.25" y2="8.23912327" id="Stroke-7"></line>
-                        </g>
-                    </g>
-                </g>
-            </g>
-        </g>
-    </g>
-</svg>

BIN
src/views/attend-class/model/train-type/images/e-message.png


BIN
src/views/attend-class/model/train-type/images/e-report-status.png


BIN
src/views/attend-class/model/train-type/images/e-report.png


+ 0 - 31
src/views/attend-class/model/train-type/images/e-tag.svg

@@ -1,31 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<svg width="28px" height="28px" viewBox="0 0 28 28" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
-    <title>专辑标签(2)</title>
-    <defs>
-        <linearGradient x1="100%" y1="50%" x2="0%" y2="50%" id="linearGradient-1">
-            <stop stop-color="#FF7B57" offset="0%"></stop>
-            <stop stop-color="#FF3460" offset="100%"></stop>
-        </linearGradient>
-        <linearGradient x1="60.2548008%" y1="8.41286024%" x2="50%" y2="100%" id="linearGradient-2">
-            <stop stop-color="#FFFFFF" offset="0%"></stop>
-            <stop stop-color="#FFFFFF" offset="100%"></stop>
-        </linearGradient>
-        <linearGradient x1="50%" y1="0%" x2="50%" y2="46.9481485%" id="linearGradient-3">
-            <stop stop-color="#FFFFFF" stop-opacity="0" offset="0%"></stop>
-            <stop stop-color="#FFFFFF" offset="100%"></stop>
-        </linearGradient>
-    </defs>
-    <g id="页面-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" opacity="0.900000036">
-        <g id="64、布置作业-训练设置" transform="translate(-992.000000, -407.000000)">
-            <g id="编组-4" transform="translate(446.000000, 219.000000)">
-                <g id="位图备份" transform="translate(526.000000, 168.000000)">
-                    <g id="专辑标签(2)" transform="translate(20.000000, 20.000000)">
-                        <rect id="矩形" fill="url(#linearGradient-1)" x="0" y="0" width="28" height="28" rx="14"></rect>
-                        <path d="M14,5.6 C14.3155402,5.6 14.6270168,5.61739826 14.9335228,5.65128781 L14.9330114,9.42661825 C14.631542,9.36544538 14.3195211,9.33333333 14,9.33333333 C11.4226712,9.33333333 9.33333333,11.4226712 9.33333333,14 C9.33333333,16.5773288 11.4226712,18.6666667 14,18.6666667 C16.5494313,18.6666667 18.6213787,16.6223149 18.6666667,14.0838855 L18.6666667,14.0838855 L18.6671259,7.01481986 C20.9180416,8.5217493 22.4,11.0878097 22.4,14 C22.4,18.6391919 18.6391919,22.4 14,22.4 C9.3608081,22.4 5.6,18.6391919 5.6,14 C5.6,9.3608081 9.3608081,5.6 14,5.6 Z" id="形状结合" fill="url(#linearGradient-2)"></path>
-                        <rect id="矩形" fill="url(#linearGradient-3)" x="18.6658869" y="0.691618793" width="3.73333333" height="13.0666667"></rect>
-                    </g>
-                </g>
-            </g>
-        </g>
-    </g>
-</svg>

BIN
src/views/attend-class/model/train-type/images/p-delete.png


+ 0 - 23
src/views/attend-class/model/train-type/images/p-delete.svg

@@ -1,23 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<svg width="26px" height="26px" viewBox="0 0 26 26" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
-    <title>切片</title>
-    <g id="页面-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" stroke-linecap="round" stroke-linejoin="round">
-        <g id="64、布置作业-训练设置" transform="translate(-902.000000, -701.000000)" stroke="#198CFE" stroke-width="1.86666667">
-            <g id="编组-4" transform="translate(446.000000, 206.000000)">
-                <g id="位图" transform="translate(40.000000, 169.000000)">
-                    <g id="删除" transform="translate(416.000000, 326.000000)">
-                        <g transform="translate(4.000000, 4.000000)" id="编组">
-                            <line x1="11.5634909" y1="7.66953939" x2="11.5634909" y2="14.4243273" id="Stroke-1"></line>
-                            <line x1="7.02112727" y1="7.66953939" x2="7.02112727" y2="14.4243273" id="Stroke-2"></line>
-                            <g>
-                                <path d="M16.1212121,6.78787879 L16.1212121,17.1818182 C16.1212121,18.002303 15.3609697,18.6666667 14.4242424,18.6666667 L4.24242424,18.6666667 C3.30569697,18.6666667 2.54545455,18.002303 2.54545455,17.1818182 L2.54545455,6.78787879" id="Stroke-3"></path>
-                                <line x1="0" y1="4.24242424" x2="18.6666667" y2="4.24242424" id="Stroke-5"></line>
-                                <path d="M12.7272727,0 L5.93939394,0 C5.00266667,0 4.24242424,0.760242424 4.24242424,1.6969697 L4.24242424,4.24242424 L14.4242424,4.24242424 L14.4242424,1.6969697 C14.4242424,0.760242424 13.664,0 12.7272727,0 Z" id="Stroke-7"></path>
-                            </g>
-                        </g>
-                    </g>
-                </g>
-            </g>
-        </g>
-    </g>
-</svg>

BIN
src/views/attend-class/model/train-type/images/p-edit.png


+ 0 - 23
src/views/attend-class/model/train-type/images/p-edit.svg

@@ -1,23 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<svg width="26px" height="26px" viewBox="0 0 26 26" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
-    <title>切片</title>
-    <g id="页面-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" stroke-linecap="round">
-        <g id="64、布置作业-训练设置" transform="translate(-902.000000, -696.000000)" stroke="#198CFE" stroke-width="1.89584019">
-            <g id="编组-4" transform="translate(446.000000, 219.000000)">
-                <g id="位图" transform="translate(40.000000, 168.000000)">
-                    <g id="图标/通用/返回备份" transform="translate(416.000000, 309.000000)">
-                        <g id="编组" transform="translate(4.875000, 3.791667)">
-                            <path d="M16.2496553,13.0856648 L16.2498599,16.2494713 C16.249793,17.446032 15.279894,18.4161211 14.0833334,18.4164223 L12.221101,18.4166667 L12.221101,18.4166667" id="Stroke-1" stroke-linejoin="round"></path>
-                            <path d="M16.2496553,5.52567849 L16.2496553,2.16666667 C16.2496553,0.970049709 15.2796056,-2.19814969e-16 14.0829886,0 L2.16666667,0 C0.970049709,2.19814969e-16 2.97545897e-16,0.970049709 0,2.16666667 L0,16.2494713 C5.90632523e-16,17.4460883 0.970049709,18.416138 2.16666667,18.416138 L4.87491383,18.416138 L4.87491383,18.416138" id="Stroke-3" stroke-linejoin="round"></path>
-                            <g id="编组-2" transform="translate(4.333333, 3.323284)">
-                                <line x1="0" y1="1.523912" x2="7.58359185" y2="1.55171575" id="Stroke-5"></line>
-                                <line x1="0" y1="6.48380889" x2="3.79158049" y2="6.48380889" id="Stroke-9"></line>
-                            </g>
-                            <line x1="8.19289145" y1="18.4164904" x2="16.25" y2="8.23912327" id="Stroke-7"></line>
-                        </g>
-                    </g>
-                </g>
-            </g>
-        </g>
-    </g>
-</svg>

+ 5 - 4
src/views/attend-class/model/train-type/index.module.less

@@ -206,12 +206,13 @@
 
   .operation {
     display: flex;
-    height: 26px;
+    height: 28px;
     padding: 0;
+    border-radius: 50%;
 
     img {
-      height: 26px;
-      width: 26px;
+      height: 28px;
+      width: 28px;
     }
   }
 }
@@ -303,4 +304,4 @@
       }
     }
   }
-}
+}

+ 140 - 18
src/views/attend-class/model/train-type/index.tsx

@@ -1,4 +1,4 @@
-import { PropType, defineComponent, ref } from 'vue';
+import { PropType, computed, defineComponent, ref } from 'vue';
 import styles from './index.module.less';
 import {
   NButton,
@@ -7,17 +7,22 @@ import {
   NImage,
   NTag,
   NModal,
-  NProgress
+  NProgress,
+  NTooltip
 } from 'naive-ui';
 import pTag from './images/p-tag.png';
 import eTag from './images/e-tag.png';
 import pEdit from './images/p-edit.png';
 import eEdit from './images/e-edit.png';
-import pDelete from './images/p-delete.svg';
-import eDelete from './images/e-delete.svg';
+import pDelete from './images/p-delete.png';
+import eDelete from './images/e-delete.png';
 import iconDelete from './images/icon-delete.png';
+import eBackLook from './images/e-back-look.png';
+import eReport from './images/e-report.png';
+import eMessage from './images/e-message.png';
 import { useUserStore } from '/src/store/modules/users';
 import CardPreview from '/src/components/card-preview';
+import { vaildUrl } from '/src/utils/urlUtils';
 type ItemType = {
   id: string | number;
   trainingType: 'PRACTICE' | 'EVALUATION';
@@ -74,6 +79,36 @@ export default defineComponent({
       previewShow.value = true;
     };
 
+    const reportSrc = ref('');
+    const detailVisiable = ref(false);
+    const gotoRecode = (row: any) => {
+      console.log(row.id, 'gotoRecode');
+      const tockn = userStore.getToken;
+      reportSrc.value =
+        vaildUrl() +
+        `/instrument/#/evaluat-report?id=${row.id}&Authorization=${tockn}`;
+      detailVisiable.value = true;
+    };
+
+    const isPass = computed(() => {
+      const item = props.item;
+      if (item) {
+        if (item.trainingType === 'EVALUATION') {
+          return (item.trainingTimes || 0) >= (item.allTimes || 0)
+            ? '#6CFFC1'
+            : '#FF7794';
+        } else {
+          return (item.trainingTimes
+            ? parseInt(item.trainingTimes / 60 + '')
+            : 0) >= (item.allTimes || 0)
+            ? '#6CFFC1'
+            : '#FF7794';
+        }
+      } else {
+        return false;
+      }
+    });
+
     return () => (
       <div
         class={[
@@ -139,9 +174,11 @@ export default defineComponent({
                 type="circle"
                 rail-color={'8b8b8b'}
                 color={
-                  props.item.trainingType === 'EVALUATION'
-                    ? '#FF7E65'
-                    : '#44B3FF'
+                  // props.item.trainingType === 'EVALUATION'
+                  //   ? '#FF7E65'
+                  //   : '#44B3FF'
+
+                  isPass.value ? '#6CFFC1' : '#FF7794'
                 }
                 style="width: 120px; margin: 0  0 10px;">
                 <div class={styles.BProgress}>
@@ -161,7 +198,6 @@ export default defineComponent({
                   )}
 
                   <p>
-                    {' '}
                     {props.item.trainingType === 'EVALUATION'
                       ? '学生分数'
                       : '实际练习'}{' '}
@@ -204,9 +240,20 @@ export default defineComponent({
                   e.stopPropagation();
                   emit('edit', props.item);
                 }}>
-                <img
-                  src={props.item.trainingType === 'EVALUATION' ? eEdit : pEdit}
-                />
+                <NTooltip showArrow={false}>
+                  {{
+                    trigger: () => (
+                      <img
+                        src={
+                          props.item.trainingType === 'EVALUATION'
+                            ? eEdit
+                            : pEdit
+                        }
+                      />
+                    ),
+                    default: '编辑'
+                  }}
+                </NTooltip>
               </n-button>
               {props.type === 'homework' && (
                 <n-button
@@ -218,17 +265,78 @@ export default defineComponent({
                     // onDelete();
                     removeVisiable.value = true;
                   }}>
-                  <img
-                    src={
-                      props.item.trainingType === 'EVALUATION'
-                        ? eDelete
-                        : pDelete
-                    }
-                  />
+                  <NTooltip showArrow={false}>
+                    {{
+                      trigger: () => (
+                        <img
+                          src={
+                            props.item.trainingType === 'EVALUATION'
+                              ? eDelete
+                              : pDelete
+                          }
+                        />
+                      ),
+                      default: '删除'
+                    }}
+                  </NTooltip>
                 </n-button>
               )}
             </NSpace>
           )}
+
+          {props.isDisabled && !props.isCLassWork ? (
+            <>
+              <NSpace size={6}>
+                <n-button
+                  quaternary
+                  disabled={props.isDelete}
+                  class={styles.operation}
+                  onClick={(e: MouseEvent) => {
+                    e.stopPropagation();
+                    removeVisiable.value = true;
+                  }}>
+                  <NTooltip showArrow={false}>
+                    {{
+                      trigger: () => <img src={eReport} />,
+                      default: '评测报告'
+                    }}
+                  </NTooltip>
+                </n-button>
+                <n-button
+                  quaternary
+                  disabled={props.isDelete}
+                  class={styles.operation}
+                  onClick={(e: MouseEvent) => {
+                    e.stopPropagation();
+                    removeVisiable.value = true;
+                  }}>
+                  <NTooltip showArrow={false}>
+                    {{
+                      trigger: () => <img src={eBackLook} />,
+                      default: '查看回放'
+                    }}
+                  </NTooltip>
+                </n-button>
+                {/* <n-button
+                  quaternary
+                  disabled={props.isDelete}
+                  class={styles.operation}
+                  onClick={(e: MouseEvent) => {
+                    e.stopPropagation();
+                    removeVisiable.value = true;
+                  }}>
+                  <NTooltip showArrow={false}>
+                    {{
+                      trigger: () => <img src={eMessage} />,
+                      default: '写评语'
+                    }}
+                  </NTooltip>
+                </n-button> */}
+              </NSpace>
+            </>
+          ) : (
+            ''
+          )}
         </div>
 
         {/* 判断是否下架 */}
@@ -277,6 +385,20 @@ export default defineComponent({
             title: props.item.musicName
           }}
         />
+
+        <NModal
+          v-model:show={detailVisiable.value}
+          preset="card"
+          class={['modalTitle background', styles.reportModel]}
+          title={'评测报告'}>
+          <div class={styles.reportContainer} style={{ lineHeight: 0 }}>
+            <iframe
+              width={'100%'}
+              height={'450px'}
+              frameborder="0"
+              src={reportSrc.value}></iframe>
+          </div>
+        </NModal>
       </div>
     );
   }

+ 2 - 20
src/views/studentList/components/evaluationRecords.tsx

@@ -174,6 +174,7 @@ export default defineComponent({
       ];
       search();
     };
+    const iframeRef = ref();
     onMounted(() => {
       getList();
       console.log(props.studentId);
@@ -226,27 +227,8 @@ export default defineComponent({
             <iframe
               width={'100%'}
               height={'450px'}
+              ref={iframeRef}
               frameborder="0"
-              onLoad={() => {
-                // const iframeDocument =
-                //   iframe.contentDocument || iframe.contentWindow.document;
-                // const styleElement = iframeDocument.createElement('style');
-                // styleElement.textContent = `
-                //   body {
-                //     margin: 0;
-                //     font-family: 'Arial', sans-serif;
-                //     font-size: 16px;
-                //     line-height: 1.5;
-                //     color: #333;
-                //     background-color: #f0f0f0;
-                //   }
-                //   p {
-                //     margin-bottom: 10px;
-                //     color: red;
-                //   }
-                // `;
-                // iframeDocument.head.appendChild(styleElement);
-              }}
               src={reportSrc.value}></iframe>
           </div>
         </NModal>

+ 22 - 28
src/views/studentList/components/studentAfterWork.tsx

@@ -5,20 +5,14 @@ import {
   NDataTable,
   NForm,
   NFormItem,
-  NImage,
   NModal,
-  NSelect,
   NSpace
 } from 'naive-ui';
-import SearchInput from '@/components/searchInput';
 import CSelect from '@/components/CSelect';
 import Pagination from '@/components/pagination';
 import { getStudentAfterWork } from '../api';
-import add from './images/add.png';
 import { useRoute } from 'vue-router';
-import CBreadcrumb from '/src/components/CBreadcrumb';
 import CDatePicker from '/src/components/CDatePicker';
-import defultHeade from '@/components/layout/images/teacherIcon.png';
 import {
   getNowDateAndMonday,
   getNowDateAndSunday,
@@ -27,11 +21,10 @@ import {
 import { trainingStatusArray } from '@/utils/searchArray';
 import StudentTraomomhDetails from '../modals/studentTraomomhDetails';
 import dayjs from 'dayjs';
-import { lookup } from 'dns';
 import TheEmpty from '/src/components/TheEmpty';
 export default defineComponent({
   name: 'student-studentList',
-  setup(props, { emit }) {
+  setup() {
     const state = reactive({
       searchForm: { keyword: '', trainingStatus: null as any },
       loading: false,
@@ -52,16 +45,17 @@ export default defineComponent({
       index: 0
     });
     const timer = ref<[number, number]>([
-      getNowDateAndMonday(new Date().getTime()),
+      new Date('2023-01-01').getTime(),
+      // getNowDateAndMonday(new Date().getTime()),
       getNowDateAndSunday(new Date().getTime())
     ]);
     const TrainingDetailsRef = ref();
     const route = useRoute();
-    const routerList = ref([
-      { name: '班级管理', path: '/classList' },
-      { name: route.query.name, path: '/classDetail' },
-      { name: route.query.teacherName, path: '/afterWorkDetail' }
-    ] as any);
+    // const routerList = ref([
+    //   { name: '班级管理', path: '/classList' },
+    //   { name: route.query.name, path: '/classDetail' },
+    //   { name: route.query.teacherName, path: '/afterWorkDetail' }
+    // ] as any);
 
     const search = () => {
       state.pagination.page = 1;
@@ -191,22 +185,22 @@ export default defineComponent({
       ];
     };
 
-    const goToNext = () => {
-      ++state.index;
+    // const goToNext = () => {
+    //   ++state.index;
 
-      state.activeRow = state.tableList[state.index - 1];
+    //   state.activeRow = state.tableList[state.index - 1];
 
-      TrainingDetailsRef.value.getTrainingDetail(
-        state.activeRow.studentLessonTrainingId
-      );
-    };
-    const gotoPre = () => {
-      --state.index;
-      state.activeRow = state.tableList[state.index - 1];
-      TrainingDetailsRef.value.getTrainingDetail(
-        state.activeRow.studentLessonTrainingId
-      );
-    };
+    //   TrainingDetailsRef.value.getTrainingDetail(
+    //     state.activeRow.studentLessonTrainingId
+    //   );
+    // };
+    // const gotoPre = () => {
+    //   --state.index;
+    //   state.activeRow = state.tableList[state.index - 1];
+    //   TrainingDetailsRef.value.getTrainingDetail(
+    //     state.activeRow.studentLessonTrainingId
+    //   );
+    // };
     return () => (
       <div>
         <div>

+ 23 - 23
src/views/studentList/index.module.less

@@ -271,29 +271,29 @@
   }
 }
 
-// .reportModel {
-//   width: 1030px;
-//   overflow: hidden;
-
-//   /* 设置滚动条的宽度、颜色和轨道背景 */
-//   iframe::-webkit-scrollbar {
-//     width: 10px;
-//   }
-
-//   iframe::-webkit-scrollbar-thumb {
-//     background-color: #888;
-//   }
-
-//   iframe::-webkit-scrollbar-track {
-//     background-color: #f0f0f0;
-//   }
-
-//   /* Firefox */
-//   iframe {
-//     scrollbar-width: thin;
-//     scrollbar-color: #888 #f0f0f0;
-//   }
-// }
+.reportModel {
+  width: 1030px;
+  overflow: hidden;
+
+  //   /* 设置滚动条的宽度、颜色和轨道背景 */
+  //   iframe::-webkit-scrollbar {
+  //     width: 10px;
+  //   }
+
+  //   iframe::-webkit-scrollbar-thumb {
+  //     background-color: #888;
+  //   }
+
+  //   iframe::-webkit-scrollbar-track {
+  //     background-color: #f0f0f0;
+  //   }
+
+  //   /* Firefox */
+  //   iframe {
+  //     scrollbar-width: thin;
+  //     scrollbar-color: #888 #f0f0f0;
+  //   }
+}
 
 .addStudentWrap {
   position: relative;

+ 6 - 15
src/views/studentList/modals/studentTraomomhDetails.tsx

@@ -1,13 +1,4 @@
-import {
-  NButton,
-  NSpace,
-  useMessage,
-  NForm,
-  NFormItem,
-  NSelect,
-  NImage,
-  NScrollbar
-} from 'naive-ui';
+import { useMessage, NImage, NScrollbar } from 'naive-ui';
 import { defineComponent, onMounted, reactive, ref } from 'vue';
 import styles from '@/views/classList/index.module.less';
 import TrainType from '@/views/attend-class/model/train-type';
@@ -37,9 +28,9 @@ export default defineComponent({
   emits: ['close'],
 
   setup(props, { emit, expose }) {
-    const data = reactive({
-      uploading: false
-    });
+    // const data = reactive({
+    //   uploading: false
+    // });
     const teacherInfo = ref({
       teacherName: '',
       createTime: '',
@@ -47,8 +38,8 @@ export default defineComponent({
       teacherAvatar: '',
       studentLessonTrainingDetails: [] as any
     } as any);
-    const message = useMessage();
-    const foemsRef = ref();
+    // const message = useMessage();
+    // const foemsRef = ref();
     const typeFormat = (trainingType: string, configJson: any) => {
       let tList: string[] = [];