载具类型del
This commit is contained in:
@@ -24,14 +24,6 @@
|
|||||||
/>
|
/>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="zd-row border-bottom">
|
|
||||||
<view class="zd-col-7">
|
|
||||||
<span class="filter_label">载具类型</span>
|
|
||||||
</view>
|
|
||||||
<view class="zd-col-24 filter_select">
|
|
||||||
<uni-data-select v-model="index" :localdata="options" @change="selectChange"></uni-data-select>
|
|
||||||
</view>
|
|
||||||
</view>
|
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="zd-row submit-bar">
|
<view class="zd-row submit-bar">
|
||||||
@@ -46,7 +38,6 @@
|
|||||||
import NavBar from '@/components/NavBar.vue'
|
import NavBar from '@/components/NavBar.vue'
|
||||||
import SearchBox from '@/components/SearchBox.vue'
|
import SearchBox from '@/components/SearchBox.vue'
|
||||||
import {bindEmptyVehicle, unBindEmptyVehicle} from '@/utils/getData1.js'
|
import {bindEmptyVehicle, unBindEmptyVehicle} from '@/utils/getData1.js'
|
||||||
import {queryVehicleType} from '@/utils/getData2.js'
|
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
NavBar,
|
NavBar,
|
||||||
@@ -58,7 +49,6 @@
|
|||||||
val1: '',
|
val1: '',
|
||||||
val2: '',
|
val2: '',
|
||||||
options: [],
|
options: [],
|
||||||
index: '2',
|
|
||||||
disabled: false
|
disabled: false
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
@@ -66,28 +56,11 @@
|
|||||||
this.title = options.title
|
this.title = options.title
|
||||||
},
|
},
|
||||||
created () {
|
created () {
|
||||||
this._queryVehicleType()
|
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
async _queryVehicleType () {
|
|
||||||
try {
|
|
||||||
let res = await queryVehicleType()
|
|
||||||
if (res) {
|
|
||||||
this.options = res.data
|
|
||||||
} else {
|
|
||||||
this.options = []
|
|
||||||
}
|
|
||||||
} catch (e) {
|
|
||||||
this.options = []
|
|
||||||
}
|
|
||||||
},
|
|
||||||
selectChange (e) {
|
|
||||||
this.index = e
|
|
||||||
},
|
|
||||||
clearUp () {
|
clearUp () {
|
||||||
this.val1 = ''
|
this.val1 = ''
|
||||||
this.val2 = ''
|
this.val2 = ''
|
||||||
this.index = ''
|
|
||||||
this.disabled = false
|
this.disabled = false
|
||||||
},
|
},
|
||||||
async _bindEmptyVehicle () {
|
async _bindEmptyVehicle () {
|
||||||
|
|||||||
Reference in New Issue
Block a user