Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
VueElementTemplate
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
黄瑜
VueElementTemplate
Commits
b3e1b6c8
Commit
b3e1b6c8
authored
Apr 24, 2017
by
Pan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refine
parent
9cd68d95
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
58 additions
and
12 deletions
+58
-12
README.md
README.md
+37
-3
index.scss
src/styles/index.scss
+2
-1
index.vue
src/views/charts/index.vue
+3
-1
index.vue
src/views/components/index.vue
+4
-2
index.vue
src/views/theme/index.vue
+12
-5
No files found.
README.md
View file @
b3e1b6c8
这是一个vue+element+axios+webpack2的管理后台 先占个坑
##vue-element-admin
效果预览
vue+element+axios 的管理后台
[
线上地址
](
http://panjiachen.github.io/vue-element-admin
)
这半年来一直在用vue写管理后台,目前后台已经有七十多个页面,十几种权限,但维护成本依然很低,效率依然很高。这半年来积累了不少的后台开发经验,所以准备开源分享一下。
###功能
-
[
x
]
登录/注销
-
[
x
]
权限验证
-
[
x
]
富文本编辑器
-
[
x
]
Markdown编辑器
-
[
x
]
JSON编辑器
-
[
x
]
列表拖拽
-
[
x
]
SplitPane
-
[
x
]
Dropzone
-
[
x
]
Sticky
-
[
x
]
CountTo
-
[
x
]
echarts图表
-
[
x
]
401,401错误页面
-
[
x
]
错误日志
-
[
x
]
导出excel
-
[
x
]
table example
-
[
x
]
form example
-
[
x
]
多环境发布
###How to use?
```
bash
git clone https://github.com/PanJiaChen/vue-element-admin.git //克隆项目
npm
install
//安装依赖
npm run dev //本地开发
// 开启服务器,浏览器访问 http://localhost:9527
npm run build:sit-preview //发布测试环境 带webpack ananalyzer
npm run build:prod //构建生成环境
```
##效果图
#### 两步验证登录 支持微信和qq
#### 两步验证登录 支持微信和qq
...
...
src/styles/index.scss
View file @
b3e1b6c8
...
@@ -73,9 +73,10 @@ a:hover {
...
@@ -73,9 +73,10 @@ a:hover {
code
{
code
{
background
:
#eef1f6
;
background
:
#eef1f6
;
padding
:
20
px
10px
;
padding
:
15
px
10px
;
margin-bottom
:
20px
;
margin-bottom
:
20px
;
display
:
block
;
display
:
block
;
line-height
:
36px
;
a
{
a
{
color
:
#337ab7
;
color
:
#337ab7
;
cursor
:
pointer
;
cursor
:
pointer
;
...
...
src/views/charts/index.vue
View file @
b3e1b6c8
<
template
>
<
template
>
<div
class=
"components-container"
>
<div
class=
"components-container"
>
介绍
<code>
这里的所有的图表都基于echarts,实例代码来源
<a
href=
'http://gallery.echartsjs.com/explore.html#sort=rank~timeframe=all~author=all'
target=
'_blank'
>
gallery
</a><br/>
其实echarts封装的很好了,用vue封装是很简单的事情,建议大家自己来封装。
</code>
</div>
</div>
</
template
>
</
template
>
src/views/components/index.vue
View file @
b3e1b6c8
<
template
>
<
template
>
<div
class=
"components-container"
>
<div
class=
"components-container"
>
介绍
<code>
这里暂时列出了自己在项目中自己封装和用到的组件,如有补充可以提
<a
href=
'https://github.com/PanJiaChen/vue-element-admin/issues'
target=
'_blank'
>
issue
</a><br/>
我个人崇尚自己封装组件,因为很多组件会和业务后高度的耦合,很多时候第三方封装是满足不了需求的,如有需要可以看楼主之前写过的一篇
<a
href=
'https://segmentfault.com/a/1190000009090836'
target=
'_blank'
>
文章
</a>
</code>
</div>
</div>
</
template
>
</
template
>
src/views/theme/index.vue
View file @
b3e1b6c8
<
template
>
<
template
>
<div
class=
"app-container"
>
<div
class=
"app-container"
>
<code>
会补动态换肤的教程
</code>
<el-card
class=
"box-card"
>
<el-card
class=
"box-card"
>
<div
slot=
"header"
>
<div
slot=
"header"
>
<span
style=
"line-height: 36px;"
>
偏好设置
</span>
<span
style=
"line-height: 36px;"
>
偏好设置
</span>
...
@@ -23,19 +24,19 @@
...
@@ -23,19 +24,19 @@
</div>
</div>
<div
class=
"block"
>
<div
class=
"block"
>
<el-tag
v-for=
"tag in tags"
:type=
"tag.type"
>
<el-tag
class=
'tag-item'
v-for=
"tag in tags"
:type=
"tag.type"
>
{{
tag
.
name
}}
{{
tag
.
name
}}
</el-tag>
</el-tag>
</div>
</div>
<div
class=
"block"
>
<div
class=
"block"
>
<el-alert
title=
"成功提示的文案"
type=
"success"
>
<el-alert
class=
'alert-item'
title=
"成功提示的文案"
type=
"success"
>
</el-alert>
</el-alert>
<el-alert
title=
"消息提示的文案"
type=
"info"
>
<el-alert
class=
'alert-item'
title=
"消息提示的文案"
type=
"info"
>
</el-alert>
</el-alert>
<el-alert
title=
"警告提示的文案"
type=
"warning"
>
<el-alert
class=
'alert-item'
title=
"警告提示的文案"
type=
"warning"
>
</el-alert>
</el-alert>
<el-alert
title=
"错误提示的文案"
type=
"error"
>
<el-alert
class=
'alert-item'
title=
"错误提示的文案"
type=
"error"
>
</el-alert>
</el-alert>
</div>
</div>
...
@@ -82,4 +83,10 @@ export default {
...
@@ -82,4 +83,10 @@ export default {
.block
{
.block
{
padding
:
30px
24px
;
padding
:
30px
24px
;
}
}
.alert-item
{
margin-bottom
:
10px
;
}
.tag-item
{
margin-right
:
15px
;
}
</
style
>
</
style
>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment