|
@ -4,15 +4,13 @@ |
|
|
<el-row> |
|
|
<el-row> |
|
|
<el-col class="headerCol" :span="3"></el-col> |
|
|
<el-col class="headerCol" :span="3"></el-col> |
|
|
<el-col class="headerCol" :span="18"> |
|
|
<el-col class="headerCol" :span="18"> |
|
|
<el-menu :default-active="activeIndex" class="el-menu-demo" mode="horizontal" @select="handleSelect()" text-color="#767677" active-text-color="#1d499e"> |
|
|
<el-menu :default-active="menuIndex" class="el-menu-demo" mode="horizontal" @select="handleSelect" text-color="#767677" active-text-color="#1d499e"> |
|
|
<div class="headerLogoDiv"> |
|
|
<div class="headerLogoDiv"> |
|
|
<img src="favicon.ico" class="headerLogo"/> |
|
|
<img src="favicon.ico" class="headerLogo"/> |
|
|
<span class="headerLogoTitle">TDUCK CLOUD</span> |
|
|
<span class="headerLogoTitle">TDUCK CLOUD</span> |
|
|
</div> |
|
|
</div> |
|
|
<el-menu-item index="enterprise" class="menuItem">企业部署</el-menu-item> |
|
|
<el-menu-item v-for="(item, index) in menuRouters" :key="index" :index="item.routerPath" :route="item.routerPath" class="menuItem">{{item.title}}</el-menu-item> |
|
|
<el-menu-item index="source" class="menuItem">开源版本</el-menu-item> |
|
|
<el-button class="consoleBtn" @click="$router.push({path:'/console'})">控 制 台</el-button> |
|
|
<el-menu-item index="proposal" class="menuItem">提出建议</el-menu-item> |
|
|
|
|
|
<el-button class="consoleBtn">控 制 台</el-button> |
|
|
|
|
|
</el-menu> |
|
|
</el-menu> |
|
|
</el-col> |
|
|
</el-col> |
|
|
<el-col class="headerCol" :span="3"></el-col> |
|
|
<el-col class="headerCol" :span="3"></el-col> |
|
@ -20,7 +18,13 @@ |
|
|
</div> |
|
|
</div> |
|
|
<div class="headerBody"> |
|
|
<div class="headerBody"> |
|
|
<div class="indexBody"> |
|
|
<div class="indexBody"> |
|
|
|
|
|
<el-row> |
|
|
|
|
|
<el-col class="bodyCol" :span="3"></el-col> |
|
|
|
|
|
<el-col class="bodyCol" :span="18"> |
|
|
<router-view></router-view> |
|
|
<router-view></router-view> |
|
|
|
|
|
</el-col> |
|
|
|
|
|
<el-col class="bodyCol" :span="3"></el-col> |
|
|
|
|
|
</el-row> |
|
|
</div> |
|
|
</div> |
|
|
<div class="footerDiv"> |
|
|
<div class="footerDiv"> |
|
|
关于我们 |
|
|
关于我们 |
|
@ -29,30 +33,43 @@ |
|
|
</div> |
|
|
</div> |
|
|
</template> |
|
|
</template> |
|
|
<script> |
|
|
<script> |
|
|
import store from '@/store/index.js' |
|
|
|
|
|
export default { |
|
|
export default { |
|
|
computed: { |
|
|
|
|
|
getStore() { |
|
|
|
|
|
return store; |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
data() { |
|
|
data() { |
|
|
return { |
|
|
return { |
|
|
activeIndex: null |
|
|
menuIndex: null, |
|
|
|
|
|
menuRouters: [ |
|
|
|
|
|
{ |
|
|
|
|
|
routerPath: 'enterprise', |
|
|
|
|
|
title: '企业部署' |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
routerPath: 'sources', |
|
|
|
|
|
title: '开源版本' |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
routerPath: 'proposal', |
|
|
|
|
|
title: '提出建议' |
|
|
|
|
|
} |
|
|
|
|
|
] |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
methods: { |
|
|
methods: { |
|
|
handleSelect(key, keyPath) { |
|
|
handleSelect(index, indexPath) { |
|
|
console.log(key, keyPath); |
|
|
this.$router.push({ path: '/' + indexPath }); |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
mounted() { |
|
|
mounted() { |
|
|
console.info(this.getStore); |
|
|
this.menuIndex = this.$route.path.substring(1); |
|
|
|
|
|
}, |
|
|
|
|
|
watch: { |
|
|
|
|
|
$route(to,from) { |
|
|
|
|
|
this.menuIndex = to.path.substring(1); |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
</script> |
|
|
</script> |
|
|
<style scoped> |
|
|
<style scoped> |
|
|
.headerCol { |
|
|
.headerCol, .bodyCol { |
|
|
border: solid thin white; |
|
|
border: solid thin white; |
|
|
} |
|
|
} |
|
|
.headerDiv { |
|
|
.headerDiv { |
|
@ -60,6 +77,11 @@ export default { |
|
|
position: fixed; |
|
|
position: fixed; |
|
|
width: 100%; |
|
|
width: 100%; |
|
|
top: 0px; |
|
|
top: 0px; |
|
|
|
|
|
z-index: 100; |
|
|
|
|
|
border-bottom: solid thin #E6E6E6; |
|
|
|
|
|
} |
|
|
|
|
|
.headerDiv .headerCol .el-menu--horizontal { |
|
|
|
|
|
border: none; |
|
|
} |
|
|
} |
|
|
.headerLogo { |
|
|
.headerLogo { |
|
|
float: left; |
|
|
float: left; |
|
@ -89,12 +111,12 @@ export default { |
|
|
} |
|
|
} |
|
|
.consoleBtn:focus, .consoleBtn:hover { |
|
|
.consoleBtn:focus, .consoleBtn:hover { |
|
|
border-color: #1d499e; |
|
|
border-color: #1d499e; |
|
|
|
|
|
color: #1d499e; |
|
|
} |
|
|
} |
|
|
.headerBody { |
|
|
.headerBody { |
|
|
padding-top: 113px; |
|
|
padding-top: 113px; |
|
|
} |
|
|
} |
|
|
.footerDiv { |
|
|
.footerDiv { |
|
|
border: solid thin black; |
|
|
|
|
|
font-size: 14px; |
|
|
font-size: 14px; |
|
|
color: white; |
|
|
color: white; |
|
|
text-align: center; |
|
|
text-align: center; |
|
|