This commit is contained in:
2022-12-13 10:56:09 +08:00
parent 30b1d87ef4
commit 068753627f
4 changed files with 50 additions and 23 deletions

View File

@@ -8,11 +8,7 @@
<span class="filter_label">站点码</span>
</view>
<view class="filter_input_wraper">
<search-box
v-model="val1"
:seaShow="true"
@toSearch="toSearch"
/>
<search-box v-model="val1" @handleChange="handleChange1"/>
</view>
</view>
<view class="filter_item">
@@ -48,18 +44,15 @@
};
},
methods: {
handleChange (e) {
console.log(e)
},
toSearch (e) {
this._emptyVehiclepointStatusQuery()
handleChange1 (e) {
this._emptyVehiclepointStatusQuery(e)
},
/** 1.2点位状态查询 */
async _emptyVehiclepointStatusQuery () {
if (!this.val1) {
async _emptyVehiclepointStatusQuery (val1) {
if (!val1) {
return
}
let res = await emptyVehiclepointStatusQuery(this.val1)
let res = await emptyVehiclepointStatusQuery(val1)
this.val2 = res.data.vehicle_code
},
async _emptyVehiclepointOperate () {
@@ -74,6 +67,8 @@
title: res.message,
icon: 'none'
})
this.val1 = ''
this.val2 = ''
this.disabled1 = false
} catch (e) {
this.disabled1 = false