Browse Source

fix:p换行

Karsa 4 months ago
parent
commit
cf449acaf7

+ 2 - 2
src/views/report/reportDetail.vue

@@ -185,7 +185,7 @@ export default {
       totalContent: [],
       realContent: [],
       page_no: 0,
-      pageSize: 20, //默认初始加载50个p标签
+      pageSize: 50, //默认初始加载50个p标签
       total_page: 0,
       Disclaimer:''
     };
@@ -207,7 +207,6 @@ export default {
   },
 
   updated() {
-    // $('#resetcss').css({font:"0.76rem/1.5 '微软雅黑'",color:"#333",letterSpacing:"0.05rem"});
     $("#resetcss")
       .find("img")
       .css({ display: "block", margin: "0 auto", maxWidth: "100%" });
@@ -222,6 +221,7 @@ export default {
         color: "#333",
         letterSpacing: "0.08rem",
         lineHeight: "1.3rem",
+        wordBreak: 'break-all'
       });
     /* $("#resetcss")
       .find("span")

+ 1 - 7
src/views/report/reportDetailPdf.vue

@@ -115,14 +115,8 @@ export default {
         color: "#333",
         letterSpacing: "0.08rem",
         lineHeight: "1.3rem",
+        wordBreak: 'break-all'
       });
-    /* $("#resetcss")
-      .find("span")
-      .css({
-        font: "0.7rem/1.5 'PingFang-SC-Regular'",
-        letterSpacing: "0.08rem",
-        lineHeight: "1.3rem",
-      }); */
     $("#resetcss")
       .find("span.fr-emoticon")
       .css({

+ 3 - 1
src/views/reportEn/detail.vue

@@ -129,7 +129,7 @@ export default {
       totalContent: [],
       realContent: [],
       page_no: 0,
-      pageSize: 20, //默认初始加载50个p标签
+      pageSize: 50, //默认初始加载50个p标签
       total_page: 0,
     };
   },
@@ -163,6 +163,7 @@ export default {
         color: "#333",
         letterSpacing: "0",
         lineHeight: "1.3rem",
+        wordBreak: 'break-all'
       });
     $("#resetcss")
       .find("span")
@@ -170,6 +171,7 @@ export default {
         font: "0.7rem/1.5 'segoe'",
         letterSpacing: "0",
         lineHeight: "1.3rem",
+        wordBreak: 'break-all'
       });
     $("#resetcss")
       .find("span.fr-emoticon")

+ 2 - 0
src/views/reportEn/detailPdf.vue

@@ -87,6 +87,7 @@ export default {
         color: "#333",
         letterSpacing: "0",
         lineHeight: "1.3rem",
+        wordBreak: 'break-all'
       });
     $("#resetcss")
       .find("span")
@@ -94,6 +95,7 @@ export default {
         font: "0.7rem/1.5 'segoe'",
         letterSpacing: "0",
         lineHeight: "1.3rem",
+        wordBreak: 'break-all'
       });
     $("#resetcss")
       .find("span.fr-emoticon")