Browse Source

修改大标题

Version1.0
YF-yuan 3 years ago
parent
commit
68dca629f9
1 changed files with 6 additions and 4 deletions
  1. +6
    -4
      src/views/Home.vue

+ 6
- 4
src/views/Home.vue View File

<template> <template>
<div class="home" style="position: relative" id="home"> <div class="home" style="position: relative" id="home">
<!-- nav --> <!-- nav -->
<img class="nav" src="../assets/img/gisdemo/top.png">
<div class="nav"></div>
<!-- 地图 --> <!-- 地图 -->
<div id="map"></div> <div id="map"></div>
<el-submenu :index="index+'-1'"> <el-submenu :index="index+'-1'">
<template slot="title">反演结果</template> <template slot="title">反演结果</template>
<el-menu-item v-for="($item, $index) in item.item" <el-menu-item v-for="($item, $index) in item.item"
:key="$index" :index="index + '-1' + $index" @click="selectParams($item.value, $index)">{{$item.name}}: {{ $item.type.toUpperCase() }}</el-menu-item>
:key="$index" :index="index + '-1' + $index" @click="selectParams($item.value, index, $index)">{{$item.name}}: {{ $item.type.toUpperCase() }}</el-menu-item>
</el-submenu> </el-submenu>
</el-menu-item-group> </el-menu-item-group>
<el-menu-item-group> <el-menu-item-group>
}, },


// 选择反演参数 // 选择反演参数
selectParams(id, $index) {
selectParams(id, index, $index) {
// 1.显示四参数的图层并展示对应的图层 // 1.显示四参数的图层并展示对应的图层
console.log(this.checkedRiver); console.log(this.checkedRiver);
this.tileDong.setVisible(true); this.tileDong.setVisible(true);
.nav { .nav {
z-index: 99; z-index: 99;
width: 100%; width: 100%;
height: auto;
height: 50px;
background-image: url('../assets/img/gisdemo/top.png');
background-size: cover;
position: absolute; position: absolute;
top: 0px; top: 0px;
} }

Loading…
Cancel
Save