瀏覽代碼

题卡css调整

zhangjie 1 年之前
父節點
當前提交
06171fd802

+ 10 - 0
card/assets/styles/card-preview.scss

@@ -486,9 +486,19 @@
       height: 100%;
       padding: 0;
       .stdno-empty {
+        min-height: 130px;
         font-weight: bold;
         letter-spacing: 3px;
         text-align: center;
+        position: relative;
+        > p {
+          position: absolute;
+          left: 0;
+          width: 100%;
+          top: 50%;
+          transform: translateY(-50%);
+          -webkit-transform: translateY(-50%);
+        }
       }
       .stdno-fill {
         min-height: 240px;

+ 10 - 0
card/assets/styles/card-temp.css

@@ -400,9 +400,19 @@
   padding: 0;
 }
 .card-head-body .head-stdno .stdno-empty {
+  min-height: 130px;
   font-weight: bold;
   letter-spacing: 3px;
   text-align: center;
+  position: relative;
+}
+.card-head-body .head-stdno .stdno-empty > p {
+  position: absolute;
+  left: 0;
+  width: 100%;
+  top: 50%;
+  transform: translateY(-50%);
+  -webkit-transform: translateY(-50%);
 }
 .card-head-body .head-stdno .stdno-fill {
   min-height: 240px;

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


+ 1 - 1
src/modules/card/components/CardBuildDialog.vue

@@ -214,7 +214,7 @@ export default {
       const datas = {
         content: model,
         htmlContent,
-        title: "",
+        title: this.presetData.paperName,
         status: "SUBMIT",
         ...this.presetData,
       };

+ 2 - 1
src/modules/exam/components/createExamAndPrintTask/InfoExamTask.vue

@@ -778,7 +778,7 @@ export default {
     toSelect(attachment) {
       this.curAttachment = attachment;
       // this.$refs.SelectTikuPaperDialog.open();
-      this.tikuPaperSelected({ id: "1" });
+      this.tikuPaperSelected({ id: "1", name: "paper-name" });
     },
     async tikuPaperSelected(data) {
       this.cardBuildPresetData = {
@@ -791,6 +791,7 @@ export default {
         type: "CUSTOM",
         createMethod: "STANDARD",
         paperId: data.id,
+        paperName: data.name,
       };
       this.$refs.CardBuildDialog.open();
     },

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