漏斗复位修改

This commit is contained in:
2025-03-04 14:42:11 +08:00
parent b9f6bad2b4
commit 7fd2225f45

View File

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