|
|
|
@ -82,6 +82,12 @@
|
|
|
|
|
v-has="'btn_download'"
|
|
|
|
|
>导出
|
|
|
|
|
</el-button>
|
|
|
|
|
<!-- <el-button
|
|
|
|
|
type="text"
|
|
|
|
|
icon="el-icon-download"
|
|
|
|
|
@click="printData()"
|
|
|
|
|
>打印
|
|
|
|
|
</el-button> -->
|
|
|
|
|
<el-button
|
|
|
|
|
type="text"
|
|
|
|
|
icon="el-icon-delete"
|
|
|
|
@ -109,6 +115,7 @@
|
|
|
|
|
@selection-change="handleSelectionChange"
|
|
|
|
|
border
|
|
|
|
|
custom-column
|
|
|
|
|
id="table-data"
|
|
|
|
|
>
|
|
|
|
|
<el-table-column type="index" fixed="left" width="1" />
|
|
|
|
|
<el-table-column
|
|
|
|
@ -200,6 +207,7 @@
|
|
|
|
|
ref="Detail"
|
|
|
|
|
@refresh="detailVisible = false"
|
|
|
|
|
/>
|
|
|
|
|
<iframe width="0" height="0" frameborder="0" id="iframe-spr">cs</iframe>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
@ -429,6 +437,13 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
this.search();
|
|
|
|
|
},
|
|
|
|
|
printData(){
|
|
|
|
|
let printHtml = document.getElementById('table-data').innerHTML;
|
|
|
|
|
let sysPrint = document.getElementById('iframe-spr');
|
|
|
|
|
sysPrint.contentDocument.body.innerHTML = printHtml;
|
|
|
|
|
sysPrint.contentDocument.execCommand('Print');
|
|
|
|
|
//window.print();
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
};
|
|
|
|
|
</script>
|
|
|
|
|