style: 调整侧边栏标题和打印标签的字体大小

将侧边栏Logo标题从"Galvanizing Line Management System"简化为"Galvanizing Line System",并统一调整侧边栏标题和打印标签的字体大小至12px。移除LabelPrint组件中冗余的打印样式定义,这些样式已移至全局CSS文件中。
This commit is contained in:
砂糖
2025-12-31 11:04:49 +08:00
parent a380081926
commit dc430c0289
2 changed files with 3 additions and 49 deletions

View File

@@ -35,7 +35,7 @@ export default {
},
data() {
return {
title: 'Galvanizing Line Management System',
title: 'Galvanizing Line System',
logo: logoImg
}
}
@@ -90,7 +90,7 @@ export default {
text-shadow: 0 1px 0 rgba(255, 255, 255, 0.1);
font-weight: 600;
line-height: 50px;
font-size: 14px;
font-size: 12px;
font-family: Avenir, Helvetica Neue, Arial, Helvetica, sans-serif;
vertical-align: middle;
}

View File

@@ -147,52 +147,6 @@ export default {
// Handle print logic / 处理打印逻辑
handlePrint() {
// Define print styles to ensure print effect matches preview / 定义打印样式,确保打印效果与预览一致
const printStyle = `
.label-content {
width: 200mm;
height: 160mm;
padding: 0;
box-sizing: border-box;
font-family: SimSun;
}
.company-name {
text-align: center;
padding: 8mm 0;
font-size: 16pt;
font-weight: bold;
border: 1px solid #000;
}
.content-grid {
display: grid;
grid-template-columns: 1fr 1fr 1fr 1fr;
gap: 0;
}
.grid-item {
min-height: 15mm;
display: flex;
border: 1px solid #000;
align-items: center;
box-sizing: border-box;
}
.label {
font-weight: bold;
font-size: 12pt;
padding-left: 2mm;
}
.value {
font-size: 12pt;
}
input {
border: none !important;
width: 100%;
height: 100%;
font-size: 12pt;
padding: 0 2mm;
box-sizing: border-box;
}
`;
// Call printJS to print / 调用printJS进行打印
printJS({
printable: 'printContent', // Element ID to print / 要打印的元素ID
@@ -258,7 +212,7 @@ export default {
.label {
font-weight: bold;
line-height: 60px;
font-size: 16px;
font-size: 12px;
}
/* 无边框输入框样式 */