Skip to content

基于 Vue 和 ElementUI 构建的一个企业级后台管理系统

Notifications You must be signed in to change notification settings

Neveryu/vue-cms

Folders and files

NameName
Last commit message
Last commit date

Latest commit

5fc74dd · Apr 29, 2025

History

14 Commits
Apr 17, 2025
Apr 18, 2025
Apr 15, 2025
Apr 29, 2025
Apr 16, 2021
Apr 16, 2021
Apr 29, 2025
Apr 16, 2025
Apr 29, 2025
Apr 17, 2025
Apr 29, 2025
Apr 29, 2025
Apr 28, 2025
Apr 28, 2025
Apr 29, 2025
Apr 29, 2025
Apr 29, 2025

Repository files navigation

基于 Vue 和 ElementUI 构建的企业级后台管理系统

vue element-ui license donate

本分支是基于 vue-cli 4.x 的脚手架以及 vue 2.7.16 来进行开发的。

预览

在线体验:https://neveryu.github.io/vue-cms/

简介

vue-cms 是一个企业级管理后台项目,基于 VueElementUI 构建。它使用了最新的前端技术栈,内置了 i18n 国际化解决方案,支持多语言,路由嵌套,动态路由,权限验证等很多功能特性。

同时,它也提供了首页的数据图表展示,个人中心,主题换肤,表单表格,数据统计等常用的页面模块; 而且拥有完美的 axiosapi,数据存储解决方案以及辅助函数的封装,开箱即用,可以帮助你快速搭建企业后台管理系统。

与此同时,它也是一个很好的学习项目,包含了一些常见问题的解决方案,比如:数据可视化,导入导出功能,自定义组件,自定义指令,富文本;也包含了技术上的一些尝试,比如:基于 element-ui 的二次封装,Decorator 的使用...

写在前面

请确保你安装了 nodegit,与此同时,你应该对 VueVuexVue RouterES2015+ElementUI 有所了解。我们的请求有使用 Mock.js 模拟,也有使用线上真实的接口数据,提前了解和学习这些知识会对使用本项目有很大的帮助。

Build Setup

# 克隆项目
git clone https://github.com/Neveryu/vue-cms.git

# 进入项目
cd vue-cms

# install dependencies
yarn install --ignore-engines

// or
# 建议不要用 cnpm 安装 会有各种诡异的bug 可以通过如下操作解决 npm 下载速度慢的问题
npm install --registry=https://registry.npmmirror.com/

# serve with hot reload at localhost:8080
npm start

浏览器访问 http://localhost:8080

构建发布

# build for production with minification
npm run build

# build for production and view the bundle analyzer report
npm run build --report

# 发布
bash ./deploy.sh

功能

- 登录/注销
- 权限验证
- 多环境发布
- 动态侧边栏(支持多级路由)
- better-scroll
- 国际化多语言
- Screenfull全屏
- 列表拖拽
- Svg Sprite 图标
- Dashboard
- 本地mock数据
- Echarts图表
- 导出excel
- 导出zip
- 前端可视化excel
- CountTo
- 自定义组件
- 换肤
- 富文本

目录结构说明

vue-cms/  项目名称
|-- node_modules         #存放第三方依赖包(例如,执行npm i安装的依赖包)
|-- public/              #静态资源目录
|   |-- favicon.ico      #网站图标
|   |-- index.html       #项目的入口文件
|-- src/                 #项目的源代码目录
|   |-- assets/          #静态资源目录,如图片、字体等
|   |-- components/      #可复用的 Vue 组件
|   |-- router/          #Vue Router 的路由配置
|   |   |-- index.js     #路由的主文件
|   |-- store/           #Vuex 的状态管理
|   |   |-- index.js     #状态管理的主文件
|   |-- views/           #页面目录
|   |   |-- About.vue    #关于页面
|   |   |-- Home.vue     #首页
|   |-- App.vue          #根组件
|   |-- main.js          #项目的入口文件
|-- tests/               #测试文件
|-- .env                 #环境变量(在所有的环境中被载入)
|-- .env.development     #环境变量(仅开发环境)
|-- .env.production      #环境变量(仅生成环境(构建打包的时候))
|-- .eslintrc.js         #ESLint 配置
|-- .eslintignore        #ESLint 忽略的文件
|-- .gitignore           #Git 忽略的文件
|-- .prettierrc.js       #prettier 配置
|-- babel.config.js      #Babel 插件的配置文件
|-- jest.config.js       #jest 配置
|-- package-lock.json    #npm 依赖的锁定文件
|-- package.json         #项目的元数据文件和 npm 脚本
|-- README.md            #项目的说明文件
|-- vue.config.js        #Vue CLI 配置文件,比如配置alias、devServer和configure Webpack等

截图

Online Demo

点击即在线体验项目:https://neveryu.github.io/vue-cms/

Donate

如果你觉得这个项目帮助到了你,你可以帮作者买一杯果汁表示鼓励 🍹

donate

Browsers support

Modern browsers and Internet Explorer 10+.

IE / Edge
IE / Edge
Firefox
Firefox
Chrome
Chrome
Safari
Safari
IE10, IE11, Edge last 2 versions last 2 versions last 2 versions

License

MIT

Copyright (c) 2017-present NeverYu

【请注意】 screenfull 插件使用注意事项:在 package.jsondependencies 中添加 "screenfull": "^3.3.2",,然后执行 yarn 命令。 不要直接 yarn add screenfull。直接 yarn add screenfull 安装的是最新的,使用方式上面已经发生了变化。

其它插件/包,也是类似,请注意