|
@@ -1,5 +1,5 @@
|
|
|
<template>
|
|
|
- <div class="none_writeTable writeTable" v-if="dataConfig">
|
|
|
+ <div class="none_writeTable writeTable printTable" v-if="dataConfig">
|
|
|
<div
|
|
|
class="none_word_main_table"
|
|
|
v-for="(data, indexT) in dataConfig.result"
|
|
@@ -41,6 +41,7 @@
|
|
|
:strokeColor="dataConfig.fontColor"
|
|
|
:palyWidth="dataConfig.playWidth"
|
|
|
:BoxbgType="dataConfig.BoxbgType"
|
|
|
+ :curItem="itemI.hzDetail"
|
|
|
:targetDiv="
|
|
|
'writeTop-item-' +
|
|
|
indexT +
|
|
@@ -170,15 +171,13 @@ export default {
|
|
|
//方法集合
|
|
|
methods: {
|
|
|
download2() {
|
|
|
- this.loading.close();
|
|
|
- document.getElementsByTagName("body")[0].style.zoom = 2;
|
|
|
+ document.getElementsByClassName("printTable")[0].style.zoom = 2;
|
|
|
//执行window.print打印功能
|
|
|
window.print();
|
|
|
this.$message({
|
|
|
message: "操作成功",
|
|
|
type: "success",
|
|
|
});
|
|
|
- document.getElementsByTagName("body")[0].style.zoom = 1;
|
|
|
this.$router.replace({
|
|
|
path: "/wordcard/cread",
|
|
|
query: { cachesType: "push" },
|
|
@@ -217,11 +216,6 @@ export default {
|
|
|
//生命周期 - 挂载完成(可以访问DOM元素)
|
|
|
mounted() {
|
|
|
let _this = this;
|
|
|
- this.loading = this.$loading({
|
|
|
- lock: true,
|
|
|
- text: "Loading",
|
|
|
- spinner: "el-icon-loading",
|
|
|
- });
|
|
|
let writeTableData = localStorage.getItem("writeTableData");
|
|
|
if (writeTableData) {
|
|
|
_this.dataConfig = JSON.parse(writeTableData);
|