6170控制设备接口,添加参数imei
This commit is contained in:
@ -70,7 +70,7 @@
|
||||
</view>
|
||||
</view>
|
||||
<!-- 灯光模式选择 -->
|
||||
<view class="mode-section">
|
||||
<!-- <view class="mode-section">
|
||||
<view class="mode-buttons">
|
||||
<view class="mode-v1">
|
||||
<view class="mode-v2" @click="selectMode">
|
||||
@ -125,6 +125,20 @@
|
||||
</view>
|
||||
|
||||
</view>
|
||||
</view> -->
|
||||
<view class="mode-section">
|
||||
<view class="mode-buttons">
|
||||
<view v-for="(item, index) in modeItems" :key="index" class="mode-v1" :class="{ 'active-mode': selectedIndex === index }">
|
||||
<view class="mode-v2"
|
||||
@click="handleModeClick(index)">
|
||||
<image :src="item.image" class="setIMG" mode="aspectFit"></image>
|
||||
<view>
|
||||
<view class="battery-v2">{{ item.title }}</view>
|
||||
<view class="mode-v3" v-if="item.subTitle">{{ item.subTitle }}</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 人员信息登记 -->
|
||||
@ -335,6 +349,38 @@
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
selectedIndex: -1, // Track currently selected index
|
||||
modeItems: [{
|
||||
image: "/static/images/210/lj.png",
|
||||
title: "联机设备",
|
||||
subTitle: ""
|
||||
},
|
||||
{
|
||||
image: "/static/images/common/path7.png",
|
||||
title: "开机画面",
|
||||
subTitle: "上传"
|
||||
},
|
||||
{
|
||||
image: "/static/images/210/zd.png",
|
||||
title: "自动报警",
|
||||
subTitle: ""
|
||||
},
|
||||
{
|
||||
image: "/static/images/210/zd-HL.png",
|
||||
title: "手动报警",
|
||||
subTitle: ""
|
||||
},
|
||||
{
|
||||
image: "/static/images/210/bj.png",
|
||||
title: "报警声音",
|
||||
subTitle: "上传"
|
||||
},
|
||||
{
|
||||
image: "/static/images/210/time.png",
|
||||
title: "报警时长",
|
||||
subTitle: "30秒"
|
||||
}
|
||||
],
|
||||
currentPopup: {
|
||||
show: false,
|
||||
config: {},
|
||||
@ -402,8 +448,28 @@
|
||||
handleCancel() {
|
||||
this.currentPopup.show = false;
|
||||
},
|
||||
handleModeClick(index) {
|
||||
this.selectedIndex = index;
|
||||
switch (index) {
|
||||
case 0:
|
||||
this.selectMode();
|
||||
break;
|
||||
case 1:
|
||||
this.uploadStartup();
|
||||
break;
|
||||
case 2:
|
||||
this.automaticAlarm();
|
||||
break;
|
||||
case 3:
|
||||
this.manualAlarm();
|
||||
break;
|
||||
case 5:
|
||||
this.alarmTime();
|
||||
break;
|
||||
}
|
||||
},
|
||||
// 手动报警
|
||||
anualAlarm() {
|
||||
manualAlarm() {
|
||||
this.showPopup('del');
|
||||
},
|
||||
handleRadioSelect(index) {
|
||||
@ -538,8 +604,9 @@
|
||||
saveAlarmTime() {
|
||||
const time = this.$refs.timePicker.getCurrentTime();
|
||||
this.alarmTimeDisplay = `${time.minutes}分${time.seconds}秒`;
|
||||
this.modeItems[5].subTitle = this.alarmTimeDisplay; // 手动更新 modeItems
|
||||
this.lightModeA = false;
|
||||
console.log("保存的时间:", time);
|
||||
// console.log("保存的时间:", time);
|
||||
},
|
||||
handleIconClick(index) {
|
||||
// 历史记录
|
||||
@ -813,6 +880,18 @@
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.mode-v1.active-mode {
|
||||
border: 2rpx solid #BBE600 !important;
|
||||
border-radius: 12rpx;
|
||||
}
|
||||
|
||||
.mode-v1.active-mode .battery-v2 {
|
||||
color: #BBE600 !important;
|
||||
}
|
||||
.mode-v1.active-mode .mode-v3{
|
||||
color: #BBE600 !important;
|
||||
}
|
||||
|
||||
.battery-info,
|
||||
.duration {
|
||||
display: flex;
|
||||
|
Reference in New Issue
Block a user