diff --git a/src/layout/components/Sidebar/Logo.vue b/src/layout/components/Sidebar/Logo.vue index 01249df..ea378a8 100644 --- a/src/layout/components/Sidebar/Logo.vue +++ b/src/layout/components/Sidebar/Logo.vue @@ -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; } diff --git a/src/views/l2/pdo/components/LabelPrint.vue b/src/views/l2/pdo/components/LabelPrint.vue index 862ffd2..7e2f4ff 100644 --- a/src/views/l2/pdo/components/LabelPrint.vue +++ b/src/views/l2/pdo/components/LabelPrint.vue @@ -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; } /* 无边框输入框样式 */