Skip to content

Commit b3e1b6c

Browse files
committed
refine
1 parent 9cd68d9 commit b3e1b6c

File tree

5 files changed

+58
-12
lines changed

5 files changed

+58
-12
lines changed

README.md

Lines changed: 37 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,40 @@
1-
这是一个vue+element+axios+webpack2的管理后台 先占个坑
2-
效果预览
3-
1+
##vue-element-admin
2+
vue+element+axios 的管理后台 [线上地址](http://panjiachen.github.io/vue-element-admin)
3+
4+
这半年来一直在用vue写管理后台,目前后台已经有七十多个页面,十几种权限,但维护成本依然很低,效率依然很高。这半年来积累了不少的后台开发经验,所以准备开源分享一下。
5+
###功能
6+
- [x] 登录/注销
7+
- [x] 权限验证
8+
- [x] 富文本编辑器
9+
- [x] Markdown编辑器
10+
- [x] JSON编辑器
11+
- [x] 列表拖拽
12+
- [x] SplitPane
13+
- [x] Dropzone
14+
- [x] Sticky
15+
- [x] CountTo
16+
- [x] echarts图表
17+
- [x] 401,401错误页面
18+
- [x] 错误日志
19+
- [x] 导出excel
20+
- [x] table example
21+
- [x] form example
22+
- [x] 多环境发布
23+
24+
###How to use?
25+
```bash
26+
git clone https://github.com/PanJiaChen/vue-element-admin.git //克隆项目
27+
npm install //安装依赖
28+
29+
30+
npm run dev //本地开发
31+
// 开启服务器,浏览器访问 http://localhost:9527
32+
33+
npm run build:sit-preview //发布测试环境 带webpack ananalyzer
34+
35+
npm run build:prod //构建生成环境
36+
```
37+
##效果图
438

539
#### 两步验证登录 支持微信和qq
640

src/styles/index.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,10 @@ a:hover {
7373

7474
code {
7575
background: #eef1f6;
76-
padding: 20px 10px;
76+
padding: 15px 10px;
7777
margin-bottom: 20px;
7878
display: block;
79+
line-height: 36px;
7980
a {
8081
color: #337ab7;
8182
cursor: pointer;

src/views/charts/index.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<template>
22
<div class="components-container" >
3-
介绍
3+
<code>
4+
这里的所有的图表都基于echarts,实例代码来源<a href='http://gallery.echartsjs.com/explore.html#sort=rank~timeframe=all~author=all' target='_blank'>gallery</a><br/>其实echarts封装的很好了,用vue封装是很简单的事情,建议大家自己来封装。
5+
</code>
46
</div>
57
</template>

src/views/components/index.vue

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<template>
2-
<div class="components-container" >
3-
介绍
2+
<div class="components-container">
3+
<code>这里暂时列出了自己在项目中自己封装和用到的组件,如有补充可以提<a href='https://github.com/PanJiaChen/vue-element-admin/issues' target='_blank'>issue</a><br/>
4+
我个人崇尚自己封装组件,因为很多组件会和业务后高度的耦合,很多时候第三方封装是满足不了需求的,如有需要可以看楼主之前写过的一篇<a href='https://segmentfault.com/a/1190000009090836' target='_blank'>文章</a>
5+
</code>
46
</div>
57
</template>

src/views/theme/index.vue

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<template>
22
<div class="app-container">
3+
<code>会补动态换肤的教程</code>
34
<el-card class="box-card">
45
<div slot="header">
56
<span style="line-height: 36px;">偏好设置</span>
@@ -23,19 +24,19 @@
2324
</div>
2425

2526
<div class="block">
26-
<el-tag v-for="tag in tags" :type="tag.type">
27+
<el-tag class='tag-item' v-for="tag in tags" :type="tag.type">
2728
{{tag.name}}
2829
</el-tag>
2930
</div>
3031

3132
<div class="block">
32-
<el-alert title="成功提示的文案" type="success">
33+
<el-alert class='alert-item' title="成功提示的文案" type="success">
3334
</el-alert>
34-
<el-alert title="消息提示的文案" type="info">
35+
<el-alert class='alert-item' title="消息提示的文案" type="info">
3536
</el-alert>
36-
<el-alert title="警告提示的文案" type="warning">
37+
<el-alert class='alert-item' title="警告提示的文案" type="warning">
3738
</el-alert>
38-
<el-alert title="错误提示的文案" type="error">
39+
<el-alert class='alert-item' title="错误提示的文案" type="error">
3940
</el-alert>
4041
</div>
4142

@@ -82,4 +83,10 @@ export default {
8283
.block{
8384
padding: 30px 24px;
8485
}
86+
.alert-item{
87+
margin-bottom: 10px;
88+
}
89+
.tag-item{
90+
margin-right: 15px;
91+
}
8592
</style>

0 commit comments

Comments
 (0)