zhangjie 1 年之前
父節點
當前提交
f7ad9b487e

+ 7 - 5
src/modules/card/assets/styles/card-preview.scss

@@ -825,15 +825,17 @@
       height: 65%;
       z-index: 2;
       border-bottom: 1px solid #000;
-      display: table;
 
       .stdno-empty {
-        height: 100%;
+        position: absolute;
+        width: 100%;
+        top: 50%;
+        height: 30px;
+        line-height: 30px;
         text-align: center;
-        line-height: 100%;
         font-size: 26px;
-        display: table-cell;
-        vertical-align: middle;
+        margin-top: -15px;
+        left: 0;
       }
     }
     &-dynamic {

+ 7 - 5
src/modules/card/assets/styles/card-temp.css

@@ -684,15 +684,17 @@
   height: 65%;
   z-index: 2;
   border-bottom: 1px solid #000;
-  display: table;
 }
 .card-head-model-two .card-head-stdno .stdno-empty {
-  height: 100%;
+  position: absolute;
+  width: 100%;
+  top: 50%;
+  height: 30px;
+  line-height: 30px;
   text-align: center;
-  line-height: 100%;
   font-size: 26px;
-  display: table-cell;
-  vertical-align: middle;
+  margin-top: -15px;
+  left: 0;
 }
 .card-head-model-two .card-head-dynamic {
   position: absolute;

文件差異過大導致無法顯示
+ 0 - 0
src/modules/card/previewTemp.js


+ 4 - 3
src/modules/paper-export/assets/styles/paper-temp-preview.scss

@@ -94,14 +94,15 @@
   .text-body {
     width: 100%;
     position: relative;
-    height: 26px;
-    line-height: 26px;
+    min-height: 28px;
     overflow: hidden;
 
     > span {
       display: inline-block;
-      vertical-align: middle;
+      vertical-align: top;
       position: relative;
+      line-height: 1;
+      padding: 7px 0;
       z-index: 9;
 
       &.text-label {

+ 4 - 4
src/modules/paper-export/assets/styles/temp.css

@@ -70,14 +70,14 @@
 .elem-field-text .text-body {
   width: 100%;
   position: relative;
-  height: 26px;
-  line-height: 26px;
-  overflow: hidden;
+  min-height: 28px;
 }
 .elem-field-text .text-body > span {
   display: inline-block;
-  vertical-align: middle;
+  vertical-align: top;
   position: relative;
+  line-height: 1;
+  padding: 7px 0;
   z-index: 9;
 }
 .elem-field-text .text-body > span.text-label {

+ 10 - 2
src/modules/paper-export/elements/score-table/ElemScoreTable.vue

@@ -3,7 +3,11 @@
     <table class="score-table">
       <tr>
         <th style="width: 60px; min-width: 40px">题号</th>
-        <th v-for="item in detailNums" :key="item" style="min-width: 40px">
+        <th
+          v-for="(item, index) in detailNums"
+          :key="item"
+          :style="{ minWidth: (index < 9 ? 30 : 40) + 'px' }"
+        >
           {{ item }}
         </th>
         <th style="width: 60px; min-width: 40px">总分</th>
@@ -11,7 +15,11 @@
       </tr>
       <tr>
         <td style="width: 60px; min-width: 40px">得分</td>
-        <td v-for="item in detailNums" :key="item" style="min-width: 40px"></td>
+        <td
+          v-for="(item, index) in detailNums"
+          :key="item"
+          :style="{ minWidth: (index < 9 ? 30 : 40) + 'px' }"
+        ></td>
         <td style="width: 60px; min-width: 40px"></td>
         <td style="width: 80px; min-width: 60px"></td>
       </tr>

文件差異過大導致無法顯示
+ 0 - 0
src/modules/paper-export/previewTemp.js


+ 1 - 1
src/modules/paper-export/views/PaperTemplateBuild.vue

@@ -346,7 +346,7 @@ export default {
       });
     },
     parseRenderStructList() {
-      let renderStructList = [];
+      let renderStructList = [this.parseLineGap(), this.parseLineGap()];
 
       this.paperJson.paperDetails.forEach((detail) => {
         renderStructList.push(this.parseDetailTitle(detail));

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