涂板线叫空架
This commit is contained in:
@@ -6,8 +6,7 @@
|
||||
<view class="filter_item">
|
||||
<view class="filter_label">区域</view>
|
||||
<view class="filter_input_wraper">
|
||||
<!-- <uni-data-select v-model="index1" :localdata="options1" @change="selectChange1"></uni-data-select> -->
|
||||
<zxz-uni-data-select v-model="index1" filterable :localdata="options1" @inputChange="inputChange1" @change="selectChange1"></zxz-uni-data-select>
|
||||
<uni-data-select v-model="index1" :localdata="options1" @change="selectChange1"></uni-data-select>
|
||||
</view>
|
||||
</view>
|
||||
<view class="filter_item">
|
||||
@@ -15,13 +14,13 @@
|
||||
<span class="filter_label">点位</span>
|
||||
</view>
|
||||
<view class="filter_input_wraper">
|
||||
<uni-data-select v-model="index2" :localdata="options2" @change="selectChange2"></uni-data-select>
|
||||
<zxz-uni-data-select v-model="index2" filterable :localdata="options2" @inputChange="inputChange2" @change="selectChange2"></zxz-uni-data-select>
|
||||
</view>
|
||||
</view>
|
||||
<view class="filter_item">
|
||||
<view class="filter_label">载具编码</view>
|
||||
<view class="filter_input_wraper">
|
||||
<search-box v-model="val1" @handleChange="handleChange1"/>
|
||||
<search-box v-model="val1"/>
|
||||
</view>
|
||||
</view>
|
||||
<view class="filter_item">
|
||||
@@ -44,7 +43,7 @@
|
||||
<script>
|
||||
import NavBar from '@/components/NavBar.vue'
|
||||
import SearchBox from '@/components/SearchBox.vue'
|
||||
import {queryRegion, queryPoint, outStructOutSave} from '@/utils/getData2.js'
|
||||
import {queryPoint, outStructOutSave} from '@/utils/getData2.js'
|
||||
export default {
|
||||
components: {
|
||||
NavBar,
|
||||
@@ -52,8 +51,8 @@
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
options1: [],
|
||||
index1: '',
|
||||
options1: [{text: '涂板线1', value: 'TBX1'}, {text: '涂板线2', value: 'TBX2'}],
|
||||
index1: 'TBX1',
|
||||
options2: [],
|
||||
index2: '',
|
||||
options3: [{text: '正极板', value: '1'}, {text: '负极板', value: '2'}, {text: '边负极板', value: '3'}],
|
||||
@@ -63,44 +62,37 @@
|
||||
};
|
||||
},
|
||||
created () {
|
||||
this._queryRegion()
|
||||
this._queryPoint('TBX1')
|
||||
},
|
||||
methods: {
|
||||
/** 选择器1 */
|
||||
inputChange1 (e) {
|
||||
// console.log('inputChange1:' + e)
|
||||
},
|
||||
selectChange1(e) {
|
||||
// console.log('selectChange1:' + e)
|
||||
this.index1 = e
|
||||
if (e) {
|
||||
this.index1 = e.region_code
|
||||
this._queryPoint(e.region_code)
|
||||
this._queryPoint(e)
|
||||
} else {
|
||||
this.options2 = []
|
||||
this.index2 = ''
|
||||
}
|
||||
},
|
||||
inputChange2 (e) {
|
||||
// console.log(e)
|
||||
},
|
||||
selectChange2(e) {
|
||||
this.index2 = e
|
||||
if (e) {
|
||||
this.index2 = e.point_code
|
||||
}
|
||||
},
|
||||
selectChange3(e) {
|
||||
this.index3 = e
|
||||
},
|
||||
/** 获取区域下拉框 */
|
||||
async _queryRegion () {
|
||||
let res = await queryRegion()
|
||||
this.options1 = [...res.result]
|
||||
this.options1.map(el => {
|
||||
this.$set(el, 'value', el.region_code)
|
||||
this.$set(el, 'text', el.region_name)
|
||||
})
|
||||
},
|
||||
/** 获取点位状态下拉框 */
|
||||
async _queryPoint (e) {
|
||||
let res = await queryPoint(e)
|
||||
this.options2 = [...res.result]
|
||||
this.options2 = [...res]
|
||||
this.options2.map(el => {
|
||||
this.$set(el, 'value', el.device_code)
|
||||
this.$set(el, 'text', el.device_name)
|
||||
this.$set(el, 'value', el.point_code)
|
||||
this.$set(el, 'text', el.point_name)
|
||||
})
|
||||
},
|
||||
/** 确定 */
|
||||
@@ -136,9 +128,10 @@
|
||||
},
|
||||
toCancle () {
|
||||
this.disabled1 = false
|
||||
this.index1 = ''
|
||||
this.index1 = 'TBX1'
|
||||
this.index2 = ''
|
||||
this.options2 = []
|
||||
this._queryPoint('TBX1')
|
||||
this.val1 = ''
|
||||
this.index3 = ''
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user