同步清空、取值范围
This commit is contained in:
@@ -23,13 +23,24 @@
|
||||
<view class="filter_item">
|
||||
<view class="filter_label">{{$t('filter.temperature')}}</view>
|
||||
<view class="filter_input_wraper">
|
||||
<input type="number" class="filter_input" v-model="val3">
|
||||
<!-- <input type="number" class="filter_input" v-model="val3"> -->
|
||||
<NumberInput
|
||||
v-model="val3"
|
||||
input-class="filter_input"
|
||||
mode="mixed"
|
||||
:decimalLength="3"
|
||||
/>
|
||||
</view>
|
||||
</view>
|
||||
<view class="filter_item">
|
||||
<view class="filter_label">{{$t('filter.time')}}({{$t('unit.minute')}})</view>
|
||||
<view class="filter_input_wraper">
|
||||
<input type="number" class="filter_input" v-model="val4">
|
||||
<!-- <input type="number" class="filter_input" v-model="val4"> -->
|
||||
<NumberInput
|
||||
v-model="val4"
|
||||
input-class="filter_input"
|
||||
mode="integer"
|
||||
/>
|
||||
</view>
|
||||
</view>
|
||||
<view class="filter_item">
|
||||
@@ -52,11 +63,13 @@
|
||||
<script>
|
||||
import NavBar from '@/components/NavBar.vue'
|
||||
import SearchBox from '@/components/SearchBox.vue'
|
||||
import NumberInput from '@/components/NumberInput.vue'
|
||||
import {ovenInAndOut, inCoolIvt, bakingquery, inCoolOrOven} from '@/utils/getData1.js'
|
||||
export default {
|
||||
components: {
|
||||
NavBar,
|
||||
SearchBox
|
||||
SearchBox,
|
||||
NumberInput
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
@@ -141,6 +154,10 @@
|
||||
title: res.message,
|
||||
icon: 'none'
|
||||
})
|
||||
this.val1 = ''
|
||||
this.val2 = ''
|
||||
this.val3 = ''
|
||||
this.val4 = ''
|
||||
this.disabled3 = false
|
||||
} catch (e) {
|
||||
this.disabled3 = false
|
||||
@@ -159,6 +176,10 @@
|
||||
title: res.message,
|
||||
icon: 'none'
|
||||
})
|
||||
this.val1 = ''
|
||||
this.val2 = ''
|
||||
this.val3 = ''
|
||||
this.val4 = ''
|
||||
this.disabled4 = false
|
||||
} catch (e) {
|
||||
this.disabled4 = false
|
||||
|
||||
Reference in New Issue
Block a user