|
@@ -3,7 +3,7 @@
|
|
|
<div>
|
|
|
<el-card>
|
|
|
<div style="text-align: right">
|
|
|
- <el-button type="primary" @click.stop="printDataView()">打印</el-button>
|
|
|
+ <el-button type="primary" @click.stop="prDataView()">打印</el-button>
|
|
|
<el-button
|
|
|
type="primary"
|
|
|
v-if="isShow"
|
|
@@ -120,9 +120,12 @@
|
|
|
destroy-on-close
|
|
|
append-to-body
|
|
|
>
|
|
|
- <div id="printMe">
|
|
|
- <printTable :tableHeader="tableHeader" :tableData="list" />
|
|
|
+ <div class="prWrap">
|
|
|
+ <div id="printMe">
|
|
|
+ <printTable :tableHeader="tableHeader" :tableData="list" />
|
|
|
+ </div>
|
|
|
</div>
|
|
|
+
|
|
|
<span slot="footer" class="dialog-footer">
|
|
|
<el-button type="primary" v-print="printObj">打印</el-button>
|
|
|
</span>
|
|
@@ -299,7 +302,7 @@ export default {
|
|
|
exportData(_res, "对账明细");
|
|
|
});
|
|
|
},
|
|
|
- printDataView() {
|
|
|
+ prDataView() {
|
|
|
this.comModal = true;
|
|
|
},
|
|
|
comhandleClose() {
|
|
@@ -433,4 +436,8 @@ export default {
|
|
|
align-items: center;
|
|
|
justify-content: flex-end;
|
|
|
}
|
|
|
+.prWrap {
|
|
|
+ height: 400px;
|
|
|
+ overflow: auto;
|
|
|
+}
|
|
|
</style>
|