提交app
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
<template>
|
||||
<view :loading="loading" class="report" style="padding-top: 10px">
|
||||
|
||||
<view class="navReport">
|
||||
<view class="tabsBox">
|
||||
<uni-segmented-control
|
||||
@@ -14,6 +15,7 @@
|
||||
<!-- 稳态报表 -->
|
||||
<SteadyState
|
||||
v-if="curTabs == 0"
|
||||
ref="SteadyStateRef"
|
||||
:indexList="indexList"
|
||||
:total="total"
|
||||
:status="status"
|
||||
@@ -23,6 +25,7 @@
|
||||
<!-- 暂态报表 -->
|
||||
<Transient
|
||||
v-if="curTabs == 1"
|
||||
ref="TransientRef"
|
||||
:indexList="indexList"
|
||||
:total="total"
|
||||
:status="status"
|
||||
@@ -51,58 +54,25 @@ export default {
|
||||
|
||||
navHeight: 0,
|
||||
|
||||
indexList: [
|
||||
{
|
||||
name: '测试监测点',
|
||||
item: '2022-01-01至2022-01-01',
|
||||
type: '1',
|
||||
status: '1',
|
||||
},
|
||||
{
|
||||
name: '测试监测点',
|
||||
item: '2022-01-01至2022-01-01',
|
||||
type: '2',
|
||||
status: '1',
|
||||
},
|
||||
{
|
||||
name: '测试监测点',
|
||||
item: '2022-01-01至2022-01-01',
|
||||
type: '1',
|
||||
status: '1',
|
||||
},
|
||||
{
|
||||
name: '测试监测点',
|
||||
item: '2022-01-01至2022-01-01',
|
||||
type: '1',
|
||||
status: '0',
|
||||
},
|
||||
{
|
||||
name: '测试监测点',
|
||||
item: '2022-01-01至2022-01-01',
|
||||
type: '1',
|
||||
status: '0',
|
||||
},
|
||||
{
|
||||
name: '测试监测点',
|
||||
item: '2022-01-01至2022-01-01',
|
||||
type: '1',
|
||||
status: '0',
|
||||
},
|
||||
],
|
||||
indexList: [],
|
||||
}
|
||||
},
|
||||
created() {},
|
||||
onPullDownRefresh() {
|
||||
this.refresh()
|
||||
},
|
||||
mounted() {
|
||||
uni.createSelectorQuery()
|
||||
.select('.navReport')
|
||||
.boundingClientRect((rect) => {
|
||||
//
|
||||
// #ifdef H5
|
||||
this.navHeight = rect.height + 65
|
||||
// #endif
|
||||
// #ifdef APP-PLUS
|
||||
this.navHeight = rect.height + 25
|
||||
// #endif
|
||||
this.navHeight = rect.height
|
||||
// // #ifdef H5
|
||||
|
||||
// // #endif
|
||||
// // #ifdef APP-PLUS
|
||||
// this.navHeight = rect.height
|
||||
// // #endif
|
||||
})
|
||||
.exec()
|
||||
},
|
||||
@@ -127,6 +97,16 @@ export default {
|
||||
this.status = 'more'
|
||||
}, 1000)
|
||||
},
|
||||
refresh() {
|
||||
switch (this.curTabs) {
|
||||
case 0:
|
||||
this.$refs.SteadyStateRef.store.reload()
|
||||
break
|
||||
case 1:
|
||||
this.$refs.TransientRef.reload()
|
||||
break
|
||||
}
|
||||
},
|
||||
},
|
||||
|
||||
computed: {},
|
||||
|
||||
Reference in New Issue
Block a user