|
@@ -19,7 +19,7 @@
|
|
|
</div>
|
|
|
</template>
|
|
|
<template slot="footer">
|
|
|
- <el-button key="close" type="info" @click="hideModal"> 关闭 </el-button>
|
|
|
+ <el-button key="close" type="info" @click="hideModal"> 关闭</el-button>
|
|
|
</template>
|
|
|
</el-dialog>
|
|
|
</template>
|
|
@@ -28,6 +28,7 @@
|
|
|
// import { downloadPDF } from '@/utils/pdf'
|
|
|
import { addPrint } from './print-data'
|
|
|
import { detailArr } from './print-data'
|
|
|
+
|
|
|
export default {
|
|
|
name: 'PrintPreview',
|
|
|
props: {},
|
|
@@ -47,8 +48,10 @@ export default {
|
|
|
},
|
|
|
computed: {},
|
|
|
watch: {},
|
|
|
- created() {},
|
|
|
- mounted() {},
|
|
|
+ created() {
|
|
|
+ },
|
|
|
+ mounted() {
|
|
|
+ },
|
|
|
methods: {
|
|
|
// handleExport() {
|
|
|
// downloadPDF(this.$refs.printDom);
|
|
@@ -76,10 +79,10 @@ export default {
|
|
|
this.printData,
|
|
|
{},
|
|
|
{
|
|
|
- callback: async () => {
|
|
|
+ callback: async() => {
|
|
|
try {
|
|
|
if (typeof this.$parent.addPrint === 'function') {
|
|
|
- await this.$parent.addPrint('addPrints')
|
|
|
+ this.$parent.addPrint('addPrints')
|
|
|
} else {
|
|
|
throw new Error('加载失败,刷新重试')
|
|
|
}
|
|
@@ -118,6 +121,7 @@ export default {
|
|
|
::v-deep tr {
|
|
|
height: 40px !important;
|
|
|
}
|
|
|
+
|
|
|
::v-deep td {
|
|
|
height: 40px !important;
|
|
|
overflow: hidden;
|
|
@@ -153,7 +157,6 @@ export default {
|
|
|
td {
|
|
|
border: none !important;
|
|
|
} */
|
|
|
-
|
|
|
.drag_item_box {
|
|
|
height: 100%;
|
|
|
padding: 6px;
|