diff --git a/README.md b/README.md index 06f75365..045c81a2 100755 --- a/README.md +++ b/README.md @@ -1,21 +1,46 @@ -# d2admin-vue-element +# D2admin-vue-element -> A management system framework based on vue & element +基于 `vue.js` 和 `ElementUI` 的管理系统前端解决方案 -## Build Setup +

+ + vue + + + element-ui + + + vuex + + + axios + +

-``` bash -# install dependencies -npm install +> 此项目只适合作为模板使用,在使用前请先检查您不需要的功能,删除相关代码和依赖插件。不建议直接作为您项目的起始代码。 -# serve with hot reload at localhost:8080 -npm run dev +## 功能 -# build for production with minification -npm run build +* 简约主题 +* 登陆和注销 +* 根据路由自动生成菜单 +* 可折叠侧边栏 +* 多国语言支持 +* 富文本编辑器 +* Markdown 编辑器 +* 全屏 +* Fontawesome 图标库 +* Fontawesome 图标选择器(组件) +* 自动引入 SVG 图标 +* 前端假数据支持( mock ) +* 集成 G2 图表 +* 图表自适应可拖拽大小的卡片容器(示例) +* 剪贴板操作 +* Cookie操作 +* 时间差计算工具 +* 导出 Excel ( xlsx 格式 + CSV 格式 ) +* 导入 Excel ( xlsx 格式 + CSV 格式 ) +* 数字动画 +* 可拖拽调整大小的切分布局 +* 可拖拽调整大小和位置的网格布局 -# build for production and view the bundle analyzer report -npm run build --report -``` - -For a detailed explanation on how things work, check out the [guide](http://vuejs-templates.github.io/webpack/) and [docs for vue-loader](http://vuejs.github.io/vue-loader). diff --git a/src/components/demo/PageIndexArticle/index.vue b/src/components/demo/PageIndexArticle/index.vue index 7a573a7a..5d78c58a 100644 --- a/src/components/demo/PageIndexArticle/index.vue +++ b/src/components/demo/PageIndexArticle/index.vue @@ -5,6 +5,12 @@

{{title}}

{{subTitle}}

+ + Fork me on GitHub + diff --git a/src/pages/demo/business/table/edit/index.vue b/src/pages/demo/business/table/edit/index.vue deleted file mode 100644 index 65f44cfe..00000000 --- a/src/pages/demo/business/table/edit/index.vue +++ /dev/null @@ -1,120 +0,0 @@ - - - diff --git a/src/plugin/axios/index.js b/src/plugin/axios/index.js index 29ee0513..e767c590 100644 --- a/src/plugin/axios/index.js +++ b/src/plugin/axios/index.js @@ -2,8 +2,9 @@ import Vue from 'vue' import { Message } from 'element-ui' import axios from 'axios' +// 在这里对返回的数据进行处理 +// 在这里添加你自己的逻辑 axios.interceptors.response.use(res => { - // 在这里对返回的数据进行处理 if (res.data.code !== undefined) { if (res.data.code !== 0) { Message.error(res.data.msg) diff --git a/src/router/menu/_business.js b/src/router/menu/_business.js index 2e87d9a3..dc68c9fa 100644 --- a/src/router/menu/_business.js +++ b/src/router/menu/_business.js @@ -36,23 +36,6 @@ export const menu = { component: resolve => { require(['@/pages/demo/business/user-center/home/index.vue'], resolve) } } ] - }, - // 表格 - { - title: '表格示例', - icon: 'table', - children: [ - { - title: '可编辑', - icon: 'file-o', - path: 'table/edit', - name: 'demo-business-table-edit', - meta: { - requiresAuth: true - }, - component: resolve => { require(['@/pages/demo/business/table/edit/index.vue'], resolve) } - } - ] } ] }