提交210历史记录

This commit is contained in:
fengerli
2025-12-03 16:45:52 +08:00
parent 07bd22e848
commit 0f49f2fb19

View File

@ -8,7 +8,7 @@
<custom-navbar :title="navTitle" :showBack="true" color="#FFFFFF" :rightIcons="[ <custom-navbar :title="navTitle" :showBack="true" color="#FFFFFF" :rightIcons="[
{src: '/static/images/210/ls.png'}, {src: '/static/images/210/ls.png'},
...(isRightIconVisible ? [{src: '/static/images/common/shape.png'}] : []) ...(isRightIconVisible ? [{src: '/static/images/common/shape.png'}] : [])
]" @right-click="shareUp" @icon-click="handleIconClick"></custom-navbar> ]" @icon-click="handleIconClick"></custom-navbar>
<view class="device-detail-container" :style="{ paddingTop: navBarHeight + 'px' }"> <view class="device-detail-container" :style="{ paddingTop: navBarHeight + 'px' }">
<!-- 设备电量信息 --> <!-- 设备电量信息 -->
@ -410,9 +410,9 @@
this.lightModeB = false; this.lightModeB = false;
}, },
// 上传文件 // 上传文件
uploadFile(){}, uploadFile() {},
// 删除文件 // 删除文件
deleteQ(){}, deleteQ() {},
// 打开弹框 // 打开弹框
showPopup(type) { showPopup(type) {
this.currentPopup = { this.currentPopup = {
@ -596,40 +596,37 @@
this.lightModeA = false; this.lightModeA = false;
// console.log("保存的时间:", time); // console.log("保存的时间:", time);
}, },
handleIconClick(index) { handleIconClick(s,e) {
// 历史记录 if (s === 0) {
if (index === 0) { console.log("消息");
uni.navigateTo({ uni.navigateTo({
url: '/pages/210/historyRecords/index', url: '/pages/670/History',
events: {
ack: function(data) {}
},
success: (res) => { success: (res) => {
res.eventChannel.emit('share', { res.eventChannel.emit('detailData', {
data: this.itemInfo, data: these.device,
}); });
} }
}) })
} else { return;
} else if (s === 1) {
console.log("分享");
uni.navigateTo({ uni.navigateTo({
url: '/pages/6170/share/index', url: '/pages/common/share/index',
events: { events: {
ack: function(data) {} ack: function(data) {}
}, },
success: (res) => { success: (res) => {
let json = {
persissonType: '210'
};
Object.assign(json, this.device);
res.eventChannel.emit('share', { res.eventChannel.emit('share', {
data: this.itemInfo, data: json
}); });
} }
}) })
} }
}, },
// 分享
shareUp() {
},
// 操作说明 // 操作说明
operatingInst() { operatingInst() {
uni.navigateTo({ uni.navigateTo({
@ -1284,11 +1281,12 @@
display: flex; display: flex;
cursor: pointer; cursor: pointer;
align-items: center; align-items: center;
margin-bottom:20rpx; margin-bottom: 20rpx;
} }
.uploadIMG{
width:68rpx; .uploadIMG {
height:68rpx; width: 68rpx;
height: 68rpx;
margin-right: 20rpx; margin-right: 20rpx;
} }