Go to file
林鑫 847fbe0d70
Merge pull request #78 from lin-xin/dev
vue-manage-system 升级改版
2018-04-13 15:02:54 +08:00
build '升级到webpack3,更新依赖版本' 2018-04-10 15:35:18 +08:00
config '重写mavonEditor的flex样式兼容IE' 2018-04-13 14:57:02 +08:00
screenshots '更新浅绿色样式' 2018-04-13 08:58:41 +08:00
src '重写mavonEditor的flex样式兼容IE' 2018-04-13 14:57:02 +08:00
static '重写mavonEditor的flex样式兼容IE' 2018-04-13 14:57:02 +08:00
.babelrc '升级到webpack3,更新依赖版本' 2018-04-10 15:35:18 +08:00
.editorconfig Complete vue-charts 2017-02-21 16:25:44 +08:00
.gitignore 完成基础表格 2017-02-16 11:44:09 +08:00
.postcssrc.js '升级到webpack3,更新依赖版本' 2018-04-10 15:35:18 +08:00
README.md '兼容IE10下不进入quill组件' 2018-04-13 09:33:23 +08:00
README_EN.md '更新浅绿色样式' 2018-04-13 08:58:41 +08:00
index.html update demo url 2017-09-13 20:47:38 +08:00
package.json '重写mavonEditor的flex样式兼容IE' 2018-04-13 14:57:02 +08:00

README_EN.md

manage-system

The web management system solution based on Vue2 and Element-UI。live demo

Donation

WeChat

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

  • Element-UI
  • Login/Logout
  • Table
  • From
  • Chart 📊
  • Editor
  • Markdown
  • Upload pictures by clipping or dragging
  • Support manual switch themes
  • List drag sort

Directory structure

|-- build                            // Webpack configuration file
|-- config                           // Project package path
|-- src                              // Source directory
|   |-- components                   // Components
|       |-- common                   // Common component
|           |-- bus.js           	 // Event Bus
|           |-- Header.vue           // Header component
|           |-- Home.vue           	 // Home component
|           |-- Sidebar.vue          // Sidebar component
|		|-- page                   	 // Router page
|           |-- BaseCharts.vue       // BaseCharts
|           |-- BaseForm.vue         // BaseForm
|           |-- BaseTable.vue        // BaseTable
|           |-- Login.vue          	 // Login
|           |-- DragList.vue
|           |-- Markdown.vue         // Markdown
|           |-- Premission.vue
|           |-- Readme.vue           // Readme
|           |-- Upload.vue           // Upload
|           |-- VueEditor.vue        // VueEditor
|           |-- VueTable.vue         // VueTable
|   |-- App.vue                      // Main component
|   |-- main.js                      // Entry file
|-- .babelrc                         // ES6 syntax compiler configuration
|-- .editorconfig                    // Code specification
|-- .gitignore                       // Ignored file
|-- index.html                       // Entry HTML file
|-- package.json                     // Dependent configuration file
|-- README.md                        // Readme

Installation steps

git clone https://github.com/lin-xin/vue-manage-system.git		// Clone templates
cd vue-manage-system											// Enter template directory
npm install													// Installation dependency

Local development

// Open server and access http://localhost:8080 in browser
npm run dev

Constructing production

// Constructing project
npm run build

Component description and presentation

vue-schart

Vue.js wrapper for sChart.js. Github : vue-schart

<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>

element-ui

A desktop component library based on vue.js2.0 . Github : element

vue-datasource

A Vue.js server side component to create dynamic tables. Github : vue-datasource

Vue-Quill-Editor

Quill editor component for Vue2. Github : vue-quill-editor

mavonEditor

A markdown editor based on Vue that supports a variety of personalized features. Github: mavonEditor

vue-cropperjs

A Vue wrapper component for cropperjs. Github: vue-cropperjs

Notice

一、If I don't want to use some components, how can I delete it?

For example, I don't want to use the vue-datasource component, I need to take four steps.

The first step to remove the component of the routing. Enter 'src/router/index.js' and delete the code below.

{
    path: '/vuetable',
    component: resolve => require(['../components/page/VueTable.vue'], resolve)
},

Second,delete the component files. Enter 'src/components/page/' and delete 'VueTable.vue' file.

The third step is to delete the entry. Enter 'src/components/common/Sidebar.vue' and delete the code below.

<el-menu-item index="vuetable">Vue表格组件</el-menu-item>

Finally, uninstall this component.

npm un vue-datasource -S

Complete!

二、How to switch themes?

The first step to enter 'src/main.js' and change into green theme.

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.

@import "../static/css/main.css";
@import "../static/css/color-dark.css";     /*深色主题*/
/*@import "../static/css/theme-green/color-green.css";   !*浅绿色主题*!*/

Finally,enter 'src/components/common/Sidebar.vue' and find el-menu Tags,delete 'background-color/text-color/active-text-color'。

Screenshot

Default theme

Image text

Green theme

Image text