载具绑定

This commit is contained in:
2024-01-03 16:35:00 +08:00
parent f1ea8bb00d
commit d7c5869d16

View File

@@ -47,7 +47,7 @@
</dropdown-menu> </dropdown-menu>
</div> </div>
</div> </div>
<div class="bottom-filter-tip"> <div v-show="!show" class="bottom-filter-tip">
<div class="filter-label txtjustify">载具类型</div> <div class="filter-label txtjustify">载具类型</div>
<div class="fxcol mgl20 visible" > <div class="fxcol mgl20 visible" >
<dropdown-menu <dropdown-menu
@@ -64,6 +64,7 @@
</div> </div>
</div> </div>
<search-box <search-box
v-show="!show"
label="载具" label="载具"
v-model="val4" v-model="val4"
:seaShow="false" :seaShow="false"
@@ -110,7 +111,8 @@ export default {
val4: '', val4: '',
option4: [], option4: [],
active4: '', active4: '',
open4: false open4: false,
show: false
} }
}, },
created () { created () {
@@ -294,6 +296,11 @@ export default {
}, },
dropdownMenu4 (i) { dropdownMenu4 (i) {
this.active4 = i + '' this.active4 = i + ''
if (this.option4[i].value === '1') {
this.show = true
} else {
this.show = false
}
this.open4 = false this.open4 = false
}, },
/** 确认 */ /** 确认 */
@@ -311,11 +318,16 @@ export default {
} }
}) })
let code3 = '' let code3 = ''
this.option3.map(el => { if (this.show === false) {
if (el.label === this.val3) { this.option3.map(el => {
code3 = el.value if (el.label === this.val3) {
} code3 = el.value
}) }
})
}
if (this.show === true) {
this.val4 = ''
}
let res = await vehicleBind(code, code3, this.val4, this.option4[this.active4].value) let res = await vehicleBind(code, code3, this.val4, this.option4[this.active4].value)
if (res.code === '1') { if (res.code === '1') {
this.toast(res.desc) this.toast(res.desc)
@@ -339,6 +351,7 @@ export default {
this.disabled1 = false this.disabled1 = false
this.val4 = '' this.val4 = ''
this.active4 = '' this.active4 = ''
this.show = false
} }
} }
} }