From dc9e5bb8d63d9a4267b4ed9ba8653e0b06788c7d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=A3=E5=9C=A3=E5=8D=8E?= <752718920@qq.com> Date: Sat, 25 Mar 2023 14:37:34 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A0=B9=E6=8D=AE=E5=88=86=E8=BE=A8=E7=8E=87?= =?UTF-8?q?=E8=B0=83=E6=95=B4=E5=95=86=E5=93=81=E9=80=89=E6=8B=A9=E6=A1=86?= =?UTF-8?q?=E7=9A=84=E5=AE=BD=E5=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/jeecgbiz/JSelectList.vue | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/jshERP-web/src/components/jeecgbiz/JSelectList.vue b/jshERP-web/src/components/jeecgbiz/JSelectList.vue index ab3ed6ac..96093324 100644 --- a/jshERP-web/src/components/jeecgbiz/JSelectList.vue +++ b/jshERP-web/src/components/jeecgbiz/JSelectList.vue @@ -2,7 +2,7 @@
{{ item.materialStr }} @@ -57,7 +57,8 @@ ids: "", names: "", materialData: [], - setTimeFlag: null + setTimeFlag: null, + searchWidth: "" } }, mounted() { @@ -68,6 +69,14 @@ this.ids = val } }, + created () { + const currentWidth = window.screen.width + if(currentWidth<1500) { + this.searchWidth = 'width:75%' + } else { + this.searchWidth = 'width:81%' + } + }, model: { prop: 'value', event: 'change' @@ -75,7 +84,7 @@ methods: { initComp(name) { if(this.kind === 'material') { - this.names = name?name:'请输入条码或名称' + this.names = name?name:'输入条码或名称' } else { this.names = name }