no message
Former-commit-id: 53ff203f46a9e4a9efa4f88137cf7684b6dc7b2f Former-commit-id: c837c34a1e62860cd1b31a914aa9b4a1a89bfac6 Former-commit-id: 3765b26cbcd41e810f54f5cc3bc386369dfca29d
This commit is contained in:
1
src/assets/image/logo/header.png.REMOVED.git-id
Normal file
1
src/assets/image/logo/header.png.REMOVED.git-id
Normal file
@@ -0,0 +1 @@
|
|||||||
|
d39351bf9b78b7abf9eecac82779085241498e19
|
||||||
@@ -1,5 +1,7 @@
|
|||||||
@import '~@/assets/style/public.scss';
|
@import '~@/assets/style/public.scss';
|
||||||
|
|
||||||
|
$color: #409EFF;
|
||||||
|
|
||||||
// 默认主题
|
// 默认主题
|
||||||
.layout-main {
|
.layout-main {
|
||||||
&.default {
|
&.default {
|
||||||
@@ -16,13 +18,57 @@
|
|||||||
// [布局]
|
// [布局]
|
||||||
.el-header {
|
.el-header {
|
||||||
padding: 0px;
|
padding: 0px;
|
||||||
|
.logo-group {
|
||||||
|
width: 200px;
|
||||||
|
float: left;
|
||||||
|
text-align: center;
|
||||||
|
img {
|
||||||
|
height: 60px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// 顶栏菜单
|
||||||
|
.el-menu {
|
||||||
|
float: left;
|
||||||
|
border-bottom: none;
|
||||||
|
background-color: transparent;
|
||||||
|
.el-menu-item {
|
||||||
|
border-bottom: none;
|
||||||
|
border-top: 2px solid $color-bg;
|
||||||
|
&:hover {
|
||||||
|
background-color: transparent;
|
||||||
|
}
|
||||||
|
&.is-active {
|
||||||
|
border-bottom: none;
|
||||||
|
border-top: 2px solid $color;
|
||||||
|
background-color: transparent;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
// 顶栏下面
|
||||||
.el-container {
|
.el-container {
|
||||||
|
// 侧边栏
|
||||||
.el-aside {
|
.el-aside {
|
||||||
|
.el-menu {
|
||||||
|
background-color: transparent;
|
||||||
|
.el-menu-item {
|
||||||
|
&:focus {
|
||||||
|
background-color: transparent;
|
||||||
|
}
|
||||||
|
&:hover {
|
||||||
|
background-color: transparent;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.el-submenu__title {
|
||||||
|
&:hover {
|
||||||
|
background-color: transparent;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
.el-main {
|
.el-main {
|
||||||
|
padding-top: 0px;
|
||||||
|
padding-left: 0px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,9 @@
|
|||||||
<template>
|
<template>
|
||||||
<el-container class="layout-main" :class="theme">
|
<el-container class="layout-main" :class="theme">
|
||||||
<el-header>
|
<el-header>
|
||||||
|
<div class="logo-group">
|
||||||
|
<img src="@/assets/image/logo/header.png">
|
||||||
|
</div>
|
||||||
<HeaderMenu></HeaderMenu>
|
<HeaderMenu></HeaderMenu>
|
||||||
</el-header>
|
</el-header>
|
||||||
<el-container>
|
<el-container>
|
||||||
|
|||||||
@@ -10,16 +10,12 @@
|
|||||||
<div class="mb">
|
<div class="mb">
|
||||||
<el-button @click="download">下载演示CSV</el-button>
|
<el-button @click="download">下载演示CSV</el-button>
|
||||||
</div>
|
</div>
|
||||||
<el-upload
|
<el-upload :before-upload="handleUpload" action="default">
|
||||||
:before-upload="handleUpload"
|
|
||||||
action="default">
|
|
||||||
<el-button type="success">选择本地CSV文件</el-button>
|
<el-button type="success">选择本地CSV文件</el-button>
|
||||||
</el-upload>
|
</el-upload>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="20">
|
<el-col :span="20">
|
||||||
<el-table
|
<el-table v-bind="table" style="width: 100%">
|
||||||
v-bind="table"
|
|
||||||
style="width: 100%">
|
|
||||||
<el-table-column
|
<el-table-column
|
||||||
v-for="(item, index) in table.columns"
|
v-for="(item, index) in table.columns"
|
||||||
:key="index"
|
:key="index"
|
||||||
@@ -62,7 +58,7 @@ export default {
|
|||||||
return false
|
return false
|
||||||
},
|
},
|
||||||
download () {
|
download () {
|
||||||
window.location.href='http://fairyever.qiniudn.com/d2admin-vue-demo.csv'
|
window.location.href = 'http://fairyever.qiniudn.com/d2admin-vue-demo.csv'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user