|
|
@ -1,7 +1,7 @@ |
|
|
|
<template> |
|
|
|
<div id="operation-record" style=" background: #fff; padding: 10px 20px 50px 20px;page-break-after:always"> |
|
|
|
<div class="btnBox" v-if="!onlyRead"> |
|
|
|
<el-button v-print="'#optomeFunc'" size="small">打印</el-button> |
|
|
|
<div v-if="!onlyRead" class="btnBox"> |
|
|
|
<el-button v-print="print" size="small">打印</el-button> |
|
|
|
<el-button type="primary" size="small" @click="handleSaveTable">保存</el-button> |
|
|
|
<el-button type="danger" size="small" @click="handleDelete">删除</el-button> |
|
|
|
</div> |
|
|
@ -399,7 +399,11 @@ export default { |
|
|
|
a: '', |
|
|
|
b: '', |
|
|
|
c: '' |
|
|
|
}] |
|
|
|
}], |
|
|
|
print: { |
|
|
|
id: 'optomeFunc' |
|
|
|
// preview: true |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
computed: { |
|
|
@ -586,6 +590,7 @@ export default { |
|
|
|
|
|
|
|
<style lang="scss"> |
|
|
|
.printBox{ |
|
|
|
page-break-inside: avoid !important; |
|
|
|
.el-input__inner { |
|
|
|
border-bottom: 1px solid #ccc; |
|
|
|
border-radius: 0; |
|
|
@ -718,4 +723,15 @@ export default { |
|
|
|
// border-bottom: 0; |
|
|
|
// } |
|
|
|
} |
|
|
|
@media print{ |
|
|
|
@page { |
|
|
|
size:A5 landscape; |
|
|
|
//margin: 0; |
|
|
|
margin-top: 0; |
|
|
|
margin-bottom: 0; |
|
|
|
} |
|
|
|
//html{ |
|
|
|
// zoom: 68%; |
|
|
|
//} |
|
|
|
} |
|
|
|
</style> |
|
|
|