1
- # vue-manage-system #
2
- The web management system solution based on Vue2 and Element-UI。[ live demo] ( http://blog.gdfengshuo.com/example/work/ )
1
+ # vue-manage-system
2
+
3
+ <a href =" https://github.com/vuejs/vue " >
4
+ <img src="https://img.shields.io/badge/vue-2.6.10-brightgreen.svg" alt="vue">
5
+ </a >
6
+ <a href =" https://github.com/ElemeFE/element " >
7
+ <img src="https://img.shields.io/badge/element--ui-2.8.2-brightgreen.svg" alt="element-ui">
8
+ </a >
9
+ <a href =" https://github.com/lin-xin/vue-manage-system/blob/master/LICENSE " >
10
+ <img src="https://img.shields.io/github/license/mashape/apistatus.svg" alt="license">
11
+ </a >
12
+ <a href =" https://github.com/lin-xin/vue-manage-system/releases " >
13
+ <img src="https://img.shields.io/github/release/lin-xin/vue-manage-system.svg" alt="GitHub release">
14
+ </a >
15
+ <a href =" https://lin-xin.gitee.io/example/work/#/donate " >
16
+ <img src="https://img.shields.io/badge/%24-donate-ff69b4.svg" alt="donate">
17
+ </a >
18
+
19
+ The web management system solution based on Vue2 and Element-UI。[ live demo] ( https://lin-xin.gitee.io/example/work/ )
3
20
4
21
## Donation
5
- ![ WeChat] ( http://blog.gdfengshuo.com/images/weixin.jpg )
6
22
7
- ## Preface ##
23
+ ![ WeChat] ( https://lin-xin.gitee.io/images/weixin.jpg )
24
+
25
+ ## Preface
26
+
8
27
The scheme as a set of multi-function background frame templates, suitable for most of the WEB management system development. Convenient development fast simple good components based on Vue2 and Element-UI. Color separation of color style, support manual switch themes, and it is convenient to use a custom theme color.
9
28
10
- ## Function ##
11
- - [x] Element-UI
12
- - [x] Login/Logout
13
- - [x] Dashboard
14
- - [x] Table
15
- - [x] Tabs
16
- - [x] From
17
- - [x] Chart :bar_chart :
18
- - [x] Editor
19
- - [x] Markdown
20
- - [x] Upload pictures by clipping or dragging
21
- - [x] Support manual switch themes :sparkles :
22
- - [x] List drag sort
23
- - [x] Permission
24
- - [x] 404 / 403
25
- - [x] Three level menu
26
- - [x] Custom icon
29
+ ## Function
27
30
31
+ - [x] Element-UI
32
+ - [x] Login/Logout
33
+ - [x] Dashboard
34
+ - [x] Table
35
+ - [x] Tabs
36
+ - [x] From
37
+ - [x] Chart :bar_chart :
38
+ - [x] Editor
39
+ - [x] Markdown
40
+ - [x] Upload pictures by clipping or dragging
41
+ - [x] Support manual switch themes :sparkles :
42
+ - [x] List drag sort
43
+ - [x] Permission
44
+ - [x] 404 / 403
45
+ - [x] Three level menu
46
+ - [x] Custom icon
28
47
29
- ## Installation steps ##
48
+ ## Installation steps
30
49
31
- git clone https://github.com/lin-xin/vue-manage-system.git // Clone templates
32
- cd vue-manage-system // Enter template directory
33
- npm install // Installation dependency
50
+ git clone https://github.com/lin-xin/vue-manage-system.git // Clone templates
51
+ cd vue-manage-system // Enter template directory
52
+ npm install // Installation dependency
34
53
35
- ## Local development ##
54
+ ## Local development
36
55
37
- // Open server and access http://localhost:8080 in browser
38
- npm run serve
56
+ // Open server and access http://localhost:8080 in browser
57
+ npm run serve
39
58
40
- ## Constructing production ##
59
+ ## Constructing production
41
60
42
- // Constructing project
43
- npm run build
61
+ // Constructing project
62
+ npm run build
44
63
45
- ## Component description and presentation ##
64
+ ## Component description and presentation
65
+
66
+ ### vue-schart
46
67
47
- ### vue-schart ###
48
68
Vue.js wrapper for sChart.js. Github : [ vue-schart] ( https://github.com/linxin/vue-schart )
49
69
50
- ``` JavaScript
70
+ ``` html
51
71
<template >
52
72
<div >
53
- < schart : canvasId= " canvasId"
54
- : type= " type"
55
- : width= " width"
56
- : height= " height"
57
- : data= " data"
58
- : options= " options"
59
- >< / schart>
73
+ <schart class =" wrapper" canvasId =" myCanvas" :options =" options" ></schart >
60
74
</div >
61
75
</template >
62
-
76
+
63
77
<script >
64
- import Schart from ' vue-schart' ;
78
+ import Schart from ' vue-schart' ; // 导入Schart组件
65
79
export default {
66
- data : function () {
80
+ data () {
67
81
return {
68
- canvasId: ' myCanvas' ,
69
- type: ' bar' ,
70
- width: 500 ,
71
- height: 400 ,
72
- data: [
73
- {name: ' 2014' , value: 1342 },
74
- {name: ' 2015' , value: 2123 },
75
- {name: ' 2016' , value: 1654 },
76
- {name: ' 2017' , value: 1795 },
77
- ],
78
82
options: {
79
- title: ' Total sales of stores in recent years'
83
+ type: ' bar' ,
84
+ title: {
85
+ text: ' 最近一周各品类销售图'
86
+ },
87
+ labels: [' 周一' , ' 周二' , ' 周三' , ' 周四' , ' 周五' ],
88
+ datasets: [
89
+ {
90
+ label: ' 家电' ,
91
+ data: [234 , 278 , 270 , 190 , 230 ]
92
+ },
93
+ {
94
+ label: ' 百货' ,
95
+ data: [164 , 178 , 190 , 135 , 160 ]
96
+ },
97
+ {
98
+ label: ' 食品' ,
99
+ data: [144 , 198 , 150 , 235 , 120 ]
100
+ }
101
+ ]
80
102
}
81
- }
103
+ };
82
104
},
83
105
components: {
84
106
Schart
85
107
}
86
- }
108
+ };
87
109
</script >
110
+ <style >
111
+ .wrapper {
112
+ width : 7rem ;
113
+ height : 5rem ;
114
+ }
115
+ </style >
88
116
```
89
117
90
- ### element-ui ###
118
+ ### element-ui
119
+
91
120
A desktop component library based on vue.js2.0 . Github : [ element] ( http://element.eleme.io/#/zh-CN/component/layout )
92
121
93
- ### Vue-Quill-Editor ###
122
+ ### Vue-Quill-Editor
123
+
94
124
Quill editor component for Vue2. Github : [ vue-quill-editor] ( https://github.com/surmon-china/vue-quill-editor )
95
125
96
- ### mavonEditor ###
126
+ ### mavonEditor
127
+
97
128
A markdown editor based on Vue that supports a variety of personalized features. Github: [ mavonEditor] ( https://github.com/hinesboy/mavonEditor )
98
129
99
- ### vue-cropperjs ###
130
+ ### vue-cropperjs
131
+
100
132
A Vue wrapper component for cropperjs. Github: [ vue-cropperjs] ( https://github.com/Agontuk/vue-cropperjs )
101
133
134
+ ## Notice
102
135
103
- ## Notice ##
104
- ### 一、If I don't want to use some components, how can I delete it? ###
136
+ ### 一、If I don't want to use some components, how can I delete it?
105
137
106
138
For example, I don't want to use the Vue-Quill-Editor component, I need to take four steps.
107
139
@@ -110,14 +142,14 @@ The first step to remove the component of the routing. Enter 'src/router/index.j
110
142
``` JavaScript
111
143
{
112
144
path: ' /editor' ,
113
- component : resolve => require ([' ../components/page/VueEditor.vue' ], resolve)
145
+ component : resolve => require ([' ../components/page/VueEditor.vue' ], resolve)
114
146
},
115
147
```
116
148
117
149
Second,delete the component files. Enter 'src/components/page/' and delete 'VueEditor.vue' file.
118
150
119
151
The third step is to delete the entry. Enter 'src/components/common/Sidebar.vue' and delete the code below.
120
-
152
+
121
153
``` js
122
154
{
123
155
index: ' editor' ,
@@ -126,17 +158,16 @@ The third step is to delete the entry. Enter 'src/components/common/Sidebar.vue'
126
158
```
127
159
128
160
Finally, uninstall this component.
129
-
130
- npm un vue-quill-editor -S
161
+ npm un vue-quill-editor -S
131
162
132
163
Complete!
133
164
134
- ### 二、How to switch themes? ###
165
+ ### 二、How to switch themes?
135
166
136
167
The first step to enter 'src/main.js' and change into green theme.
137
168
138
169
``` javascript
139
- import ' element-ui/lib/theme-default/index.css' ; // default theme
170
+ import ' element-ui/lib/theme-default/index.css' ; // default theme
140
171
// import '../static/css/theme-green/index.css'; // green theme
141
172
```
142
173
@@ -150,15 +181,16 @@ The second step to enter 'src/App.vue' and change into green theme.
150
181
151
182
Finally,enter 'src/components/common/Sidebar.vue' and find el-menu Tags,delete 'background-color/text-color/active-text-color'。
152
183
153
- ## Screenshot ##
154
- ### Default theme ###
184
+ ## Screenshot
185
+
186
+ ### Default theme
155
187
156
188
![ Image text] ( https://github.com/lin-xin/manage-system/raw/master/screenshots/wms1.png )
157
189
158
- ### Green theme ###
190
+ ### Green theme
159
191
160
192
![ Image text] ( https://github.com/lin-xin/manage-system/raw/master/screenshots/wms2.png )
161
193
162
194
## License
163
195
164
- [ MIT] ( https://github.com/lin-xin/vue-manage-system/blob/master/LICENSE )
196
+ [ MIT] ( https://github.com/lin-xin/vue-manage-system/blob/master/LICENSE )
0 commit comments