123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384 |
- <template>
- <div class="header">
- <div class="logo" @click="home">
- <img class="logo-img" src="../assets/images/diaoyanbao-log.png" alt="">调研宝</div>
- <div class="right">
- <div class="operational-data" @click="testData">查看数据</div>
- <el-dropdown placement="bottom" trigger="click">
- <div class="userinfo">用户名 <i class="el-icon-caret-bottom"></i></div>
- <el-dropdown-menu slot="dropdown">
- <el-dropdown-item>退出</el-dropdown-item>
- </el-dropdown-menu>
- </el-dropdown>
- </div>
- </div>
- </template>
- <script>
- export default {
- data() {
- return {};
- },
- methods: {
- home() {
- this.$router.push({ path: "/" });
- },
- testData() {
- this.$router.push({ path: "/testData" });
- }
- }
- };
- </script>
- <style lang="less" scoped>
- .header {
- z-index: 1;
- position: fixed;
- top: 0px;
- width: 100%;
- height: 60px;
- box-shadow: 0 2px 8px 0 rgba(62, 67, 116, 0.1);
- border-bottom: 0;
- display: flex;
- flex-direction: row;
- justify-content: space-between;
- align-items: center;
- padding: 0px 50px;
- .logo {
- display: flex;
- flex-direction: row;
- line-height: 30px;
- cursor: pointer;
- .logo-img {
- width: 30px;
- height: 30px;
- margin-right: 6px;
- border-radius: 15px;
- }
- }
- .right {
- display: flex;
- flex-direction: row;
- .operational-data {
- width: 119px;
- height: 34px;
- background: #e6edff;
- border-radius: 17px;
- font-size: 16px;
- color: #4e5dff;
- line-height: 34px;
- text-align: center;
- margin-right: 46px;
- cursor: pointer;
- }
- .userinfo {
- width: 132px;
- height: 34px;
- line-height: 34px;
- text-align: center;
- margin-right: 22px;
- }
- }
- }
- </style>
|