Convert Figma logo to code with AI

bailicangdu logovue2-manage

A admin template based on vue + element-ui. 基于vue + element-ui的后台管理系统基于 vue + element-ui 的后台管理系统

13,455
4,330
13,455
111

Top Related Projects

207,677

This is the repo for Vue 2. For Vue 3, go to https://github.com/vuejs/core

54,105

A Vue.js 2.0 UI Toolkit for Web

:tada: A magical vue admin https://panjiachen.github.io/vue-element-admin

Vue3、Element Plus、typescript后台管理系统

23,961

A high quality UI Toolkit built on Vue.js 2.0

🌈 An enterprise-class UI components based on Ant Design and Vue. 🐜

Quick Overview

vue2-manage is a comprehensive management system built with Vue.js 2.x. It serves as a template for creating admin panels or dashboards, featuring a clean and modern UI design. The project demonstrates best practices for structuring large-scale Vue applications and integrates with various popular libraries and tools.

Pros

  • Extensive set of pre-built components and pages for rapid development
  • Well-organized project structure, making it easy to understand and extend
  • Responsive design, ensuring compatibility across different devices
  • Integration with popular libraries like Element UI and ECharts for rich UI and data visualization

Cons

  • Built on Vue 2.x, which may become outdated as Vue 3.x gains more adoption
  • Limited documentation, which may make it challenging for beginners to get started
  • Some dependencies may be outdated and require updates
  • Lack of internationalization support out of the box

Code Examples

  1. Example of a Vue component using Element UI:
<template>
  <el-form :model="ruleForm" :rules="rules" ref="ruleForm">
    <el-form-item label="Name" prop="name">
      <el-input v-model="ruleForm.name"></el-input>
    </el-form-item>
    <el-form-item>
      <el-button type="primary" @click="submitForm('ruleForm')">Submit</el-button>
    </el-form-item>
  </el-form>
</template>

<script>
export default {
  data() {
    return {
      ruleForm: {
        name: ''
      },
      rules: {
        name: [
          { required: true, message: 'Please input name', trigger: 'blur' }
        ]
      }
    };
  },
  methods: {
    submitForm(formName) {
      this.$refs[formName].validate((valid) => {
        if (valid) {
          console.log('submit!');
        } else {
          console.log('error submit!!');
          return false;
        }
      });
    }
  }
}
</script>
  1. Example of using Vuex for state management:
import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    count: 0
  },
  mutations: {
    increment(state) {
      state.count++
    }
  },
  actions: {
    incrementAsync({ commit }) {
      setTimeout(() => {
        commit('increment')
      }, 1000)
    }
  }
})
  1. Example of using vue-router for navigation:
import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../views/Home.vue'
import About from '../views/About.vue'

Vue.use(VueRouter)

const routes = [
  { path: '/', component: Home },
  { path: '/about', component: About }
]

const router = new VueRouter({
  routes
})

export default router

Getting Started

  1. Clone the repository:

    git clone https://github.com/bailicangdu/vue2-manage.git
    
  2. Install dependencies:

    cd vue2-manage
    npm install
    
  3. Run the development server:

    npm run dev
    
  4. Build for production:

    npm run build
    

The application will be available at http://localhost:8000 by default.

Competitor Comparisons

207,677

This is the repo for Vue 2. For Vue 3, go to https://github.com/vuejs/core

Pros of Vue

  • Core framework with extensive ecosystem and community support
  • Highly flexible and scalable for projects of all sizes
  • Comprehensive documentation and learning resources

Cons of Vue

  • Steeper learning curve for beginners
  • More complex setup for large-scale applications
  • Frequent updates may require keeping up with changes

Code Comparison

vue2-manage (simplified component):

<template>
  <div class="manage_page fillcontain">
    <el-row style="height: 100%;">
      <el-col :span="4" style="min-height: 100%; background-color: #324057;">
        <el-menu :default-active="defaultActive" style="min-height: 100%;" theme="dark" router>
          <!-- Menu items -->
        </el-menu>
      </el-col>
      <el-col :span="20" style="height: 100%; overflow: auto;">
        <router-view></router-view>
      </el-col>
    </el-row>
  </div>
</template>

Vue (core library usage):

import { createApp } from 'vue'
import App from './App.vue'

const app = createApp(App)
app.mount('#app')

