| | |
| | | }); |
| | | }, |
| | | handlePrint(e) {}, |
| | | judgeLength(word, length) { |
| | | for (let index = 0; word.length < length; index++) { |
| | | word += " "; |
| | | } |
| | | return word; |
| | | }, |
| | | handleExport(e) { |
| | | let that = this; |
| | | loadFile( |
| | |
| | | "/inquest_record.docx", //"https://docxtemplater.com/tag-example.docx" |
| | | function (error, content) { |
| | | // eslint-disable-next-line no-debugger |
| | | |
| | | |
| | | if (error) { |
| | | throw error; |
| | | } |
| | |
| | | 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(); |
| | | |
| | |
| | | proxy: { |
| | | // 跨域配置 |
| | | "/sccg": { |
| | | target: `http://42.193.1.25:8082/`, |
| | | target: `http://42.193.1.25/`, |
| | | // target: `http://127.0.0.1:8082/`, |
| | | changeOrigin: true |
| | | } |
| | | }, |