提交app

This commit is contained in:
guanj
2026-04-13 10:12:04 +08:00
parent db097bc64a
commit bac0f83f64
26 changed files with 2344 additions and 1901 deletions

View File

@@ -107,9 +107,7 @@ export default {
array: ['发生时间', '暂降深度', '持续时间'],
}
},
mounted() {
this.setHeight()
},
mounted() {},
methods: {
setHeight() {
@@ -118,10 +116,10 @@ export default {
.boundingClientRect((rect) => {
//
// #ifdef H5
this.height = rect?.height + 100 || 0
this.height = rect?.height + 170 || 0
// #endif
// #ifdef APP-PLUS
this.height = rect?.height + 90 || 0
this.height = rect?.height + 100 || 0
// #endif
})
.exec()
@@ -129,7 +127,9 @@ export default {
async select(val) {
this.selectValue = val
await this.init()
this.setHeight()
setTimeout(() => {
this.setHeight()
}, 200)
},
init() {
this.store = this.DataSource('/cs-harmonic-boot/eventUser/queryEventpage')

View File

@@ -35,13 +35,12 @@
<view class="header-item-label">离线设备</view>
</view>
</view>
<view style="padding: 20rpx 20rpx 0">
<!-- <view style="padding: 20rpx 20rpx 0">
<Cn-grid title="">
<Cn-grid-item src="/static/device2.png" text="设备注册" @click="registerDevice"></Cn-grid-item>
<!-- <Cn-grid-item src="/static/gateway2.png" text="网关注册" @click="registerGateway"></Cn-grid-item> -->
<Cn-grid-item src="/static/feedback2.png" text="问题反馈" @click="submitFeedBack"></Cn-grid-item>
</Cn-grid>
</view>
</view> -->
</view>
</template>

View File

@@ -35,11 +35,11 @@
<view class="header-item-label">离线设备</view>
</view>
<view class="header-item" @click="jumpMessage('0')">
<view class="header-item-value">{{ devCount.eventCount || 0 }}</view>
<view class="header-item-value">{{ devCount.currentEventCount || 0 }}</view>
<view class="header-item-label">暂态事件数</view>
</view>
<view class="header-item" @click="jumpMessage('1')">
<view class="header-item-value">{{ devCount.harmonicCount || 0 }}</view>
<view class="header-item-value">{{ devCount.currentHarmonicCount || 0 }}</view>
<view class="header-item-label">稳态事件数</view>
</view>
</view>

View File

@@ -1,5 +1,6 @@
<template>
<view class="dateReport">
<!-- {{ height }} -->
<!-- <view class="pd20">
<uni-segmented-control
:current="curSub"
@@ -97,7 +98,7 @@ export default {
},
created() {},
mounted() {
this.setHeight()
// this.setHeight()
},
methods: {
setHeight() {
@@ -106,7 +107,7 @@ export default {
.boundingClientRect((rect) => {
//
// #ifdef H5
this.height = rect?.height + 20 || 0
this.height = rect?.height + 80 || 0
// #endif
// #ifdef APP-PLUS
this.height = rect?.height + 30 || 0
@@ -136,10 +137,11 @@ export default {
select(value) {
this.selectValue = value
this.init()
setTimeout(() => {
setTimeout(() => {
this.setHeight()
}, 100)
}, 200)
this.init()
},
// 下载
download(item) {

View File

@@ -13,7 +13,7 @@
<!-- 申请报告 -->
<view v-show="curSub == 0">
<!-- apply -->
<Apply :navHeight="navHeight" />
<Apply ref="applyRef" :navHeight="navHeight" />
</view>
<!-- 申请记录 -->
@@ -158,10 +158,10 @@ export default {
.boundingClientRect((rect) => {
//
// #ifdef H5
this.height = rect?.height + 115 || 0
this.height = rect?.height + 180 || 0
// #endif
// #ifdef APP-PLUS
this.height = rect?.height + 10 || 0
this.height = rect?.height + 110 || 0
// #endif
})
.exec()
@@ -174,9 +174,11 @@ export default {
this.store.reload()
},
async select(val) {
setTimeout(() => {
this.setHeight()
}, 200)
this.selectValue = val
await this.init()
this.setHeight()
},
sectionChange(index) {
@@ -270,6 +272,19 @@ export default {
})
})
},
// 刷新
reload() {
console.log(123, this.curSub)
switch (this.curSub) {
case 0:
this.$refs.applyRef.store.reload()
break
case 1:
this.store && this.store.reload()
break
}
},
},
watch: {},
}
@@ -340,4 +355,9 @@ export default {
color: #fff;
}
}
.segmented-control {
flex: 1;
margin-right: 24rpx;
height: 60rpx;
}
</style>