fix bug
This commit is contained in:
@@ -476,7 +476,7 @@
|
|||||||
<td class="tg-baqh" colspan="3" rowspan="2"/>
|
<td class="tg-baqh" colspan="3" rowspan="2"/>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="tg-13pz">毛中</td>
|
<td class="tg-13pz">毛重</td>
|
||||||
<td class="tg-13pz">净重<br></td>
|
<td class="tg-13pz">净重<br></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tbody>
|
<tbody>
|
||||||
@@ -905,12 +905,14 @@ export default {
|
|||||||
},
|
},
|
||||||
exportTable() {
|
exportTable() {
|
||||||
const htmlNode = $('#cjn').html()
|
const htmlNode = $('#cjn').html()
|
||||||
const body = $('body')
|
const body = $('body').attr('style', 'padding: 20px;margin: 0 auto;display: block;width: 800px;background: #fff;')
|
||||||
body.children().hide()
|
body.children().hide()
|
||||||
const printNode = $(htmlNode)
|
const printNode = $(htmlNode)
|
||||||
body.append(printNode)
|
body.append(printNode)
|
||||||
window.print()
|
window.print()
|
||||||
|
body.removeAttr('style')
|
||||||
body.children().not('script').show()
|
body.children().not('script').show()
|
||||||
|
body.children().not('#app').hide()
|
||||||
printNode.remove()
|
printNode.remove()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user