|
@@ -1,16 +1,21 @@
|
|
<template>
|
|
<template>
|
|
<div class="home">
|
|
<div class="home">
|
|
<header class="header">
|
|
<header class="header">
|
|
- <div class="left">left</div>
|
|
|
|
|
|
+ <div class="left">慧牧科技</div>
|
|
<div class="right">
|
|
<div class="right">
|
|
- <el-button type="primary" @click="onSignIn">登录</el-button>
|
|
|
|
- <el-button type="primary" @click="onSignIn">登录</el-button>
|
|
|
|
|
|
+ <el-button-group>
|
|
|
|
+ <el-button type="primary" size="mini" icon="el-icon-arrow-left">登录</el-button>
|
|
|
|
+ <el-button type="primary" size="mini">
|
|
|
|
+ 切换
|
|
|
|
+ <i class="el-icon-arrow-right el-icon--right"></i>
|
|
|
|
+ </el-button>
|
|
|
|
+ </el-button-group>
|
|
</div>
|
|
</div>
|
|
</header>
|
|
</header>
|
|
<section class="section">
|
|
<section class="section">
|
|
<el-row class="tac">
|
|
<el-row class="tac">
|
|
<el-col :span="3">
|
|
<el-col :span="3">
|
|
- <h5>默认颜色</h5>
|
|
|
|
|
|
+ <!-- <h5>默认颜色</h5> -->
|
|
<el-menu
|
|
<el-menu
|
|
default-active="2"
|
|
default-active="2"
|
|
class="el-menu-vertical-demo"
|
|
class="el-menu-vertical-demo"
|
|
@@ -47,8 +52,8 @@
|
|
</div>
|
|
</div>
|
|
</el-menu>
|
|
</el-menu>
|
|
</el-col>
|
|
</el-col>
|
|
- <el-col :span="21">
|
|
|
|
- <div class="aa">
|
|
|
|
|
|
+ <el-col :span="21" class="main_right">
|
|
|
|
+ <div class="warp">
|
|
<router-view />
|
|
<router-view />
|
|
<!-- <iframe :src="iframeSrc" frameborder="0"></iframe> -->
|
|
<!-- <iframe :src="iframeSrc" frameborder="0"></iframe> -->
|
|
</div>
|
|
</div>
|
|
@@ -72,7 +77,7 @@ export default {
|
|
};
|
|
};
|
|
},
|
|
},
|
|
created() {
|
|
created() {
|
|
- console.log(this.$route)
|
|
|
|
|
|
+ console.log(this.$route);
|
|
},
|
|
},
|
|
mounted() {},
|
|
mounted() {},
|
|
methods: {
|
|
methods: {
|
|
@@ -89,7 +94,8 @@ export default {
|
|
onClickMenu(e) {
|
|
onClickMenu(e) {
|
|
console.log(e.$attrs.routerName);
|
|
console.log(e.$attrs.routerName);
|
|
// 如果要跳转的路由和当前路由一致就 return
|
|
// 如果要跳转的路由和当前路由一致就 return
|
|
- if(this.$router.history.current.name == e.$attrs.routerName) return
|
|
|
|
|
|
+ if (this.$router.history.current.name == e.$attrs.routerName)
|
|
|
|
+ return;
|
|
this.$router.push({
|
|
this.$router.push({
|
|
path: "/" + e.$attrs.routerName
|
|
path: "/" + e.$attrs.routerName
|
|
});
|
|
});
|
|
@@ -100,17 +106,29 @@ export default {
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
<style lang="scss" scoped>
|
|
.home {
|
|
.home {
|
|
|
|
+ background-color: #eee;
|
|
.header {
|
|
.header {
|
|
|
|
+ background-color: #fff;
|
|
|
|
+ margin-bottom: 5px;
|
|
|
|
+ padding: 10px 20px;
|
|
display: flex;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
justify-content: space-between;
|
|
- border: 1px solid #099;
|
|
|
|
|
|
+ align-items: center;
|
|
|
|
+ .left {
|
|
|
|
+ font-size: 25px;
|
|
|
|
+ color: #969696;
|
|
|
|
+ }
|
|
}
|
|
}
|
|
- height: 2000px;
|
|
|
|
.section {
|
|
.section {
|
|
- .aa {
|
|
|
|
- width: 100%;
|
|
|
|
- height: 800px;
|
|
|
|
- border: 1px solid #099;
|
|
|
|
|
|
+ .tac {
|
|
|
|
+ background-color: #fff;
|
|
|
|
+ display: flex;
|
|
|
|
+ }
|
|
|
|
+ .main_right {
|
|
|
|
+ .warp {
|
|
|
|
+ width: 100%;
|
|
|
|
+ height: 800px;
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
// border: 2px solid #f00;
|
|
// border: 2px solid #f00;
|