1 Star 0 Fork 977

szuscn / vue-elementUI后台管理系统

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

vue搭建后台管理界面模版(PC端)


技术栈

vue2 + vuex + vue-router + webpack + ES6/7 + axios + elementUI + 阿里图标iconfont

项目预览

http://nmgwap.gitee.io/vueproject/#/login

说明

本项目主要用于熟悉如何用 vue2 架构一个后端管理平台项目

为了方便后期修改使用,模拟数据在页面中,具体修改看下面【强调】

如果对您有帮助,您可以点右上角 "Star" 支持一下 谢谢! ^_^

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

开发环境 w7 Chrome 61

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

目录结构


├── /build/          # 项目构建(webpack)相关配置
├── /config/         # 项目开发环境配置
├── /src/            # 源码目录
│ ├── /api/          # 请求
│ ├── /assets/       # 组件静态资源(图片)
│ ├── /components/   # 公共组件
| ├── /api/          # 请求接口
│ ├── /router/       # 路由配置
│ ├── /vuex/         # vuex状态管理
│ ├── /views/        # 路由组件(页面维度)
│ ├── /config/       # 接口配置文件(请求地址)
│ ├── App.vue        # 组件入口
│ └── main.js        # 程序入口
├── /static/         # 非组件静态资源
├── .babelrc         # ES6语法编译配置
├── .editorconfig    # 定义代码格式
├── .eslintignore    # ES6规范忽略文件
├── .eslintrc.js     # ES6语法规范配置
├── .gitignore       # git忽略文件
├── index.html       # 页面入口
├── package.json     # 项目依赖
└── README.md        # 项目文档

强调

项目请求已经改为假数据,例如:

// 模拟数据开始
      let res = {
        code: 0,
        msg: null,
        count: 12,
        data: [
          {
            addUser: '1',
            editUser: '1',
            addTime: null,
            editTime: 1527411068000,
            userId: 1,
            systemNo: 'pmd',
            userName: 'root',
            userPassword: 'e10adc3949ba59abbe56e057f20f883e',
            userRealName: '超级管理员',
            userSex: '女',
            userMobile: '138123456789',
            userEmail: '111@qq.com',
            isLock: 'N',
            deptId: 1,
            deptName: 'xxxx',
            roleId: 1
          }
        ]
      }
      this.loading = false
      this.userData = res.data
      // 分页赋值
      this.pageparm.currentPage = this.formInline.page
      this.pageparm.pageSize = this.formInline.limit
      this.pageparm.total = res.count
      // 模拟数据结束

      /***
       * 调用接口,注释上面模拟数据 取消下面注释
       */
      // 获取用户列表
      // userList(parameter).then(res => {
      //   this.loading = false
      //   if (res.success == false) {
      //     this.$message({
      //       type: 'info',
      //       message: res.msg
      //     })
      //   } else {
      //     this.userData = res.data
      //     // 分页赋值
      //     this.pageparm.currentPage = this.formInline.page
      //     this.pageparm.pageSize = this.formInline.limit
      //     this.pageparm.total = res.count
      //   }
      // })

把模拟数据开始到结束注释掉,下面解除注释即可, 接口地址需要修改config/index.js文件 dev

proxyTable: {
    '/api': {
        target: 'http://xxx.xxx.xxx.xxx:xxx', // 你请求的第三方接口
        changeOrigin: true, // 在本地会创建一个虚拟服务端,然后发送请求的数据,并同时接收请求的数据,这样服务端和服务端进行数据的交互就不会有跨域问题
        pathRewrite: { // 路径重写,
            '^/api': '/api' // 替换target中的请求地址,也就是说以后你在请求http://api.jisuapi.com/XXXXX这个地址的时候直接写成/api即可。
        }
    }
},

完成功能

  • 登录 -- 完成
  • 路由拦截 -- 完成
  • 商品管理(增加、编辑、搜索、删除) -- 完成
  • 角色管理(增加、编辑、搜索、删除、权限管理) -- 完成
  • 交易订单(增加、编辑、搜索、删除) -- 完成
  • 用户管理(增加、编辑、搜索、删除、数据权限、刷新缓存) -- 完成
  • 支付配置(增加、编辑、搜索、删除) -- 完成
  • 系统环境变量(增加、编辑、搜索、删除) -- 完成
  • 权限管理(增加、编辑、搜索、删除、配置权限) -- 完成
  • 菜单管理(增加、编辑、搜索、删除) -- 完成
  • 公司管理(增加、编辑、搜索、删除) -- 完成

部分截图


商品管理 商品管理

角色管理 角色管理

交易订单 交易订单

编辑 编辑

用户管理 用户管理

支付配置 支付配置

展开与压缩 展开与压缩

运行项目


# install dependencies
npm install

# serve with hot reload at localhost:8080
npm run dev

# build for production with minification
npm run build

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

# run unit tests
npm run unit

# run e2e tests
npm run e2e

# run all tests
npm test

项目源码地址:


码云地址:https://gitee.com/ldhblog/vue-element.git
github地址:https://github.com/nmgwap/vue-ManagementPlatform.git

微信公众号


MIT License Copyright (c) 2018 lidonghui Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

vue-elementUI本项目的定位是后台管理系统,已经完成模块有用户管理、菜单管理、角色管理、公司管理、权限管理、支付配置 展开 收起
JavaScript
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
JavaScript
1
https://gitee.com/szuscn/vueproject.git
git@gitee.com:szuscn/vueproject.git
szuscn
vueproject
vue-elementUI后台管理系统
master

搜索帮助

14c37bed 8189591 565d56ea 8189591