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