vue2-manage is a specific management system built with Vue 2, while Vue is the core framework itself. vue2-manage provides a ready-to-use admin interface, whereas Vue offers the foundation for building any type of web application. The code comparison shows the difference between a complex component in vue2-manage and the basic setup of a Vue 3 application.

54,105

A Vue.js 2.0 UI Toolkit for Web

Pros of element

  • More comprehensive UI component library with a wider range of components
  • Better documentation and examples for each component
  • Larger community and more frequent updates

Cons of element

  • Steeper learning curve due to its extensive feature set
  • Potentially larger bundle size if not properly optimized

Code Comparison

element:

<el-button type="primary" @click="handleClick">Click me</el-button>
<el-input v-model="inputValue" placeholder="Enter text"></el-input>
<el-table :data="tableData">
  <el-table-column prop="name" label="Name"></el-table-column>
  <el-table-column prop="age" label="Age"></el-table-column>
</el-table>

vue2-manage:

<el-button type="primary" @click="handleClick">Click me</el-button>
<el-input v-model="inputValue" placeholder="Enter text"></el-input>
<el-table :data="tableData">
  <el-table-column prop="name" label="Name"></el-table-column>
  <el-table-column prop="age" label="Age"></el-table-column>
</el-table>

Summary

element is a more comprehensive UI library with better documentation and community support, while vue2-manage is a specific management system implementation. The code comparison shows that both projects use similar component syntax, as vue2-manage likely utilizes element as its UI framework. element offers more flexibility for various projects, while vue2-manage provides a ready-to-use management system structure.

:tada: A magical vue admin https://panjiachen.github.io/vue-element-admin

Pros of vue-element-admin

  • More comprehensive and feature-rich, offering a wider range of components and functionalities
  • Better documentation and community support, making it easier for developers to get started and find solutions
  • Regular updates and maintenance, ensuring compatibility with the latest Vue.js and Element UI versions

Cons of vue-element-admin

  • Steeper learning curve due to its complexity and extensive feature set
  • Potentially heavier and slower performance for simpler projects that don't require all the included features
  • May require more customization effort to remove unnecessary components for smaller-scale applications

Code Comparison

vue-element-admin:

import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

export const constantRoutes = [
  {
    path: '/redirect',
    component: Layout,
    hidden: true,
    children: [
      {
        path: '/redirect/:path(.*)',
        component: () => import('@/views/redirect/index')
      }
    ]
  }
]

vue2-manage:

import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

const routes = [{
    path: '/',
    component: login
},{
    path: '/manage',
    component: manage,
    name: '',
    children: [{
        path: '',
        component: home,
        meta: [],
    }]
}]

The code comparison shows that vue-element-admin uses a more structured approach with constant routes and dynamic imports, while vue2-manage has a simpler routing configuration.

Vue3、Element Plus、typescript后台管理系统

Pros of vue-manage-system

  • More recent updates and active development
  • Supports both Vue 2 and Vue 3 versions
  • Includes more comprehensive documentation and examples

Cons of vue-manage-system

  • Larger codebase, potentially more complex to understand and maintain
  • Heavier reliance on third-party libraries and components

Code Comparison

vue2-manage:

import Vue from 'vue'
import App from './App'
import router from './router'
import store from './store/'

Vue.config.productionTip = false;

vue-manage-system:

import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import installElementPlus from './plugins/element'
import { usePermissionStore } from './store/modules/permission'

The vue-manage-system repository shows a more modern Vue 3 setup with composition API and modular imports, while vue2-manage uses the older Vue 2 syntax. vue-manage-system also includes additional imports for Element Plus and a custom permission store, indicating a more feature-rich implementation.

Both projects serve as admin dashboard templates for Vue.js applications, but vue-manage-system offers more up-to-date features and broader Vue version support. However, vue2-manage may be simpler and easier to grasp for beginners or those working with legacy Vue 2 projects.

23,961

A high quality UI Toolkit built on Vue.js 2.0

Pros of iView

  • More comprehensive UI component library with a wider range of components
  • Better documentation and examples for developers
  • Active community and regular updates

Cons of iView

  • Steeper learning curve due to its extensive feature set
  • Potentially larger bundle size if not properly optimized

Code Comparison

vue2-manage:

