From 03eadfd663e99ff619d4ab48761fc5c8b1b643b8 Mon Sep 17 00:00:00 2001
From: zhanghua <314079846@qq.com>
Date: 星期二, 22 十一月 2022 17:51:01 +0800
Subject: [PATCH] 修改

---
 public/inquest_record.docx                                       |    0 
 vue.config.js                                                    |    3 ++-
 src/views/operate/writManager/components/inquest_record/edit.vue |   14 +++++++++++---
 3 files changed, 13 insertions(+), 4 deletions(-)

diff --git a/public/inquest_record.docx b/public/inquest_record.docx
index a5b6f8e..98a27f7 100644
--- a/public/inquest_record.docx
+++ b/public/inquest_record.docx
Binary files differ
diff --git a/src/views/operate/writManager/components/inquest_record/edit.vue b/src/views/operate/writManager/components/inquest_record/edit.vue
index d00b0c4..92e164f 100644
--- a/src/views/operate/writManager/components/inquest_record/edit.vue
+++ b/src/views/operate/writManager/components/inquest_record/edit.vue
@@ -260,6 +260,12 @@
       });
     },
     handlePrint(e) {},
+    judgeLength(word, length) {
+      for (let index = 0; word.length < length; index++) {
+        word += " ";
+      }
+      return word;
+    },
     handleExport(e) {
       let that = this;
       loadFile(
@@ -267,7 +273,7 @@
         "/inquest_record.docx", //"https://docxtemplater.com/tag-example.docx"
         function (error, content) {
           // eslint-disable-next-line no-debugger
-          
+
           if (error) {
             throw error;
           }
@@ -276,8 +282,10 @@
             paragraphLoop: true,
             linebreaks: true,
           });
-          
-          doc.setData(that.form);
+          var data = that.form;
+          data.jc_address = that.judgeLength(data.jc_address, 33);
+          debugger;
+          doc.setData(data);
           /*鍚戞枃妗d腑鍐欏叆鏁版嵁*/
           doc.render();
 
diff --git a/vue.config.js b/vue.config.js
index 957682a..156bf9d 100644
--- a/vue.config.js
+++ b/vue.config.js
@@ -39,7 +39,8 @@
     proxy: {
       // 璺ㄥ煙閰嶇疆
       "/sccg": {
-        target: `http://42.193.1.25:8082/`,
+        target: `http://42.193.1.25/`,
+        // target: `http://127.0.0.1:8082/`,
         changeOrigin: true
       }
     },

--
Gitblit v1.8.0