|
@@ -65,6 +65,7 @@ import { getUsername } from "@/utils/auth";
|
|
|
import { insertLuckysheetEChart, setSheetDatas } from "@/utils/luckysheettool";
|
|
|
import { exportExcel } from "@/utils/export";
|
|
|
import BreadcrumbView from "@/components/BreadcrumbView";
|
|
|
+import { print } from "@/utils/print.js";
|
|
|
export default {
|
|
|
components: {
|
|
|
BreadcrumbView,
|
|
@@ -183,7 +184,8 @@ export default {
|
|
|
console.log(imgSrc);
|
|
|
document.querySelector("#print-html").innerHTML = $img;
|
|
|
setTimeout(() => {
|
|
|
- print(this.printId)
|
|
|
+ // Print.js插件
|
|
|
+ print(this.$route.query.id)
|
|
|
if (document.querySelector("#print-area"))
|
|
|
document.querySelector("#print-area").style = "display:none";
|
|
|
loading.close();
|
|
@@ -205,7 +207,7 @@ export default {
|
|
|
this.$nextTick(() => {
|
|
|
document.querySelector("#print-html").innerHTML = $img;
|
|
|
setTimeout(() => {
|
|
|
- print(this.printId)
|
|
|
+ print(this.$route.query.id)
|
|
|
if (document.querySelector("#print-area"))
|
|
|
document.querySelector("#print-area").style = "display:none";
|
|
|
loading.close();
|