vue2-manage
A admin template based on vue + element-ui. 基于vue + element-ui的后台管理系统基于 vue + element-ui 的后台管理系统
Top Related Projects
This is the repo for Vue 2. For Vue 3, go to https://github.com/vuejs/core
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后台管理系统
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
- 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>
- 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)
}
}
})
- 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
-
Clone the repository:
git clone https://github.com/bailicangdu/vue2-manage.git
-
Install dependencies:
cd vue2-manage npm install
-
Run the development server:
npm run dev
-
Build for production:
npm run build
The application will be available at http://localhost:8000
by default.
Competitor Comparisons
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.
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.
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 designs to code with AI
Introducing Visual Copilot: A new AI model to turn Figma designs to high quality code using your components.
Try Visual CopilotREADME
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
Top Related Projects
This is the repo for Vue 2. For Vue 3, go to https://github.com/vuejs/core
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后台管理系统
A high quality UI Toolkit built on Vue.js 2.0
🌈 An enterprise-class UI components based on Ant Design and Vue. 🐜
Convert designs to code with AI
Introducing Visual Copilot: A new AI model to turn Figma designs to high quality code using your components.
Try Visual Copilot