diff --git a/components/SearchBox.vue b/components/SearchBox.vue index 96235b3..1ef3882 100644 --- a/components/SearchBox.vue +++ b/components/SearchBox.vue @@ -6,6 +6,7 @@ :value="value" :focus="focusState" @blur="handleBlur($event)" + @input="handleInput($event)" @confirm="handleChange($event)"> @@ -51,6 +52,10 @@ } }, methods: { + handleInput($event) { + this.cur = $event.detail.value + this.$emit('input', this.cur) + }, handleChange ($event) { this.cur = $event.target.value this.$emit('input', this.cur) diff --git a/pages/manage/zprk.vue b/pages/manage/zprk.vue index 9c49cab..dc66c18 100644 --- a/pages/manage/zprk.vue +++ b/pages/manage/zprk.vue @@ -8,25 +8,25 @@ 站点信息 - + + 载具编码 - + + @@ -119,6 +119,9 @@ }, selectChange (e) { this.index = e + if (e) { + this._getVehicleMaterial(e) + } }, handleChange (e) { if (e) { @@ -127,7 +130,7 @@ }, async _getVehicleMaterial (e) { try { - let res = await getVehicleMaterial(this.val1, this.val2, this.index) + let res = await getVehicleMaterial(e) if (res) { this.currentData = res } else {