From 32586050d923e6bd1dc0a7afbe31b98a8599ca23 Mon Sep 17 00:00:00 2001 From: qx <1084500556@qq.com> Date: 星期五, 28 三月 2025 16:50:49 +0800 Subject: [PATCH] qx --- /dev/null | 21 --------------------- src/main.js | 8 -------- src/components/jianqianwenzhen/index.vue | 23 +++++++++-------------- 3 files changed, 9 insertions(+), 43 deletions(-) diff --git a/src/components/jianqianwenzhen/index.vue b/src/components/jianqianwenzhen/index.vue index 7199263..f541b4c 100644 --- a/src/components/jianqianwenzhen/index.vue +++ b/src/components/jianqianwenzhen/index.vue @@ -35,8 +35,8 @@ <el-input @focus="changemedicalhistory" type="textarea" rows="4" v-model="form.medicalHistory" placeholder="璇疯緭鍏ユ棦寰�鐥呭彶" style="width: 700px" /> </el-form-item> - <el-form-item label="鐥囩姸" prop="zzsjj" class="symptom-form-item"> - <el-select multiple filterable :append-to-body="true" v-model="form.zzsjj" placeholder="璇烽�夋嫨鐥囩姸" clearable style="width: 700px"> + <el-form-item label="鐥囩姸" prop="zzsjj"> + <el-select multiple filterable v-model="form.zzsjj" placeholder="璇烽�夋嫨鐥囩姸" clearable style="width: 700px"> <el-option v-for="dict in zhenghuzangList" :key="dict.id" :label="dict.proName" :value="dict.proName" /> </el-select> </el-form-item> @@ -863,17 +863,12 @@ .coll { width: 100%; } -/* 淇鐖跺鍣ㄦ牱寮� */ -.symptom-form-item { - overflow: visible !important; - position: static !important; - transform: none !important; -} -/* 淇涓嬫媺妗嗗眰绾� */ -.el-select-dropdown { - z-index: 9999 !important; - margin-top: 5px !important; - margin-left: -8px !important; -} +/* 璋冩暣涓嬫媺妗嗕綅缃拰灞傜骇 */ +.el-select-dropdown{ + position: absolute !important; + top: 30px !important; + left: 0px !important; + } + </style> \ No newline at end of file diff --git a/src/main.js b/src/main.js index 81a1d7d..d603c74 100644 --- a/src/main.js +++ b/src/main.js @@ -35,14 +35,6 @@ import Pagination from "@/components/Pagination"; // 鍒嗛〉缁勪欢 -import { monitorZoom } from "@/utils/devicePixelRatio.js"; -const m = monitorZoom(); -if (window.screen.width * window.devicePixelRatio >= 3840) { - document.body.style.zoom = 100 / (Number(m) / 2); // 灞忓箷涓� 4k 鏃� -} else { - document.body.style.zoom = 100 / Number(m); -} - // 鑷畾涔夎〃鏍煎伐鍏风粍浠� import RightToolbar from "@/components/RightToolbar"; // 瀵屾枃鏈粍浠� diff --git a/src/utils/devicePixelRatio.js b/src/utils/devicePixelRatio.js deleted file mode 100644 index d1bba32..0000000 --- a/src/utils/devicePixelRatio.js +++ /dev/null @@ -1,21 +0,0 @@ -export const monitorZoom = () => { - let ratio = 0, - screen = window.screen, - ua = navigator.userAgent.toLowerCase(); - if (window.devicePixelRatio !== undefined) { - ratio = window.devicePixelRatio; - } else if (~ua.indexOf("msie")) { - if (screen.deviceXDPI && screen.logicalXDPI) { - ratio = screen.deviceXDPI / screen.logicalXDPI; - } - } else if ( - window.outerWidth !== undefined && - window.innerWidth !== undefined - ) { - ratio = window.outerWidth / window.innerWidth; - } - if (ratio) { - ratio = Math.round(ratio * 100); - } - return ratio; -}; \ No newline at end of file -- Gitblit v1.8.0