zhanghua
2022-11-22 03eadfd663e99ff619d4ab48761fc5c8b1b643b8
修改
3个文件已修改
17 ■■■■ 已修改文件
public/inquest_record.docx 补丁 | 查看 | 原始文档 | blame | 历史
src/views/operate/writManager/components/inquest_record/edit.vue 14 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
vue.config.js 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
public/inquest_record.docx
Binary files differ
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);
          /*向文档中写入数据*/
          doc.render();
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
      }
    },