1
This commit is contained in:
parent
1d3bf83dab
commit
b2d07817c7
@ -268,6 +268,7 @@ export default {
|
||||
// 将表单数据转换为JSON字符串
|
||||
const fromData = {
|
||||
...this.form,
|
||||
fillDate: new Date().toLocaleDateString(), // 设置填表日期
|
||||
submitTime: new Date().toISOString(), // 添加提交时间
|
||||
fromData: JSON.stringify(this.form) // 将整个表单数据转为字符串
|
||||
};
|
||||
|
||||
@ -645,7 +645,7 @@ export default {
|
||||
padding: 0;
|
||||
font-family: "Microsoft YaHei", sans-serif;
|
||||
font-size: 12px;
|
||||
width: 100%;
|
||||
width: 97%; /* 调整整体宽度 */
|
||||
}
|
||||
.print-title {
|
||||
text-align: center;
|
||||
@ -655,10 +655,10 @@ export default {
|
||||
padding: 0;
|
||||
}
|
||||
.resume-table {
|
||||
width: 100%;
|
||||
width: 97%; /* 调整表格宽度 */
|
||||
border-collapse: collapse;
|
||||
border: 1px solid #000;
|
||||
margin: 0;
|
||||
border: 2px solid #000;
|
||||
margin: 0 auto; /* 居中显示 */
|
||||
padding: 0;
|
||||
table-layout: fixed;
|
||||
}
|
||||
@ -708,15 +708,27 @@ export default {
|
||||
}
|
||||
|
||||
@media print {
|
||||
* {
|
||||
-webkit-print-color-adjust: exact !important;
|
||||
print-color-adjust: exact !important;
|
||||
}
|
||||
.resume-table {
|
||||
border: 2px solid #000 !important;
|
||||
border-collapse: collapse !important;
|
||||
}
|
||||
.resume-table td {
|
||||
border: 1px solid #000 !important;
|
||||
}
|
||||
body {
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
width: 100%;
|
||||
width: 97% !important; /* 打印时保持宽度 */
|
||||
}
|
||||
.resume-table {
|
||||
page-break-inside: avoid;
|
||||
width: 100%;
|
||||
border: 1px solid #000 !important;
|
||||
width: 97% !important; /* 打印时保持宽度 */
|
||||
border: 2px solid #000 !important;
|
||||
margin: 0 auto !important; /* 打印时保持居中 */
|
||||
}
|
||||
.resume-table tr {
|
||||
page-break-inside: avoid;
|
||||
@ -730,7 +742,7 @@ export default {
|
||||
}
|
||||
/* 确保表格占满页面宽度 */
|
||||
.resume-table, .resume-table td {
|
||||
width: 100% !important;
|
||||
width: 97% !important; /* 打印时保持宽度 */
|
||||
}
|
||||
/* 隐藏复选框的默认样式 */
|
||||
input[type="checkbox"] {
|
||||
@ -843,8 +855,9 @@ export default {
|
||||
}
|
||||
|
||||
.resume-table {
|
||||
page-break-inside: auto;
|
||||
width: 100% !important;
|
||||
page-break-inside: avoid;
|
||||
width: 100%;
|
||||
border: 2px solid #000 !important;
|
||||
}
|
||||
|
||||
.resume-table tr {
|
||||
@ -854,7 +867,8 @@ export default {
|
||||
|
||||
.resume-table td {
|
||||
padding: 3px 4px;
|
||||
min-height: 28px;
|
||||
height: 28px;
|
||||
border: 1px solid #000 !important;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user