zhangjie 2 年之前
父節點
當前提交
db48d6d073

+ 3 - 1
src/features/report/ReportCompare.vue

@@ -44,7 +44,9 @@
             <th>难度<br />系数</th>
           </tr>
           <tr v-for="item in props.comparePapers" :key="item.id">
-            <td>{{ item.courseName }}</td>
+            <td class="line-text" style="max-width: 150px">
+              {{ item.courseName }}
+            </td>
             <td>{{ item.courseCode }}</td>
             <td>{{ item.totalScore }}</td>
             <td>{{ item.maxScore }}</td>

+ 1 - 1
src/features/report/ReportMain.vue

@@ -225,7 +225,7 @@ async function fetchData() {
   }
 
   if (
-    compareProjectId ||
+    !compareProjectId ||
     comparePapers.length !== 2 ||
     compareCourses.length !== 2
   ) {

+ 9 - 0
src/features/report/assets/report.css

@@ -10,6 +10,11 @@
   padding: 8px 10px;
   border: 1px solid #e1e5eb;
 }
+.line-text {
+  text-overflow: ellipsis;
+  white-space: nowrap;
+  overflow: hidden;
+}
 /* report */
 .report {
   background-color: #f0f0f0;
@@ -275,6 +280,10 @@
   padding: 8px 12px;
   line-height: 21px;
   margin-right: 5px;
+  max-width: 320px;
+  text-overflow: ellipsis;
+  white-space: nowrap;
+  overflow: hidden;
 }
 .summary-tabs-item:nth-of-type(2) {
   background: rgba(68, 215, 182, 0.2);

文件差異過大導致無法顯示
+ 0 - 0
src/features/report/reportTemp.ts


部分文件因文件數量過多而無法顯示