You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

55 lines
2.1 KiB

3 years ago
<template>
3 years ago
<div class="tabs">
<div class="tab-item" @click="onTabClick('垂直廓线')" :class="{'active': currentTab === '垂直廓线'}">垂直廓线</div>
<div class="tab-item" @click="onTabClick('对流指数对流指数对流指数')" :class="{'active': currentTab === '对流指数对流指数对流指数'}">对流指数对流指数对流指数</div>
<div class="tab-item" @click="onTabClick('T-logP图')" :class="{'active': currentTab === 'T-logP图'}">T-logP图</div>
<div class="tab-item" @click="onTabClick('BP反演产品')" :class="{'active': currentTab === 'BP反演产品'}">BP反演产品</div>
</div>
<div class="main">
<div class="menu panel">
<div class="menu-item">
<h2 class="tip">区域选择</h2>
<el-row :gutter="12">
<el-col :span="8"><span class="active">江宁</span></el-col>
<el-col :span="8"><span>六合</span></el-col>
<el-col :span="8"><span>浦口</span></el-col>
<el-col :span="8"><span>高淳</span></el-col>
<el-col :span="8"><span>溧水</span></el-col>
</el-row>
</div>
<div class="menu-item">
<h2 class="tip">要素选择</h2>
<el-row :gutter="12">
<el-col :span="8"><span class="active">温度</span></el-col>
<el-col :span="8"><span>湿度</span></el-col>
</el-row>
</div>
</div>
<div class="container panel"></div>
</div>
3 years ago
</template>
<script lang="ts">
3 years ago
import { reactive, toRefs } from 'vue'
3 years ago
export default {
name: 'MicrowaveRadiation',
setup() {
3 years ago
let options = reactive({
currentTab: '垂直廓线'
})
const onTabClick = (name) => {
options.currentTab = name;
}
return {
...toRefs(options),
onTabClick
}
3 years ago
}
}
</script>
<style lang="less" scoped>
</style>