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 }