Browse Source

修改样式

lex 11 months ago
parent
commit
8ba9107a0b

+ 0 - 1
src/components/card-preview/video-modal/index.tsx

@@ -317,7 +317,6 @@ export default defineComponent({
                         vertical
                         tooltip={false}
                         onUpdate:value={(val: number) => {
-                          setModelOpen();
                           videoFroms.defaultSpeed = val;
                           if (videoItem.value) {
                             videoItem.value.playbackRate(

+ 24 - 8
src/views/classList/work-item/index.tsx

@@ -64,13 +64,17 @@ export default defineComponent({
       <div
         class={[
           styles.workItem,
-          (props.item.fileList?.expireFlag || !props.item.fileList?.fileType) &&
+          (props.item.fileList?.expireFlag ||
+            props.item.trainingStatus === 'UNSUBMITTED') &&
             styles['work-content-disabled']
         ]}>
         <div
           class={[styles['work-content']]}
           style={{
-            cursor: !props.item.fileList?.fileType ? 'default' : 'pointer'
+            cursor:
+              props.item.trainingStatus === 'UNSUBMITTED'
+                ? 'default'
+                : 'pointer'
           }}>
           {/* ("文件类型:评测:EVALUATION,IMG:图片,SOUND:音频,VIDEO:视频")
         private String fileType; */}
@@ -230,15 +234,27 @@ export default defineComponent({
 
           {props.item.trainingType === 'EVALUATION' ? (
             <div class={[styles.scoreGroup, styles.scoreGroupEval]}>
-              {props.item.trainingTimes}
-              <span>分</span>
+              {props.item.trainingStatus !== 'UNSUBMITTED' ? (
+                <>
+                  {props.item.trainingTimes}
+                  <span>分</span>
+                </>
+              ) : (
+                <span class={styles.noSubmit}>未提交</span>
+              )}
             </div>
           ) : (
             <div class={[styles.scoreGroup]}>
-              {props.item.trainingTimes
-                ? parseInt(props.item.trainingTimes / 60 + '')
-                : 0}
-              <span>分钟</span>
+              {props.item.trainingStatus !== 'UNSUBMITTED' ? (
+                <>
+                  {props.item.trainingTimes
+                    ? parseInt(props.item.trainingTimes / 60 + '')
+                    : 0}
+                  <span>分钟</span>
+                </>
+              ) : (
+                <span class={styles.noSubmit}>未提交</span>
+              )}
             </div>
           )}
         </div>

+ 20 - 20
src/views/prepare-lessons/model/select-music/select-item/index.tsx

@@ -73,9 +73,9 @@ export default defineComponent({
         const tempRows = data.rows || [];
         const temp: any = [];
         tempRows.forEach((row: any) => {
-          const index = prepareStore.getTrainList.findIndex(
-            (course: any) => course.musicId === row.id
-          );
+          // const index = prepareStore.getTrainList.findIndex(
+          //   (course: any) => course.musicId === row.id
+          // );
           temp.push({
             id: row.id,
             coverImg: row.coverImg || row.musicSvg,
@@ -86,8 +86,8 @@ export default defineComponent({
             refFlag: row.refFlag,
             content: row.id,
             xmlFileUrl: row.xmlFileUrl,
-            containAccompaniment: row.containAccompaniment,
-            exist: index !== -1 ? true : false // 是否存在
+            containAccompaniment: row.containAccompaniment
+            // exist: index !== -1 ? true : false // 是否存在
           });
         });
         state.tableList.push(...temp);
@@ -98,21 +98,21 @@ export default defineComponent({
       }
     };
 
-    watch(
-      () => prepareStore.trainList,
-      () => {
-        state.tableList.forEach((item: any) => {
-          const index = prepareStore.getTrainList.findIndex(
-            (course: any) => course.musicId === item.id
-          );
-          item.exist = index !== -1 ? true : false; // 是否存在
-        });
-      },
-      {
-        deep: true,
-        immediate: true
-      }
-    );
+    // watch(
+    //   () => prepareStore.trainList,
+    //   () => {
+    //     state.tableList.forEach((item: any) => {
+    //       const index = prepareStore.getTrainList.findIndex(
+    //         (course: any) => course.musicId === item.id
+    //       );
+    //       item.exist = index !== -1 ? true : false; // 是否存在
+    //     });
+    //   },
+    //   {
+    //     deep: true,
+    //     immediate: true
+    //   }
+    // );
 
     const throttledFnSearch = useDebounceFn(item => {
       state.pagination.page = 1;