1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
| /*
| * @Author: Morpheus
| * @Date: 2021-07-05 16:31:54
| * @Last Modified by: Morpheus
| * @Last Modified time: 2021-07-08 17:20:37
| * menu-name 保安员证打印
| */
| <template>
| <el-row class="morpheus-box">
| <el-col :span="24">
| <el-card>
| <el-button type="primary"
| @click="handlePrint1">打印局部</el-button>
|
| <div id="test" style="position: fixed;top: 0;left: 0; right: 0;bottom: 0;margin: 0;display: none;">
| <h2 style="color:red">12312</h2>
| </div>
| </el-card>
| </el-col>
| </el-row>
| </template>
|
| <script>
|
|
|
| export default {
| data () {
| return {
|
| }
| },
| created () {
|
|
| },
| mounted () {
|
|
| },
| methods: {
| handlePrint1 () {
| this.$Print('#test');
| },
| }
| }
| </script>
|
| <style lang="scss" scoped>
| </style>
|
|