no message

This commit is contained in:
2025-03-10 19:14:28 +08:00
parent 546c193175
commit 8873575e88

View File

@@ -8,7 +8,7 @@
<span class="filter_label">起点</span>
</view>
<view class="zd-col-19 filter_select">
<zxz-uni-data-select v-model="index1" filterable :localdata="options"></zxz-uni-data-select>
<zxz-uni-data-select v-model="index1" filterable :localdata="options1"></zxz-uni-data-select>
</view>
</view>
<view class="zd-row border-bottom">
@@ -16,7 +16,7 @@
<span class="filter_label">终点</span>
</view>
<view class="zd-col-19 filter_select">
<zxz-uni-data-select v-model="index2" filterable :localdata="options"></zxz-uni-data-select>
<zxz-uni-data-select v-model="index2" filterable :localdata="options2"></zxz-uni-data-select>
</view>
</view>
</view>
@@ -39,24 +39,31 @@
return {
title: '',
index1: '',
options: [],
options1: [],
options2: [],
index2: '',
disabled: false
};
},
onLoad (options) {
this.title = options.title
this._getWastePointList()
this._getWastePointList(1)
this._getWastePointList(2)
},
methods: {
async _getWastePointList () {
let res = await getWastePointList()
async _getWastePointList (type) {
let res = await getWastePointList(type)
if (res) {
res.map(el => {
this.$set(el, 'text', el.point_code)
this.$set(el, 'value', el.point_code)
})
this.options = [...res]
if (type === 1) {
this.options1 = [...res]
}
if (type === 2) {
this.options2 = [...res]
}
}
},
async toSure1 () {