|
@@ -1,6 +1,7 @@
|
|
|
<template>
|
|
|
<el-dialog
|
|
|
class="sub-main"
|
|
|
+ append-to-body
|
|
|
:visible.sync="visible"
|
|
|
:show-close="false"
|
|
|
:mask-closable="false"
|
|
@@ -48,10 +49,8 @@ export default {
|
|
|
},
|
|
|
computed: {},
|
|
|
watch: {},
|
|
|
- created() {
|
|
|
- },
|
|
|
- mounted() {
|
|
|
- },
|
|
|
+ created() {},
|
|
|
+ mounted() {},
|
|
|
methods: {
|
|
|
// handleExport() {
|
|
|
// downloadPDF(this.$refs.printDom);
|
|
@@ -75,7 +74,6 @@ export default {
|
|
|
}, 500)
|
|
|
},
|
|
|
print() {
|
|
|
-
|
|
|
try {
|
|
|
if (typeof this.$parent.addPrint === 'function') {
|
|
|
this.$parent.addPrint('addPrints').then(() => {
|
|
@@ -83,7 +81,7 @@ export default {
|
|
|
this.printData,
|
|
|
{},
|
|
|
{
|
|
|
- callback: async() => {
|
|
|
+ callback: async () => {
|
|
|
this.hiprintTemplate = {}
|
|
|
this.$parent.tableSelection = []
|
|
|
// setTimeout(() => {
|
|
@@ -97,7 +95,6 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
)
|
|
|
-
|
|
|
})
|
|
|
} else {
|
|
|
throw new Error('加载失败,刷新重试')
|