<template>
  <el-table :data="tableData" style="width: 100%">
    <el-table-column prop="date" label="Date" width="180"></el-table-column>
    <el-table-column prop="name" label="Name" width="180"></el-table-column>
    <el-table-column prop="address" label="Address"></el-table-column>
  </el-table>
</template>

iView:

<template>
  <Table :columns="columns" :data="data"></Table>
</template>
<script>
export default {
  data () {
    return {
      columns: [
        { title: 'Name', key: 'name' },
        { title: 'Age', key: 'age' },
        { title: 'Address', key: 'address' }
      ],
      data: [
        { name: 'John Brown', age: 18, address: 'New York No. 1 Lake Park' },
        { name: 'Jim Green', age: 24, address: 'London No. 1 Lake Park' },
        { name: 'Joe Black', age: 30, address: 'Sydney No. 1 Lake Park' }
      ]
    }
  }
}
</script>

The code comparison shows that iView's Table component offers a more concise and flexible approach to defining table structure and data, while vue2-manage uses Element UI's table component with a more explicit template structure.

🌈 An enterprise-class UI components based on Ant Design and Vue. 🐜

Pros of ant-design-vue

  • Comprehensive UI component library with a wide range of pre-built components
  • Active development and regular updates, ensuring compatibility with the latest Vue versions
  • Extensive documentation and community support

Cons of ant-design-vue

  • Larger bundle size due to the extensive component library
  • Steeper learning curve for developers unfamiliar with Ant Design principles

Code Comparison

vue2-manage:

<el-table :data="tableData" style="width: 100%">
  <el-table-column prop="date" label="Date" width="180"></el-table-column>
  <el-table-column prop="name" label="Name" width="180"></el-table-column>
  <el-table-column prop="address" label="Address"></el-table-column>
</el-table>

ant-design-vue:

<a-table :dataSource="dataSource" :columns="columns">
  <a-table-column key="date" title="Date" dataIndex="date" />
  <a-table-column key="name" title="Name" dataIndex="name" />
  <a-table-column key="address" title="Address" dataIndex="address" />
</a-table>

Both repositories provide Vue-based admin interfaces, but ant-design-vue offers a more comprehensive set of components and better long-term support. However, vue2-manage may be simpler for small projects or developers who prefer a lightweight solution. The code comparison shows similar table implementations, with ant-design-vue using a slightly different syntax and component naming convention.

Convert Figma logo designs to code with AI

Visual Copilot

Introducing Visual Copilot: A new AI model to turn Figma designs to high quality code using your components.

Try Visual Copilot

README

About

此项目是 vue + element-ui 构建的后台管理系统,是后台项目node-elm 的管理系统,所有的数据都是从服务器实时获取的真实数据,具有真实的注册、登陆、管理数据、权限验证等功能。

注:项目预览地址和接口需要使用https访问哦!

说明

如果对您对此项目有兴趣,可以点 "Star" 支持一下 谢谢! ^_^

或者您可以 "follow" 一下,我会不断开源更多的有趣的项目

开发环境 macOS 10.12.4 nodejs 6.10.0

如有问题请直接在 Issues 中提,或者您发现问题并有非常好的解决方案,欢迎 PR 👍

传送门:前端项目地址 、 后台系统地址 、 原生APP项目地址

技术栈

vue2 + vuex + vue-router + webpack + ES6/7 + less + element-ui

项目运行

git clone https://github.com/bailicangdu/vue2-manage  

cd vue2-manage  

npm install 或 yarn(推荐)

npm run dev (访问线上后台系统)

npm run local (访问本地后台系统,需运行node-elm后台系统)


访问: http://localhost:8002

效果演示

(可在后台管理系统添加商铺,食品等数据,并在前端地址查看效果)

查看效果请戳这里

前端项目网址

前端网址请戳这里(请用chrome手机模式预览)

移动端扫描下方二维码

功能列表

  • 登陆/注销 -- 完成
  • 添加商铺 -- 完成
  • 添加商品 -- 完成
  • 数据展示 -- 完成
  • 管理用户 -- 完成
  • 管理商铺 -- 完成
  • 食品管理 -- 完成
  • 权限验证 -- 完成
  • 管理员设置 -- 完成
  • 图表📈 -- 完成
  • 富文本编辑器 -- 完成

部分截图

License

GPL