Browse Source

修改判断

lex-xin 8 tháng trước cách đây
mục cha
commit
73d2aa72b0
1 tập tin đã thay đổi với 19 bổ sung16 xóa
  1. 19 16
      src/views/studentList/components/evaluationRecords.tsx

+ 19 - 16
src/views/studentList/components/evaluationRecords.tsx

@@ -278,22 +278,25 @@ export default defineComponent({
                   }}>
                   评测报告
                 </NButton>
-                {row.videoFilePath || row.recordFilePath ? <><NButton
-                  text
-                  type="primary"
-                  onClick={() => {
-                    gotoPreview(row);
-                  }}>
-                  预览作品
-                </NButton>
-                <NButton
-                  text
-                  type="primary"
-                  onClick={() => {
-                    gotoDownload(row);
-                  }}>
-                  下载作品
-                </NButton></> : ''}
+                {row.userMusicFlag ? <>
+                  {row.videoFilePath || row.recordFilePath ? <><NButton
+                    text
+                    type="primary"
+                    onClick={() => {
+                      gotoPreview(row);
+                    }}>
+                    预览作品
+                  </NButton>
+                  <NButton
+                    text
+                    type="primary"
+                    onClick={() => {
+                      gotoDownload(row);
+                    }}>
+                    下载作品
+                  </NButton></> : ''}</> 
+                  : ''}
+                
                 
               </NSpace>
             );