import Docxtemplater from "docxtemplater";
import PizZip from "pizzip";
import JSZipUtils from "jszip-utils";
import ImageModule from "docxtemplater-image-module-free";
import {saveAs} from "file-saver";
export default {
name: "exportDocTemplate",
data() {
return {
interModelCanvasId: "roadModel5", // 路口模型对应的id
acsInfo: {
exportYear: 2020,
exportMonth: "07",
exportDay: "06",
name: "迎宾路-南街",
acs_id: 110100,
unit1: "浙大中控",
unit2: "交警大队",
acs_version: "ACS500_P_HW1.0.0",
versionDate: "20171106",
ip: "33.81.33.108",
interImg: null
},
lightTypeArrs: [{
type: "东向西",
light1: "左转箭头",
light2: "圆盘",
light3: "右转箭头",
light4: "非机动车灯",
light5: "人行灯",
light6: "",
light7: ""
}, {
type: "南向北",
light1: "左转箭头2",
light2: "圆盘2",
light3: "右转箭头2",
light4: "非机动车灯2",
light5: "人行灯2",
light6: "",
light7: ""
}, {
type: "西向东",
light1: "左转箭头3",
light2: "圆盘3",
light3: "右转箭头3",
light4: "非机动车灯3",
light5: "人行灯3",
light6: "