change
This commit is contained in:
@@ -6,20 +6,20 @@
|
|||||||
<view class="filter_item">
|
<view class="filter_item">
|
||||||
<view class="filter_label">起始点位</view>
|
<view class="filter_label">起始点位</view>
|
||||||
<view class="filter_input_wraper">
|
<view class="filter_input_wraper">
|
||||||
<input type="text" class="filter_input" v-model="val1" disabled>
|
<uni-data-select v-model="index1" :localdata="options1" @change="selectChange1"></uni-data-select>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="filter_item">
|
<view class="filter_item">
|
||||||
<view class="filter_label">目标点位</view>
|
<view class="filter_label">目标点位</view>
|
||||||
<view class="filter_input_wraper">
|
<view class="filter_input_wraper">
|
||||||
<input type="text" class="filter_input" v-model="val2" disabled>
|
<uni-data-select v-model="index2" :localdata="options2" @change="selectChange2"></uni-data-select>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="zd-row submit-bar_new">
|
<view class="zd-row submit-bar_new">
|
||||||
<button class="zd-col-7 submit-button_c" @tap="toClear">清空</button>
|
<button class="zd-col-7 submit-button_c" @tap="toClear">清空</button>
|
||||||
<button class="zd-col-15 submit-button_new" :class="{'btn-disabled': !val1 || !val2}" :disabled="disabled" @tap="_taskCarry">确认</button>
|
<button class="zd-col-15 submit-button_new" :class="{'btn-disabled': !index1 || !index2}" :disabled="disabled" @tap="_taskCarry">确认</button>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
@@ -35,8 +35,10 @@
|
|||||||
return {
|
return {
|
||||||
dataList: [],
|
dataList: [],
|
||||||
disabled: false,
|
disabled: false,
|
||||||
val1: '',
|
options1: [],
|
||||||
val2: ''
|
index1: '',
|
||||||
|
options2: [],
|
||||||
|
index2: '',
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
created () {
|
created () {
|
||||||
@@ -44,28 +46,42 @@
|
|||||||
this._pointSearch2('YL')
|
this._pointSearch2('YL')
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
selectChange1 (e) {
|
||||||
|
this.index1 = e
|
||||||
|
},
|
||||||
|
selectChange2 (e) {
|
||||||
|
this.index2 = e
|
||||||
|
},
|
||||||
/** 点位查询1 */
|
/** 点位查询1 */
|
||||||
async _pointSearch1 (a) {
|
async _pointSearch1 (a) {
|
||||||
let res = await pointSearch(a)
|
let res = await pointSearch(a)
|
||||||
this.val1 = res[0].point_code
|
this.options1 = [...res]
|
||||||
|
this.options1.map(el => {
|
||||||
|
this.$set(el, 'value', el.point_code)
|
||||||
|
this.$set(el, 'text', el.point_name)
|
||||||
|
})
|
||||||
},
|
},
|
||||||
/** 点位查询2 */
|
/** 点位查询2 */
|
||||||
async _pointSearch2 (a) {
|
async _pointSearch2 (a) {
|
||||||
let res = await pointSearch(a)
|
let res = await pointSearch(a)
|
||||||
this.val2 = res[0].point_code
|
this.options2 = [...res]
|
||||||
|
this.options2.map(el => {
|
||||||
|
this.$set(el, 'value', el.point_code)
|
||||||
|
this.$set(el, 'text', el.point_name)
|
||||||
|
})
|
||||||
},
|
},
|
||||||
toClear () {
|
toClear () {
|
||||||
this.val1 = ''
|
this.index1 = ''
|
||||||
this.val2 = ''
|
this.index2 = ''
|
||||||
},
|
},
|
||||||
async _taskCarry () {
|
async _taskCarry () {
|
||||||
this.disabled = true
|
this.disabled = true
|
||||||
if (!this.val1 || !this.val2) {
|
if (!this.index1 || !this.index2) {
|
||||||
this.disabled = false
|
this.disabled = false
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
let res = await taskCarry(this.val1, this.val2)
|
let res = await taskCarry(this.index1, this.index2)
|
||||||
this.disabled = false
|
this.disabled = false
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: res.message,
|
title: res.message,
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
<view class="filter_item">
|
<view class="filter_item">
|
||||||
<view class="filter_label">起始点位</view>
|
<view class="filter_label">起始点位</view>
|
||||||
<view class="filter_input_wraper">
|
<view class="filter_input_wraper">
|
||||||
<input type="text" class="filter_input" v-model="val1" disabled>
|
<uni-data-select v-model="index1" :localdata="options1" @change="selectChange1"></uni-data-select>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="filter_item">
|
<view class="filter_item">
|
||||||
@@ -35,7 +35,7 @@
|
|||||||
</view>
|
</view>
|
||||||
<view class="zd-row submit-bar_new">
|
<view class="zd-row submit-bar_new">
|
||||||
<button class="zd-col-7 submit-button_c" @tap="toClear">清空</button>
|
<button class="zd-col-7 submit-button_c" @tap="toClear">清空</button>
|
||||||
<button class="zd-col-15 submit-button_new" :class="{'btn-disabled': !val1 || !val2 || !val3 || !val4}" :disabled="disabled" @tap="_yclrk">确认</button>
|
<button class="zd-col-15 submit-button_new" :class="{'btn-disabled': !index1 || !val2 || !val3 || !val4}" :disabled="disabled" @tap="_yclrk">确认</button>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
@@ -53,7 +53,8 @@
|
|||||||
return {
|
return {
|
||||||
dataList: [],
|
dataList: [],
|
||||||
disabled: false,
|
disabled: false,
|
||||||
val1: '',
|
options1: [],
|
||||||
|
index1: '',
|
||||||
val2: '',
|
val2: '',
|
||||||
val3: '',
|
val3: '',
|
||||||
val4: ''
|
val4: ''
|
||||||
@@ -63,25 +64,32 @@
|
|||||||
this._pointSearch('SSX')
|
this._pointSearch('SSX')
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
/** 点位查询 */
|
selectChange1 (e) {
|
||||||
|
this.index1 = e
|
||||||
|
},
|
||||||
|
/** 点位查询 下拉框显示 */
|
||||||
async _pointSearch (a) {
|
async _pointSearch (a) {
|
||||||
let res = await pointSearch(a)
|
let res = await pointSearch(a)
|
||||||
this.val1 = res[0].point_code
|
this.options1 = [...res]
|
||||||
|
this.options1.map(el => {
|
||||||
|
this.$set(el, 'value', el.point_code)
|
||||||
|
this.$set(el, 'text', el.point_name)
|
||||||
|
})
|
||||||
},
|
},
|
||||||
toClear () {
|
toClear () {
|
||||||
this.val1 = ''
|
this.index1 = ''
|
||||||
this.val2 = ''
|
this.val2 = ''
|
||||||
this.val3 = ''
|
this.val3 = ''
|
||||||
this.val4 = ''
|
this.val4 = ''
|
||||||
},
|
},
|
||||||
async _yclrk () {
|
async _yclrk () {
|
||||||
this.disabled = true
|
this.disabled = true
|
||||||
if (!this.val1 || !this.val2 || !this.val3 || !this.val4) {
|
if (!this.index1 || !this.val2 || !this.val3 || !this.val4) {
|
||||||
this.disabled = false
|
this.disabled = false
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
let res = await yclrk(this.val1, this.val2, this.val3, this.val4)
|
let res = await yclrk(this.index1, this.val2, this.val3, this.val4)
|
||||||
this.disabled = false
|
this.disabled = false
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: res.message,
|
title: res.message,
|
||||||
|
|||||||
@@ -6,13 +6,13 @@
|
|||||||
<view class="filter_item">
|
<view class="filter_item">
|
||||||
<view class="filter_label">起始点位</view>
|
<view class="filter_label">起始点位</view>
|
||||||
<view class="filter_input_wraper">
|
<view class="filter_input_wraper">
|
||||||
<input type="text" class="filter_input" v-model="val1" disabled>
|
<uni-data-select v-model="index1" :localdata="options1" @change="selectChange1"></uni-data-select>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="filter_item">
|
<view class="filter_item">
|
||||||
<view class="filter_label">回温模式</view>
|
<view class="filter_label">回温模式</view>
|
||||||
<view class="filter_input_wraper">
|
<view class="filter_input_wraper">
|
||||||
<uni-data-select v-model="index1" :localdata="options1" @change="selectChange1"></uni-data-select>
|
<uni-data-select v-model="index2" :localdata="options2" @change="selectChange2"></uni-data-select>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="filter_item">
|
<view class="filter_item">
|
||||||
@@ -25,7 +25,7 @@
|
|||||||
</view>
|
</view>
|
||||||
<view class="zd-row submit-bar_new">
|
<view class="zd-row submit-bar_new">
|
||||||
<button class="zd-col-7 submit-button_c" @tap="toClear">清空</button>
|
<button class="zd-col-7 submit-button_c" @tap="toClear">清空</button>
|
||||||
<button class="zd-col-15 submit-button_new" :class="{'btn-disabled': !val1 || index1 || !val2}" :disabled="disabled" @tap="_yclck">确认</button>
|
<button class="zd-col-15 submit-button_new" :class="{'btn-disabled': !index1 || index2 || !val2}" :disabled="disabled" @tap="_yclck">确认</button>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
@@ -41,9 +41,10 @@
|
|||||||
return {
|
return {
|
||||||
dataList: [],
|
dataList: [],
|
||||||
disabled: false,
|
disabled: false,
|
||||||
options1: [{value: '0',text: '普通'}, {value: '1',text: '快速'}],
|
options1: [],
|
||||||
index1: '',
|
index1: '',
|
||||||
val1: '',
|
options2: [{value: '0',text: '普通'}, {value: '1',text: '快速'}],
|
||||||
|
index2: '',
|
||||||
val2: ''
|
val2: ''
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
@@ -54,23 +55,30 @@
|
|||||||
selectChange1 (e) {
|
selectChange1 (e) {
|
||||||
this.index1 = e
|
this.index1 = e
|
||||||
},
|
},
|
||||||
/** 点位查询 */
|
selectChange2 (e) {
|
||||||
|
this.index2 = e
|
||||||
|
},
|
||||||
|
/** 点位查询 下拉框显示 */
|
||||||
async _pointSearch (a) {
|
async _pointSearch (a) {
|
||||||
let res = await pointSearch(a)
|
let res = await pointSearch(a)
|
||||||
this.val1 = res[0].point_code
|
this.options1 = [...res]
|
||||||
|
this.options1.map(el => {
|
||||||
|
this.$set(el, 'value', el.point_code)
|
||||||
|
this.$set(el, 'text', el.point_name)
|
||||||
|
})
|
||||||
},
|
},
|
||||||
toClear () {
|
toClear () {
|
||||||
this.val1 = ''
|
this.index1 = ''
|
||||||
this.val2 = ''
|
this.val2 = ''
|
||||||
},
|
},
|
||||||
async _yclck () {
|
async _yclck () {
|
||||||
this.disabled = true
|
this.disabled = true
|
||||||
if (!this.val1 || this.index1 || !this.val2) {
|
if (!this.index1 || this.index2 || !this.val2) {
|
||||||
this.disabled = false
|
this.disabled = false
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
let res = await yclck(this.val1, this.index1, this.val2)
|
let res = await yclck(this.index1, this.index2, this.val2)
|
||||||
this.disabled = false
|
this.disabled = false
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: res.message,
|
title: res.message,
|
||||||
|
|||||||
Reference in New Issue
Block a user