2018-09-10 08:37:33 +00:00
# vue-manage-system #
2019-09-29 02:49:23 +00:00
The web management system solution based on Vue2 and Element-UI。[live demo](https://lin-xin.github.io/example/work/)
2017-09-13 12:47:38 +00:00
2018-04-13 00:58:41 +00:00
## Donation
2019-09-29 02:49:23 +00:00

2017-09-13 12:47:38 +00:00
## Preface ##
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.
## Function ##
- [x] Element-UI
- [x] Login/Logout
2018-04-23 12:45:29 +00:00
- [x] Dashboard
2017-09-13 12:47:38 +00:00
- [x] Table
2018-04-23 12:45:29 +00:00
- [x] Tabs
2017-09-13 12:47:38 +00:00
- [x] From
- [x] Chart :bar_chart:
- [x] Editor
- [x] Markdown
- [x] Upload pictures by clipping or dragging
- [x] Support manual switch themes :sparkles:
- [x] List drag sort
2018-04-23 12:45:29 +00:00
- [x] Permission
- [x] 404 / 403
2018-09-10 08:37:33 +00:00
- [x] Three level menu
- [x] Custom icon
2017-09-13 12:47:38 +00:00
## Installation steps ##
2018-04-13 00:58:41 +00:00
git clone https://github.com/lin-xin/vue-manage-system.git // Clone templates
cd vue-manage-system // Enter template directory
2017-09-13 12:47:38 +00:00
npm install // Installation dependency
## Local development ##
// Open server and access http://localhost:8080 in browser
2019-01-07 03:10:04 +00:00
npm run serve
2017-09-13 12:47:38 +00:00
## Constructing production ##
// Constructing project
npm run build
## Component description and presentation ##
### vue-schart ###
Vue.js wrapper for sChart.js. Github : [vue-schart ](https://github.com/linxin/vue-schart )
```JavaScript
< template >
< div >
< schart :canvasId = "canvasId"
:type="type"
:width="width"
:height="height"
:data="data"
:options="options"
>< / schart >
< / div >
< / template >
< script >
import Schart from 'vue-schart';
export default {
data: function(){
return {
canvasId: 'myCanvas',
type: 'bar',
width: 500,
height: 400,
data: [
{name: '2014', value: 1342},
{name: '2015', value: 2123},
{name: '2016', value: 1654},
{name: '2017', value: 1795},
],
options: {
title: 'Total sales of stores in recent years'
}
}
},
components: {
Schart
}
}
< / script >
```
2018-04-13 00:58:41 +00:00
### element-ui ###
A desktop component library based on vue.js2.0 . Github : [element ](http://element.eleme.io/#/zh-CN/component/layout )
### Vue-Quill-Editor ###
Quill editor component for Vue2. Github : [vue-quill-editor ](https://github.com/surmon-china/vue-quill-editor )
### mavonEditor ###
A markdown editor based on Vue that supports a variety of personalized features. Github: [mavonEditor ](https://github.com/hinesboy/mavonEditor )
### vue-cropperjs ###
A Vue wrapper component for cropperjs. Github: [vue-cropperjs ](https://github.com/Agontuk/vue-cropperjs )
2017-09-13 12:47:38 +00:00
## Notice ##
### 一、If I don't want to use some components, how can I delete it? ###
2018-04-18 01:48:31 +00:00
For example, I don't want to use the Vue-Quill-Editor component, I need to take four steps.
2017-09-13 12:47:38 +00:00
The first step to remove the component of the routing. Enter 'src/router/index.js' and delete the code below.
```JavaScript
{
2018-04-18 01:48:31 +00:00
path: '/editor',
component: resolve => require(['../components/page/VueEditor.vue'], resolve)
2017-09-13 12:47:38 +00:00
},
```
2018-04-18 01:48:31 +00:00
Second,delete the component files. Enter 'src/components/page/' and delete 'VueEditor.vue' file.
2017-09-13 12:47:38 +00:00
The third step is to delete the entry. Enter 'src/components/common/Sidebar.vue' and delete the code below.
2018-04-18 01:48:31 +00:00
```js
{
index: 'editor',
title: '富文本编辑器'
},
2017-09-13 12:47:38 +00:00
```
Finally, uninstall this component.
2018-04-18 01:48:31 +00:00
npm un vue-quill-editor -S
2017-09-13 12:47:38 +00:00
Complete!
### 二、How to switch themes? ###
The first step to enter 'src/main.js' and change into green theme.
```javascript
import 'element-ui/lib/theme-default/index.css'; // default theme
// import '../static/css/theme-green/index.css'; // green theme
```
The second step to enter 'src/App.vue' and change into green theme.
```javascript
@import "../static/css/main.css";
@import "../static/css/color-dark.css"; /*深色主题*/
/*@import "../static/css/theme-green/color-green.css"; !*浅绿色主题*!*/
```
2018-04-13 00:58:41 +00:00
Finally,enter 'src/components/common/Sidebar.vue' and find el-menu Tags,delete 'background-color/text-color/active-text-color'。
2017-09-13 12:47:38 +00:00
## Screenshot ##
### Default theme ###

### Green theme ###
2019-04-28 06:33:18 +00:00

## License
[MIT ](https://github.com/lin-xin/vue-manage-system/blob/master/LICENSE )