# blank-example

> 一个后台集成解决方案，它基于 [vue](https://github.com/vuejs/vue) 和 [element](https://github.com/ElemeFE/element)。它使用了最新的前端技术栈，动态路由，权限验证，提供了丰富的功能组件。

Latest version **1.0.1** (published 2019-06-25) · MIT license · 0 weekly downloads

## Install

```sh
npm install blank-example
pnpm add blank-example
yarn add blank-example
bun add blank-example
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2019-06-25 |
| First published | 2019-06-25 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 4.0.0 |
| Dependencies | 18 |
| Unpacked size | 452.2 KB |
| Known vulnerabilities | 0 (+27 in 3 direct dependencies) |
| Install scripts | no |
| Author | blank |
| Maintainers | blank1993 |

## Links

- npm: https://www.npmjs.com/package/blank-example
- npm.io page: https://npm.io/package/blank-example

## Dependencies (18)

- [vue](https://npm.io/package/vue.md) 2.5.10
- [vuex](https://npm.io/package/vuex.md) 3.0.1
- [axios](https://npm.io/package/axios.md) 0.17.1
- [json2csv](https://npm.io/package/json2csv.md) ^3.11.5
- [js-cookie](https://npm.io/package/js-cookie.md) 2.2.0
- [nprogress](https://npm.io/package/nprogress.md) 0.2.0
- [element-ui](https://npm.io/package/element-ui.md) 2.3.9
- [screenfull](https://npm.io/package/screenfull.md) 4.0.0
- [vue-router](https://npm.io/package/vue-router.md) 3.0.1
- [es6-promise](https://npm.io/package/es6-promise.md) ^4.2.5
- [vuedraggable](https://npm.io/package/vuedraggable.md) ^2.16.0
- [normalize.css](https://npm.io/package/normalize.css.md) 7.0.0
- [weixin-js-sdk](https://npm.io/package/weixin-js-sdk.md) ^1.3.3
- [vue-clipboard2](https://npm.io/package/vue-clipboard2.md) 0.0.8
- [vue-data-tables](https://npm.io/package/vue-data-tables.md) 3.4.4
- [vue-multiselect](https://npm.io/package/vue-multiselect.md) ^2.0.8
- [vue-quill-editor](https://npm.io/package/vue-quill-editor.md) ^3.0.5
- [url-search-params-polyfill](https://npm.io/package/url-search-params-polyfill.md) ^3.0.0

## Recent versions

- 1.0.1 (latest) — 2019-06-25
- 1.0.0 — 2019-06-25

## README

## 简介

 一个后台集成解决方案，它基于 [vue](https://github.com/vuejs/vue) 
 和 [element](https://github.com/ElemeFE/element)。它使用了最新的前端技术栈，动态路由，权限验证，提供了丰富的功能组件。


## 前序准备

你需要在本地安装 [node](http://nodejs.org/) 和 [git](https://git-scm.com/)。本项目技术栈基于 [ES2015+](http://es6.ruanyifeng.com/)、[vue](https://cn.vuejs.org/index.html)、[vuex](https://vuex.vuejs.org/zh-cn/)、[vue-router](https://router.vuejs.org/zh-cn/) 、[axios](https://github.com/axios/axios) 和 [element-ui](https://github.com/ElemeFE/element)，提前了解和学习这些知识会对使用本项目有很大的帮助。


## 开发

```bash
# 克隆项目
git clone http://47.106.167.226:3000/blank/example-admin.git

# 安装依赖
npm install --registry=https://registry.npm.taobao.org

# 启动服务
npm run dev
```

浏览器访问 http://localhost:8090

## 发布

```bash
# 构建生产环境
npm run build

# 带分析的打包方式
npm run build --report
```

## 说明

- 后端请求接口统一在src/services里,可以参考原有接口格式开发
- 页面统一在src/views里
- 封装了ajax的前置和后置拦截器进行权限检查和返回提示消息,详细内容参考utils/request.js
- 开发期间使用了webpack的反向代理解决跨域,详细内容参考config/index.js
- 按钮权限使用了vue指令方式开发,详细内容参考main.js里has指令
- 可以使用scss或者css编写样式
- 页面权限使用了vue-router路由表meta参数里的roles

#####示例如下

```bash
{
      path: 'user',
      component: () => import('@/views/user/list'),
      name: '用户',
      meta: {
        title: '用户',
        icon: 'user',
        roles: ['user:list']
      }
    }
```

## 其它

  以下内容为可选操作,更加方便开发
- IDEA 选择File->Settings->Webpack 选择webpack configuration file为项目下的build\webpack.base.conf.js
- IDEA 安装 Vue.js Plugin
- IDEA 选择File->Settings->EsLint 将enable 去掉

## 将来实现

- 从后端直接加载动态路由
- 自动生成VUE代码拆分模块
- cdn 和import引入并存配置
- 补上前端校验逻辑
- 跳转回登陆前页面
- 自动生成代码加入导出Excel









## Browsers support

Modern browsers and Internet Explorer 10+.

| [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/edge/edge_48x48.png" alt="IE / Edge" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br>IE / Edge | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/firefox/firefox_48x48.png" alt="Firefox" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br>Firefox | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/chrome/chrome_48x48.png" alt="Chrome" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br>Chrome | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/safari/safari_48x48.png" alt="Safari" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br>Safari |
| --------- | --------- | --------- | --------- |
| IE10, IE11, Edge| last 2 versions| last 2 versions| last 2 versions

---
_Source: https://npm.io/package/blank-example · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
