浏览代码

change: indent导出计价.note内容支持换行.

peter 2 周之前
父节点
当前提交
2d6fa3cc6d
共有 1 个文件被更改,包括 6 次插入6 次删除
  1. 6 6
      src/pages/indent-manage/indent/components/exportQuota2.vue

+ 6 - 6
src/pages/indent-manage/indent/components/exportQuota2.vue

@@ -298,7 +298,7 @@
         </tr>
         <tr>
           <td colspan="2">
-            <p style="padding-top: 20px">{{ exportForm.notes }}</p>
+            <p style="padding-top: 20px" v-html="exportForm.notes.replace(/\n/g, '<br>')"></p>
           </td>
         </tr>
 
@@ -485,12 +485,12 @@ const formatNumber = (number: number, no00 = false) => {
 <style lang="scss" scoped>
 $subColor: #777;
 .pdf-wrap {
-  position: fixed;
-  // top: 0;
-  // left: 0;
+  // position: fixed;
+  top: 0;
+  left: 0;
   // z-index: 9999;
-  top: -9999px;
-  right: -9999px;
+  // top: -9999px;
+  // right: -9999px;
   box-sizing: border-box;
   width: 21cm;
   margin: 0 auto 12px;