<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<!-- import CSS -->
<link rel="stylesheet" href="https://unpkg.com/element-ui/lib/theme-chalk/index.css">
<style>
* {
margin: 0;
padding: 0;
}
.el-main {
background-color: #E9EEF3;
color: #333;
}
.el-header {
background-color: #545c64;
color: #333;
line-height: 60px;
padding-left: 0px;
}
.logo {
width: 200px;
line-height: 60px;
color: #fff;
font-weight: bolder;
padding-left: 50px;
box-sizing: border-box;
color: #1d953f;
}
.card-container {
display: flex;
height: 80px;
}
.ava {
width: 80px;
height: 80px;
border-radius: 50%;
}
.admin-info h3 {
margin-left: 24px;
padding-top: 12px;
margin-bottom: 12px;
}
.weather {
margin-left: 24px;
}
.cell {
display: flex;
}
</style>
</head>
<body>
<div id="app">
<el-container>
<el-header>
<div class="logo">车客巴巴</div>
</el-header>
<el-container>
<!--侧边栏-->
<el-aside width="200px">
<el-menu class="el-menu-vertical-demo" default-active="1" style="height: 110vh;" background-color="#545c64" text-color="#fff" active-text-color="#1d953f">
<el-menu-item index="1">
<i class="el-icon-menu"></i>
<span slot="title">常用</span>
</el-menu-item>
<el-menu-item index="2">
<i class="el-icon-s-help"></i>
<span slot="title">控制台</span>
</el-menu-item>
<el-submenu index="3">
<template slot="title">
<i class="el-icon-view"></i>
<span>业务流</span>
</template>
<el-menu-item-group>
<el-menu-item index="3-1">
<i class="el-icon-ice-cream-round"></i>
<span slot="title">车辆来源</span>
</el-menu-item>
<el-menu-item index="3-2">
<i class="el-icon-location"></i>
<span slot="title">车辆定级</span>
</el-menu-item>
<el-menu-item index="3-3">
<i class="el-icon-trophy"></i>
<span slot="title">车辆报价</span>
</el-menu-item>
<el-menu-item index="3-4">
<i class="el-icon-mouse"></i>
<span slot="title">报价审核</span>
</el-menu-item>
<el-menu-item index="3-4">
<i class="el-icon-attract"></i>
<span slot="title">过户监控</span>
</el-menu-item>
</el-menu-item-group>
</el-submenu>
<el-menu-item index="4">
<i class="el-icon-scissors"></i>
<span slot="title">CRM</span>
</el-menu-item>
<el-menu-item index="5">
<i class="el-icon-setting"></i>
<span slot="title">系统设置</span>
</el-menu-item>
</el-menu>
</el-aside>
<!-- 主体 -->
<el-main>
<el-breadcrumb style="margin-bottom: 12px;">
<el-breadcrumb-item>首页</el-breadcrumb-item>
<el-breadcrumb-item>活动管理</el-breadcrumb-item>
<el-breadcrumb-item>活动列表</el-breadcrumb-item>
<el-breadcrumb-item>活动详情</el-breadcrumb-item>
</el-breadcrumb>
<el-card class="box-card" style="margin-bottom: 12px;">
<div class="card-container">
<el-image :src="src" class="ava">
<div slot="placeholder" class="image-slot">
加载中<span class="dot">...</span>
</div>
</el-image>
<div class="admin-info">
<h3>早安,管理员,开始您一天的工作吧!</h3>
<div class="weather">
<i class="el-icon-heavy-rain"></i>
<span>今日阴转小雨,22℃ - 32℃,出门记得带伞哦。</span>
</div>
</div>
</div>
</el-card>
<el-card>
<el-table :data="tableData" stripe style="width: 100%; ">
<el-table-column prop="date" label="日期" width="180">
</el-table-column>
<el-table-column prop="name" label="姓名" width="180">
</el-table-column>
<el-table-column prop="address" label="地址">
</el-table-column>
<el-table-column prop="ip" label="IP地址">
</el-table-column>
<el-table-column label="操作" width="200" style="display: flex;">
<template slot-scope="scope">
<el-button type="primary" plain>编辑</el-button>
<el-button type="danger" plain>删除</el-button>
</template>
</el-table-column>
</el-table>
<div style="text-align: center;">
<el-pagination background layout="prev, pager, next" :total="1000"></el-pagination>
</div>
</el-card>
</el-main>
</el-container>
</el-container>
</div>
</body>
<script src="https://unpkg.com/vue/dist/vue.js"></script>
<script src="https://unpkg.com/element-ui/lib/index.js"></script>
<script>
new Vue({
el: '#app',
data: function() {
return {
src: 'https://cube.elemecdn.com/6/94/4d3ea53c084bad6931a56d5158a48jpeg.jpeg',
tableData: [{
date: '2016-05-02',
name: '王小虎',
address: '上海市普陀区金沙江路 1518 弄',
ip: "192.168.3.2"
}, {
date: '2016-05-04',
name: '王小虎',
address: '上海市普陀区金沙江路 1517 弄',
ip: "192.168.3.4"
}, {
date: '2016-05-01',
name: '王小虎',
address: '上海市普陀区金沙江路 1519 弄',
ip: "192.168.3.5",
}, {
date: '2016-05-03',
name: '王小虎',
address: '上海市普陀区金沙江路 1516 弄',
ip: "192.168.3.2"
}, {
date: '2016-05-02',
name: '王小虎',
address: '上海市普陀区金沙江路 1518 弄',
ip: "192.168.3.2"
}, {
date: '2016-05-04',
name: '王小虎',
address: '上海市普陀区金沙江路 1517 弄',
ip: "192.168.3.4"
}, {
date: '2016-05-01',
name: '王小虎',
address: '上海市普陀区金沙江路 1519 弄',
ip: "192.168.3.5",
}, {
date: '2016-05-03',
name: '王小虎',
address: '上海市普陀区金沙江路 1516 弄',
ip: "192.168.3.2"
}]
}
},
methods: {
}
})
</script>
</html>
element UI 和 Vue 搭建的管理员页面
最新推荐文章于 2024-04-09 10:15:57 发布