xuziqiang
4 months ago
4 changed files with 710 additions and 29 deletions
File diff suppressed because one or more lines are too long
@ -0,0 +1,24 @@ |
|||||
|
<template> |
||||
|
<a-tabs v-model:activeKey="activeKey" style="height: 5%"> |
||||
|
<a-tab-pane key="1" tab="综合数据" /> |
||||
|
<a-tab-pane key="2" tab="历史数据" force-render>Content of Tab Pane 2</a-tab-pane> |
||||
|
<a-tab-pane key="3" tab="平均数据">Content of Tab Pane 3</a-tab-pane> |
||||
|
</a-tabs> |
||||
|
<!-- <ns-view-list-table v-bind="tableConfig" v-if="activeKey == '1'" /> --> |
||||
|
|
||||
|
<aggregate-data ref="aggregateDataRef" v-if="activeKey == '1'" style="height: 85%" /> |
||||
|
</template> |
||||
|
<script lang="ts" setup> |
||||
|
import { ref } from 'vue'; |
||||
|
import { tableConfig } from './config'; |
||||
|
import aggregateData from './aggregateData/index.vue'; |
||||
|
|
||||
|
const aggregateDataRef = ref(); |
||||
|
|
||||
|
var activeKey = ref('1'); |
||||
|
|
||||
|
defineOptions({ |
||||
|
name: 'EnvironmentMonitorIndex', // 与页面路由name一致缓存才可生效 |
||||
|
}); |
||||
|
</script> |
||||
|
<style lang="less" scoped></style> |
Loading…
Reference in new issue