Browse Source

fix:优化

liziliang 11 hours ago
parent
commit
4ffa7a3dc8
2 changed files with 12 additions and 4 deletions
  1. 8 4
      src/views/unqualified/detail.vue
  2. 4 0
      src/views/unqualified/handle20.vue

+ 8 - 4
src/views/unqualified/detail.vue

@@ -41,10 +41,14 @@ defineExpose({showDrawer});
 <style scoped lang="scss">
 @media print {
   #print {
-    position: absolute; /* 或 absolute, fixed, 根据需要调整 */
-    top: 20px; /* 调整顶部位置 */
-    margin: 0; /* 重置边距 */
-    width: 1000px;
+    transform: scale(1.25);
+    transform-origin: top left; /* 确保从左上角缩放,避免偏移 */
+    position: absolute;
+    top: 80px; /* 增大顶部间距(向下移动) */
+    left: -260px; /* 负值向左移动,正值向右移动 */
+    margin: 0;
+    width: 100%;
+    font-size: 14px;
   }
 }
 </style>

+ 4 - 0
src/views/unqualified/handle20.vue

@@ -367,6 +367,10 @@ const handClose = () => {
   load1.value?.setFileList([])
   load2.value?.setFileList([])
   load3.value?.setFileList([])
+  fileNameList.value = [];
+  fileNameList1.value = [];
+  fileNameList2.value = [];
+  fileNameList3.value = [];
   remarkRef.value.resetFields();
   feedBackEmit("finish");
 }