自动化ui
parent
42311198bf
commit
adc5a2e41f
|
|
@ -40,7 +40,7 @@
|
|||
<uni-section title="自动化参数配置" titleFontSize="16px" type="line"
|
||||
v-if="value!== 1 && !['862538065276939','A','B','C'].includes(value)">
|
||||
<template v-slot:right>
|
||||
<button @click="saveAutoTerm" style="margin-right: 10rpx" class="cu-btn bg-cyan shadow">保存</button>
|
||||
参数设置完成请点击 <button @click="saveAutoTerm" style="margin-right: 10rpx" class="cu-btn bg-cyan shadow">保存</button>
|
||||
</template>
|
||||
<!--自动化设置-->
|
||||
<view class="film-roller">
|
||||
|
|
@ -108,7 +108,7 @@
|
|||
</view>
|
||||
</uni-section>
|
||||
<tn-picker mode="time" v-model="selectTime" :params="timeParams" @confirm="confirmTime"></tn-picker>
|
||||
<tn-select title="请选择数据" :safeAreaInsetBottom="true" :searchShow="false" v-model="showSelect" mode="single" :list="tempList" @confirm="confirmTemp"></tn-select>
|
||||
<tn-select title="请选择参考温度" :safeAreaInsetBottom="true" :searchShow="false" v-model="showSelect" mode="single" :list="tempList" @confirm="confirmTemp"></tn-select>
|
||||
|
||||
<uni-popup ref="inputDialog" mode="center">
|
||||
<!-- 新增:修改运行时间的弹窗 -->
|
||||
|
|
@ -143,9 +143,9 @@
|
|||
<uni-popup ref="autoParam" mode="center">
|
||||
<!-- 新增:修改运行时间的弹窗 -->
|
||||
<view class="modal-container">
|
||||
<view class="modal-title">{{ `【${selectedText} - 自动化】参数设置` }}</view>
|
||||
<view class="modal-title">{{ `【${selectedText} - ${filmRollerList[current]}】风口校准`}}</view>
|
||||
<view class="modal-input-wrap">
|
||||
<text class="modal-label">当前时间:</text>
|
||||
<text class="modal-label">计算风口总长:</text>
|
||||
<text class="modal-current">{{ currentCardTime > 0 ? `${currentCardTime} 秒` : '未设置' }}</text>
|
||||
</view>
|
||||
<view class="modal-input-wrap">
|
||||
|
|
@ -354,7 +354,7 @@ export default {
|
|||
}
|
||||
}
|
||||
],
|
||||
swiperHeight: 800, // 用于动态设置 swiper 高度
|
||||
swiperHeight: 720, // 用于动态设置 swiper 高度
|
||||
timeParams: {
|
||||
year: false,
|
||||
month: false,
|
||||
|
|
@ -607,7 +607,7 @@ export default {
|
|||
},
|
||||
// 获取窗口高度
|
||||
getSwiperHeight() {
|
||||
this.swiperHeight = 800;
|
||||
this.swiperHeight = 720;
|
||||
var length = this.termList[this.term[this.current]].length-4;
|
||||
if (length>0) {
|
||||
this.swiperHeight = this.swiperHeight + 160*length ;
|
||||
|
|
@ -872,7 +872,7 @@ export default {
|
|||
}
|
||||
|
||||
.modal-label {
|
||||
width: 160rpx;
|
||||
width: 180rpx;
|
||||
color: #666;
|
||||
}
|
||||
|
||||
|
|
@ -1043,4 +1043,7 @@ export default {
|
|||
font-size: 27rpx;
|
||||
color: #020e15;
|
||||
}
|
||||
/deep/ .uni-slider-handle-wrapper {
|
||||
height: 10rpx !important;
|
||||
}
|
||||
</style>
|
||||
|
|
@ -43,6 +43,7 @@
|
|||
:liveData="liveData"
|
||||
:show="show"
|
||||
:status="status"
|
||||
:fontStyle="fontStyle"
|
||||
:limitTimes="limitTimes"
|
||||
:dtu_remark="dtu_remark"
|
||||
:selectedText="selectedText"
|
||||
|
|
@ -101,6 +102,7 @@ export default {
|
|||
// 优化:声明响应式变量 connected
|
||||
connected: false,
|
||||
dtu_remark:{},
|
||||
fontStyle: '',
|
||||
liveData: {
|
||||
temp1: '数据加载中...',
|
||||
temp2: '数据加载中...',
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@
|
|||
>
|
||||
<text class="data" :style="fontStyle">
|
||||
{{ liveData[item.key] }}
|
||||
<text v-if=" (liveData[item.key])" class="tempStyle">℃</text>
|
||||
<text v-if="isEffectiveValue(liveData[item.key])" class="tempStyle">℃</text>
|
||||
</text>
|
||||
<text class="data" v-if="dtu_remark[item.key]">{{ dtu_remark[item.key] }}</text>
|
||||
<text class="data" v-else>{{ item.label }}</text>
|
||||
|
|
@ -188,6 +188,10 @@ export default {
|
|||
type: String,
|
||||
default: null
|
||||
},
|
||||
fontStyle: {
|
||||
type: String,
|
||||
default: ''
|
||||
},
|
||||
},
|
||||
watch: {
|
||||
value: {
|
||||
|
|
@ -209,7 +213,6 @@ export default {
|
|||
},
|
||||
data() {
|
||||
return {
|
||||
fontStyle: '',
|
||||
sensorCards: {
|
||||
temp: [
|
||||
{label: '温度1', key: 'temp1'},
|
||||
|
|
@ -250,6 +253,7 @@ export default {
|
|||
imei: '',
|
||||
// 优化:温湿度卡片配置(固定顺序:温度1→2→3→4,湿度1→2→3→4)
|
||||
sensorCard:{},
|
||||
dataType: ["temp", "humi"]
|
||||
};
|
||||
},
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue