|
|
@@ -24,6 +24,7 @@
|
|
|
step="1"
|
|
|
/>
|
|
|
</view>
|
|
|
+ <u-button type="success" class="sub-btn" @click="handleControl('STORAGE_INR')">确定</u-button>
|
|
|
<view class="title date-title">数据传输间隔(min)</view>
|
|
|
<view class="date-slider">
|
|
|
<slider
|
|
|
@@ -37,9 +38,7 @@
|
|
|
step="1"
|
|
|
/>
|
|
|
</view>
|
|
|
- </view>
|
|
|
- <view class="footer-board">
|
|
|
- <u-button type="success" class="sub-btn" @click="handleSubmit()">确定</u-button>
|
|
|
+ <u-button type="success" class="sub-btn" @click="handleControl('INTERVAL')">确定</u-button>
|
|
|
</view>
|
|
|
</view>
|
|
|
</template>
|
|
|
@@ -96,11 +95,17 @@ export default {
|
|
|
data: params
|
|
|
}).then(res => {
|
|
|
console.log('设备控制参数信息', res)
|
|
|
+ uni.showToast({
|
|
|
+ title: "操作成功",
|
|
|
+ icon: "none",
|
|
|
+ });
|
|
|
})
|
|
|
},
|
|
|
- handleSubmit() {
|
|
|
- this.handleControl('STORAGE_INR');
|
|
|
- this.handleControl('INTERVAL');
|
|
|
+ async handleSubmit() {
|
|
|
+ // await this.handleControl('STORAGE_INR');
|
|
|
+ // setTimeout(async ()=>{
|
|
|
+ // await this.handleControl('INTERVAL');
|
|
|
+ // },500)
|
|
|
uni.showToast({
|
|
|
title: "操作成功",
|
|
|
icon: "none",
|