修改纸管绑定
This commit is contained in:
@@ -12,6 +12,14 @@
|
||||
<search-box v-model="val1" />
|
||||
</view>
|
||||
</view>
|
||||
<view class="filter_item">
|
||||
<view class="filter_label_wraper">
|
||||
<span class="filter_label">点位</span>
|
||||
</view>
|
||||
<view class="filter_input_wraper">
|
||||
<search-box v-model="val3" />
|
||||
</view>
|
||||
</view>
|
||||
<view class="filter_item">
|
||||
<view class="filter_label">排数</view>
|
||||
<view class="filter_input_wraper">
|
||||
@@ -36,8 +44,8 @@
|
||||
</view>
|
||||
<view class="zd-row submitbar">
|
||||
<button class="zd-col-5 btn-submit btn-default" @tap="clearUp">清空</button>
|
||||
<button class="zd-col-8 btn-submit btn-success" :class="{'btn-info': !val1 || !val2 || !index || !index1}" :disabled="disabled" @tap="_operateIvt('1')">绑定</button>
|
||||
<button class="zd-col-8 btn-submit btn-success" :class="{'btn-info': !val1 || !val2 || !index || !index1}" :disabled="disabled" @tap="_operateIvt('2')">清除</button>
|
||||
<button class="zd-col-8 btn-submit btn-success" :class="{'btn-info': !val1 || !val2 || !index || !index1 || !val3}" :disabled="disabled" @tap="_operateIvt('1')">绑定</button>
|
||||
<button class="zd-col-8 btn-submit btn-success" :class="{'btn-info': !val1 || !val2 || !index || !index1 || !val3}" :disabled="disabled" @tap="_operateIvt('2')">清除</button>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
@@ -56,6 +64,7 @@
|
||||
return {
|
||||
title: '',
|
||||
val1: '',
|
||||
val3: '',
|
||||
options1: [{value: '1', text: '1'}, {value: '2', text: '2'}, {value: '3', text: '3'}, {value: '4', text: '4'}, {value: '5', text: '5'}],
|
||||
index1: '',
|
||||
val2: '',
|
||||
@@ -108,12 +117,12 @@
|
||||
},
|
||||
async _operateIvt (type) {
|
||||
this.disabled = true
|
||||
if (!this.val1 || !this.val2 || !this.index || !this.index1) {
|
||||
if (!this.val1 || !this.val2 || !this.index || !this.index1 || !this.val3) {
|
||||
this.disabled = false
|
||||
return
|
||||
}
|
||||
try {
|
||||
let res = await operateIvt(type, this.val1, this.index1, this.val2, this.index)
|
||||
let res = await operateIvt(type, this.val1, this.index1, this.val2, this.index, this.val3)
|
||||
uni.showToast({
|
||||
title: res.message,
|
||||
icon: 'none'
|
||||
|
||||
Reference in New Issue
Block a user