Commit 30e5dc30 authored by 高宇's avatar 高宇

model模式

parent fa1761a5
<template> <template>
<div style="padding: 0 0 0 10px;" @click="toggleClick"> <div style="padding: 0 0 0 10px;" @click="toggleClick">
<svg <svg
style="width: 16px; height: 16px;"
:class="{'is-active':isActive}" :class="{'is-active':isActive}"
class="hamburger" class="hamburger"
viewBox="0 0 1024 1024" viewBox="0 0 1024 1024"
xmlns="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg"
width="64"
height="64"
> >
<path d="M408 442h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm-8 204c0 4.4 3.6 8 8 8h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56zm504-486H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 632H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM142.4 642.1L298.7 519a8.84 8.84 0 0 0 0-13.9L142.4 381.9c-5.8-4.6-14.4-.5-14.4 6.9v246.3a8.9 8.9 0 0 0 14.4 7z" /> <path d="M408 442h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm-8 204c0 4.4 3.6 8 8 8h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56zm504-486H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 632H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM142.4 642.1L298.7 519a8.84 8.84 0 0 0 0-13.9L142.4 381.9c-5.8-4.6-14.4-.5-14.4 6.9v246.3a8.9 8.9 0 0 0 14.4 7z" />
</svg> </svg>
......
...@@ -3,28 +3,33 @@ ...@@ -3,28 +3,33 @@
<div class="title-box"> <div class="title-box">
<hamburger <hamburger
:is-active="sidebar.opened" :is-active="sidebar.opened"
class="hamburger-container" style=" line-height: 46px;
height: 100%;
float: left;
cursor: pointer;
transition: background 0.3s;
-webkit-tap-highlight-color: transparent;"
@toggleClick="toggleSideBar" @toggleClick="toggleSideBar"
/> />
<!-- <el-dropdown--> <!-- <el-dropdown-->
<!-- class="change-sys"--> <!-- class="change-sys"-->
<!-- @command="handleCommand"--> <!-- @command="handleCommand"-->
<!-- >--> <!-- >-->
<!--&lt;!&ndash; <span class="el-dropdown-link">&ndash;&gt;--> <!--&lt;!&ndash; <span class="el-dropdown-link">&ndash;&gt;-->
<!--&lt;!&ndash; 业务中台<i class="el-icon-arrow-down el-icon&#45;&#45;right" />&ndash;&gt;--> <!--&lt;!&ndash; 业务中台<i class="el-icon-arrow-down el-icon&#45;&#45;right" />&ndash;&gt;-->
<!--&lt;!&ndash; </span>&ndash;&gt;--> <!--&lt;!&ndash; </span>&ndash;&gt;-->
<!-- <el-dropdown-menu--> <!-- <el-dropdown-menu-->
<!-- slot="dropdown"--> <!-- slot="dropdown"-->
<!-- >--> <!-- >-->
<!-- <el-dropdown-item--> <!-- <el-dropdown-item-->
<!-- v-for="(item) in appList"--> <!-- v-for="(item) in appList"-->
<!-- :key="item.businessId"--> <!-- :key="item.businessId"-->
<!-- :command="specialTag !== '1' ? item.pcUrl : ''"--> <!-- :command="specialTag !== '1' ? item.pcUrl : ''"-->
<!-- >--> <!-- >-->
<!-- {{ item.system }}--> <!-- {{ item.system }}-->
<!-- </el-dropdown-item>--> <!-- </el-dropdown-item>-->
<!-- </el-dropdown-menu>--> <!-- </el-dropdown-menu>-->
<!-- </el-dropdown>--> <!-- </el-dropdown>-->
</div> </div>
<div class="right-menu"> <div class="right-menu">
<!-- <i class="el-icon-info" />--> <!-- <i class="el-icon-info" />-->
...@@ -39,11 +44,11 @@ ...@@ -39,11 +44,11 @@
<el-dropdown class="avatar-container" trigger="click"> <el-dropdown class="avatar-container" trigger="click">
<div class="avatar-wrapper"> <div class="avatar-wrapper">
<span class="username-text"> <span STYLE="margin-right: 12px; font-size: 16px">
[您好,{{ userName }}] [您好,{{ userName }}]
</span> </span>
<!-- <img :src="avatar" class="user-avatar">--> <!-- <img :src="avatar" class="user-avatar">-->
<i class="el-icon-caret-bottom" /> <i class="el-icon-caret-bottom"/>
</div> </div>
<el-dropdown-menu slot="dropdown" class="user-dropdown"> <el-dropdown-menu slot="dropdown" class="user-dropdown">
<el-dropdown-item> <el-dropdown-item>
...@@ -61,9 +66,10 @@ ...@@ -61,9 +66,10 @@
</template> </template>
<script> <script>
import { mapGetters } from 'vuex' import {mapGetters} from 'vuex'
import { queryInAdhibitions } from '@/api/internal.js' import {queryInAdhibitions} from '@/api/internal.js'
import Hamburger from '@/components/Hamburger' import Hamburger from '@/components/Hamburger'
export default { export default {
data() { data() {
return { return {
...@@ -122,9 +128,10 @@ export default { ...@@ -122,9 +128,10 @@ export default {
overflow: hidden; overflow: hidden;
position: relative; position: relative;
background: #fff; background: #fff;
box-shadow: 0 1px 4px rgba(0,21,41,.08); box-shadow: 0 1px 4px rgba(0, 21, 41, .08);
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
.hamburger-container { .hamburger-container {
line-height: 46px; line-height: 46px;
height: 100%; height: 100%;
...@@ -137,15 +144,17 @@ export default { ...@@ -137,15 +144,17 @@ export default {
background: rgba(0, 0, 0, 0.025); background: rgba(0, 0, 0, 0.025);
} }
} }
.title-box{
.title-box {
display: flex; display: flex;
align-items: center; align-items: center;
.change-sys{
.change-sys {
margin-left: 20px; margin-left: 20px;
} }
} }
.app-logo{ .app-logo {
width: 40px; width: 40px;
height: 40px; height: 40px;
border-radius: 10px; border-radius: 10px;
...@@ -158,7 +167,7 @@ export default { ...@@ -158,7 +167,7 @@ export default {
float: left; float: left;
cursor: pointer; cursor: pointer;
transition: background .3s; transition: background .3s;
-webkit-tap-highlight-color:transparent; -webkit-tap-highlight-color: transparent;
&:hover { &:hover {
background: rgba(0, 0, 0, .025) background: rgba(0, 0, 0, .025)
...@@ -175,16 +184,20 @@ export default { ...@@ -175,16 +184,20 @@ export default {
line-height: 50px; line-height: 50px;
display: flex; display: flex;
align-items: center; align-items: center;
&:focus { &:focus {
outline: none; outline: none;
} }
& > i { & > i {
margin-right: 50px; margin-right: 50px;
font-size: 18px; font-size: 18px;
} }
.username-text { .username-text {
margin-right: 12px; margin-right: 12px;
} }
.right-menu-item { .right-menu-item {
display: inline-block; display: inline-block;
padding: 0 8px; padding: 0 8px;
...@@ -192,6 +205,7 @@ export default { ...@@ -192,6 +205,7 @@ export default {
font-size: 18px; font-size: 18px;
color: #5a5e66; color: #5a5e66;
vertical-align: text-bottom; vertical-align: text-bottom;
&.hover-effect { &.hover-effect {
cursor: pointer; cursor: pointer;
transition: background .3s; transition: background .3s;
...@@ -201,10 +215,11 @@ export default { ...@@ -201,10 +215,11 @@ export default {
} }
} }
} }
.avatar-container { .avatar-container {
margin-right: 30px; margin-right: 30px;
.avatar-wrapper :hover{ .avatar-wrapper :hover {
cursor: pointer; cursor: pointer;
} }
...@@ -237,6 +252,7 @@ export default { ...@@ -237,6 +252,7 @@ export default {
.el-badge { .el-badge {
margin-right: 50px; margin-right: 50px;
font-size: 22px; font-size: 22px;
.el-badge__content.is-fixed { .el-badge__content.is-fixed {
top: 12px !important; top: 12px !important;
} }
......
...@@ -76,7 +76,7 @@ export default { ...@@ -76,7 +76,7 @@ export default {
color: #fff; color: #fff;
font-weight: bold; font-weight: bold;
line-height: 70px; line-height: 70px;
font-size: 20px; font-size: 20Px;
font-family: Avenir, Helvetica Neue, Arial, Helvetica, sans-serif; font-family: Avenir, Helvetica Neue, Arial, Helvetica, sans-serif;
vertical-align: middle; vertical-align: middle;
} }
......
...@@ -27,7 +27,7 @@ html { ...@@ -27,7 +27,7 @@ html {
#app { #app {
height: 100%; height: 100%;
overflow-x: hidden; overflow-x: hidden;
min-width: 1440px; //min-width: 1440px;
} }
*, *,
......
...@@ -4,7 +4,8 @@ const baseSize = 16 ...@@ -4,7 +4,8 @@ const baseSize = 16
function setRem() { function setRem() {
// 当前页面宽度相对于 1920 宽的缩放比例,可根据自己需要修改。 // 当前页面宽度相对于 1920 宽的缩放比例,可根据自己需要修改。
const scale = document.documentElement.clientWidth / 1920 const scale = document.documentElement.clientWidth / 1920
const fontSize = (baseSize * Math.min(scale, 2)) > 7.2 ? (baseSize * Math.min(scale, 2)) : 7.2 const fontSize = (baseSize * Math.min(scale, 2)) > 14 ? (baseSize * Math.min(scale, 2)) : 14
// const fontSize = (baseSize * Math.min(scale, 2))
console.log('fontSize', (baseSize * Math.min(scale, 2))) console.log('fontSize', (baseSize * Math.min(scale, 2)))
document.documentElement.style.fontSize = fontSize + 'px' document.documentElement.style.fontSize = fontSize + 'px'
} }
......
This diff is collapsed.
...@@ -390,7 +390,7 @@ export default { ...@@ -390,7 +390,7 @@ export default {
padding-right: 13px; padding-right: 13px;
} }
.rightInput{ .rightInput{
width: 300px; //width: 300px;
} }
.oneTableTest{ .oneTableTest{
font-family: Microsoft YaHei, Microsoft YaHei-400; font-family: Microsoft YaHei, Microsoft YaHei-400;
...@@ -429,13 +429,13 @@ export default { ...@@ -429,13 +429,13 @@ export default {
width: 60%; width: 60%;
height: 200px; height: 200px;
display: flex; display: flex;
justify-content: center;
align-content: center;
border-left: 1px dashed #eeeeee;; border-left: 1px dashed #eeeeee;;
border-bottom: 1px dashed #eeeeee;; border-bottom: 1px dashed #eeeeee;;
background: #f4f4f4; background: #f4f4f4;
.rightForm { .rightForm {
margin-left: -196px; margin-left: 20px;
//margin-left: -196px;
width: 90%;
padding-top: 2rem; padding-top: 2rem;
::v-deep .el-form-item__label{ ::v-deep .el-form-item__label{
font-family: Microsoft YaHei, Microsoft YaHei-400; font-family: Microsoft YaHei, Microsoft YaHei-400;
...@@ -661,7 +661,6 @@ export default { ...@@ -661,7 +661,6 @@ export default {
justify-content: center; justify-content: center;
align-items: center; align-items: center;
.twoTableInput{ .twoTableInput{
width: 90%;
border: 1px solid #d9d9d9; border: 1px solid #d9d9d9;
border-radius: 4px; border-radius: 4px;
} }
...@@ -691,7 +690,6 @@ export default { ...@@ -691,7 +690,6 @@ export default {
justify-content: center; justify-content: center;
align-items: center; align-items: center;
.twoTableInput{ .twoTableInput{
width: 90%;
border: 1px solid #d9d9d9; border: 1px solid #d9d9d9;
border-radius: 4px; border-radius: 4px;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment