Ver Fonte

web页面入口代码

wangrulan há 2 anos atrás
pai
commit
701fbf163c
100 ficheiros alterados com 19143 adições e 14573 exclusões
  1. 61 0
      .babelrc
  2. 9 0
      .editorconfig
  3. 29 0
      .eslintrc.js
  4. 7 12
      .gitignore
  5. 10 0
      .postcssrc.js
  6. 9 0
      OnlineCollaboration2.0.iml
  7. 55 19
      README.md
  8. 0 5
      babel.config.js
  9. 42 0
      build/build.js
  10. 54 0
      build/check-versions.js
  11. 102 0
      build/utils.js
  12. 22 0
      build/vue-loader.conf.js
  13. 99 0
      build/webpack.base.conf.js
  14. 103 0
      build/webpack.dev.conf.js
  15. 155 0
      build/webpack.prod.conf.js
  16. 79 0
      config/index.js
  17. 8 0
      debug.log
  18. 0 53
      doc/acl_tousu前后端接口.md
  19. 38 0
      index.html
  20. 0 19
      jsconfig.json
  21. 9738 14283
      package-lock.json
  22. 87 16
      package.json
  23. BIN
      public/favicon.ico
  24. 0 17
      public/index.html
  25. 37 22
      src/App.vue
  26. 5 0
      src/common/css/font.css
  27. 1 0
      src/common/css/h5style.css
  28. 1 0
      src/common/css/public.css
  29. 1 0
      src/common/filters/index.js
  30. 111 0
      src/common/js/api.js
  31. 159 0
      src/common/js/home.js
  32. 398 0
      src/common/js/methods.js
  33. 393 0
      src/common/js/public.js
  34. 102 0
      src/common/js/static.js
  35. 1 0
      src/common/js/types.js
  36. 83 0
      src/common/js/validate.js
  37. 27 0
      src/common/js/validator.js
  38. 11 0
      src/common/less/colorType.less
  39. 6 0
      src/common/less/font.less
  40. 3 0
      src/common/less/h5style.less
  41. 80 0
      src/common/less/layout.less
  42. 92 0
      src/common/less/mixin.less
  43. 136 0
      src/common/less/public.less
  44. 13 0
      src/common/less/response.less
  45. 24 0
      src/common/less/variables.less
  46. 664 0
      src/common/less/z.less
  47. 0 15
      src/components/PageHeader.vue
  48. 147 0
      src/components/home/index.vue
  49. 68 0
      src/components/orderSearch/index.vue
  50. 141 0
      src/components/permissions/index.vue
  51. 185 0
      src/components/permissions/login/index.vue
  52. 353 0
      src/components/permissions/module/index.vue
  53. 157 0
      src/components/permissions/operate/index.vue
  54. 116 0
      src/components/permissions/role/index.vue
  55. 486 0
      src/components/permissions/user/index.vue
  56. 64 6
      src/main.js
  57. 101 0
      src/public/Pagination/index.vue
  58. 61 22
      src/router/index.js
  59. 19 0
      src/store/actions.js
  60. 5 0
      src/store/getters.js
  61. 15 12
      src/store/index.js
  62. 10 0
      src/store/mutation-types.js
  63. 69 0
      src/store/mutations.js
  64. 59 0
      src/store/state.js
  65. 6 0
      src/utils/errorCode.js
  66. 110 0
      src/utils/request.js
  67. 58 0
      src/utils/scroll-to.js
  68. 0 16
      src/views/ErrorPage/index.vue
  69. 0 12
      src/views/UserInfo/index.vue
  70. 0 44
      src/views/UserList/index.vue
  71. 234 0
      static/axios/CHANGELOG.md
  72. 19 0
      static/axios/LICENSE
  73. 612 0
      static/axios/README.md
  74. 162 0
      static/axios/UPGRADE_GUIDE.md
  75. 1601 0
      static/axios/dist/axios.js
  76. 0 0
      static/axios/dist/axios.map
  77. 1 0
      static/axios/dist/axios.min.js
  78. 0 0
      static/axios/dist/axios.min.map
  79. 127 0
      static/axios/index.d.ts
  80. 1 0
      static/axios/index.js
  81. 37 0
      static/axios/lib/adapters/README.md
  82. 228 0
      static/axios/lib/adapters/http.js
  83. 180 0
      static/axios/lib/adapters/xhr.js
  84. 52 0
      static/axios/lib/axios.js
  85. 19 0
      static/axios/lib/cancel/Cancel.js
  86. 57 0
      static/axios/lib/cancel/CancelToken.js
  87. 5 0
      static/axios/lib/cancel/isCancel.js
  88. 79 0
      static/axios/lib/core/Axios.js
  89. 52 0
      static/axios/lib/core/InterceptorManager.js
  90. 7 0
      static/axios/lib/core/README.md
  91. 18 0
      static/axios/lib/core/createError.js
  92. 86 0
      static/axios/lib/core/dispatchRequest.js
  93. 21 0
      static/axios/lib/core/enhanceError.js
  94. 26 0
      static/axios/lib/core/settle.js
  95. 20 0
      static/axios/lib/core/transformData.js
  96. 92 0
      static/axios/lib/defaults.js
  97. 7 0
      static/axios/lib/helpers/README.md
  98. 11 0
      static/axios/lib/helpers/bind.js
  99. 36 0
      static/axios/lib/helpers/btoa.js
  100. 68 0
      static/axios/lib/helpers/buildURL.js

+ 61 - 0
.babelrc

@@ -0,0 +1,61 @@
+// {
+//   "presets": [
+//     [
+//       "env",
+//       {
+//         "modules": false,
+//         "targets": {
+//           "browsers": [
+//             "> 1%",
+//             "last 2 versions",
+//             "not ie <= 8"
+//           ]
+//         }
+//       }
+//     ],
+//     "stage-2"
+//   ],
+//   // "plugins": ["transform-vue-jsx", "transform-runtime"]
+//   "plugins": [
+//     [
+//       "component",
+//       "transform-vue-jsx",
+//       // "jsx-v-model",
+//       // "transform-runtime",
+//       {
+//         "libraryName": "element-ui",
+//         "styleLibraryName": "theme-chalk"
+//       }
+//     ]
+//   ]
+// }
+{
+  "presets": [
+    [
+      "env",
+      {
+        "modules": false,
+        "targets": {
+          "browsers": [
+            "> 1%",
+            "last 2 versions",
+            "not ie <= 8"
+          ]
+        }
+      }
+    ],
+    "stage-2"
+  ],
+  "plugins": [
+    "transform-vue-jsx",
+    "transform-runtime"
+    // [
+    //   "import",
+    //   {
+    //     "libraryName": "vant",
+    //     "libraryDirectory": "es",
+    //     "style": true
+    //   }
+    // ]
+  ]
+}

+ 9 - 0
.editorconfig

@@ -0,0 +1,9 @@
+root = true
+
+[*]
+charset = utf-8
+indent_style = space
+indent_size = 2
+end_of_line = lf
+insert_final_newline = true
+trim_trailing_whitespace = true

+ 29 - 0
.eslintrc.js

@@ -0,0 +1,29 @@
+// http://eslint.org/docs/user-guide/configuring
+
+module.exports = {
+  root: true,
+  parser: 'babel-eslint',
+  parserOptions: {
+    sourceType: 'module'
+  },
+  env: {
+    browser: true,
+  },
+  // https://github.com/feross/standard/blob/master/RULES.md#javascript-standard-style
+  extends: 'standard',
+  // required to lint *.vue files
+  plugins: [
+    'html'
+  ],
+  // add your custom rules here
+  'rules': {
+    // allow paren-less arrow functions
+    'arrow-parens': 0,
+    // allow async-await
+    'generator-star-spacing': 0,
+    // allow debugger during development
+    'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0,
+    'eol-last': 0,
+    'space-before-function-paren': 0
+  }
+}

+ 7 - 12
.gitignore

@@ -1,18 +1,8 @@
 .DS_Store
-node_modules
-/dist
-
-
-# local env files
-.env.local
-.env.*.local
-
-# Log files
+node_modules/
 npm-debug.log*
 yarn-debug.log*
 yarn-error.log*
-pnpm-debug.log*
-
 # Editor directories and files
 .idea
 .vscode
@@ -20,4 +10,9 @@ pnpm-debug.log*
 *.ntvs*
 *.njsproj
 *.sln
-*.sw?
+*.env.js
+*.git
+
+#config/index.js
+# src/common/js/
+#src/common/js/static.js

+ 10 - 0
.postcssrc.js

@@ -0,0 +1,10 @@
+// https://github.com/michael-ciniawsky/postcss-load-config
+
+module.exports = {
+  "plugins": {
+    "postcss-import": {},
+    "postcss-url": {},
+    // to edit target browsers: use "browserslist" field in package.json
+    "autoprefixer": {}
+  }
+}

+ 9 - 0
OnlineCollaboration2.0.iml

@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<module type="WEB_MODULE" version="4">
+  <component name="NewModuleRootManager" inherit-compiler-output="true">
+    <exclude-output />
+    <content url="file://$MODULE_DIR$" />
+    <orderEntry type="inheritedJdk" />
+    <orderEntry type="sourceFolder" forTests="false" />
+  </component>
+</module>

+ 55 - 19
README.md

@@ -1,26 +1,62 @@
-# vue3_demo
+[TOC]
 
-## Project setup
+# 在线协作项目
 
-```sh
-# 创建项目
-vue create vue3_demo
-# 添加依赖
-cnpm install element-plus --save
-cnpm install axios --save
-# 重新安装依赖
+## 技术栈
+
+vue2 + vuex + vue-router + webpack + ES6/7 + less + element-ui
+
+## 手机版线上地址
+
+线上地址:http://183.224.8.165:5081/ease-flow-console-v2/dist/work_app/index.html?userId=7640#/taskmanagement
+胜浦多帮线上地址: http://183.224.8.165:5081/ease-flow-console-v2/dist/spdblink/index.html?userId=101932&orderNo=ZDYH-DH-MS034-20200717-02129540#/taskmanagement
+
+## 项目统一规范(css ,js)
+
+1.  代码保存格式 采用 eslint
+2.  pc 端通用的 css 在 mixin.less 中
+3.  所有的输入框、下拉框、日期选择框 默认 element 中的 size:small
+4.  body 背景色:#e9eaee
+5.  板块背景:#fff
+6.  板块标题背景:#f7f7f7
+7.  板块内容背景:#f8fdff
+8.  表格:表头及边框线:#fafafa
+
+### 字体大小
+
+    1. 顶部当前位置 14px   #333333
+    2. 一级菜单 16px  #333333
+    3. 二级菜单 14px  #0069c2
+    4. 三级菜单 14px  #333333
+    5. 内容大小 14px   标题加粗  颜色#333333  #666666  #999999   区分信息强弱
+    6. 分割线颜色: #a7ddfb    #cccccc
+
+### css 命名规范
+
+## 后台接口
+
+[怀富接口](http://note.youdao.com/noteshare?id=c1635ee6be1826ecf8001b8c82841a44)
+
+[后台补充接口](http://note.youdao.com/noteshare?id=8df7931f3f0bf6f8d50bc40ea9b55ba6)
+
+## 项目查看地址
+
+[博联环境](http://ynmcc.iok.la:8082/cas/login?service=http%3A%2F%2Fynmcc.iok.la%3A9010%2Fease-flow-console-web%2Flogin%2Fcas#/homepage)
+
+## 安装与运行
+
+```bash
+# 安装相关依赖
 npm install
-```
 
-### Compiles and hot-reloads for development
-```
-npm run serve
-```
+# 启动服务  地址: localhost:8080
+npm run dev
 
-### Compiles and minifies for production
-```
+# 打包生产环境
 npm run build
-```
+# 打包浙江环境
+npm run build:zhejiang
 
-### Customize configuration
-See [Configuration Reference](https://cli.vuejs.org/config/).
+# 打包分析组件大小
+npm run build --report
+```

+ 0 - 5
babel.config.js

@@ -1,5 +0,0 @@
-module.exports = {
-  presets: [
-    '@vue/cli-plugin-babel/preset'
-  ]
-}

+ 42 - 0
build/build.js

@@ -0,0 +1,42 @@
+'use strict'
+require('./check-versions')()
+
+process.env.NODE_ENV = 'production'
+
+const ora = require('ora')
+const rm = require('rimraf')
+const path = require('path')
+const chalk = require('chalk')
+const webpack = require('webpack')
+const config = require('../config')
+const webpackConfig = require('./webpack.prod.conf')
+
+const spinner = ora('building for production...')
+// const spinner = ora(`正在打${process.env.env_config}环境包...`)
+spinner.start()
+
+rm(path.join(config.build.assetsRoot, config.build.assetsSubDirectory), err => {
+  if (err) throw err
+  webpack(webpackConfig, (err, stats) => {
+    spinner.stop()
+    if (err) throw err
+    process.stdout.write(stats.toString({
+      colors: true,
+      modules: false,
+      children: false, // If you are using ts-loader, setting this to true will make TypeScript errors show up during build.
+      chunks: false,
+      chunkModules: false
+    }) + '\n\n')
+
+    if (stats.hasErrors()) {
+      console.log(chalk.red('  Build failed with errors.\n'))
+      process.exit(1)
+    }
+
+    console.log(chalk.cyan('  Build complete.\n'))
+    console.log(chalk.yellow(
+      '  Tip: built files are meant to be served over an HTTP server.\n' +
+      '  Opening index.html over file:// won\'t work.\n'
+    ))
+  })
+})

+ 54 - 0
build/check-versions.js

@@ -0,0 +1,54 @@
+'use strict'
+const chalk = require('chalk')
+const semver = require('semver')
+const packageConfig = require('../package.json')
+const shell = require('shelljs')
+
+function exec (cmd) {
+  return require('child_process').execSync(cmd).toString().trim()
+}
+
+const versionRequirements = [
+  {
+    name: 'node',
+    currentVersion: semver.clean(process.version),
+    versionRequirement: packageConfig.engines.node
+  }
+]
+
+if (shell.which('npm')) {
+  versionRequirements.push({
+    name: 'npm',
+    currentVersion: exec('npm --version'),
+    versionRequirement: packageConfig.engines.npm
+  })
+}
+
+module.exports = function () {
+  const warnings = []
+
+  for (let i = 0; i < versionRequirements.length; i++) {
+    const mod = versionRequirements[i]
+
+    if (!semver.satisfies(mod.currentVersion, mod.versionRequirement)) {
+      warnings.push(mod.name + ': ' +
+        chalk.red(mod.currentVersion) + ' should be ' +
+        chalk.green(mod.versionRequirement)
+      )
+    }
+  }
+
+  if (warnings.length) {
+    console.log('')
+    console.log(chalk.yellow('To use this template, you must update following to modules:'))
+    console.log()
+
+    for (let i = 0; i < warnings.length; i++) {
+      const warning = warnings[i]
+      console.log('  ' + warning)
+    }
+
+    console.log()
+    process.exit(1)
+  }
+}

+ 102 - 0
build/utils.js

@@ -0,0 +1,102 @@
+'use strict'
+const path = require('path')
+const config = require('../config')
+const ExtractTextPlugin = require('extract-text-webpack-plugin')
+const packageConfig = require('../package.json')
+
+exports.assetsPath = function (_path) {
+  const assetsSubDirectory = process.env.NODE_ENV === 'production'
+    ? config.build.assetsSubDirectory
+    : config.dev.assetsSubDirectory
+
+  return path.posix.join(assetsSubDirectory, _path)
+}
+
+exports.cssLoaders = function (options) {
+  options = options || {}
+
+  const cssLoader = {
+    loader: 'css-loader',
+    options: {
+      sourceMap: options.sourceMap
+    }
+  }
+
+  const postcssLoader = {
+    loader: 'postcss-loader',
+    options: {
+      sourceMap: options.sourceMap
+    }
+  }
+
+  // generate loader string to be used with extract text plugin
+  function generateLoaders (loader, loaderOptions) {
+    const loaders = options.usePostCSS ? [cssLoader, postcssLoader] : [cssLoader]
+
+    if (loader) {
+      loaders.push({
+        loader: loader + '-loader',
+        options: Object.assign({}, loaderOptions, {
+          sourceMap: options.sourceMap
+        })
+      })
+    }
+
+    // Extract CSS when that option is specified
+    // (which is the case during production build)
+    if (options.extract) {
+      return ExtractTextPlugin.extract({
+        use: loaders,
+        fallback: 'vue-style-loader',
+        publicPath: "../../",    
+      })
+    } else {
+      return ['vue-style-loader'].concat(loaders)
+    }
+  }
+
+  // https://vue-loader.vuejs.org/en/configurations/extract-css.html
+  return {
+    css: generateLoaders(),
+    postcss: generateLoaders(),
+    less: generateLoaders('less'),
+    sass: generateLoaders('sass', { indentedSyntax: true }),
+    scss: generateLoaders('sass'),
+    stylus: generateLoaders('stylus'),
+    styl: generateLoaders('stylus')
+  }
+}
+
+// Generate loaders for standalone style files (outside of .vue)
+exports.styleLoaders = function (options) {
+  const output = []
+  const loaders = exports.cssLoaders(options)
+
+  for (const extension in loaders) {
+    const loader = loaders[extension]
+    output.push({
+      test: new RegExp('\\.' + extension + '$'),
+      use: loader
+    })
+  }
+
+  return output
+}
+
+exports.createNotifierCallback = () => {
+  const notifier = require('node-notifier')
+
+  return (severity, errors) => {
+    if (severity !== 'error') return
+
+    const error = errors[0]
+    const filename = error.file && error.file.split('!').pop()
+
+    notifier.notify({
+      title: packageConfig.name,
+      message: severity + ': ' + error.name,
+      subtitle: filename || '',
+      icon: path.join(__dirname, 'logo.png')
+    })
+  }
+}

+ 22 - 0
build/vue-loader.conf.js

@@ -0,0 +1,22 @@
+'use strict'
+const utils = require('./utils')
+const config = require('../config')
+const isProduction = process.env.NODE_ENV === 'production'
+const sourceMapEnabled = isProduction
+  ? config.build.productionSourceMap
+  : config.dev.cssSourceMap
+
+module.exports = {
+  loaders: utils.cssLoaders({
+    sourceMap: sourceMapEnabled,
+    extract: isProduction
+  }),
+  cssSourceMap: sourceMapEnabled,
+  cacheBusting: config.dev.cacheBusting,
+  transformToRequire: {
+    video: ['src', 'poster'],
+    source: 'src',
+    img: 'src',
+    image: 'xlink:href'
+  }
+}

+ 99 - 0
build/webpack.base.conf.js

@@ -0,0 +1,99 @@
+'use strict'
+const path = require('path')
+const utils = require('./utils')
+const config = require('../config')
+const vueLoaderConfig = require('./vue-loader.conf')
+const vuxLoader = require('vux-loader')
+
+function resolve (dir) {
+  return path.join(__dirname, '..', dir)
+}
+
+
+const webpackConfig = {
+  context: path.resolve(__dirname, '../'),
+  entry: {
+    app: ['babel-polyfill', './src/main.js']
+  },
+  output: {
+    path: config.build.assetsRoot,
+    filename: '[name].js',
+    publicPath: process.env.NODE_ENV === 'production'
+      ? config.build.assetsPublicPath
+      : config.dev.assetsPublicPath
+  },
+  externals: {
+    'vue': 'Vue',
+    'vue-router': 'VueRouter',
+    'jquery': 'jQuery',
+    'Sortable': 'Sortable',
+    "jointjs": 'jointjs',
+    "moment": "moment",
+    "lodash": "_"
+  },
+  resolve: {
+    extensions: ['.js', '.vue', '.json'],
+    alias: {
+      'vue$': 'vue/dist/vue.esm.js',
+      '@': resolve('src'),
+      'common': resolve('src/common'),
+      'components': resolve('src/components'),
+      'public': resolve('src/public')
+    }
+  },
+  module: {
+    rules: [
+      {
+        test: /\.vue$/,
+        loader: 'vue-loader',
+        options: vueLoaderConfig
+      },
+      {
+        test: /\.js$/,
+        loader: 'babel-loader',
+        include: [resolve('src'), resolve('test'), resolve('node_modules/webpack-dev-server/client')]
+      },
+      {
+        test: /\.(png|jpe?g|gif|svg)(\?.*)?$/,
+        loader: 'url-loader',
+        options: {
+          limit: 10000,
+          name: utils.assetsPath('img/[name].[hash:7].[ext]')
+        }
+      },
+      {
+        test: /\.(mp4|webm|ogg|mp3|wav|flac|aac)(\?.*)?$/,
+        loader: 'url-loader',
+        options: {
+          limit: 10000,
+          name: utils.assetsPath('media/[name].[hash:7].[ext]')
+        }
+      },
+      {
+        test: /\.(woff2?|eot|ttf|otf)(\?.*)?$/,
+        loader: 'url-loader',
+        options: {
+          limit: 10000,
+          name: utils.assetsPath('fonts/[name].[hash:7].[ext]')
+        }
+      }
+    ]
+  },
+  node: {
+    // prevent webpack from injecting useless setImmediate polyfill because Vue
+    // source contains it (although only uses it if it's native).
+    setImmediate: false,
+    // prevent webpack from injecting mocks to Node native modules
+    // that does not make sense for the client
+    dgram: 'empty',
+    fs: 'empty',
+    net: 'empty',
+    tls: 'empty',
+    child_process: 'empty'
+  }
+}
+
+module.exports = vuxLoader.merge(webpackConfig, {
+  plugins: ['vux-ui', 'duplicate-style']
+
+})

+ 103 - 0
build/webpack.dev.conf.js

@@ -0,0 +1,103 @@
+'use strict'
+const utils = require('./utils')
+const webpack = require('webpack')
+const config = require('../config')
+const merge = require('webpack-merge')
+const path = require('path')
+const baseWebpackConfig = require('./webpack.base.conf')
+const CopyWebpackPlugin = require('copy-webpack-plugin')
+const HtmlWebpackPlugin = require('html-webpack-plugin')
+const FriendlyErrorsPlugin = require('friendly-errors-webpack-plugin')
+const portfinder = require('portfinder')
+
+const HOST = process.env.HOST
+const PORT = process.env.PORT && Number(process.env.PORT)
+
+const devWebpackConfig = merge(baseWebpackConfig, {
+  module: {
+    rules: utils.styleLoaders({ sourceMap: config.dev.cssSourceMap, usePostCSS: true })
+  },
+  // cheap-module-eval-source-map is faster for development
+  devtool: config.dev.devtool,
+
+  // these devServer options should be customized in /config/index.js
+  devServer: {
+    clientLogLevel: 'warning',
+    historyApiFallback: {
+      rewrites: [
+        { from: /.*/, to: path.posix.join(config.dev.assetsPublicPath, 'index.html') },
+      ],
+    },
+    hot: true,
+    contentBase: false, // since we use CopyWebpackPlugin.
+    compress: true,
+    host: HOST || config.dev.host,
+    port: PORT || config.dev.port,
+    open: config.dev.autoOpenBrowser,
+    overlay: config.dev.errorOverlay
+      ? { warnings: false, errors: true }
+      : false,
+    publicPath: config.dev.assetsPublicPath,
+    proxy: config.dev.proxyTable,
+    quiet: true, // necessary for FriendlyErrorsPlugin
+    watchOptions: {
+      poll: config.dev.poll,
+    }
+  },
+  plugins: [
+    new webpack.DefinePlugin({
+      'process.env': require('../config/dev.env')
+    }),
+    new webpack.HotModuleReplacementPlugin(),
+    new webpack.NamedModulesPlugin(), // HMR shows correct file names in console on update.
+    new webpack.NoEmitOnErrorsPlugin(),
+    // https://github.com/ampedandwired/html-webpack-plugin
+    new HtmlWebpackPlugin({
+      filename: 'index.html',
+      template: 'index.html',
+      inject: true
+    }),
+    // copy custom static assets
+    new CopyWebpackPlugin([
+      {
+        from: path.resolve(__dirname, '../static'),
+        to: config.dev.assetsSubDirectory,
+        ignore: ['.*']
+      }
+    ]),
+
+    // 引入layer 需要jQuery 前置
+    new webpack.ProvidePlugin({
+      $: 'jquery',
+      jQuery: 'jquery',
+      'window.jQuery': 'jquery'
+    }),
+  ]
+})
+
+
+module.exports = new Promise((resolve, reject) => {
+  portfinder.basePort = process.env.PORT || config.dev.port
+  portfinder.getPort((err, port) => {
+    if (err) {
+      reject(err)
+    } else {
+      // publish the new Port, necessary for e2e tests
+      process.env.PORT = port
+      // add port to devServer config
+      devWebpackConfig.devServer.port = port
+
+      // Add FriendlyErrorsPlugin
+      devWebpackConfig.plugins.push(new FriendlyErrorsPlugin({
+        compilationSuccessInfo: {
+          messages: [`Your application is running here: http://${devWebpackConfig.devServer.host}:${port}`],
+        },
+        onErrors: config.dev.notifyOnErrors
+        ? utils.createNotifierCallback()
+        : undefined
+      }))
+
+      resolve(devWebpackConfig)
+    }
+  })
+})

+ 155 - 0
build/webpack.prod.conf.js

@@ -0,0 +1,155 @@
+'use strict'
+const path = require('path')
+const utils = require('./utils')
+const webpack = require('webpack')
+const config = require('../config')
+const merge = require('webpack-merge')
+const baseWebpackConfig = require('./webpack.base.conf')
+const CopyWebpackPlugin = require('copy-webpack-plugin')
+const HtmlWebpackPlugin = require('html-webpack-plugin')
+const ExtractTextPlugin = require('extract-text-webpack-plugin')
+const OptimizeCSSPlugin = require('optimize-css-assets-webpack-plugin')
+const UglifyJsPlugin = require('uglifyjs-webpack-plugin')
+
+const env = require('../config/prod.env')
+
+const webpackConfig = merge(baseWebpackConfig, {
+  module: {
+    rules: utils.styleLoaders({
+      sourceMap: config.build.productionSourceMap,
+      extract: true,
+      usePostCSS: true
+    })
+  },
+  devtool: config.build.productionSourceMap ? config.build.devtool : false,
+  output: {
+    path: config.build.assetsRoot,
+    filename: utils.assetsPath('js/[name].[chunkhash].js'),
+    chunkFilename: utils.assetsPath('js/[id].[chunkhash].js')
+  },
+  plugins: [
+    // http://vuejs.github.io/vue-loader/en/workflow/production.html
+    // new webpack.DefinePlugin({
+    //   'process.env': env
+    // }),
+    new webpack.DefinePlugin({
+      'process.env': env[process.env.env_config]
+    }),
+    new UglifyJsPlugin({
+      uglifyOptions: {
+        compress: {
+          warnings: false
+        }
+      },
+      sourceMap: config.build.productionSourceMap,
+      parallel: true
+    }),
+    // extract css into its own file
+    new ExtractTextPlugin({
+      filename: utils.assetsPath('css/[name].[contenthash].css'),
+      // Setting the following option to `false` will not extract CSS from codesplit chunks.
+      // Their CSS will instead be inserted dynamically with style-loader when the codesplit chunk has been loaded by webpack.
+      // It's currently set to `true` because we are seeing that sourcemaps are included in the codesplit bundle as well when it's `false`,
+      // increasing file size: https://github.com/vuejs-templates/webpack/issues/1110
+      allChunks: true,
+    }),
+    // Compress extracted CSS. We are using this plugin so that possible
+    // duplicated CSS from different components can be deduped.
+    new OptimizeCSSPlugin({
+      cssProcessorOptions: config.build.productionSourceMap
+        ? { safe: true, map: { inline: false } }
+        : { safe: true }
+    }),
+    // generate dist index.html with correct asset hash for caching.
+    // you can customize output by editing /index.html
+    // see https://github.com/ampedandwired/html-webpack-plugin
+    new HtmlWebpackPlugin({
+      filename: config.build.index,
+      template: 'index.html',
+      inject: true,
+      minify: {
+        removeComments: true,
+        collapseWhitespace: true,
+        removeAttributeQuotes: true
+        // more options:
+        // https://github.com/kangax/html-minifier#options-quick-reference
+      },
+      // necessary to consistently work with multiple chunks via CommonsChunkPlugin
+      chunksSortMode: 'dependency'
+    }),
+    // keep module.id stable when vendor modules does not change
+    new webpack.HashedModuleIdsPlugin(),
+    // enable scope hoisting
+    new webpack.optimize.ModuleConcatenationPlugin(),
+    // split vendor js into its own file
+    new webpack.optimize.CommonsChunkPlugin({
+      name: 'vendor',
+      minChunks (module) {
+        // any required modules inside node_modules are extracted to vendor
+        return (
+          module.resource &&
+          /\.js$/.test(module.resource) &&
+          module.resource.indexOf(
+            path.join(__dirname, '../node_modules')
+          ) === 0
+        )
+      }
+    }),
+    // extract webpack runtime and module manifest to its own file in order to
+    // prevent vendor hash from being updated whenever app bundle is updated
+    new webpack.optimize.CommonsChunkPlugin({
+      name: 'manifest',
+      minChunks: Infinity
+    }),
+    // This instance extracts shared chunks from code splitted chunks and bundles them
+    // in a separate chunk, similar to the vendor chunk
+    // see: https://webpack.js.org/plugins/commons-chunk-plugin/#extra-async-commons-chunk
+    new webpack.optimize.CommonsChunkPlugin({
+      name: 'app',
+      async: 'vendor-async',
+      children: true,
+      minChunks: 3
+    }),
+
+    // copy custom static assets
+    new CopyWebpackPlugin([
+      {
+        from: path.resolve(__dirname, '../static'),
+        to: config.build.assetsSubDirectory,
+        ignore: ['.*']
+      }
+    ]),
+    // 引入layer 需要jQuery 前置
+    // new webpack.ProvidePlugin({
+    //   $: 'jquery',
+    //   jQuery: 'jquery',
+    //   'window.jQuery': 'jquery'
+    // }),
+  ]
+})
+
+if (config.build.productionGzip) {
+  const CompressionWebpackPlugin = require('compression-webpack-plugin')
+
+  webpackConfig.plugins.push(
+    new CompressionWebpackPlugin({
+      asset: '[path].gz[query]',
+      algorithm: 'gzip',
+      test: new RegExp(
+        '\\.(' +
+        config.build.productionGzipExtensions.join('|') +
+        ')$'
+      ),
+      threshold: 10240,
+      minRatio: 0.8
+    })
+  )
+}
+
+if (config.build.bundleAnalyzerReport) {
+  const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin
+  webpackConfig.plugins.push(new BundleAnalyzerPlugin())
+}
+
+module.exports = webpackConfig
+

+ 79 - 0
config/index.js

@@ -0,0 +1,79 @@
+'use strict'
+// Template version: 1.3.1
+// see http://vuejs-templates.github.io/webpack for documentation.
+
+const path = require('path')
+
+module.exports = {
+  dev: {
+    // Paths
+    assetsSubDirectory: 'static',
+    assetsPublicPath: '/',
+    // Various Dev Server settings
+    host: 'localhost', // can be overwritten by process.env.HOST/*  */
+    // host: '192.168.1.109',
+    port: 8080, // can be overwritten by process.env.PORT, if port is in use, a free one wil      l be determined
+    autoOpenBrowser: true,
+    errorOverlay: true,
+    notifyOnErrors: true,
+    proxyTable: {
+      '/api': {
+        // target: 'http://192.168.101.105:8080',
+        // target: 'http://127.174.238.32:8087', //测试环境
+        // target: 'http://10.92.181.59:8000',//河南环境
+        // target: 'http://10.92.181.59:8000',//河南测试环境
+        //target: 'http://10.87.44.69:29091/ease-flow-console-v2/flowapi',
+        // target: 'http://127.0.0.1:8080/ease-flow-console-v2/flowapi',
+        target: 'http://192.168.50.3:12128',
+        //target: 'http://127.174.228.181:7011',
+        changeOrigin: true,
+        pathRewrite: { '^/api': '/' }
+      }
+    },
+    poll: false, // https://webpack.js.org/configuration/dev-server/#devserver-watchoptions-
+    /**
+     * Source Maps
+     */
+
+    // https://webpack.js.org/configuration/devtool/#development
+    devtool: 'cheap-module-eval-source-map',
+    // If you have problems debugging vue-files in devtools,
+    // set this to false - it *may* help
+    // https://vue-loader.vuejs.org/en/options.html#cachebusting
+    cacheBusting: true,
+    cssSourceMap: true
+  },
+
+  build: {
+    // Template for index.html
+    index: path.resolve(__dirname, '../dist/index.html'),
+
+    // Paths
+    assetsRoot: path.resolve(__dirname, '../dist'),
+    assetsSubDirectory: 'static',
+    assetsPublicPath: './',
+
+    /**
+     * Source Maps
+     */
+
+    productionSourceMap: false,
+    // https://webpack.js.org/configuration/devtool/#production
+    devtool: '#source-map',
+
+    // Gzip off by default as many popular static hosts such as
+    // Surge or Netlify already gzip all static assets for you.
+    // Before setting to `true`, make sure to:
+    // npm install --save-dev compression-webpack-plugin
+    productionGzip: true,
+    productionGzipExtensions: ['js', 'css'],
+
+    // Run the build command with an extra argument to
+    // View the bundle analyzer report after build finishes:
+    // `npm run build --report`
+    // Set to `true` or `false` to always turn it on or off
+    bundleAnalyzerReport: process.env.npm_config_report
+  }
+}
+
+

+ 8 - 0
debug.log

@@ -0,0 +1,8 @@
+[0803/095034.036:ERROR:directory_reader_win.cc(43)] FindFirstFile: 系统找不到指定的路径。 (0x3)
+[0805/094937.408:ERROR:directory_reader_win.cc(43)] FindFirstFile: 系统找不到指定的路径。 (0x3)
+[0810/100841.850:ERROR:directory_reader_win.cc(43)] FindFirstFile: 系统找不到指定的路径。 (0x3)
+[0813/101202.801:ERROR:directory_reader_win.cc(43)] FindFirstFile: 系统找不到指定的路径。 (0x3)
+[0828/164817.166:ERROR:directory_reader_win.cc(43)] FindFirstFile: 系统找不到指定的路径。 (0x3)
+[0828/170941.478:ERROR:directory_reader_win.cc(43)] FindFirstFile: 系统找不到指定的路径。 (0x3)
+[0901/190613.068:ERROR:directory_reader_win.cc(43)] FindFirstFile: 系统找不到指定的路径。 (0x3)
+[0908/093016.231:ERROR:directory_reader_win.cc(43)] FindFirstFile: 系统找不到指定的路径。 (0x3)

+ 0 - 53
doc/acl_tousu前后端接口.md

@@ -1,53 +0,0 @@
-# acl_tousu 前后端接口
-
-## 鉴权接口
-
-token 和 fromSystem参数从url获取
-
-system 固定为 acl_user
-
-```http
-POST http://133.96.94.176:12128/api/verification
-Content-Type: application/json
-
-{
-  "token": "test_token_abc",
-  "fromSystem": "test",
-  "system": "acl_user"
-}
-```
-
-```json
-{
-  "success": true,
-  "code": 1,
-  "message": "成功",
-  "data": {
-    "loginName": "test_hebei",
-    "userName": "测试用户_全省",
-    "belongCity": {
-        "cityId": -1,
-        "cityNameZh": "河北省",
-        "cityNameEn": "hebei",
-        "ord": 1,
-        "province": "河北省"
-    },
-    "roles": [
-      {
-        "roleId": 19,
-        "roleName": "用户权限管理",
-        "cities": [
-            {
-                "cityId": -1,
-                "cityNameZh": "河北省",
-                "cityNameEn": "hebei",
-                "ord": 1,
-                "province": "河北省"
-            }
-            
-        ] 
-      }
-    ]
-  }
-}
-```

+ 38 - 0
index.html

@@ -0,0 +1,38 @@
+<!DOCTYPE html>
+<html>
+
+<head>
+  <meta charset="utf-8" />
+  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
+  <meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0;" name="viewport" />
+  <meta name="format-detection" content="telephone=yes" />
+  <link rel="stylesheet" href="./static/css/reset.css" />
+  <link rel="stylesheet" href="./static/css/changeElement.css" />
+  <link rel="stylesheet" href="./static/lib/theme-chalk/index.css" />
+  <link rel="stylesheet" href="./static/joint/joint.min.css" />
+  <link rel="stylesheet" href="./static/css/layer.css">
+  <script src="./static/js/initialize.js"></script>
+  <!-- <script src="https://cdn.bootcss.com/vConsole/3.2.2/vconsole.min.js"></script>
+  <script>
+    var vConsole = new VConsole();
+  </script> -->
+  <title>在线协作</title>
+</head>
+
+<body>
+  <div id="app"></div>
+  <!-- <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script> -->
+  <script src="./static/js/vue.min.js"></script>
+  <script src="./static/js/vue-router.js"></script>
+  <script src="./static/js/vuex.js"></script>
+  <script src="./static/js/jquery.min.js"></script>
+  <script src="./static/js/lodash.js"></script>
+  <script src="./static/lib/index.js"></script>
+  <script async src="./static/joint/backbone.js"></script>
+  <script async src="./static/js/Sortable.min.js"></script>
+  <script async src="./static/joint/joint.min.js"></script>
+  <script async src="./static/layer/layer.js"></script>
+  <script async src='./static/js/echarts.min.js'></script>
+</body>
+
+</html>

+ 0 - 19
jsconfig.json

@@ -1,19 +0,0 @@
-{
-  "compilerOptions": {
-    "target": "es5",
-    "module": "esnext",
-    "baseUrl": "./",
-    "moduleResolution": "node",
-    "paths": {
-      "@/*": [
-        "src/*"
-      ]
-    },
-    "lib": [
-      "esnext",
-      "dom",
-      "dom.iterable",
-      "scripthost"
-    ]
-  }
-}

Diff do ficheiro suprimidas por serem muito extensas
+ 9738 - 14283
package-lock.json


+ 87 - 16
package.json

@@ -1,29 +1,100 @@
 {
-  "name": "vue3_demo",
-  "version": "0.1.0",
+  "name": "online",
+  "version": "1.0.0",
+  "description": "A Vue.js project",
+  "author": "pengze <234277894@qq.com>",
   "private": true,
   "scripts": {
-    "serve": "vue-cli-service serve",
-    "build": "vue-cli-service build"
+    "dev": "webpack-dev-server --inline --progress --config build/webpack.dev.conf.js",
+    "start": "npm run dev",
+    "build": "cross-env env_config=prod node build/build.js",
+    "build:zhejiang": "cross-env env_config=zhejiang node build/build.js",
+    "build:hebei": "cross-env env_config=hebei node build/build.js",
+    "build:pre": "cross-env env_config=pre node build/build.js",
+    "build:h5": "cross-env env_config=h5 node build/build.js",
+    "build:laomiu": "cross-env env_config=laomiu node build/build.js"
   },
   "dependencies": {
-    "axios": "^0.27.2",
-    "core-js": "^3.8.3",
-    "element-plus": "^2.2.10",
-    "vue": "^3.2.13",
-    "vue-router": "^4.0.3",
-    "vuex": "^4.0.0"
+    "axios": "^0.17.1",
+    "babel-runtime": "^6.26.0",
+    "clipboard": "^2.0.4",
+    "dayjs": "^1.8.15",
+    "echarts": "^4.8.0",
+    "el-cascader-multi": "^1.1.5",
+    "element-resize-detector": "^1.2.1",
+    "good-storage": "^1.0.1",
+    "js-base64": "^2.5.1",
+    "layui-layer": "^1.0.9",
+    "sass": "^1.56.1",
+    "sass-loader": "^7.1.0",
+    "scss": "^0.2.4",
+    "sortablejs": "^1.8.4",
+    "true-case-path": "^2.2.1",
+    "vant": "^2.10.3",
+    "vue": "^2.5.2",
+    "vue-router": "^3.0.1",
+    "vuex": "^3.0.1",
+    "vux": "^2.9.2"
   },
   "devDependencies": {
-    "@vue/cli-plugin-babel": "~5.0.0",
-    "@vue/cli-plugin-router": "~5.0.0",
-    "@vue/cli-plugin-vuex": "~5.0.0",
-    "@vue/cli-service": "~5.0.0"
+    "autoprefixer": "^7.1.2",
+    "babel-core": "^6.22.1",
+    "babel-helper-vue-jsx-merge-props": "^2.0.3",
+    "babel-loader": "^7.1.1",
+    "babel-plugin-component": "^1.1.1",
+    "babel-plugin-import": "^1.13.0",
+    "babel-plugin-jsx-v-model": "^2.0.3",
+    "babel-plugin-syntax-jsx": "^6.18.0",
+    "babel-plugin-transform-runtime": "^6.23.0",
+    "babel-plugin-transform-vue-jsx": "^3.5.0",
+    "babel-polyfill": "^6.26.0",
+    "babel-preset-env": "^1.3.2",
+    "babel-preset-stage-2": "^6.22.0",
+    "chalk": "^2.0.1",
+    "compression-webpack-plugin": "^1.1.12",
+    "copy-webpack-plugin": "^4.0.1",
+    "cross-env": "^6.0.3",
+    "css-loader": "^0.28.11",
+    "element-resize-detector": "^1.2.1",
+    "es7-babel-starter": "^1.1.1",
+    "extract-text-webpack-plugin": "^3.0.0",
+    "file-loader": "^1.1.4",
+    "file-saver": "^1.3.8",
+    "friendly-errors-webpack-plugin": "^1.6.1",
+    "html-webpack-plugin": "^2.30.1",
+    "less": "^2.7.3",
+    "less-loader": "^4.0.5",
+    "node-notifier": "^5.1.2",
+    "optimize-css-assets-webpack-plugin": "^3.2.0",
+    "ora": "^1.2.0",
+    "portfinder": "^1.0.13",
+    "postcss-import": "^11.0.0",
+    "postcss-loader": "^2.0.8",
+    "postcss-url": "^7.2.1",
+    "rimraf": "^2.6.0",
+    "script-loader": "0.7.2",
+    "semver": "^5.3.0",
+    "shelljs": "^0.7.6",
+    "uglifyjs-webpack-plugin": "^1.1.1",
+    "url-loader": "^0.5.8",
+    "vue-loader": "^13.3.0",
+    "vue-style-loader": "^3.1.2",
+    "vue-template-compiler": "^2.5.2",
+    "vux-loader": "^1.2.9",
+    "webpack": "^3.6.0",
+    "webpack-bundle-analyzer": "^2.9.0",
+    "webpack-dev-server": "^2.9.1",
+    "webpack-merge": "^4.1.0",
+    "xlsx": "^0.14.0",
+    "yaml-loader": "^0.5.0"
+  },
+  "engines": {
+    "node": ">= 6.0.0",
+    "npm": ">= 3.0.0"
   },
   "browserslist": [
     "> 1%",
     "last 2 versions",
-    "not dead",
-    "not ie 11"
+    "not ie <= 8"
   ]
 }

BIN
public/favicon.ico


+ 0 - 17
public/index.html

@@ -1,17 +0,0 @@
-<!DOCTYPE html>
-<html lang="">
-  <head>
-    <meta charset="utf-8">
-    <meta http-equiv="X-UA-Compatible" content="IE=edge">
-    <meta name="viewport" content="width=device-width,initial-scale=1.0">
-    <link rel="icon" href="<%= BASE_URL %>favicon.ico">
-    <title><%= htmlWebpackPlugin.options.title %></title>
-  </head>
-  <body>
-    <noscript>
-      <strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
-    </noscript>
-    <div id="app"></div>
-    <!-- built files will be auto injected -->
-  </body>
-</html>

+ 37 - 22
src/App.vue

@@ -1,37 +1,52 @@
 <template>
-  <page-header></page-header>
-  <router-view />
+  <div id="app" :class="{ h5: $store.state.isH5Milieu }">
+    <keep-alive>
+      <router-view v-if="$route.meta.keepAlive"></router-view>
+    </keep-alive>
+    <router-view v-if="!$route.meta.keepAlive"></router-view>
+  </div>
 </template>
 
 <script>
-import PageHeader from "@/components/PageHeader.vue";
+// import BREADCRUMB from "public/breadcrumb/breadcrumb";
+// import NAVIGATIONBARS from "public/navigationBars/navigationBars";
 export default {
+  name: "App",
   components: {
-    PageHeader,
-  },
-  setup() {},
+    // BREADCRUMB,
+    // NAVIGATIONBARS
+  }
 };
 </script>
 
-<style>
-#app {
-  font-family: Helvetica, Arial, sans-serif;
-  -webkit-font-smoothing: antialiased;
-  -moz-osx-font-smoothing: grayscale;
-  text-align: center;
-  color: #2c3e50;
-}
+<style lang="less">
+@import "./common/less/public.less";
 
-nav {
-  padding: 30px;
+html,
+body {
+  width: 100%;
+  height: 100%;
+  overflow: hidden;
+  margin: 0;
+  padding: 0;
 }
 
-nav a {
-  font-weight: bold;
-  color: #2c3e50;
+#app {
+  font-size: 14px;
+  width: 100%;
+  height: 100%;
+  box-sizing: border-box;
 }
-
-nav a.router-link-exact-active {
-  color: #42b983;
+/* 面包屑字体修改 */
+.header_container {
+  font-size: 14px;
+  padding-top: 36px;
+}
+.navWrapper {
+  position: absolute;
+  left: 0;
+  right: 0;
+  z-index: 1000;
+  overflow: hidden;
 }
 </style>

Diff do ficheiro suprimidas por serem muito extensas
+ 5 - 0
src/common/css/font.css


+ 1 - 0
src/common/css/h5style.css

@@ -0,0 +1 @@
+.el-tooltip__popper.is-dark{width:200px !important}

+ 1 - 0
src/common/css/public.css

@@ -0,0 +1 @@
+.fr{float:right}html{font-size:100px}.c333{color:#333}.c666{color:#666}.c444{color:#444}.ml20{margin-left:.2rem}.fs42{font-size:.42rem}.allcover{position:fixed;top:0;right:0;bottom:0;left:0}.ctt{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.tb{position:absolute;top:50%;transform:translateY(-50%)}.lr{position:absolute;left:50%;transform:translateX(-50%)}body,html{font-family:"Microsoft YaHei",Arial,Helvetica,sans-serif,"\5B8B\4F53";background-color:white;font-size:12px;color:#333}.price:before{content:"¥"}[v-cloak]{display:none}.ml10{margin-left:10px}.ml30{margin-left:30px}.ml50{margin-left:50px}.mr18{margin-right:18px}.ml16{margin-left:16px}.mt10{margin-top:10px}.pt10{padding-top:10px}.pl10{padding-left:10px}.border-color{color:#e4e4e4}i{font-style:normal}

+ 1 - 0
src/common/filters/index.js

@@ -0,0 +1 @@
+// 我是全局filter

+ 111 - 0
src/common/js/api.js

@@ -0,0 +1,111 @@
+// 我是接口方法 js
+import axios from 'axios'
+import QS from 'qs'
+
+// 常用接口常量
+
+export const URL_ADD = process.env.API_ROOT
+
+export const UPLOAD_URL = 'http://10.174.240.17:9082'
+
+export const WINDOW_ADD = '/ease-flow-console-v2'
+
+export const ERR_OK = '1' //成功
+
+export const VALIDATE_ERROR = '-2'  //工单校验失败
+
+export const ORDER_REPEAT = '1007' //工单重复
+
+export const USER_NO_JURISDICTION = '1006' //用户无权限
+
+export const KMFQ_USER = '878' //昆明发起
+
+export const KMSH_USER = '879' //昆明审核/879
+
+export const YNSH_USER = '881' //云南审核/881
+
+export const KETJ_USER = '986' //可研提交
+
+export const KYSH_USER = '2261' //可研审核
+
+export const JZFX_KMDS = '4548' //集中分析 昆明地市
+
+/* 在线协作中的状态码 */
+export const STATUE_CODE_UNCOMMIT = 0 //状态码未提交
+
+export const JZGH_CODE = '03' //集中规划的编码
+
+export const JZGH_SUB_KY = '02' //集中规划子阶段编码   可研
+
+export const JZGH_SUB_SJ = '03'
+
+export const JZGH_SUB_BG = '04'
+
+export const JZGH_SUB_KR = '05'
+
+export const CHECK_FOUR_STAGES = [JZGH_SUB_SJ, JZGH_SUB_BG, JZGH_SUB_KR]
+
+export const JZGH_XQBG_NODEID = 'jt0613fd4dbce3402ca0905a28ec4fae0e' //需求变更选择需求点时的节点id
+
+export const MEDICAL_RECORD_LIBRARY_NODEID =
+  'jtef8bb9f175864a7b876e4bb2fed444e8' //病历库按钮显示的节点id
+
+export const CALL_OTHER_ORDER = [
+  'jta629bfe696b646d2a45fbec10e0f993f',
+  'jtc90bf4367b614082bc38ef1e3d0e6433',
+  'jt4c010e659af14afb863e1d6b80e3d81c',
+  'jt7b81d34e110e450a9eb4ff56a045413a'
+] //调用其他工单
+
+export const QUALITY_CHECKING = 'jtff26036ac4604d7f90c94cbf2245fc34' //质检组节点id 自动质检
+
+export const JZGH_BG_FIELDS = [
+  'demcha_dem_name',
+  'demcha_order_code',
+  'demcha_dem_id'
+] //变更回填字段
+
+// 数据字典表中的常量
+export const ORDER_TYPE = 'order_type'
+
+export const ORDER_STATUS = 'order_status'
+
+export const OREDER_SUB_TYPE = 'order_sub_type'
+
+export const OREDER_STATE = 'order_state'
+
+
+// get
+export const _get = req => {
+  return axios.get(req.url, {
+    //批量操作中  是单写的 ajax  也需要加X-Authorization-Key
+    params: req.data
+  })
+}
+
+// post
+export const _post = req => {
+  return axios({
+    method: 'post',
+    url: `${req.url}`,
+    data: QS.stringify(req.data)
+  })
+}
+
+export const ajax = function (url = '', data = {}, type = 'GET') {
+  url = URL_ADD + url
+  if (type == 'GET') {
+    return axios.get(url, {
+      params: data,
+    })
+  } else {
+    return axios({
+      method: 'post',
+      url: url,
+      data: data,
+    })
+  }
+}
+
+
+

+ 159 - 0
src/common/js/home.js

@@ -0,0 +1,159 @@
+import request from '../../utils/request'
+//获取权限信息
+export function getVerification(data) {
+  return request({
+    url: '/api/verification',
+    method: 'post',
+    data: data
+  })
+}
+// 系统列表
+export function getSystemList(data) {
+  return request({
+    url: '/api/web/system/list',
+    method: 'post',
+    data: data
+  })
+}
+// 角色列表
+export function getRoleList(data) {
+  return request({
+    url: '/api/web/role/list',
+    method: 'post',
+    data: data
+  })
+}
+// 模板列表
+export function getFunctionList(data) {
+  return request({
+    url: '/api/web/function/list',
+    method: 'post',
+    data: data
+  })
+}
+// 模板添加
+export function getFunctionAdd(data) {
+  return request({
+    url: '/api/web/function/add',
+    method: 'post',
+    data: data
+  })
+}
+// 模板修改
+export function getFunctionUpdate(data) {
+  return request({
+    url: '/api/web/function/update',
+    method: 'post',
+    data: data
+  })
+}
+// 模板删除
+export function getFunctionDel(data) {
+  return request({
+    url: '/api/web/function/del',
+    method: 'post',
+    data: data
+  })
+}
+
+// 用户管理模块接口
+// 查询top用户信息接口
+export function getTopUserByLoginName(data) {
+  return request({
+    url: '/api/web/user/getTopUserByLoginName',
+    method: 'post',
+    data: data
+  })
+}
+// 查询所有权限列表接口
+export function getroleAll(data) {
+  return request({
+    url: '/api/web/role/all',
+    method: 'post',
+    data: data
+  })
+}
+// 查询地市和区县树形接口(用户列表地区选择框)
+export function getCityAreaList(data) {
+  return request({
+    url: '/api/web/area/cityArea',
+    method: 'post',
+    data: data
+  })
+}
+// 查询用户权限接口
+export function getRoleByLoginName(data) {
+  return request({
+    url: '/api/web/user/getRoleByLoginName',
+    method: 'post',
+    data: data
+  })
+}
+// 查询用户列表接口
+export function getUserList(data) {
+  return request({
+    url: '/api/web/user/list',
+    method: 'post',
+    data: data
+  })
+}
+// 添加用户接口
+export function getUserAdd(data) {
+  return request({
+    url: '/api/web/user/add',
+    method: 'post',
+    data: data
+  })
+}
+// 修改用户接口
+export function getUserUpdate(data) {
+  return request({
+    url: '/api/web/user/update',
+    method: 'post',
+    data: data
+  })
+}
+// 删除用户接口
+export function getUserDel(data) {
+  return request({
+    url: '/api/web/user/del',
+    method: 'post',
+    data: data
+  })
+}
+// 查询用户详情接口
+export function getUserDetail(data) {
+  return request({
+    url: '/api/web/user/detail',
+    method: 'post',
+    data: data
+  })
+}
+// 批量复制权限接口
+export function getRoleCopy(data) {
+  return request({
+    url: '/api/web/role/copy',
+    method: 'post',
+    data: data
+  })
+}
+
+
+
+// 操作日志
+export function getOperationLogList(data) {
+  return request({
+    url: '/api/web/log/operationLog',
+    method: 'post',
+    data: data
+  })
+}
+// 登录日志
+export function getVerificationLogList(data) {
+  return request({
+    url: '/api/web/log/verificationLog',
+    method: 'post',
+    data: data
+  })
+}
+

+ 398 - 0
src/common/js/methods.js

@@ -0,0 +1,398 @@
+
+import * as API from "@/common/js/api";
+import axios from 'axios'
+import state from '@/store/state'
+//获取url上面的地址
+export function getUrl () {
+  var url = window.location.href;
+  console.log(url);
+  url = url.split('#/')[1]
+  var strs = "";
+  var therequest = new Object();
+  if (url.indexOf("?") != -1) {
+    url = url.split("?")[1];
+    strs = url.split("&");
+    for (var i = 0; i < strs.length; i++) {
+      therequest[strs[i].split("=")[0]] = decodeURI(strs[i].split("=")[1]);
+    }
+  }
+  console.log(therequest);
+  return therequest
+};
+
+//下载文件
+export function downloadFile (url) {
+  try {
+    var elemIF = document.createElement("iframe");
+    elemIF.src = url;
+    elemIF.style.display = "none";
+    document.body.appendChild(elemIF);
+  } catch (e) {
+
+  }
+}
+
+export function funDownload (content, filename) {
+  // 创建隐藏的可下载链接
+  var eleLink = document.createElement('a');
+  eleLink.download = filename;
+  eleLink.style.display = 'none';
+  // 字符内容转变成blob地址
+  var blob = new Blob([content]);
+  eleLink.href = URL.createObjectURL(blob);
+  // 触发点击
+  document.body.appendChild(eleLink);
+  eleLink.click();
+  // 然后移除
+  document.body.removeChild(eleLink);
+};
+
+export function fileDownload (url, fileName, binaryStream) {
+  //兼容ie10+ firefox chrome
+  if (window.navigator.msSaveOrOpenBlob) {
+    try {
+      window.navigator.msSaveOrOpenBlob(new Blob([binaryStream]), fileName)
+    } catch (e) {
+      console.log(e)
+    }
+  } else {
+    const a = document.createElement('a')
+    document.body.appendChild(a)
+    a.href = url
+    a.download = fileName
+    a.click()
+    document.body.removeChild(a)
+  }
+}
+
+//获取当前是第几周
+// let date = new Date()  // date.setDate(date.getDate()-7);//设置天数 -1 天
+export function getWeekOfYear (obj) {
+  var today = obj || new Date();
+  var firstDay = new Date(today.getFullYear(), 0, 1);
+  var dayOfWeek = firstDay.getDay();
+  var spendDay = 1;
+  if (dayOfWeek != 0) {
+    spendDay = 7 - dayOfWeek + 1;
+  }
+  firstDay = new Date(today.getFullYear(), 0, 1 + spendDay);
+  var d = Math.ceil((today.valueOf() - firstDay.valueOf()) / 86400000);
+  var result = Math.ceil(d / 7);
+  return result + 1;
+};
+
+//数组内对象排序
+export function arrSort (parameter, sort) {
+  let dataArray = [];
+  let arr = parameter.sort(compare(sort));
+  function compare (property) {
+    return function (a, b) {
+      var value1 = a[property];
+      var value2 = b[property];
+      return value1 - value2;
+    }
+  }
+  arr.forEach(item => {
+    let obj = {};
+    obj.name = item.name;
+    obj.id = item.id;
+    dataArray.push(obj)
+  })
+  return dataArray
+}
+
+/*
+*上传文件公共方法
+*options:{
+*   vm:this,vue实例对象
+*   file:file,
+*   type:[],限制文件类型
+*   size:2,限制文件大小:2M
+*   typeErrMsg:'上传附件类型为:excel', 文件类型错误信息
+*   sizeErrMsg:'上传附件大小不能超过2M!',文件大小错误信息
+*}
+*/
+export function avatarUpload (options) {
+  let fileSuffix = options.file.name.substring(options.file.name.lastIndexOf('.') + 1).toLowerCase()
+  const fileType = options.type
+  let isInArray = fileType.includes(fileSuffix)
+  let isLt2M = (options.file.size / 1024 / 1024) < options.size
+
+  if (!isInArray) {
+    options.vm.$message.warning(options.typeErrMsg)
+  }
+  if (!isLt2M) {
+    options.vm.$message.warning(options.sizeErrMsg)
+  }
+  return isInArray && isLt2M
+}
+
+export function isNull (value) {
+  if (value === undefined || value == 'undefined' || value == null) {
+    return ''
+  } else {
+    return value
+  }
+}
+
+export function fileIsImage (fileName) {
+  let fileSuffix = fileName.substring(fileName.lastIndexOf('.') + 1).toLowerCase()
+  let isImage = ['jpeg', 'jpg', 'png'].includes(fileSuffix)
+  return isImage
+}
+
+export function imageRemoveSuffix (imageName) {
+  return imageName.substring(0, imageName.lastIndexOf('.'))
+}
+
+export function json2tree (list, id, pid) {
+  let result = [], temp = {}
+  for (let i = 0; i < list.length; i++) {
+    temp[list[i][id]] = list[i] //将nodes数组转成对象类型
+  }
+  for (let j = 0; j < list.length; j++) {
+    let tempVp = temp[list[j][pid]] //获取每一个子对象的父对象
+    if (tempVp) { //判断父对象是否存在,如果不存在直接将对象放到第一层
+      if (!tempVp['children']) tempVp['children'] = [] //如果父元素的nodes对象不存在,则创建数组
+      tempVp['children'].push(list[j]) //将本对象压入父对象的nodes数组
+    } else {
+      result.push(list[j]) //将不存在父对象的对象直接放入一级目录
+    }
+  }
+  return result
+}
+
+export function removeAaary (_arr, _obj) {
+  let length = _arr.length;
+  _obj.forEach(item => {
+    for (var i = 0; i < length; i++) {
+      try {
+        if (_arr[i].text == item) return _arr.splice(i, 1)
+      } catch (e) {
+        return _arr
+      }
+    }
+  })
+}
+
+export function copyData (data) {
+  return JSON.parse(JSON.stringify(data))
+}
+
+export function inArray (array, option) {
+  for (var i = 0, length = array.length; i < length; i++) {
+    if (option === array[i]) {
+      return true
+    }
+  }
+  return false
+}
+
+let timeout = null
+export function debounce (fn, wait = 200) {
+  if (timeout !== null) clearTimeout(timeout)
+  timeout = setTimeout(fn, wait)
+}
+
+export function underLineToCamelCaseOfString (string) {
+  return string.replace(/_([a-z])/g, (all, letter) => {
+    return letter.toUpperCase()
+  })
+}
+//获取最近3天日期
+export function defaultPostTime (val) {
+  return getDay(val);//当天日期
+  // getDay(0);//当天日期
+  // getDay(-3);//3天前日期
+  function getDay (day) {
+
+    var today = new Date();
+    var targetday_milliseconds = today.getTime() + 1000 * 60 * 60 * 24 * day;
+
+    today.setTime(targetday_milliseconds); //注意,这行是关键代码
+
+    var tYear = today.getFullYear();
+
+    var tMonth = today.getMonth();
+
+    var tDate = today.getDate();
+
+    tMonth = doHandleMonth(tMonth + 1);
+
+    tDate = doHandleMonth(tDate);
+    return tYear + "-" + tMonth + "-" + tDate;
+  }
+
+  function doHandleMonth (month) {
+    var m = month;
+    if (month.toString().length == 1) {
+      m = "0" + month;
+    }
+    return m;
+  }
+}
+
+export function dynamicAddScriptDom ({ id, js }) {
+  const script = document.createElement('script')
+  script.id = id
+  script.type = 'text/javascript'
+  script.innerHTML = js
+  document.getElementsByTagName('body')[0].appendChild(script)
+}
+
+export function dynamicAddStyleDom ({ id, css }) {
+  if (document.all) { // ie
+    window.style = css
+    document.createStyleSheet('javascript:style')
+  } else {
+    const style = document.createElement('style')
+    style.type = 'text/css'
+    style.id = id
+    style.innerHTML = css
+    document.getElementsByTagName('head')[0].appendChild(style)
+  }
+}
+
+export function getDynamicFormConfig (jsConfig) {
+  const config = { type: [], display: [], user: {} }
+  try {
+    Object.keys(config).forEach(option => {
+      const configKey = '_task_change_form_control_' + option + '_config'
+      const startOption = jsConfig.indexOf(configKey)
+      if (~startOption) {
+        // why use eval: 已知截取的是一个不标准的json(
+        // key 没有引号,value是单引号,甚至有注释等等,是一个js文件,可随意添加代码)
+        // 当然 也可以动态拼接生成的string 添加一个script标签
+        // 但是没必要 对于已知不标准的json数据来说 eval很合适 没必要嫌弃他 执行效率也不低
+
+        const jsonString = returnSymbolMatchToContent({
+          string: jsConfig.slice(startOption),
+          symbol: JSON.stringify(config[option]).charAt(0)
+        })
+        config[option] = eval('(' + jsonString + ')')
+      }
+    })
+  } catch (e) { }
+  return config
+}
+
+export function dynamicRemoveScriptDom (id) {
+  const script = document.getElementById(id)
+  script && script.parentNode.removeChild(script)
+}
+
+export function dynamicRemoveStyleDom (id) {
+  const style = document.querySelectorAll('style')
+  const currentIdDom = [...style].find(item => item.id == id)
+  currentIdDom && currentIdDom.remove()
+}
+
+export function getElementOffset ({ element, direction }) {
+  const dir = direction.charAt(0).toUpperCase() + direction.slice(1)
+  let offset = element['offset' + dir]
+  let parent = element.offsetParent
+  while (parent !== null) {
+    offset += parent['offset' + dir]
+    parent = parent.offsetParent
+  }
+  return offset
+}
+
+export function getCurrentStyle (node) {
+  return window.getComputedStyle ?
+    getComputedStyle(node, null) : node.currentStyle
+}
+
+export function returnSymbolMatchToContent ({
+  string,
+  symbol = '[',
+  includeSymbol = true }) {
+
+  const leftSymbol = ['(', '[', '{']
+  const rightSymbol = [')', ']', '}']
+  const symbolIndex = leftSymbol.indexOf(symbol)
+  // 先完成左映射 右映射可将字符串颠倒 相同符号更简单
+
+  if (~symbolIndex) {
+    const currentRight = rightSymbol[symbolIndex]
+
+    let symbolStack = []
+    let resultString = symbol
+
+    //剪切源字符  使第一个字符为左符号后第一位
+    let srouceString = string.slice(string.indexOf(symbol) + 1)
+    symbolStack.push(symbol)
+    for (let i = 0, len = srouceString.length; i < len; i++) {
+      if (symbolStack.length) {
+        if (srouceString[i] == symbol) {
+          symbolStack.push(srouceString[i])
+        } else if (srouceString[i] == currentRight) {
+          symbolStack.pop()
+        }
+        resultString += srouceString[i]
+      } else {
+        break
+      }
+    }
+    return includeSymbol ? resultString : resultString.slice(1, -1)
+  } else {
+    return string
+  }
+}
+
+export const mobileFilterAdd = url => {
+  if (isH5Milieu) {
+    let pattern = /((2(5[0-5]|[0-4]\d))|[0-1]?\d{1,2})(\.((2(5[0-5]|[0-4]\d))|[0-1]?\d{1,2})){3}:\d{0,4}/
+    let newAdd = '183.224.8.165:5081'
+    return url.replace(pattern, newAdd)
+  } else {
+    return url
+  }
+}
+export const utilUploadImageMultipart = (data, options) => {
+  const {
+    formMetaId,
+    processKey,
+    code,
+    id,
+    nodeId,
+  } = options
+  console.log(options)
+  if (!data.length) return ""
+  let files = Array.prototype.slice.call(data)
+  let formData = new FormData()
+  for (let file of data) {
+    formData.append("files", file.file);
+  }
+  formData.append("formMetaId", formMetaId);
+  formData.append("processKey", processKey);
+  formData.append("flowStage", code);
+  formData.append("formInsId", id);
+  formData.append("nodeId", nodeId);
+
+
+  return axios.post(API.URL_ADD + "/flow/attachment/upload", formData, {
+    timeout: 10 * 60 * 1000
+  }).then(res => {
+    console.log(res)
+    return true
+  }).catch(e => {
+    console.log(e)
+    return false
+  })
+
+}
+export const appDataBackfill = url => {
+  let filterUrl = ['http://10.174.240.17:8082']
+  let appUrl = 'http://183.224.8.165:5081'
+  let newUrl = url
+  if (state.isH5Milieu && newUrl.includes(filterUrl)) {
+    return newUrl.replace(filterUrl, appUrl)
+  } else {
+    return newUrl
+  }
+}
+
+
+
+

+ 393 - 0
src/common/js/public.js

@@ -0,0 +1,393 @@
+/**
+ * 表格时间格式化
+ */
+export function formatDate(cellValue) {
+  if (cellValue == null || cellValue == "") return "";
+  var date = new Date(cellValue) 
+  var year = date.getFullYear()
+  var month = date.getMonth() + 1 < 10 ? '0' + (date.getMonth() + 1) : date.getMonth() + 1
+  var day = date.getDate() < 10 ? '0' + date.getDate() : date.getDate() 
+  var hours = date.getHours() < 10 ? '0' + date.getHours() : date.getHours() 
+  var minutes = date.getMinutes() < 10 ? '0' + date.getMinutes() : date.getMinutes() 
+  var seconds = date.getSeconds() < 10 ? '0' + date.getSeconds() : date.getSeconds()
+  return year + '-' + month + '-' + day + ' ' + hours + ':' + minutes + ':' + seconds
+}
+
+/**
+ * @param {number} time
+ * @param {string} option
+ * @returns {string}
+ */
+export function formatTime(time, option) {
+  if (('' + time).length === 10) {
+    time = parseInt(time) * 1000
+  } else {
+    time = +time
+  }
+  const d = new Date(time)
+  const now = Date.now()
+
+  const diff = (now - d) / 1000
+
+  if (diff < 30) {
+    return '刚刚'
+  } else if (diff < 3600) {
+    // less 1 hour
+    return Math.ceil(diff / 60) + '分钟前'
+  } else if (diff < 3600 * 24) {
+    return Math.ceil(diff / 3600) + '小时前'
+  } else if (diff < 3600 * 24 * 2) {
+    return '1天前'
+  }
+  if (option) {
+    return parseTime(time, option)
+  } else {
+    return (
+      d.getMonth() +
+      1 +
+      '月' +
+      d.getDate() +
+      '日' +
+      d.getHours() +
+      '时' +
+      d.getMinutes() +
+      '分'
+    )
+  }
+}
+
+/**
+ * @param {string} url
+ * @returns {Object}
+ */
+export function getQueryObject(url) {
+  url = url == null ? window.location.href : url
+  const search = url.substring(url.lastIndexOf('?') + 1)
+  const obj = {}
+  const reg = /([^?&=]+)=([^?&=]*)/g
+  search.replace(reg, (rs, $1, $2) => {
+    const name = decodeURIComponent($1)
+    let val = decodeURIComponent($2)
+    val = String(val)
+    obj[name] = val
+    return rs
+  })
+  return obj
+}
+
+/**
+ * @param {string} input value
+ * @returns {number} output value
+ */
+export function byteLength(str) {
+  // returns the byte length of an utf8 string
+  let s = str.length
+  for (var i = str.length - 1; i >= 0; i--) {
+    const code = str.charCodeAt(i)
+    if (code > 0x7f && code <= 0x7ff) s++
+    else if (code > 0x7ff && code <= 0xffff) s += 2
+    if (code >= 0xDC00 && code <= 0xDFFF) i--
+  }
+  return s
+}
+
+/**
+ * @param {Array} actual
+ * @returns {Array}
+ */
+export function cleanArray(actual) {
+  const newArray = []
+  for (let i = 0; i < actual.length; i++) {
+    if (actual[i]) {
+      newArray.push(actual[i])
+    }
+  }
+  return newArray
+}
+
+/**
+ * @param {Object} json
+ * @returns {Array}
+ */
+export function param(json) {
+  if (!json) return ''
+  return cleanArray(
+    Object.keys(json).map(key => {
+      if (json[key] === undefined) return ''
+      return encodeURIComponent(key) + '=' + encodeURIComponent(json[key])
+    })
+  ).join('&')
+}
+
+/**
+ * @param {string} url
+ * @returns {Object}
+ */
+export function param2Obj(url) {
+  const search = url.split('?')[1]
+  if (!search) {
+    return {}
+  }
+  return JSON.parse(
+    '{"' +
+      decodeURIComponent(search)
+        .replace(/"/g, '\\"')
+        .replace(/&/g, '","')
+        .replace(/=/g, '":"')
+        .replace(/\+/g, ' ') +
+      '"}'
+  )
+}
+
+/**
+ * @param {string} val
+ * @returns {string}
+ */
+export function html2Text(val) {
+  const div = document.createElement('div')
+  div.innerHTML = val
+  return div.textContent || div.innerText
+}
+
+/**
+ * Merges two objects, giving the last one precedence
+ * @param {Object} target
+ * @param {(Object|Array)} source
+ * @returns {Object}
+ */
+export function objectMerge(target, source) {
+  if (typeof target !== 'object') {
+    target = {}
+  }
+  if (Array.isArray(source)) {
+    return source.slice()
+  }
+  Object.keys(source).forEach(property => {
+    const sourceProperty = source[property]
+    if (typeof sourceProperty === 'object') {
+      target[property] = objectMerge(target[property], sourceProperty)
+    } else {
+      target[property] = sourceProperty
+    }
+  })
+  return target
+}
+
+/**
+ * @param {HTMLElement} element
+ * @param {string} className
+ */
+export function toggleClass(element, className) {
+  if (!element || !className) {
+    return
+  }
+  let classString = element.className
+  const nameIndex = classString.indexOf(className)
+  if (nameIndex === -1) {
+    classString += '' + className
+  } else {
+    classString =
+      classString.substr(0, nameIndex) +
+      classString.substr(nameIndex + className.length)
+  }
+  element.className = classString
+}
+
+/**
+ * @param {string} type
+ * @returns {Date}
+ */
+export function getTime(type) {
+  if (type === 'start') {
+    return new Date().getTime() - 3600 * 1000 * 24 * 90
+  } else {
+    return new Date(new Date().toDateString())
+  }
+}
+
+/**
+ * @param {Function} func
+ * @param {number} wait
+ * @param {boolean} immediate
+ * @return {*}
+ */
+export function debounce(func, wait, immediate) {
+  let timeout, args, context, timestamp, result
+
+  const later = function() {
+    // 据上一次触发时间间隔
+    const last = +new Date() - timestamp
+
+    // 上次被包装函数被调用时间间隔 last 小于设定时间间隔 wait
+    if (last < wait && last > 0) {
+      timeout = setTimeout(later, wait - last)
+    } else {
+      timeout = null
+      // 如果设定为immediate===true,因为开始边界已经调用过了此处无需调用
+      if (!immediate) {
+        result = func.apply(context, args)
+        if (!timeout) context = args = null
+      }
+    }
+  }
+
+  return function(...args) {
+    context = this
+    timestamp = +new Date()
+    const callNow = immediate && !timeout
+    // 如果延时不存在,重新设定延时
+    if (!timeout) timeout = setTimeout(later, wait)
+    if (callNow) {
+      result = func.apply(context, args)
+      context = args = null
+    }
+
+    return result
+  }
+}
+
+/**
+ * This is just a simple version of deep copy
+ * Has a lot of edge cases bug
+ * If you want to use a perfect deep copy, use lodash's _.cloneDeep
+ * @param {Object} source
+ * @returns {Object}
+ */
+export function deepClone(source) {
+  if (!source && typeof source !== 'object') {
+    throw new Error('error arguments', 'deepClone')
+  }
+  const targetObj = source.constructor === Array ? [] : {}
+  Object.keys(source).forEach(keys => {
+    if (source[keys] && typeof source[keys] === 'object') {
+      targetObj[keys] = deepClone(source[keys])
+    } else {
+      targetObj[keys] = source[keys]
+    }
+  })
+  return targetObj
+}
+
+/**
+ * @param {Array} arr
+ * @returns {Array}
+ */
+export function uniqueArr(arr) {
+  return Array.from(new Set(arr))
+}
+
+/**
+ * @returns {string}
+ */
+export function createUniqueString() {
+  const timestamp = +new Date() + ''
+  const randomNum = parseInt((1 + Math.random()) * 65536) + ''
+  return (+(randomNum + timestamp)).toString(32)
+}
+
+/**
+ * Check if an element has a class
+ * @param {HTMLElement} elm
+ * @param {string} cls
+ * @returns {boolean}
+ */
+export function hasClass(ele, cls) {
+  return !!ele.className.match(new RegExp('(\\s|^)' + cls + '(\\s|$)'))
+}
+
+/**
+ * Add class to element
+ * @param {HTMLElement} elm
+ * @param {string} cls
+ */
+export function addClass(ele, cls) {
+  if (!hasClass(ele, cls)) ele.className += ' ' + cls
+}
+
+/**
+ * Remove class from element
+ * @param {HTMLElement} elm
+ * @param {string} cls
+ */
+export function removeClass(ele, cls) {
+  if (hasClass(ele, cls)) {
+    const reg = new RegExp('(\\s|^)' + cls + '(\\s|$)')
+    ele.className = ele.className.replace(reg, ' ')
+  }
+}
+
+export function makeMap(str, expectsLowerCase) {
+  const map = Object.create(null)
+  const list = str.split(',')
+  for (let i = 0; i < list.length; i++) {
+    map[list[i]] = true
+  }
+  return expectsLowerCase
+    ? val => map[val.toLowerCase()]
+    : val => map[val]
+}
+ 
+export const exportDefault = 'export default '
+
+export const beautifierConf = {
+  html: {
+    indent_size: '2',
+    indent_char: ' ',
+    max_preserve_newlines: '-1',
+    preserve_newlines: false,
+    keep_array_indentation: false,
+    break_chained_methods: false,
+    indent_scripts: 'separate',
+    brace_style: 'end-expand',
+    space_before_conditional: true,
+    unescape_strings: false,
+    jslint_happy: false,
+    end_with_newline: true,
+    wrap_line_length: '110',
+    indent_inner_html: true,
+    comma_first: false,
+    e4x: true,
+    indent_empty_lines: true
+  },
+  js: {
+    indent_size: '2',
+    indent_char: ' ',
+    max_preserve_newlines: '-1',
+    preserve_newlines: false,
+    keep_array_indentation: false,
+    break_chained_methods: false,
+    indent_scripts: 'normal',
+    brace_style: 'end-expand',
+    space_before_conditional: true,
+    unescape_strings: false,
+    jslint_happy: true,
+    end_with_newline: true,
+    wrap_line_length: '110',
+    indent_inner_html: true,
+    comma_first: false,
+    e4x: true,
+    indent_empty_lines: true
+  }
+}
+
+// 首字母大小
+export function titleCase(str) {
+  return str.replace(/( |^)[a-z]/g, L => L.toUpperCase())
+}
+
+// 下划转驼峰
+export function camelCase(str) {
+  return str.replace(/-[a-z]/g, str1 => str1.substr(-1).toUpperCase())
+}
+
+export function isNumberStr(str) {
+  return /^[+-]?(0|([1-9]\d*))(\.\d+)?$/g.test(str)
+}
+
+// 表单重置
+export function resetForm(refName) {
+	if (this.$refs[refName]) {
+		this.$refs[refName].resetFields();
+	}
+}
+ 

+ 102 - 0
src/common/js/static.js

@@ -0,0 +1,102 @@
+// 接口方法及axios封装
+import qs from "qs"
+import axios from "axios"
+import { URL_ADD } from "./api"
+import state from '@/store/state'
+
+//请求成功后端返回状态码
+export const REQUEST_SUCCESS = '1'
+
+//用户无权限
+export const USER_NO_JURISDICTION = '1006'
+
+// 测试使用用户id
+export const USER_ID = '881'
+
+// 数据字典表中的常量
+export const ORDER_TYPE = 'order_type'
+
+export const ORDER_TEMP_TYPE = 'order_temp_type'
+
+export const ORDER_STATUS = 'order_status'
+
+export const OREDER_SUB_TYPE = 'order_sub_type'
+
+export const OREDER_STATE = 'order_state'
+
+
+// 请求超时时间
+if (!state.isH5Milieu) {
+  axios.defaults.timeout = 2 * 50 * 1000  // 在原来的超时时间上扩大2倍
+}
+
+// post请求头
+// axios.defaults.headers.post['Content-Type'] = 'application/x-www-form-urlencoded;charset=UTF-8'
+// 请求拦截器
+axios.interceptors.request.use(config => {
+  //发送请求之前处理
+  config.headers['X-Authorization-Key'] = 'D0K4-66J9-9143-4043-24K4'
+  config.headers["X-Authorization-Ip"] = "183.224.8.165"
+
+  //河南环境下 切割token
+  let Authorization_Token = sessionStorage.getItem('Authorization-Token')
+  let Authorization_fromSystem = sessionStorage.getItem('Authorization-fromSystem')
+  config.headers["X-Authorization-Token"] = (process.env.NODE_ENV === 'hebei' ? (Authorization_Token ? Authorization_Token : '') : '')
+  config.headers["X-Authorization-fromSystem"] = (process.env.NODE_ENV === 'hebei' ? (Authorization_fromSystem ? Authorization_fromSystem : '') : '')
+  return config
+}, error => {
+  //错误后抛出
+  return Promise.reject(error)
+})
+
+// 响应拦截器s
+axios.interceptors.response.use(response => {
+  // if (response.data.code == REQUEST_SUCCESS) {
+  //   return response.data.data
+  // }
+  //有的请求不规范_________________________
+  return response
+}, error => {
+  return Promise.reject(error)
+})
+
+
+
+/**
+ * get方法,对应get请求
+ * @param {String} url [请求的url地址]
+ * @param {Object} data [请求时携带的参数]
+ */
+export function _get (url, data) {
+  return axios.get(URL_ADD + '/' + url, { params: data })
+    .then(res => {
+      return res.data
+    })
+    .catch(error => {
+      return error
+    })
+}
+
+/**
+ * post方法,对应post请求
+ * @param {String} url [请求的url地址]
+ * @param {Object} data [请求时携带的参数]
+ * @param {Boolean} isSerialize [是否序列化]
+ */
+export function _post (url, data, isSerialize) {
+  if (isSerialize) data = qs.stringify(data)
+  return axios.post(URL_ADD + '/' + url, data)
+    .then(res => {
+      return res.data
+    })
+    .catch(err => {
+      return err
+    })
+}
+
+export function _service ({ method, url, data }) {
+  const params = method === 'get' ? { params: data } : data
+  return axios[method](url, params)
+    .then(res => res.data)
+    .catch(error => error)
+}

+ 1 - 0
src/common/js/types.js

@@ -0,0 +1 @@
+// 我是类型方法js

+ 83 - 0
src/common/js/validate.js

@@ -0,0 +1,83 @@
+/**
+ * @param {string} path
+ * @returns {Boolean}
+ */
+export function isExternal(path) {
+  return /^(https?:|mailto:|tel:)/.test(path)
+}
+
+/**
+ * @param {string} str
+ * @returns {Boolean}
+ */
+export function validUsername(str) {
+  const valid_map = ['admin', 'editor']
+  return valid_map.indexOf(str.trim()) >= 0
+}
+
+/**
+ * @param {string} url
+ * @returns {Boolean}
+ */
+export function validURL(url) {
+  const reg = /^(https?|ftp):\/\/([a-zA-Z0-9.-]+(:[a-zA-Z0-9.&%$-]+)*@)*((25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]?)(\.(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])){3}|([a-zA-Z0-9-]+\.)*[a-zA-Z0-9-]+\.(com|edu|gov|int|mil|net|org|biz|arpa|info|name|pro|aero|coop|museum|[a-zA-Z]{2}))(:[0-9]+)*(\/($|[a-zA-Z0-9.,?'\\+&%$#=~_-]+))*$/
+  return reg.test(url)
+}
+
+/**
+ * @param {string} str
+ * @returns {Boolean}
+ */
+export function validLowerCase(str) {
+  const reg = /^[a-z]+$/
+  return reg.test(str)
+}
+
+/**
+ * @param {string} str
+ * @returns {Boolean}
+ */
+export function validUpperCase(str) {
+  const reg = /^[A-Z]+$/
+  return reg.test(str)
+}
+
+/**
+ * @param {string} str
+ * @returns {Boolean}
+ */
+export function validAlphabets(str) {
+  const reg = /^[A-Za-z]+$/
+  return reg.test(str)
+}
+
+/**
+ * @param {string} email
+ * @returns {Boolean}
+ */
+export function validEmail(email) {
+  const reg = /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/
+  return reg.test(email)
+}
+
+/**
+ * @param {string} str
+ * @returns {Boolean}
+ */
+export function isString(str) {
+  if (typeof str === 'string' || str instanceof String) {
+    return true
+  }
+  return false
+}
+
+/**
+ * @param {Array} arg
+ * @returns {Boolean}
+ */
+export function isArray(arg) {
+  if (typeof Array.isArray === 'undefined') {
+    return Object.prototype.toString.call(arg) === '[object Array]'
+  }
+  return Array.isArray(arg)
+}

+ 27 - 0
src/common/js/validator.js

@@ -0,0 +1,27 @@
+export function cha_near_site_lon(rule, value, callback) {
+  //经度:要求经度整数部分为0-180小数部分为0到4位!
+  var longitude =/^(90[0-9]|90)\.\d{4}?$/; 
+  if (value === '') {
+  callback(new Error('经度不能为空'));
+  } else if (!longitude.test(value)) {
+  callback(new Error('值>90,至少保留四位小数'));
+  } else {
+  callback();
+  }
+}
+
+export function cha_near_site_lat(rule, value, callback) {
+  //纬度:要求纬度整数部分为0-90小数部分为0到4位!
+  var dimension =/^([0-8]?\d{1}\.\d{0,4}|90\.0{0,4}|[0-8]?\d{1}|90)$/; 
+  if (value === '') {
+  callback(new Error('维度不能为空'));
+  } else if (dimension.test(value)) {
+  callback(new Error('值<30,至少保留四位小数'));
+  } else {
+  callback();
+  }      
+}
+
+function Verification(val) {
+
+}

+ 11 - 0
src/common/less/colorType.less

@@ -0,0 +1,11 @@
+
+
+@bodybg : #e9eaee;   //body背景色
+@bkbtbj : #f7f7f7;    //板块标题背景
+@bknrbj : #f8fdff;  //板块内容背景
+@tablebx : #fafafa; //表格:表头及边框线
+@bkbg : #fff; //板块背景
+
+.border10() {
+    border: 10px solid #f8fdff; 
+}

Diff do ficheiro suprimidas por serem muito extensas
+ 6 - 0
src/common/less/font.less


+ 3 - 0
src/common/less/h5style.less

@@ -0,0 +1,3 @@
+.el-tooltip__popper.is-dark {
+  width: 200px !important;
+}

+ 80 - 0
src/common/less/layout.less

@@ -0,0 +1,80 @@
+.contartant{
+    width: 100%;
+    background-color: #f4f8fb;
+    height: 100%;
+    .banner {
+      width: 100%;
+      height: 60px;
+      line-height: 60px;
+      // background-color: #409EFF;
+      background: linear-gradient(to right, #409EFF, #a5d3fc);
+      padding-left: 20px;
+      color: #fff;
+      font-size: 20px;
+      .content {
+        width: auto;
+        float: right;
+        margin-right: 30px;
+        .userImg {
+          font-size: 25px;
+          float: left;
+        }
+        .name {
+          margin-left: 5px;
+          float: left;
+          font-size: 14px;
+        }
+      }
+    }
+    .nav{
+      height: calc(~'100% - 60px');
+      background-color: #fff;
+      width: 220px;
+      overflow: hidden;
+      float: left;
+      box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
+      .el-scrollbar{
+        height: 100%;
+        overflow-x: hidden;
+      }
+      .isfold{
+        // width: 100%;
+        height: 15px;
+        line-height: 15px;
+        text-align: center;
+        position: absolute;
+        bottom: 0;
+        background-color: #409EFF;
+        color: #fff;
+      }
+    }
+
+    .content{
+      width: calc(~'100% - 220px');
+      float: left;
+      height: auto;
+      .ifont{
+        font-size: 20px;
+      }
+      .tagContainer{
+        width: 100%;
+        height: 34px;
+        line-height: 35px;
+        box-shadow: 0 2px 4px rgba(0, 0, 0, .12), 0 0 6px rgba(0, 0, 0, .04);
+        background-color: #fff;
+        font-size: 12px;
+        padding-left: 10px;
+
+      }
+      .list{
+        width:calc(~'100% - 20px');
+        // width:100%;
+        height: calc(~'100vh - 130px');
+        background-color: #fff;
+        // margin-left: 10px;
+        margin-top: 10px;
+        padding: 10px;
+        box-shadow: 0 2px 4px rgba(0, 0, 0, .12), 0 0 6px rgba(0, 0, 0, .04);
+      }
+    }
+  }

+ 92 - 0
src/common/less/mixin.less

@@ -0,0 +1,92 @@
+// nokia 项目pc端轮子 less
+@blue: #3190e8;  
+@bc: #e4e4e4;
+@fc:#fff;
+
+// 背景图片地址和大小
+.bis(@url) { 
+	background-image: url(@url);
+	background-repeat: no-repeat;
+	background-size: 100% 100%;
+}
+
+//定位全屏
+.allcover{
+	position:fixed;
+	top:0;
+	right:0;
+	bottom:0;
+	left: 0;
+}
+
+//transform上下左右居中
+.ctt {  
+	position: absolute;
+	top: 50%;
+    left: 50%;
+    transform: translate(-50%, -50%);
+}
+//定位上下左右居中
+.ctp(@width, @height) {  
+	position: absolute;
+	top: 50%;
+    left: 50%;
+    margin-top: -@height/2;
+    margin-left: -@width/2;
+}
+
+//定位上下居中
+.tb {  
+	position: absolute;
+	top: 50%;
+    transform: translateY(-50%);
+}
+
+//定位左右居中
+.lr {  
+	position: absolute;
+	left: 50%;
+    transform: translateX(-50%);
+}
+
+//宽高
+.wh(@width, @height){
+	width: @width;
+	height: @height; 
+}
+
+//字体大小、行高、字体
+.ft(@size, @line-height) {  
+	font-size: @size;
+	line-height:@line-height;
+}
+
+//字体大小,颜色
+.sc(@size, @color){
+	font-size: @size;
+	color: @color;
+}
+.sc10(@color:#333) {
+	font-size: 10px;
+	color: @color;
+}
+
+.sc12(@color:#333) {
+	font-size: 12px;
+	color: @color;
+}
+.sc14(@color: #333) {
+	font-size: 14px;
+	color:@color;
+}
+.sc16(@color: #333) {
+	font-size: 16px;
+	color: @color;
+}
+
+//flex 布局和 子元素 对其方式
+.fj(@type1: space-between,@type2: center){
+	display: flex;
+	justify-content: @type1;
+	align-items: @type2;
+}

+ 136 - 0
src/common/less/public.less

@@ -0,0 +1,136 @@
+@import "z.less";
+@import "colorType";
+@import "mixin.less";
+body,
+html {
+  .font-fm();
+  background-color: white;
+  .sc12();
+}
+.price {
+  &:before {
+    content: "¥";
+  }
+}
+
+//图片地址
+@publicImage: "../../assets/";
+
+//vue.js 清除网络延迟出现的 代码
+[v-cloak] {
+  display: none;
+}
+
+.positionAbsolute(@color:white) {
+  position: absolute;
+  top: 0;
+  left: 0;
+  height: 100%;
+  width: 100%;
+  background-color: @color;
+}
+
+//浏览器前缀
+.display-flex() {
+  display: -webkit-box;
+  display: -webkit-flex;
+  display: -ms-flexbox;
+  display: flex;
+}
+.Browser-Scrollbar() {
+  position: fixed;
+  width: 100%;
+  height: 100%;
+  box-sizing: border-box;
+  overflow: auto;
+}
+
+//工具类
+.ml10 {
+  margin-left: 10px;
+}
+.ml30 {
+  margin-left: 30px;
+}
+.ml50 {
+  margin-left: 50px;
+}
+.mr18 {
+  margin-right: 18px;
+}
+.ml16 {
+  margin-left: 16px;
+}
+.mt10 {
+  margin-top: 10px;
+}
+.pt10 {
+  padding-top: 10px;
+}
+.pl10 {
+  padding-left: 10px;
+}
+
+//颜色区
+.border-color {
+  color: rgb(228, 228, 228);
+}
+
+//图片格式
+.backgroundImage(@image) {
+  background-image: url(@image);
+  background-repeat: no-repeat;
+  background-size: contain;
+}
+.bg-image(@image) {
+  background-image: url("@{image}@2x.png");
+  @media (-webkit-min-device-pixel-ratio: 3), (min-device-pixel-ratio: 3) {
+    background-image: url("@{image}@3x.png");
+  }
+  background-size: contain;
+  background-repeat: no-repeat;
+}
+
+//清除默认样式
+i {
+  font-style: normal;
+}
+
+.pointer {
+  cursor: pointer;
+}
+
+.fontBlur {
+  color: #409EFF;
+}
+.fontRed {
+  color: #F56C6C;
+}
+.el-button .fontRed + span {
+  color: #F56C6C;
+}
+.fontoRange {
+  color: #E6A23C;
+}
+.fontGreen {
+  color: #67C23A;
+}
+.marginLeft5{
+  margin-left: 5px;
+}
+.marginRight5 {
+  margin-right: 5px;
+}
+.marginLeft10{
+  margin-left: 10px;
+}
+.marginRight10 {
+  margin-right: 10px;
+}
+.marginBottom10 {
+  margin-bottom: 10px;
+}
+
+.el-table th>.cell{
+  font-weight: bold;
+}

+ 13 - 0
src/common/less/response.less

@@ -0,0 +1,13 @@
+@media screen and (max-width:1350px){
+  .templateManagement{
+    .searchArea{
+      margin: 10px 50px !important;
+      li {
+        margin-right: 35px !important;
+      }
+      &>li:last-child {
+        float: left !important;
+      }
+    }
+  }
+}

+ 24 - 0
src/common/less/variables.less

@@ -0,0 +1,24 @@
+// less 全局变量
+
+@titlebgc : #f7f7f7;    //title组件背景
+@tablebgc : #fafafa; //表格:表头及边框线
+
+.fade-enter-active, .fade-leave-active {
+  transition: opacity .5s;
+}
+.fade-enter, .fade-leave-to {
+  opacity: 0;
+}
+
+.slide-enter, .slide-leave-to{
+  transform: translateX(100%);
+}
+
+.slide-enter-active{
+  transition: all .6s ease;
+}
+.slide-leave-active {
+  transition: all 1.2s ease;
+}
+
+

+ 664 - 0
src/common/less/z.less

@@ -0,0 +1,664 @@
+// =============================================
+// @des:            zless
+// @author:       	Busy
+// @url:            www.aibusy.com || www.moyu-edu.com
+// @time:           2013-12-08
+// @lastTime     	  2016-12-10
+// @version       	0.6 beta
+// =============================================
+
+// common reset use kissy reset
+.reset(){
+  *{margin:0; padding:0;}
+  ul,ol{list-style:none;}
+  img{border:none;}
+  input,select,textarea{outline:none; border:none; background:none;}
+  textarea{resize:none;}
+  a{text-decoration:none;}
+}
+.reset-sina(){
+  html, body, ul, li, ol, dl, dd, dt, p, h1, h2, h3, h4, h5, h6, form, fieldset, legend, img { margin:0; padding:0; box-sizing: border-box;}
+  fieldset, img { border:none; }
+  em,i{font-style: normal;}
+  img{display: block;}
+  h1,h2,h3,h4{font-weight: normal;}
+  address, caption, cite, code, dfn, th, var { font-style:normal; font-weight:normal; }
+  ul, ol { list-style:none; }
+  input { padding-top:0; padding-bottom:0; font-family: "SimSun","宋体";}
+  input::-moz-focus-inner { border:none; padding:0; }
+  select, input { vertical-align:middle; }
+  select, input, textarea { font-size:12px; margin:0; }
+  input[type="text"], input[type="password"], textarea { outline-style:none; -webkit-appearance:none; }
+  textarea { resize:none; }
+  input,textarea{background: none; border: none;}
+  table { border-collapse:collapse; }
+  body { color:#333; font:12px   "FZLTZCHJW--GB1-0","SimSun","宋体","Arial Narrow",HELVETICA; background:#fff; }
+  a { color:#666; text-decoration:none; }
+//a:visited { color:#666; }
+  //a:hover, a:active, a:focus { color:#ff8400; text-decoration:underline; }
+}
+//去除a和label的虚线
+.remove_dotted(){
+  a,label {blr:~'expression(this.onFocus=this.blur())'}
+  a,label {outline:none;}
+}
+//浮动
+.fl(@f:left;){
+    float: @f;
+    display: inline;
+}
+.fr(@f:right){
+  float: @f;
+  display: inline;
+}
+//定位
+.rel(@rel:relative){
+  position: @rel;
+}
+.abs(@abs:absolute){
+  position: @abs;
+}
+.fix(@fix:fixed){
+  position: @fix;
+}
+//全局定位
+.pos (r){
+  position: relative;
+}
+.pos (a){
+  position: absolute;
+}
+.pos (f){
+  position: fixed;
+}
+.pos-box(@w:500px,@h:400px,@pos:absolute){
+  width: @w;
+  height: @h;
+  position: @pos;
+  left:0;
+  top:0;
+}
+//定位居中
+.pos-box-cc(@w:600px,@h:360px,@pos:absolute){
+  width: @w;
+  height: @h;
+  position: @pos;
+  left: 50%;
+  top: 50%;
+  margin-left: -@w / 2;
+  margin-top: -@h / 2;
+}
+//布局
+.bc(){
+  margin-left: auto;
+  margin-right: auto;
+}
+.bc-d(@w:500px){
+  width: @w;
+  .bc();
+}
+.wh(@w){
+  width: @w;
+  height: @w;
+}
+.w-be-h(@w){
+  width: @w;
+  height: @w;
+}
+.z-index(@index:1){
+  z-index: @index;
+}
+//高度100%
+.h100(){
+  height: 100%;
+}
+//文字垂直居中
+.txt-ver(@h){
+  height: @h;
+  line-height: @h;
+}
+// 同.txt-ver
+.l-h(@h)
+{
+  height: @h;
+  line-height: @h;
+}
+//display
+.d-b(){
+  display: block;
+}
+.db(){
+  display: block;
+}
+.d-i(){
+  display: inline;
+}
+.di(){
+  display: inline;
+}
+.d-ib(){
+  display: inline-block;
+}
+.dib(){
+  display: inline-block;
+}
+.d-ib7(){
+  display: inline-block;
+  *display: inline;
+  *zoom:1;
+}
+.dib7(){
+  display: inline-block;
+  *display: inline;
+  *zoom:1;
+}
+.d-t(){
+  display:table;
+}
+.dt(){
+  display:table;
+}
+.d-n(){
+  display: none;
+}
+.dn(){
+  display: none;
+}
+//font family
+.font-apple(){
+  font-family: 'punctuation', 'PingFangSC-Regular';
+}
+.font-all(){
+  font-family: 'punctuation', 'PingFangSC-Regular', "Microsoft YaHei", "微软雅黑";
+}
+.font-fm(){
+  font-family: "Microsoft YaHei", Arial, Helvetica, sans-serif, "\5B8B\4F53";
+}
+.font-fs(){
+  font-family: "SimSun","宋体";
+}
+.font-fa(){
+  font-family: "Arial";
+}
+.font-fv(){
+  font-family:Verdana;
+}
+
+//font weight
+.font-w700(){
+  font-weight: 700;
+}
+.font-wb(){
+  font-weight: bold;
+}
+.font-w400(){
+  font-weight: 400;
+}
+.font-wn(){
+  font-weight: normal;
+}
+//font size
+.font-s(@p: 12px){
+  font-size: @p;
+}
+.font-s0(){font-size: 0px;}
+.font-s1(){font-size: 1px;}
+.font-s2(){font-size: 2px;}
+.font-s3(){font-size: 3px;}
+.font-s4(){font-size: 4px;}
+.font-s5(){font-size: 5px;}
+.font-s6(){font-size: 6px;}
+.font-s7(){font-size: 7px;}
+.font-s8(){font-size: 8px;}
+.font-s9(){font-size: 9px;}
+.font-s10(){font-size: 10px;}
+.font-s11(){font-size: 11px;}
+.font-s12(){font-size: 12px;}
+.font-s13(){font-size: 13px;}
+.font-s14(){font-size: 14px;}
+.font-s15(){font-size: 15px;}
+.font-s16(){font-size: 16px;}
+.font-s17(){font-size: 17px;}
+.font-s18(){font-size: 18px;}
+.font-s19(){font-size: 19px;}
+.font-s20(){font-size: 20px;}
+.font-s21(){font-size: 21px;}
+.font-s22(){font-size: 22px;}
+.font-s23(){font-size: 23px;}
+.font-s24(){font-size: 24px;}
+.font-s25(){font-size: 25px;}
+.font-s26(){font-size: 26px;}
+.font-s27(){font-size: 27px;}
+.font-s28(){font-size: 28px;}
+.font-s29(){font-size: 29px;}
+.font-s30(){font-size: 30px;}
+.font-s31(){font-size: 31px;}
+.font-s32(){font-size: 32px;}
+.font-s33(){font-size: 33px;}
+.font-s34(){font-size: 34px;}
+.font-s35(){font-size: 35px;}
+.font-s36(){font-size: 36px;}
+.font-s37(){font-size: 37px;}
+.font-s38(){font-size: 38px;}
+.font-s39(){font-size: 39px;}
+.font-s40(){font-size: 40px;}
+.font-s41(){font-size: 41px;}
+.font-s42(){font-size: 42px;}
+.font-s43(){font-size: 43px;}
+.font-s44(){font-size: 44px;}
+.font-s45(){font-size: 45px;}
+.font-s46(){font-size: 46px;}
+.font-s47(){font-size: 47px;}
+.font-s48(){font-size: 48px;}
+.font-s49(){font-size: 49px;}
+.font-s50(){font-size: 50px;}
+.font-s51(){font-size: 51px;}
+.font-s52(){font-size: 52px;}
+.font-s53(){font-size: 53px;}
+.font-s54(){font-size: 54px;}
+.font-s55(){font-size: 55px;}
+.font-s56(){font-size: 56px;}
+.font-s57(){font-size: 57px;}
+.font-s58(){font-size: 58px;}
+.font-s59(){font-size: 59px;}
+.font-s60(){font-size: 60px;}
+.font-s61(){font-size: 61px;}
+.font-s62(){font-size: 62px;}
+.font-s63(){font-size: 63px;}
+.font-s64(){font-size: 64px;}
+.font-s65(){font-size: 65px;}
+.font-s66(){font-size: 66px;}
+.font-s67(){font-size: 67px;}
+.font-s68(){font-size: 68px;}
+.font-s69(){font-size: 69px;}
+.font-s70(){font-size: 70px;}
+.font-s71(){font-size: 71px;}
+.font-s72(){font-size: 72px;}
+.font-s73(){font-size: 73px;}
+.font-s74(){font-size: 74px;}
+.font-s75(){font-size: 75px;}
+.font-s76(){font-size: 76px;}
+.font-s77(){font-size: 77px;}
+.font-s78(){font-size: 78px;}
+.font-s79(){font-size: 79px;}
+.font-s80(){font-size: 80px;}
+.font-s81(){font-size: 81px;}
+.font-s82(){font-size: 82px;}
+.font-s83(){font-size: 83px;}
+.font-s84(){font-size: 84px;}
+.font-s85(){font-size: 85px;}
+.font-s86(){font-size: 86px;}
+.font-s87(){font-size: 87px;}
+.font-s88(){font-size: 88px;}
+.font-s89(){font-size: 89px;}
+.font-s90(){font-size: 90px;}
+.font-s91(){font-size: 91px;}
+.font-s92(){font-size: 92px;}
+.font-s93(){font-size: 93px;}
+.font-s94(){font-size: 94px;}
+.font-s95(){font-size: 95px;}
+.font-s96(){font-size: 96px;}
+.font-s97(){font-size: 97px;}
+.font-s98(){font-size: 98px;}
+.font-s99(){font-size: 99px;}
+.font-s100(){font-size: 100px;}
+
+//background
+.bg(@url)
+{
+  background: url(@url) 0 0 repeat;
+}
+.bg-m(@url,@x:0,@y:0,@repeat:no-repeat)
+{
+  background: url(@url) @x @y @repeat;
+}
+.bgi(@url)
+{
+  background-image: url(@url);
+}
+.bgp(@x:0,@y:0){
+  background-position: @x @y;
+}
+.bgr-r(){
+  background-repeat: repeat;
+}
+.bgr-x(){
+  background-repeat: repeat-x;
+}
+.bgr-y(){
+  background-repeat: repeat-y;
+}
+.bgr-no(){
+  background-repeat: no-repeat;
+}
+.bga-fix(){
+  background-attachment: fixed;
+}
+
+//lis
+.list-sn(){
+  list-style: none;
+}
+//text
+.text-n(@p: none){
+  text-decoration: @p;
+}
+//添加下划线
+.tu(){
+  text-decoration: underline;
+}
+.tn(){
+  text-decoration: none;
+}
+.tl(){
+  text-align: left;
+}
+.text-l(){
+  text-align: left;
+}
+.tc(){
+  text-align: center;
+}
+.text-c(){
+  text-align: center;
+}
+.tr(){
+  text-align: right;
+}
+.text-r(){
+  text-align: right;
+}
+//特殊需求
+.min-width(@width){
+  min-width: @width;
+  _width:@width;
+}
+.max-width(@width,@id){
+  max-width: @width;
+  _width:~'expression(document.getElementById("@{id}").offsetHeight>parseInt("@{width}")?"@{width}": "auto")';
+  overflow:hidden;
+}
+.min-height(@height){
+  min-height: @height;
+  _height:@height;
+}
+.max-height(@height,@id){
+  max-height: @height;
+  _height:~'expression(document.getElementById("@{id}").offsetHeight>parseInt("@{height}")?"@{height}": "auto")';
+  overflow:hidden;
+}
+//三角
+.triangle (top,@w:5px,@color:#ccc){
+  border-style:solid dashed dashed dashed;
+  border-color:@color transparent transparent transparent;
+  border-width:@w;
+}
+.triangle (right,@w:5px,@color:#ccc){
+  border-style:dashed solid dashed dashed;
+  border-color:transparent @color transparent transparent;
+  border-width:@w;
+}
+.triangle (bottom,@w:5px,@color:#ccc){
+  border-style:dashed dashed solid dashed;
+  border-color:transparent transparent @color transparent;
+  border-width:@w;
+}
+.triangle (left,@w:5px,@color:#ccc){
+  border-style:dashed dashed dashed solid;
+  border-color:transparent transparent transparent @color;
+  border-width:@w;
+}
+.triangle (@_,@w:5px,@color:#ccc){
+  .triangle-compatible();
+}
+//边框附加内容
+.triangle-compatible()
+{
+    width: 0; height: 0; overflow:hidden;
+}
+//单独方向
+.triangle-b(@w:5px,@color:#ccc){
+  border-style:solid dashed dashed dashed;
+  border-color:@color transparent transparent transparent;
+  border-width:@w;
+  .triangle-compatible();
+}
+.triangle-l(@w:5px,@color:#ccc){
+  border-style:dashed solid dashed dashed;
+  border-color:transparent @color transparent transparent;
+  border-width:@w;
+  .triangle-compatible();
+}
+.triangle-t(@w:5px,@color:#ccc){
+  border-style:dashed dashed solid dashed;
+  border-color:transparent transparent @color transparent;
+  border-width:@w;
+  .triangle-compatible();
+}
+.triangle-r(@w:5px,@color:#ccc){
+  border-style:dashed dashed dashed solid;
+  border-color:transparent transparent transparent @color;
+  border-width:@w;
+  .triangle-compatible();
+}
+//透明度
+.opa(@opacity: 80) {
+  opacity: @opacity / 100;
+  filter: ~"alpha(opacity=@{opacity})";
+}
+.rgba(@red, @green, @blue, @alpha:1){
+        @filtercolor:`(_f = function(d){ var v = (parseInt(d)|0).toString(16);return v.length<2 ? "0"+v : v;},'#'+_f(@{alpha}*255) + _f(@{red}) + _f(@{green})+ _f(@{blue}))`;
+
+        background-color: ~'rgba(@{red},@{green},@{blue},@{alpha})';
+        -ms-filter:~"progid:DXImageTransform.Microsoft.gradient(startColorstr='@{filtercolor}',endColorstr='@{filtercolor}')";
+        filter:~"progid:DXImageTransform.Microsoft.gradient(startColorstr='@{filtercolor}',endColorstr='@{filtercolor}')";
+}
+
+.clearfix() {
+  *zoom: 1;
+  &:before,
+  &:after {
+    display: table;
+    content: "";
+  }
+  &:after {
+    clear: both;
+  }
+}
+//文字省略号
+// @substract单位为%  英文字母换行就是加这句  word-wrap : break-word
+.ellipsis-basic(){
+  overflow: hidden;
+  text-overflow: ellipsis;
+  white-space: nowrap;
+  .font-fa();
+}
+.ellipsis(@substract:0) {
+  .ellipsis-basic();
+  width:100% - @substract;
+}
+@basic:100px;
+//各种轮子
+.h(@value){height: @value/@basic * 1rem;}
+.w(@value){width: @value/@basic * 1rem;}
+.p(@t,@r,@d,@l){padding: @t/@basic * 1rem @r/@basic * 1rem @d/@basic * 1rem @l/@basic * 1rem;}
+.pl(@value){padding-left: @value/@basic * 1rem;}
+.pr(@value){padding-right: @value/@basic * 1rem;}
+.pt(@value){padding-top: @value/@basic * 1rem;}
+.pb(@value){padding-bottom: @value/@basic * 1rem;}
+.bs(@v1,@v2){background-size: @v1/@basic * 1rem  @v2/@basic * 1rem;}
+.fs(@value){font-size: @value/@basic * 1rem;}
+.lh(@value){line-height: @value/@basic * 1rem;}
+.br(@value){border-radius: @value/@basic * 1rem;}
+.mr(@value){margin-right: @value/@basic * 1rem;}
+.mb(@value){margin-bottom: @value/@basic * 1rem;}
+.ml(@value){margin-left: @value/@basic * 1rem;}
+.mt(@value){margin-top: @value/@basic * 1rem;}
+.m(@t,@r,@d,@l){margin: @t/@basic * 1rem @r/@basic * 1rem @d/@basic * 1rem @l/@basic * 1rem;}
+.t(@value){top: @value/@basic * 1rem;}
+.r(@value){right: @value/@basic * 1rem;}
+.l(@value){left: @value/@basic * 1rem;}
+.px2rem(@name,@value){
+    @{name}:@value/@basic * 1rem;
+}
+.b(@value){bottom: @value/@basic * 1rem;}
+
+.bordert(@color:#ccc){
+    position: relative;
+
+    &:before{
+        content: "";
+        height: 1px;
+        width: 100%;
+        background-color: @color;
+        position: absolute;
+        top:0;
+        left:0;
+        transform: scaleY(0.5);
+    }
+}
+
+.bordertopAndBottom(@color:#ccc){
+    position: relative;
+
+    &:before{
+        content: "";
+        height: 1px;
+        width: 100%;
+        background-color: @color;
+        position: absolute;
+        top:0;
+        left:0;
+        transform: scaleY(0.5);
+    }
+    &:after{
+        content: "";
+        height: 1px;
+        width: 100%;
+        background-color: @color;
+        position: absolute;
+        bottom:0;
+        left:0;
+        transform: scaleY(0.5);
+    }
+}
+.borderleftAndRight(@color:#ccc){
+    position: relative;
+
+    &:before{
+        content: "";
+        width: 1px;
+        height: 100%;
+        background-color: @color;
+        position: absolute;
+        top:0;
+        left:0;
+        transform: scaleX(0.5);
+    }
+    &:after{
+        content: "";
+        width: 1px;
+        height: 100%;
+        background-color: @color;
+        position: absolute;
+        top:0;
+        right:0;
+        transform: scaleX(0.5);
+    }
+}
+
+.borderb(@color:#ccc){
+    position: relative;
+    &:after{
+        content: "";
+        height: 1px;
+        // width: 94%;
+        width:100%;
+        background-color: @color;
+        position: absolute;
+        bottom:0;
+        left:0;
+        right:0;
+        margin:0 auto;
+        transform: scaleY(0.5);
+    }
+}
+.borderr(@color:#ccc){
+    position: relative;
+
+    &:after{
+        content: "";
+        height: 100%;
+        width: 1px;
+        background-color: @color;
+        position: absolute;
+        top:0;
+        right:0;
+        transform: scaleX(0.5);
+    }
+}
+.borderl(@color:#ccc){
+    position: relative;
+
+    &:before{
+        content: "";
+        height: 100%;
+        width: 1px;
+        background-color: @color;
+        position: absolute;
+        top:0;
+        left:0;
+        transform: scaleX(0.5);
+    }
+}
+.flex_b(){
+    display: flex;
+    justify-content: space-between;
+    align-items: center;
+}
+.flex_a(){
+    display: flex;
+    justify-content: space-around;
+    align-items: center;
+}
+.fr{
+    float: right;
+}
+.bordert(@color:#ccc){
+    position: relative;
+    &:after{
+        content: "";
+        width: 100%;
+        height: 1px;
+        background-color: @color;
+        transform: scaleY(0.5);
+        position: absolute;
+        top:0;
+        left:0;
+    }
+}
+html{
+    font-size:@basic;
+}
+
+.c333{color:#333;}
+.c666{color:#666;}
+.c444{color:#444;}
+
+//外边框编剧
+.ml20{
+  .ml(20)
+}
+//文字规格
+.fs42{
+  .fs(42);
+}
+//margin溢出问题
+.marginout(){
+  &:before{
+    content: ".";
+    display: block;
+    height: 0;
+    visibility: hidden;
+  }
+}

+ 0 - 15
src/components/PageHeader.vue

@@ -1,15 +0,0 @@
-<template>
-  <div>
-    <h1>page-header</h1>
-  </div>
-</template>
-
-<script>
-/**
- * 固定的头,左侧可能放个logo, 右侧显示一下登录的姓名信息
- */
-export default {};
-</script>
-
-<style>
-</style>

+ 147 - 0
src/components/home/index.vue

@@ -0,0 +1,147 @@
+<template>
+  <div>
+    <div class="user">
+      <div class="content">
+        <div class="userImg">
+            <i class="el-icon-s-custom"></i>
+        </div>
+        <span class="name">{{ userInfo.userName }}</span>
+      </div>
+    </div>
+    <div class="title">
+        投 诉 管 理 系 统
+    </div>
+    <div class="list">
+        <el-row>
+            <el-col :span="6" v-for="(item, index) in userInfo.list" :key="index" class="content pointer">
+                <div class="img" @click="jump(item)">
+                    <i class="el-icon-s-tools"></i>
+                </div>
+                <span class="name" @click="jump(item)">{{item.name}}</span>
+            </el-col>
+        </el-row>
+    </div>
+  </div>
+</template>
+  
+  <script>
+import { getVerification } from "../../common/js/home";
+export default {
+  name: "orderSearch",
+  components: {},
+  data() {
+    return {
+      userInfo: {
+        userName: "河北测试用户",
+        list: [
+          {
+            id: 1,
+            name: "权限管理",
+            url: "url",
+            webIcon: "webIcon",
+            priority: 0,
+          },
+          {
+            id: 1,
+            name: "权限管理",
+            url: "url",
+            webIcon: "webIcon",
+            priority: 0,
+          },
+          {
+            id: 1,
+            name: "权限管理",
+            url: "url",
+            webIcon: "webIcon",
+            priority: 0,
+          },
+          {
+            id: 1,
+            name: "权限管理",
+            url: "url",
+            webIcon: "webIcon",
+            priority: 0,
+          },
+          {
+            id: 1,
+            name: "权限管理",
+            url: "url",
+            webIcon: "webIcon",
+            priority: 0,
+          },
+        ],
+      },
+    };
+  },
+  computed: {},
+  watch: {},
+  created() {
+    this.init();
+  },
+  methods: {
+    init() {
+      // getVerification().then(res=>{
+      //     console.log('res: ', res);
+      // })
+    },
+    jump(val){
+      let routeUrl = this.$router.resolve({
+            path:'/permissions/role',
+            query: {
+                token: sessionStorage.getItem('Authorization-Token'),
+                fromSystem: sessionStorage.getItem('Authorization-fromSystem'),
+            }
+        })
+        window.open(routeUrl.href, '_blank');
+    }
+  },
+};
+</script>
+  
+<style lang="less" scoped>
+@import "../../common/less/public.less";
+.user {
+  width: 100%;
+  height: 50px;
+  line-height: 50px;
+  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12), 0 0 6px rgba(0, 0, 0, 0.04);
+  .content {
+    float: right;
+    margin-right: 30px;
+    .userImg {
+      font-size: 25px;
+      float: left;
+    }
+    .name {
+      margin-left: 5px;
+      float: left;
+    }
+  }
+}
+.title {
+    width: 100%;
+    height: 50px;
+    text-align: center;
+    font-size: 30px;
+    line-height: 50px;
+    margin-top: 30px;
+    margin-bottom: 20px;
+}
+.list{
+    width: 1000px;
+    margin: 0 auto;
+    .content{
+        height: 80px;
+        line-height: 80px;
+        .img{
+            font-size: 30px;
+            float: left;
+        }
+        .name{
+            float: left;
+            margin-left: 10px;
+        }
+    }
+}
+</style>
+  

+ 68 - 0
src/components/orderSearch/index.vue

@@ -0,0 +1,68 @@
+<template>
+  <div class="orderSearch" id="orderSearch-content">
+    <div>111</div>
+  </div>
+</template>
+
+<script>
+export default {
+  name: "orderSearch",
+  components: {
+  },
+  data() {
+    return {
+     
+    };
+  },
+  computed: {},
+  watch: {},
+  created() {
+    this.init();
+  },
+  methods: {
+    init() {
+    },
+   
+  },
+ 
+};
+</script>
+
+<style lang="less" scoped>
+@import "../../common/less/public.less";
+.orderSearch {
+  .Browser-Scrollbar();
+  .searchConfig {
+    margin: 20px;
+    height: 40px;
+    li {
+      float: left;
+      margin: 0 0 20px 0;
+      height: 32px;
+      min-width: 20%;
+      &:last-child {
+        float: right;
+        min-width: 100px;
+        margin-right: 20px;
+      }
+      & label {
+        height: 32px;
+        line-height: 32px;
+        padding-right: 10px;
+        width: 100px;
+        display: inline-block;
+        text-align: right;
+      }
+    }
+    .createdDate {
+      margin-left: 20px;
+    }
+  }
+  hr {
+    border: 1px;
+    height: 2px;
+    margin: 25px 20px 20px 20px;
+    background-color: #dcdfe6;
+  }
+}
+</style>

+ 141 - 0
src/components/permissions/index.vue

@@ -0,0 +1,141 @@
+<template>
+  <div class="contartant">
+    <div class="banner">
+      <span>
+        投 诉 管 理 系 统
+      </span>
+      <div class="content">
+            <div class="userImg">
+                <i class="el-icon-s-custom"></i>
+            </div>
+            <span class="name">{{userName }}</span>
+          </div>
+    </div>
+    <div class="nav" :style="isCollapse?'width:60px':'width:220px'">
+      <el-scrollbar wrap-class="scrollbar-wrapper">
+        <el-menu
+          :default-active="activeMenu"
+          class="el-menu-vertical-demo"
+          @open="handleOpen"
+          @close="handleClose"
+          :collapse="isCollapse"
+          @select="handleSelect"
+        >
+          <el-submenu v-for="(item,ind) in navList" :index="ind" :key="ind">
+            <template slot="title">
+              <i :class="item.icon"></i>
+              <span slot="title">{{item.name}}</span>
+            </template>
+            <el-menu-item-group>
+              <!-- <router-link  v-for="(it,i) in item.children"  :key="i" :to="it.url">
+                <el-menu-item :index="it.name">{{it.name}}</el-menu-item>
+              </router-link> -->
+              <el-menu-item v-for="(it,i) in item.children"  :key="i" :index="it.name" @click="navLike(it)">{{it.name}}</el-menu-item>
+            </el-menu-item-group>
+          </el-submenu>
+        </el-menu>
+      </el-scrollbar>
+      <div class="isfold" :style="isCollapse?'width:60px':'width:220px'" @click="isfoldFun">
+          <i :class="isfold?'el-icon-d-arrow-right ifont':'el-icon-d-arrow-left ifont'" ></i>
+      </div>
+    </div>
+    <div class="content" :style="isCollapse?`width: calc(100% - 60px)`:`width: calc(100% - 220px)`">
+      <div class="tagContainer">
+        <span class="marginRight5">{{(activeMenu=='操作日志'|| activeMenu=='登录日志')?'日志管理':'权限管理'}}</span>
+        /<span class="fontBlur pointer marginLeft5">{{activeMenu}}</span>
+      </div>
+      <div class="list">
+        <keep-alive>
+          <router-view />
+        </keep-alive>
+      </div>
+    </div>
+  </div>
+</template>
+<script>
+export default {
+  name: "Permissions",
+  components: {},
+  data() {
+    return {
+      isfold: false,
+      isCollapse:false,
+      userName:'河北测试用户',
+      navList: [
+        {
+          name: '权限管理',
+          icon: 'el-icon-s-tools',
+          id: '0',
+          children: [
+            {
+              name: '角色介绍',
+              url:'/permissions/role',
+            },
+            {
+              name: '模块介绍',
+              url:'/permissions/module',
+            },
+            {
+              name: '用户管理',
+              url:'/permissions/user',
+            },
+          ]
+        },
+        {
+          name: '日志管理',
+          icon: 'el-icon-s-order',
+          id:'1',
+          children: [
+            {
+              name: '操作日志',
+              url:'/permissions/operate',
+            },
+            {
+              name: '登录日志',
+              url:'/permissions/login',
+            },
+          ]
+        },
+      ],
+      activeMenu: "角色介绍",
+    };
+  },
+
+  created() {
+    console.log(this.$router)
+    this.$router.push({
+          path:'/permissions/role',
+          query: {
+              token: sessionStorage.getItem('Authorization-Token'),
+              fromSystem: sessionStorage.getItem('Authorization-fromSystem'),
+          }
+      })
+    this.init();
+  },
+  methods: {
+    init() {},
+    handleSelect(val){
+      this.activeMenu = val
+    },
+    isfoldFun () {
+      this.isfold = !this.isfold
+      this.isCollapse = !this.isCollapse
+    },
+    navLike(val){
+      console.log('val: ', val);
+      this.$router.push({
+          path:val.url,
+          query: {
+              token: sessionStorage.getItem('Authorization-Token'),
+              fromSystem: sessionStorage.getItem('Authorization-fromSystem'),
+          }
+      })
+    }
+  },
+};
+</script>
+<style lang="less" scoped>
+@import "../../common/less/public.less";
+@import "../../common/less/layout.less";
+
+</style>

+ 185 - 0
src/components/permissions/login/index.vue

@@ -0,0 +1,185 @@
+<template>
+  <div>
+    <el-form
+      :model="queryParams"
+      ref="queryForm"
+      :inline="true"
+      label-width="100px"
+    >
+      <el-form-item label="账号" prop="loginName">
+        <el-input
+          v-model="queryParams.loginName"
+          placeholder="请输入账号"
+          clearable
+          size="small"
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item label="用户名" prop="userName">
+        <el-input
+          v-model="queryParams.userName"
+          placeholder="请输入用户名"
+          clearable
+          size="small"
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item label="登录系统" prop="system">
+        <el-select
+          v-model="queryParams.system"
+          placeholder="请选择登录系统"
+          clearable
+          size="small"
+        >
+          <el-option
+            v-for="dict in systemList"
+            :key="dict.system"
+            :label="dict.systemName"
+            :value="dict.system"
+          />
+        </el-select>
+      </el-form-item>
+      <el-form-item label="用户id" prop="userId">
+        <el-input
+          v-model="queryParams.userId"
+          placeholder="请输入用户id"
+          clearable
+          size="small"
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item label="地区" prop="cityId">
+        <el-select
+          v-model="queryParams.cityId"
+          placeholder="请选择地区"
+          clearable
+          size="small"
+        >
+          <el-option
+            v-for="dict in systemList"
+            :key="dict.system"
+            :label="dict.systemName"
+            :value="dict.system"
+          />
+        </el-select>
+      </el-form-item>
+      <el-form-item label="时间范围" prop="value">
+        <el-date-picker
+          v-model="queryParams.value"
+          size="small"
+          type="datetimerange"
+          value-format="yyyy-MM-dd HH:mm:ss"
+          range-separator="至"
+          @change="timeChange"
+          start-placeholder="开始日期"
+          end-placeholder="结束日期"
+        >
+        </el-date-picker>
+      </el-form-item>
+
+      <el-form-item style="float: right">
+        <el-button
+          type="primary"
+          icon="el-icon-search"
+          size="mini"
+          @click="handleQuery"
+          >搜索</el-button
+        >
+        <el-button icon="el-icon-refresh" size="mini" @click="resetQuery"
+          >重置</el-button
+        >
+        <el-button
+          type="primary"
+          icon="el-icon-download"
+          size="mini"
+          @click="handleDownload"
+          >导出</el-button
+        >
+      </el-form-item>
+    </el-form>
+
+    <el-table v-loading="loading" :data="tableList" border style="width: 100%">
+      <el-table-column type="index" width="50" label="序号" />
+      <el-table-column label="用户id" align="center" prop="userId" />
+      <el-table-column label="用户名" align="center" prop="userName" />
+      <el-table-column label="账号" align="center" prop="loginName" />
+      <el-table-column label="地市" align="center" prop="cityName" />
+      <el-table-column label="登录系统" align="center" prop="systemName" />
+      <el-table-column label="登录时间" align="center" prop="loginTime" />
+    </el-table>
+    <pagination
+      v-show="total > 0"
+      :total="total"
+      :page.sync="queryParams.current"
+      :limit.sync="queryParams.pageSize"
+      @pagination="getList"
+    />
+  </div>
+</template>
+
+<script>
+import { getSystemList, getVerificationLogList } from "../../../common/js/home";
+export default {
+  name: "Login",
+  components: {},
+  data() {
+    return {
+      loading: false,
+      systemList: [],
+      cityList: [],
+      queryParams: {
+        current: 1,
+        pageSize: 10,
+        loginName: "",
+        userName: "",
+        system: "",
+        userId: "",
+        cityId: "",
+        startTime: "",
+        endTime: "",
+        value: [],
+      },
+      tableList: [],
+      total: 0,
+    };
+  },
+  computed: {},
+  watch: {},
+  created() {
+    this.init();
+    this.getList();
+  },
+  methods: {
+    init() {
+      // getSystemList().then(res=>{
+      //   console.log('res: ', res);
+      //   this.systemList = res.data
+      // })
+    },
+    getList() {
+      // getVerificationLogList(this.queryParams).then(res=>{
+      //   console.log('res: ', res);
+      //   this.tableList = res.data;
+      //   this.total = res.total
+      // })
+    },
+    timeChange(val) {
+      console.log("val: ", val);
+      this.queryParams.startTime = val[0];
+      this.queryParams.endTime = val[1];
+    },
+    handleQuery() {
+      this.getList();
+    },
+    // 重置
+    resetQuery() {
+      this.resetForm("queryForm");
+    },
+    // 导出
+    handleDownload() {},
+  },
+};
+</script>
+
+<style lang="less" scoped>
+</style>

+ 353 - 0
src/components/permissions/module/index.vue

@@ -0,0 +1,353 @@
+<template>
+  <div>
+    <el-form
+      :model="queryParams"
+      ref="queryForm"
+      :inline="true"
+      label-width="68px"
+    >
+      <el-form-item label="模块名称" prop="functionName">
+        <el-input
+          v-model="queryParams.functionName"
+          placeholder="请输入模块名称"
+          clearable
+          size="small"
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item label="系统" prop="system">
+        <el-select
+          v-model="queryParams.system"
+          placeholder="请选择系统"
+          clearable
+          size="small"
+        >
+          <el-option
+            v-for="dict in systemList"
+            :key="dict.system"
+            :label="dict.systemName"
+            :value="dict.system"
+          />
+        </el-select>
+      </el-form-item>
+      <el-form-item label="客户端" prop="client">
+        <el-select
+          v-model="queryParams.client"
+          placeholder="请选择客户端"
+          clearable
+          size="small"
+        >
+          <el-option label="全部" value="0" />
+          <el-option label="web" value="web" />
+          <el-option label="app" value="app" />
+        </el-select>
+      </el-form-item>
+      <el-form-item style="float: right">
+        <el-button
+          type="primary"
+          icon="el-icon-search"
+          size="mini"
+          @click="handleQuery"
+          >搜索</el-button
+        >
+        <el-button icon="el-icon-refresh" size="mini" @click="resetQuery"
+          >重置</el-button
+        >
+      </el-form-item>
+    </el-form>
+    <!-- <el-row :gutter="10" class="marginBottom10">
+      <el-col :span="1.5">
+        <el-button
+          type="primary"
+          icon="el-icon-plus"
+          size="mini"
+          @click="handleAdd"
+          >新增</el-button
+        >
+      </el-col>
+      <el-col :span="1.5">
+        <el-button
+          type="danger"
+          icon="el-icon-delete"
+          size="mini"
+          :disabled="multiple"
+          @click="handleDelete"
+          >删除</el-button
+        >
+      </el-col>
+    </el-row> -->
+    <!-- <el-alert
+    v-show="!multiple"
+      :title="'已选择'+ delList.length + '项'"
+      class="marginBottom10"
+      :closable="false"
+      show-icon
+      type="warning">
+    </el-alert> -->
+    <el-table
+      v-loading="loading"
+      :data="tableList"
+      border
+      style="width: 100%"
+      @selection-change="handleSelectionChange"
+    >
+      <!-- <el-table-column type="selection" width="55" /> -->
+      <el-table-column type="index" width="50" label="序号" />
+      <el-table-column label="模块名称" align="center" prop="functionName" />
+      <el-table-column label="系统" align="center" prop="systemName" />
+      <el-table-column label="客户端" align="center" prop="clientName" />
+      <el-table-column label="介绍" align="center" prop="clientName" />
+      <!-- <el-table-column label="app优先级" align="center" prop="appPriority" />
+      <el-table-column label="web优先级" align="center" prop="webPriority" />
+      <el-table-column label="app链接" align="center" prop="appUrl" />
+      <el-table-column label="web链接" align="center" prop="webUrl" />
+      <el-table-column label="web图标链接" align="center" prop="webIcon" />
+      <el-table-column label="app图标链接" align="center" prop="appIcon" />
+      <el-table-column label="操作" width="150">
+        <template slot-scope="scope">
+          <el-button
+            size="mini"
+            type="text"
+            icon="el-icon-edit"
+            @click="handleEdit(scope.row)"
+            >编辑</el-button
+          >
+          <el-button
+            size="mini"
+            type="text"
+            icon="el-icon-delete fontRed"
+            @click="handleDelete(scope.row)"
+            >删除</el-button
+          >
+        </template>
+      </el-table-column> -->
+    </el-table>
+    <pagination
+      v-show="total > 0"
+      :total="total"
+      :page.sync="queryParams.current"
+      :limit.sync="queryParams.pageSize"
+      @pagination="getList"
+    />
+    <!-- 添加和编辑弹出框 -->
+    <el-dialog
+      :title="dialogTitle"
+      :visible.sync="dialogFormVisible"
+      append-to-body
+      width="600px"
+    >
+      <el-form
+        :model="form"
+        ref="form"
+        :rules="rules"
+        label-position="right"
+        label-width="100px"
+      >
+        <el-form-item label="模板名称" prop="functionName">
+          <el-input v-model="form.functionName" placeholder="请输入模板名称"></el-input>
+        </el-form-item>
+        <el-form-item label="系统" prop="system">
+          <el-select
+            v-model="form.system"
+            placeholder="请选择系统"
+            style="width: 100%"
+          >
+            <el-option
+              v-for="dict in systemList"
+              :key="dict.system"
+              :label="dict.systemName"
+              :value="dict.system"
+            />
+          </el-select>
+        </el-form-item>
+        <el-form-item label="客户端" prop="client">
+          <el-select
+            v-model="form.client"
+            placeholder="请选择客户端"
+            style="width: 100%"
+          >
+            <el-option label="全部" value="0" />
+            <el-option label="web" value="web" />
+            <el-option label="app" value="app" />
+          </el-select>
+        </el-form-item>
+        <el-form-item label="app优先级" prop="appPriority">
+          <el-input v-model="form.appPriority" placeholder="请输入app优先级"></el-input>
+        </el-form-item>
+        <el-form-item label="web优先级" prop="webPriority">
+          <el-input v-model="form.webPriority" placeholder="请输入web优先级"></el-input>
+        </el-form-item>
+        <el-form-item label="app链接" prop="appUrl">
+          <el-input v-model="form.appUrl" placeholder="请输入app链接"></el-input>
+        </el-form-item>
+        <el-form-item label="web链接" prop="webUrl">
+          <el-input v-model="form.webUrl" placeholder="请输入web链接"></el-input>
+        </el-form-item>
+        <el-form-item label="web图标链接" prop="webIcon">
+          <el-input v-model="form.webIcon" placeholder="请输入web图标链接"></el-input>
+        </el-form-item>
+        <el-form-item label="app图标链接" prop="appIcon">
+          <el-input v-model="form.appIcon" placeholder="请输入app图标链接"></el-input>
+        </el-form-item>
+      </el-form>
+      <div slot="footer" class="dialog-footer">
+        <el-button @click="dialogFormVisible = false">取 消</el-button>
+        <el-button type="primary" @click="submitForm"
+          >确 定</el-button
+        >
+      </div>
+    </el-dialog>
+  </div>
+</template>
+
+<script>
+import {
+  getSystemList,
+  getFunctionList,
+  getFunctionAdd,
+  getFunctionUpdate,
+  getFunctionDel
+} from "../../../common/js/home";
+export default {
+  name: "Module",
+  components: {},
+  data() {
+    return {
+      loading: false,
+      systemList: [],
+      queryParams: {
+        current: 1,
+        pageSize: 10,
+        functionName: "",
+        system: "",
+        client: "",
+      },
+      tableList: [
+        {
+          functionName: "投诉大屏",
+          systemName: "大屏",
+          clientName: "web",
+        },
+        {
+          functionName: "工单查询",
+          systemName: "流程",
+          clientName: "web",
+        },
+      ],
+      total: 0,
+      multiple: true,
+      delList:[],
+      dialogFormVisible: false,
+      dialogTitle: "",
+      form: {},
+      // 表单校验
+      rules: {
+        functionName: [
+          { required: true, message: "模板名称不能为空", trigger: "blur" },
+        ],
+        system: [
+          { required: true, message: "请选择模板名称", trigger: "change" },
+        ],
+        client: [
+          { required: true, message: "请选择客户端", trigger: "change" },
+        ],
+      },
+    };
+  },
+  computed: {},
+  watch: {},
+  created() {
+    this.init();
+    this.getList();
+  },
+  methods: {
+    init() {
+      // getSystemList().then(res=>{
+      //   console.log('res: ', res);
+      //   this.systemList = res.data
+      // })
+    },
+    getList() {
+      // this.loading = true;
+      // getFunctionList(this.queryParams).then(res=>{
+      //   console.log('res: ', res);
+      // this.loading = false;
+      //   this.tableList = res.data;
+      //   this.total = res.total
+      // })
+    },
+    handleQuery() {
+      this.getList();
+    },
+    // 重置
+    resetQuery() {
+      this.resetForm("queryForm");
+    },
+    handleSelectionChange(val) {
+      console.log("val: ", val);
+      this.delList = val
+      if(val.length != 0){
+        this.multiple = false
+      }else{
+        this.multiple = true
+      }
+    },
+    // 添加
+    handleAdd() {
+      this.dialogTitle = "模板添加";
+      this.dialogFormVisible = true;
+    },
+    // 编辑
+    handleEdit(val) {
+      console.log("val: ", val);
+      this.dialogTitle = "模板编辑";
+      this.dialogFormVisible = true;
+    },
+    //删除
+    handleDelete(val) {
+      console.log("val: ", val);
+      this.$confirm('是否确认删除', '提示', {
+          confirmButtonText: '确定',
+          cancelButtonText: '取消',
+          type: 'warning'
+        }).then(() => {
+          this.$message({
+            type: 'success',
+            message: '删除成功!'
+          });
+        }).catch(() => {
+          this.$message({
+            type: 'info',
+            message: '已取消删除'
+          });          
+        });
+    },
+    submitForm() {
+      this.$refs["form"].validate(valid => {
+        if (valid) {
+          if (this.form.functionId != undefined) {
+            getFunctionUpdate(this.form).then(response => {
+              if (response.code === 200) {
+                this.msgSuccess("修改成功");
+                this.open = false;
+                this.getList();
+              }
+            });
+          } else {
+            getFunctionAdd(this.form).then(response => {
+              if (response.code === 200) {
+                this.msgSuccess("新增成功");
+                this.open = false;
+                this.getList();
+              }
+            });
+          }
+        }
+      });
+    }
+  },
+};
+</script>
+
+<style lang="less" scoped>
+</style>

+ 157 - 0
src/components/permissions/operate/index.vue

@@ -0,0 +1,157 @@
+<template>
+  <div>
+    <el-form
+      :model="queryParams"
+      ref="queryForm"
+      :inline="true"
+      label-width="100px"
+    >
+      <el-form-item label="账号" prop="operatorAccount">
+        <el-input
+          v-model="queryParams.operatorAccount"
+          placeholder="请输入账号"
+          clearable
+          size="small"
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item label="用户名" prop="operatorName">
+        <el-input
+          v-model="queryParams.operatorName"
+          placeholder="请输入用户名"
+          clearable
+          size="small"
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item label="用户id" prop="operatorId">
+        <el-input
+          v-model="queryParams.operatorId"
+          placeholder="请输入用户id"
+          clearable
+          size="small"
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item label="操作名称" prop="operationName">
+        <el-input
+          v-model="queryParams.operationName"
+          placeholder="请输入操作名称"
+          clearable
+          size="small"
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item label="时间范围" prop="value">
+        <el-date-picker
+          v-model="queryParams.value"
+          size="small"
+          type="datetimerange"
+          value-format="yyyy-MM-dd HH:mm:ss"
+          range-separator="至"
+          @change="timeChange"
+          start-placeholder="开始日期"
+          end-placeholder="结束日期">
+        </el-date-picker>
+      </el-form-item>
+    
+      <el-form-item style="float:right">
+        <el-button
+          type="primary"
+          icon="el-icon-search"
+          size="mini"
+          @click="handleQuery"
+          >搜索</el-button
+        >
+        <el-button icon="el-icon-refresh" size="mini" @click="resetQuery"
+          >重置</el-button
+        >
+        <el-button
+          type="primary"
+          icon="el-icon-download"
+          size="mini"
+          @click="handleDownload"
+          >导出</el-button
+        >
+      </el-form-item>
+    </el-form>
+
+    <el-table v-loading="loading" :data="tableList"  border style="width: 100%">
+      <el-table-column type="index" width="50" label="序号"/>
+      <el-table-column label="操作名称" align="center" prop="operationName" />
+      <el-table-column label="操作内容" align="center" prop="operationContent" />
+      <el-table-column label="用户id" align="center" prop="operatorId" />
+      <el-table-column label="用户名称" align="center" prop="operatorName" />
+      <el-table-column label="账号" align="center" prop="operatorAccount" />
+      <el-table-column label="操作时间" align="center" prop="operationTime" />
+    </el-table>
+    <pagination
+        v-show="total>0"
+        :total="total"
+        :page.sync="queryParams.current"
+        :limit.sync="queryParams.pageSize"
+        @pagination="getList"
+      />
+  </div>
+</template>
+
+<script>
+import { getOperationLogList } from "../../../common/js/home";
+export default {
+  name: "Operate",
+  components: {},
+  data() {
+    return {
+      loading: false,
+      systemList: [],
+      queryParams: {
+        current: 1,
+        pageSize: 10,
+        operatorAccount: "",
+        operatorName: "",
+        operatorId: "",
+        operationName: "",
+        startTime: "",
+        endTime: "",
+        value:[],
+      },
+      tableList: [],
+      total: 0,
+    };
+  },
+  computed: {},
+  watch: {},
+  created() {
+    this.getList();
+  },
+  methods: {
+    getList() {
+      // getOperationLogList(this.queryParams).then(res=>{
+      //   console.log('res: ', res);
+      //   this.tableList = res.data;
+      //   this.total = res.total
+      // })
+    },
+    timeChange(val) {
+      console.log('val: ', val);
+      this.queryParams.startTime = val[0]
+      this.queryParams.endTime = val[1]
+
+    },
+    handleQuery() {
+      this.getList();
+    },
+    // 重置
+    resetQuery() {
+      this.resetForm("queryForm");
+    },
+    // 导出
+    handleDownload() {
+
+    },
+  },
+};
+</script>
+
+<style lang="less" scoped>
+</style>

+ 116 - 0
src/components/permissions/role/index.vue

@@ -0,0 +1,116 @@
+<template>
+  <div>
+    <el-form
+      :model="queryParams"
+      ref="queryForm"
+      :inline="true"
+      label-width="68px"
+    >
+      <el-form-item label="角色名称" prop="roleName">
+        <el-input
+          v-model="queryParams.roleName"
+          placeholder="请输入角色名称"
+          clearable
+          size="small"
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item label="系统" prop="system">
+        <el-select
+          v-model="queryParams.system"
+          placeholder="请选择系统"
+          clearable
+          size="small"
+        >
+          <el-option
+            v-for="dict in systemList"
+            :key="dict.system"
+            :label="dict.systemName"
+            :value="dict.system"
+          />
+        </el-select>
+      </el-form-item>
+      <el-form-item style="float: right">
+        <el-button
+          type="primary"
+          icon="el-icon-search"
+          size="mini"
+          @click="handleQuery"
+          >搜索</el-button
+        >
+        <el-button icon="el-icon-refresh" size="mini" @click="resetQuery"
+          >重置</el-button
+        >
+      </el-form-item>
+    </el-form>
+
+    <el-table v-loading="loading" :data="tableList"  border style="width: 100%">
+      <el-table-column type="index" width="50" label="序号"/>
+      <el-table-column label="角色名称" align="center" prop="roleName" />
+      <el-table-column label="系统" align="center" prop="systemName" />
+      <el-table-column label="系统id" align="center" prop="system" />
+      <el-table-column label="角色描述" align="center" prop="system" />
+    </el-table>
+    <pagination
+        v-show="total>0"
+        :total="total"
+        :page.sync="queryParams.current"
+        :limit.sync="queryParams.pageSize"
+        @pagination="getList"
+      />
+  </div>
+</template>
+
+<script>
+import { getSystemList, getRoleList } from "../../../common/js/home";
+export default {
+  name: "Role",
+  components: {},
+  data() {
+    return {
+      loading: false,
+      systemList: [],
+      queryParams: {
+        current: 1,
+        pageSize: 10,
+        roleName: "",
+        system: "",
+      },
+      tableList: [],
+      total: 0,
+    };
+  },
+  computed: {},
+  watch: {},
+  created() {
+    console.log(this.$router);
+    this.init();
+    this.getList();
+  },
+  methods: {
+    init() {
+      // getSystemList().then(res=>{
+      //   console.log('res: ', res);
+      //   this.systemList = res.data
+      // })
+    },
+    getList() {
+      // getRoleList(this.queryParams).then(res=>{
+      //   console.log('res: ', res);
+      //   this.tableList = res.data;
+      //   this.total = res.total
+      // })
+    },
+    handleQuery() {
+      this.getList();
+    },
+    // 重置
+    resetQuery() {
+      this.resetForm("queryForm");
+    },
+  },
+};
+</script>
+
+<style lang="less" scoped>
+</style>

+ 486 - 0
src/components/permissions/user/index.vue

@@ -0,0 +1,486 @@
+<template>
+  <div>
+    <el-form
+      :model="queryParams"
+      ref="queryForm"
+      :inline="true"
+      label-width="68px"
+    >
+      <el-form-item label="账号" prop="loginName">
+        <el-input
+          v-model="queryParams.loginName"
+          placeholder="请输入账号"
+          clearable
+          size="small"
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item label="用户名" prop="userName">
+        <el-input
+          v-model="queryParams.userName"
+          placeholder="请输入用户名"
+          clearable
+          size="small"
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item label="部门" prop="org">
+        <el-input
+          v-model="queryParams.org"
+          placeholder="请输入部门"
+          clearable
+          size="small"
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item label="地区" prop="areaId">
+        <el-select
+          v-model="queryParams.areaId"
+          placeholder="请选择省份/地市/区县"
+          clearable
+          size="small"
+        >
+          <el-option
+            v-for="dict in cityList"
+            :key="dict.system"
+            :label="dict.systemName"
+            :value="dict.system"
+          />
+        </el-select>
+      </el-form-item>
+      <el-form-item style="float: right">
+        <el-button
+          type="primary"
+          icon="el-icon-search"
+          size="mini"
+          @click="handleQuery"
+          >搜索</el-button
+        >
+        <el-button icon="el-icon-refresh" size="mini" @click="resetQuery"
+          >重置</el-button
+        >
+      </el-form-item>
+    </el-form>
+    <el-row :gutter="10" class="marginBottom10">
+      <el-col :span="1.5">
+        <el-button
+          type="primary"
+          icon="el-icon-plus"
+          size="mini"
+          @click="handleAdd"
+          >新增</el-button
+        >
+      </el-col>
+      <el-col :span="1.5">
+        <el-button
+          type="warning"
+          icon="el-icon-document-copy"
+          size="mini"
+          :disabled="multiple"
+          @click="handleCopy"
+          >批量权限复制</el-button
+        >
+      </el-col>
+      <el-col :span="1.5">
+        <el-button
+          type="danger"
+          icon="el-icon-delete"
+          size="mini"
+          :disabled="multiple"
+          @click="handleDelete"
+          >删除</el-button
+        >
+      </el-col>
+    </el-row>
+    <el-alert
+      v-show="!multiple"
+      :title="'已选择' + delList.length + '项'"
+      class="marginBottom10"
+      :closable="false"
+      show-icon
+      type="warning"
+    >
+    </el-alert>
+    <el-table
+      v-loading="loading"
+      :data="tableList"
+      border
+      style="width: 100%"
+      @selection-change="handleSelectionChange"
+    >
+      <el-table-column type="selection" width="55" />
+      <el-table-column type="index" width="50" label="序号" />
+      <el-table-column label="用户名" align="center" prop="userName" />
+      <el-table-column label="账号" align="center" prop="loginName" />
+      <el-table-column label="手机号" align="center" prop="phone" />
+      <el-table-column label="邮箱" align="center" prop="email" />
+      <el-table-column label="省份" align="center" prop="provinceName" />
+      <el-table-column label="地市" align="center" prop="cityName" />
+      <el-table-column label="区县" align="center" prop="areaName" />
+      <el-table-column label="部门" align="center" prop="org" />
+      <el-table-column label="操作" width="200">
+        <template slot-scope="scope">
+          <el-button
+            size="mini"
+            type="text"
+            icon="el-icon-edit"
+            @click="handleEdit(scope.row)"
+            >编辑</el-button
+          >
+          <el-button
+            size="mini"
+            type="text"
+            icon="el-icon-delete fontRed"
+            @click="handleDelete(scope.row)"
+            >删除</el-button
+          >
+          <el-button
+            size="mini"
+            type="text"
+            icon="el-icon-document"
+            @click="handleDetail(scope.row)"
+            >详情</el-button
+          >
+        </template>
+      </el-table-column>
+    </el-table>
+    <pagination
+      v-show="total > 0"
+      :total="total"
+      :page.sync="queryParams.current"
+      :limit.sync="queryParams.pageSize"
+      @pagination="getList"
+    />
+    <!-- 添加和编辑弹出框 -->
+    <el-dialog
+      :title="dialogTitle"
+      :visible.sync="dialogFormVisible"
+      append-to-body
+      width="600px"
+    >
+      <el-form
+        :model="form"
+        ref="form"
+        :rules="rules"
+        label-position="right"
+        label-width="100px"
+      >
+      <div v-if="dialogTitle != '批量复制权限'">
+        <el-form-item label="账号" prop="loginName">
+          <el-input
+            v-model="form.loginName"
+            placeholder="请输入账号"
+            :style="dialogTitle == '用户添加'?'width: 70%':'width: 100%'"
+            :disabled="isDisabled"
+          ></el-input>
+          <el-button type="primary" @click="searchUserList" v-if="dialogTitle == '用户添加'"
+            >查询用户信息</el-button
+          >
+        </el-form-item>
+        <el-form-item label="邮箱" prop="email">
+          <el-input
+            v-model="form.email"
+            placeholder="请输入邮箱"
+            :disabled="isDisabledEmail"
+          ></el-input>
+        </el-form-item>
+       
+          <el-form-item label="手机号" prop="phone">
+            <span>{{ form.phone }}</span>
+          </el-form-item>
+          <el-form-item label="用户名" prop="userName">
+            <span>{{ form.userName }}</span>
+          </el-form-item>
+          <el-form-item label="省份" prop="provinceId">
+            <span>{{ form.provinceId }}</span>
+          </el-form-item>
+          <el-form-item label="地市" prop="cityId">
+            <span>{{ form.cityId }}</span>
+          </el-form-item>
+          <el-form-item label="区县" prop="areaId">
+            <span>{{ form.areaId }}</span>
+          </el-form-item>
+          <el-form-item label="组织" prop="org">
+            <span>{{ form.org }}</span>
+          </el-form-item>
+        </div>
+        <div v-if="dialogTitle != '用户详情'">
+          <div class="formTitle">权限分配</div>
+          <el-form-item label="要复制的账号" prop="email">
+            <el-input
+              v-model="form.email"
+              placeholder="请输入要复制的账号"
+              style="width: 70%"
+              :disabled="isDisabled2"
+            ></el-input>
+            <el-button type="primary" @click="copyPermissions"
+              >复制权限</el-button
+            >
+          </el-form-item>
+        </div>
+
+        <div class="formTitle">流程</div>
+        <el-form-item label="工单查询" prop="areaId">
+          <el-select
+            v-model="form.areaId"
+            placeholder="请选择地区"
+            clearable
+            size="small"
+            style="width: 100%"
+            :disabled="isDisabled2"
+          >
+            <el-option
+              v-for="dict in cityList"
+              :key="dict.system"
+              :label="dict.systemName"
+              :value="dict.system"
+            />
+          </el-select>
+        </el-form-item>
+        <el-form-item label="工单处理" prop="areaId">
+          <el-select
+            v-model="form.areaId"
+            placeholder="请选择地区"
+            clearable
+            size="small"
+            style="width: 100%"
+            :disabled="isDisabled2"
+          >
+            <el-option
+              v-for="dict in cityList"
+              :key="dict.system"
+              :label="dict.systemName"
+              :value="dict.system"
+            />
+          </el-select>
+        </el-form-item>
+        <div class="formTitle">黑点库</div>
+        <el-form-item label="黑点库管理" prop="areaId">
+          <el-select
+            v-model="form.areaId"
+            placeholder="请选择地区"
+            clearable
+            size="small"
+            style="width: 100%"
+            :disabled="isDisabled2"
+          >
+            <el-option
+              v-for="dict in cityList"
+              :key="dict.system"
+              :label="dict.systemName"
+              :value="dict.system"
+            />
+          </el-select>
+        </el-form-item>
+        <el-form-item label="黑点库查询" prop="areaId">
+          <el-select
+            v-model="form.areaId"
+            placeholder="请选择地区"
+            clearable
+            size="small"
+            style="width: 100%"
+            :disabled="isDisabled2"
+          >
+            <el-option
+              v-for="dict in cityList"
+              :key="dict.system"
+              :label="dict.systemName"
+              :value="dict.system"
+            />
+          </el-select>
+        </el-form-item>
+      </el-form>
+      <div slot="footer" class="dialog-footer">
+        <el-button @click="dialogFormVisible = false">取 消</el-button>
+        <el-button type="primary" @click="submitForm">确 定</el-button>
+      </div>
+    </el-dialog>
+  </div>
+</template>
+
+<script>
+import {
+  getTopUserByLoginName,
+  getroleAll,
+  getCityAreaList,
+  getRoleByLoginName,
+  getUserList,
+  getUserAdd,
+  getUserUpdate,
+  getUserDel,
+  getUserDetail,
+  getRoleCopy,
+} from "../../../common/js/home";
+export default {
+  name: "Module",
+  components: {},
+  data() {
+    return {
+      loading: false,
+      cityList: [],
+      queryParams: {
+        current: 1,
+        pageSize: 10,
+        loginName: "",
+        userName: "",
+        org: "",
+        areaId: "",
+      },
+      tableList: [
+        {
+          userName: "投诉大屏",
+          loginName: "大屏",
+          org: "web",
+        },
+        {
+          userName: "工单查询",
+          loginName: "流程",
+          org: "web",
+        },
+      ],
+      total: 0,
+      multiple: true,
+      delList: [],
+      dialogFormVisible: false,
+      dialogTitle: "",
+      form: {},
+      isDisabled: true,
+      isDisabled2: true,
+      isDisabledEmail: true,
+      // 表单校验
+      rules: {
+        loginName: [
+          { required: true, message: "账号不能为空", trigger: "blur" },
+        ],
+      },
+    };
+  },
+  computed: {},
+  watch: {},
+  created() {
+    this.init();
+    this.getList();
+  },
+  methods: {
+    init() {
+      // getSystemList().then(res=>{
+      //   console.log('res: ', res);
+      //   this.systemList = res.data
+      // })
+    },
+    getList() {
+      // this.loading = true;
+      // getUserList(this.queryParams).then(res=>{
+      //   console.log('res: ', res);
+      // this.loading = false;
+      //   this.tableList = res.data;
+      //   this.total = res.total
+      // })
+    },
+    handleQuery() {
+      this.getList();
+    },
+    // 重置
+    resetQuery() {
+      this.resetForm("queryForm");
+    },
+    handleSelectionChange(val) {
+      console.log("val: ", val);
+      this.delList = val;
+      if (val.length != 0) {
+        this.multiple = false;
+      } else {
+        this.multiple = true;
+      }
+    },
+    // 添加
+    handleAdd() {
+      this.dialogTitle = "用户添加";
+      this.dialogFormVisible = true;
+      this.isDisabled = false;
+      this.isDisabledEmail = false;
+      this.isDisabled2 = false;
+    },
+    // 复制权限
+    handleCopy() {
+      this.dialogTitle = "批量复制权限";
+      this.dialogFormVisible = true;
+      this.isDisabled2 = false;
+    },
+    // 编辑
+    handleEdit(val) {
+      console.log("val: ", val);
+      this.dialogTitle = "用户编辑";
+      this.dialogFormVisible = true;
+      this.isDisabled = true;
+      this.isDisabledEmail = false;
+      this.isDisabled2 = false;
+    },
+    // 详情
+    handleDetail(val) {
+      console.log("val: ", val);
+      this.dialogTitle = "用户详情";
+      this.dialogFormVisible = true;
+      this.isDisabled = true;
+      this.isDisabledEmail = true;
+      this.isDisabled2 = true;
+    },
+    // 查询用户信息
+    searchUserList() {},
+    //复制权限
+    copyPermissions() {},
+    //删除
+    handleDelete(val) {
+      console.log("val: ", val);
+      this.$confirm("是否确认删除", "提示", {
+        confirmButtonText: "确定",
+        cancelButtonText: "取消",
+        type: "warning",
+      })
+        .then(() => {
+          this.$message({
+            type: "success",
+            message: "删除成功!",
+          });
+        })
+        .catch(() => {
+          this.$message({
+            type: "info",
+            message: "已取消删除",
+          });
+        });
+    },
+    submitForm() {
+      this.$refs["form"].validate((valid) => {
+        if (valid) {
+          if (this.form.functionId != undefined) {
+            getFunctionUpdate(this.form).then((response) => {
+              if (response.code === 200) {
+                this.msgSuccess("修改成功");
+                this.open = false;
+                this.getList();
+              }
+            });
+          } else {
+            getFunctionAdd(this.form).then((response) => {
+              if (response.code === 200) {
+                this.msgSuccess("新增成功");
+                this.open = false;
+                this.getList();
+              }
+            });
+          }
+        }
+      });
+    },
+  },
+};
+</script>
+
+<style lang="less" scoped>
+.formTitle {
+  height: 40px;
+  line-height: 40px;
+  font-weight: bold;
+}
+</style>

+ 64 - 6
src/main.js

@@ -1,8 +1,66 @@
-import { createApp } from 'vue'
-import App from './App.vue'
+// The Vue build version to load with the `import` command
+// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
+import Vue from 'vue'
+import Vant from 'vant';
+import App from './App'
 import router from './router'
-import store from './store'
-import ElementPlus from 'element-plus'
-import 'element-plus/dist/index.css'
+import store from './store/index.js'
+import axios from 'axios'
+import 'babel-polyfill'
+import 'core-js/fn/array/flatten'
+import { getUrl } from './common/js/methods'
+import { resetForm } from './common/js/public'
+
+import 'vant/lib/index.css';
+import 'vant/lib/icon/local.css';
+import './common/css/font.css'
+import Pagination from "./public/Pagination/index.vue";
+
+if (isH5Milieu) {
+  import('./common/css/h5style.css')
+}
+
+import { mobileFilterAdd } from './common/js/methods'
+// import { Popup, NavBar, Icon, AddressEdit, Toast, Tabbar, TabbarItem, Form, Field, Button, Picker, DatetimePicker, Pagination, Overlay, Tab, Tabs, Empty, Dialog, Uploader } from 'vant';
+
+// Vue.use(Popup).use(NavBar).use(Icon).use(AddressEdit).use(Toast).use(Tabbar).use(TabbarItem).use(Form).use(Field).use(Button).use(Picker).use(DatetimePicker).use(Pagination).use(Overlay).use(Tab).use(Tabs).use(Empty).use(Dialog).use(Uploader)
+
+
+Vue.use(Vant);
+
+Vue.filter('mobileFilterAdd', mobileFilterAdd)
+
+Vue.prototype.resetForm = resetForm
+
+// 全局组件挂载
+Vue.component('Pagination', Pagination)
+
+Vue.prototype.$axios = axios
+Vue.config.productionTip = false
+Vue.config.devtools = true
+
+if (process.env.NODE_ENV === 'production') {
+  console.log('生产环境');
+} else if (process.env.NODE_ENV === 'zhejiang') {
+  console.log('浙江环境');
+} else if (process.env.NODE_ENV === 'henan') {
+  console.log('河南环境');
+} else if (process.env.NODE_ENV === 'pre-release') {
+  console.log('其它地市的环境');
+} else if (process.env.NODE_ENV === 'hebei') {
+  console.log('河北环境');
+}
+// 河南用到了 Authorization-Token
+sessionStorage.setItem('Authorization-Token', getUrl().token)
+sessionStorage.setItem('Authorization-fromSystem', getUrl().fromSystem)
+
+/* eslint-disable no-new */
+new Vue({
+  el: '#app',
+  store,
+  router,
+  components: { App },
+  template: '<App/>',
+})
+
 
-createApp(App).use(ElementPlus).use(store).use(router).mount('#app')

+ 101 - 0
src/public/Pagination/index.vue

@@ -0,0 +1,101 @@
+<template>
+  <div :class="{'hidden':hidden}" class="pagination-container">
+    <el-pagination
+      :background="background"
+      :current-page.sync="currentPage"
+      :page-size.sync="pageSize"
+      :layout="layout"
+      :page-sizes="pageSizes"
+      :total="total"
+      v-bind="$attrs"
+      @size-change="handleSizeChange"
+      @current-change="handleCurrentChange"
+    />
+  </div>
+</template>
+
+<script>
+import { scrollTo } from '@/utils/scroll-to'
+
+export default {
+  name: 'Pagination',
+  props: {
+    total: {
+      required: true,
+      type: Number
+    },
+    page: {
+      type: Number,
+      default: 1
+    },
+    limit: {
+      type: Number,
+      default: 20
+    },
+    pageSizes: {
+      type: Array,
+      default() {
+        return [10, 20, 30, 50]
+      }
+    },
+    layout: {
+      type: String,
+      default: 'total, sizes, prev, pager, next, jumper'
+    },
+    background: {
+      type: Boolean,
+      default: true
+    },
+    autoScroll: {
+      type: Boolean,
+      default: true
+    },
+    hidden: {
+      type: Boolean,
+      default: false
+    }
+  },
+  computed: {
+    currentPage: {
+      get() {
+        return this.page
+      },
+      set(val) {
+        this.$emit('update:page', val)
+      }
+    },
+    pageSize: {
+      get() {
+        return this.limit
+      },
+      set(val) {
+        this.$emit('update:limit', val)
+      }
+    }
+  },
+  methods: {
+    handleSizeChange(val) {
+      this.$emit('pagination', { page: this.currentPage, limit: val })
+      if (this.autoScroll) {
+        scrollTo(0, 800)
+      }
+    },
+    handleCurrentChange(val) {
+      this.$emit('pagination', { page: val, limit: this.pageSize })
+      if (this.autoScroll) {
+        scrollTo(0, 800)
+      }
+    }
+  }
+}
+</script>
+
+<style scoped>
+.pagination-container {
+  background: #fff;
+  padding: 32px 16px;
+}
+.pagination-container.hidden {
+  display: none;
+}
+</style>

+ 61 - 22
src/router/index.js

@@ -1,26 +1,65 @@
-import { createRouter, createWebHistory } from 'vue-router'
+import Vue from 'vue'
+import Router from 'vue-router'
+Vue.use(Router)
 
-const routes = [
-  {
-    path: '/',
-    name: 'UserList',
-    component: () => import('@/views/UserList')
-  },
-  {
-    path: '/userinfo',
-    name: 'UserInfo',
-    component: () => import('@/views/UserInfo')
-  },
-  {
-    path: '/error',
-    name: 'ErrorPage',
-    component: () => import('@/views/ErrorPage')
-  }
-]
-
-const router = createRouter({
-  history: createWebHistory(process.env.BASE_URL),
-  routes
+const router = new Router({
+  // mode: 'history',
+  routes: [
+    {
+      path: '/',
+      redirect: '/home'
+    },
+    {
+      path: '/home',
+      name: 'Home',
+      component: () => import('@/components/home/index'),
+      meta: {
+        title: '首页'
+      },
+    },
+    {
+      path: '/permissions',
+      redirect: 'Permissions',
+      component:() => import('@/components/permissions/index'),
+      children: [
+        {
+          path: '/permissions/role',
+          path: 'Role',
+          component:() => import('@/components/permissions/role'),
+          name: '角色介绍',
+        },
+        {
+          path: '/permissions/module',
+          path: 'Module',
+          component:() => import('@/components/permissions/module'),
+          name: '模块介绍',
+        },
+        {
+          path: '/permissions/user',
+          path: 'User',
+          component:() => import('@/components/permissions/user'),
+          name: '角色管理',
+        },
+        {
+          path: '/permissions/operate',
+          path: 'Operate',
+          component:() => import('@/components/permissions/operate'),
+          name: '操作日志',
+        },
+        {
+          path: '/permissions/login',
+          path: 'Login',
+          component:() => import('@/components/permissions/login'),
+          name: '登录日志',
+        },
+      ]
+    },
+  ]
 })
 
+const defaultTitle = '投诉管理系统'
+router.beforeEach((to, from, next) => {
+  document.title = to.meta.title ? to.meta.title : defaultTitle
+  next()
+})
 export default router

+ 19 - 0
src/store/actions.js

@@ -0,0 +1,19 @@
+// import {
+//   DICTIONARY
+// } from 'common/js/getData'
+// import * as types from './mutation-types';
+
+
+// export const SQL_TYPE = function ({ commit }) {
+//   DICTIONARY({
+//     typeCode: 'SQL_TYPE'
+//   }).then(res => {
+//     console.log(res.data)
+//     commit(types.SQL_TYPE, res.data)
+//   })
+
+// }
+
+// export const setFilterArea = async function ({ commit }, data) {
+//   await commit("setFilterArea", data)
+// }

+ 5 - 0
src/store/getters.js

@@ -0,0 +1,5 @@
+
+export const table_cur_item = state => state.table_cur_item
+export const route_cache = state => state.table_cur_item
+export const getDictionaryData = state => state.dictionary
+export const getUser = state => key => state.user[key]

+ 15 - 12
src/store/index.js

@@ -1,14 +1,17 @@
-import { createStore } from 'vuex'
+import Vue from 'vue'
+import Vuex from 'vuex'
 
-export default createStore({
-  state: {
-  },
-  getters: {
-  },
-  mutations: {
-  },
-  actions: {
-  },
-  modules: {
-  }
+Vue.use(Vuex)
+
+// 彭泽整理数据仓库
+import mutations from './mutations'
+import state from './state'
+import * as actions from './actions'
+import * as getters from './getters'
+
+export default new Vuex.Store({
+    actions,  
+    getters,
+    state,
+    mutations,
 })

+ 10 - 0
src/store/mutation-types.js

@@ -0,0 +1,10 @@
+export const DEL_TABLE_ITEM = 'DEL_TABLE_ITEM'      //删除表格当前行
+export const SET_ROUTE_CACHE = 'SET_ROUTE_CACHE'    //设置路由缓存状态
+export const SET_TABLE_DATA = 'SET_TABLE_DATA'      //设置表格中的数据
+export const DEL_TABLE_DATA = 'DEL_TABLE_DATA'      //删除表格中的数据
+export const CL_TABLE_DATA = 'CL_TABLE_DATA'        //取消选中项
+
+
+export const SET_INITSTARTTIME = "SET_INITSTARTTIME" //更新日期设置起始时间
+export const SET_INITENDTIME = "SET_INITENDTIME"  //更新日期设置结束时间
+export const SQL_TYPE = "SQL_TYPE" //sql类型

+ 69 - 0
src/store/mutations.js

@@ -0,0 +1,69 @@
+
+import * as types from './mutation-types';
+
+const mutations = {
+  [types.DEL_TABLE_ITEM] (state, item) {
+    state.table_cur_item = item
+  },
+  [types.SET_ROUTE_CACHE] (state, item) {
+    state.route_cache = item
+  },
+
+  [types.SET_TABLE_DATA] (state, data) {
+    state.setTableData = data
+  },
+  [types.DEL_TABLE_DATA] (state, payload) {
+    state.setTableData.splice(payload.idx, 1)
+    state.setTableJs = payload.row
+  },
+  [types.CL_TABLE_DATA] (state, payload) {
+    state.isClTableData = !state.isClTableData
+  },
+  setDictionaryData (state, data) {
+    let flag = false
+    state.dictionary.forEach((item) => {
+      if (item.typeCode == data.typeCode) {
+        flag = true
+        return false
+      }
+    })
+    if (!flag) {
+      state.dictionary.push(data)
+    }
+  },
+  setUser (state, data) {
+    state.user = data
+  },
+  setDragDialogOrderNo (state, data) {
+    state.dragDialogOrderNo.push(data)
+    state.dragDialogOrderNo = [...new Set(state.dragDialogOrderNo)]
+  },
+  setCurrentDragDialog (state, data) {
+    state.currentDragDialog = data
+  },
+  taskCurrentOrder (state, data) {
+    state.taskCurrentOrder = data
+  },
+  taskCurrentProcess (state, data) {
+    state.currentProcess = data
+  },
+  [types.SET_INITSTARTTIME] (state, data) {
+    state.initStartTime = data || ""
+  },
+  [types.SET_INITENDTIME] (state, data) {
+    state.initEndTime = data || ""
+  },
+  [types.SQL_TYPE] (state, data) {
+    state.SQL_TYPE = data
+  },
+  setFilterArea (state, data) {
+    state.filterArea = data
+  },
+  setToken (state, data) {
+    state.token = data
+  },
+
+
+}
+
+export default mutations

+ 59 - 0
src/store/state.js

@@ -0,0 +1,59 @@
+import dayjs from "dayjs";
+import { getUrl } from '../common/js/methods'
+
+const userId = getUrl().userId || ""
+let getH5UserInfo = "",
+  spdbLook = "";
+if (isH5Milieu) {  //h5 环境
+  spdbLook = getUrl().orderNo || ""
+  try {
+    let res = window.Android.getUserInfo()
+    getH5UserInfo = JSON.parse(res).userId
+  } catch (error) {
+    getH5UserInfo = ""
+    console.log(`h5UserInofAndroid${error}`)
+  }
+}
+if (userId) {
+  getH5UserInfo = userId
+}
+const state = {
+  spdbLook: spdbLook,  //胜浦多帮 查看工单
+  isH5Milieu: isH5Milieu,   //true 是 H5环境
+  processEnvNode: process.env.NODE_ENV,  //当前的开发环境
+  token: '',
+  table_cur_item: {}, //表格当前的id
+  route_cache: true, //路由缓存
+  selectPageSizes: [20, 50, 100, 200, 300, 400, 1000, 2000],
+  cutPageSize: 20, //页面条数
+  user: {}, // user接口返回的数据
+  userInfo: {
+    //用户信息  昆明发起  "878"
+    //昆明地市处理id  4548
+    //取消挂起审核 4551
+    //带区县用户  5609 pltest pl12345  5918 昆明-盘龙区 me: 7638
+    // fxfx_pc jzfx123456  6054 995  张叶江 1021 994
+    // 5342 宋静process.env.NODE_ENV
+    //userId: process.env.NODE_ENV === 'development' ? '1' : getH5UserInfo
+    userId: process.env.NODE_ENV === 'development' ? '3' : getH5UserInfo
+  },
+  filterArea: {
+    manageCityList: [],
+    manageRegionList: []
+  },
+  setTableData: [],
+  setTableJs: {},
+  isClTableData: false,
+  taskCurrentOrder: {}, //任务列表中选中的当前工单
+  dictionary: [], //根据typecode的信息获取到的数据字典
+  dragDialogOrderNo: [], //任务处理串接可拖动弹窗的工单编号数组
+  currentDragDialog: '', //当前激活的弹出层
+  //外部修改css
+  dictionaryTableAutoHeight: externalStore.dictionaryHeight,
+  // 更新日期默认时间
+  initStartTime: dayjs(new Date()).format('YYYY-MM-DD'),
+  initEndTime: dayjs(new Date().getTime() - 30 * 24 * 60 * 60 * 1000).format('YYYY-MM-DD'),
+  SQL_TYPE: "",
+  currentProcess: {}
+}
+export default state

+ 6 - 0
src/utils/errorCode.js

@@ -0,0 +1,6 @@
+export default {
+  '401': '认证失败,无法访问系统资源',
+  '403': '当前操作没有权限',
+  '404': '访问资源不存在',
+  'default': '系统未知错误,请反馈给管理员'
+}

+ 110 - 0
src/utils/request.js

@@ -0,0 +1,110 @@
+import axios from 'axios'
+import { Notification, MessageBox, Message } from 'element-ui'
+import store from '@/store'
+// import { getToken } from '@/utils/auth'
+import errorCode from '@/utils/errorCode'
+
+axios.defaults.headers['Content-Type'] = 'application/json;charset=utf-8'
+// 创建axios实例
+const service = axios.create({
+  // axios中请求配置有baseURL选项,表示请求URL公共部分
+  baseURL: process.env.VUE_APP_BASE_API,
+  // 超时
+  timeout: 30000
+})
+// request拦截器
+service.interceptors.request.use(config => {
+  // 是否需要设置 token
+  const isToken = (config.headers || {}).isToken === false
+  // if (getToken() && !isToken) {
+  //   config.headers['Authorization'] = 'Bearer ' + getToken() // 让每个请求携带自定义token 请根据实际情况自行修改
+  // }
+  let Authorization_Token = sessionStorage.getItem('Authorization-Token')
+  let Authorization_fromSystem = sessionStorage.getItem('Authorization-fromSystem')
+  // console.log(Authorization_Token);
+  // console.log(Authorization_fromSystem);
+  config.headers["X-Authorization-Token"] = (process.env.NODE_ENV === 'hebei' ? (Authorization_Token ? Authorization_Token : '') : '')
+  config.headers["X-Authorization-fromSystem"] = (process.env.NODE_ENV === 'hebei' ? (Authorization_fromSystem ? Authorization_fromSystem : '') : '')
+  // get请求映射params参数
+  if (config.method === 'get' && config.params) {
+    let url = config.url + '?';
+    for (const propName of Object.keys(config.params)) {
+      const value = config.params[propName];
+      var part = encodeURIComponent(propName) + "=";
+      if (value !== null && typeof(value) !== "undefined") {
+        if (typeof value === 'object') {
+          for (const key of Object.keys(value)) {
+            let params = propName + '[' + key + ']';
+            var subPart = encodeURIComponent(params) + "=";
+            url += subPart + encodeURIComponent(value[key]) + "&";
+          }
+        } else {
+          url += part + encodeURIComponent(value) + "&";
+        }
+      }
+    }
+    url = url.slice(0, -1);
+    config.params = {};
+    config.url = url;
+  }
+  return config
+}, error => {
+    console.log(error)
+    Promise.reject(error)
+})
+
+// 响应拦截器
+service.interceptors.response.use(res => {
+    // 未设置状态码则默认成功状态
+    const code = res.data.code || 200;
+    // 获取错误信息
+    const msg = errorCode[code] || res.data.msg || errorCode['default']
+    if (code === 401) {
+      MessageBox.confirm('登录状态已过期,您可以继续留在该页面,或者重新登录', '系统提示', {
+          confirmButtonText: '重新登录',
+          cancelButtonText: '取消',
+          type: 'warning'
+        }
+      ).then(() => {
+        store.dispatch('LogOut').then(() => {
+          this.$router.push({ path: '/login' })
+        })
+      }).catch(() => {});
+      return Promise.reject()
+    } else if (code === 500) {
+      Message({
+        message: msg,
+        type: 'error'
+      })
+      return Promise.reject(new Error(msg))
+    } else if (code !== 200 && code != 1) {
+      Notification.error({
+        title: msg
+      })
+      return Promise.reject('error')
+    } else {
+      return res.data
+    }
+  },
+  error => {
+    console.log('err' + error)
+    let { message } = error;
+    if (message == "Network Error") {
+      message = "后端接口连接异常";
+    }
+    else if (message.includes("timeout")) {
+      message = "系统接口请求超时";
+    }
+    else if (message.includes("Request failed with status code")) {
+      message = "系统接口" + message.substr(message.length - 3) + "异常";
+    }
+    Message({
+      message: message,
+      type: 'error',
+      duration: 5 * 1000
+    })
+    return Promise.reject(error)
+  }
+)
+
+export default service

+ 58 - 0
src/utils/scroll-to.js

@@ -0,0 +1,58 @@
+Math.easeInOutQuad = function(t, b, c, d) {
+  t /= d / 2
+  if (t < 1) {
+    return c / 2 * t * t + b
+  }
+  t--
+  return -c / 2 * (t * (t - 2) - 1) + b
+}
+
+// requestAnimationFrame for Smart Animating http://goo.gl/sx5sts
+var requestAnimFrame = (function() {
+  return window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || function(callback) { window.setTimeout(callback, 1000 / 60) }
+})()
+
+/**
+ * Because it's so fucking difficult to detect the scrolling element, just move them all
+ * @param {number} amount
+ */
+function move(amount) {
+  document.documentElement.scrollTop = amount
+  document.body.parentNode.scrollTop = amount
+  document.body.scrollTop = amount
+}
+
+function position() {
+  return document.documentElement.scrollTop || document.body.parentNode.scrollTop || document.body.scrollTop
+}
+
+/**
+ * @param {number} to
+ * @param {number} duration
+ * @param {Function} callback
+ */
+export function scrollTo(to, duration, callback) {
+  const start = position()
+  const change = to - start
+  const increment = 20
+  let currentTime = 0
+  duration = (typeof (duration) === 'undefined') ? 500 : duration
+  var animateScroll = function() {
+    // increment the time
+    currentTime += increment
+    // find the value with the quadratic in-out easing function
+    var val = Math.easeInOutQuad(currentTime, start, change, duration)
+    // move the document.body
+    move(val)
+    // do the animation unless its over
+    if (currentTime < duration) {
+      requestAnimFrame(animateScroll)
+    } else {
+      if (callback && typeof (callback) === 'function') {
+        // the animation is done so lets callback
+        callback()
+      }
+    }
+  }
+  animateScroll()
+}

+ 0 - 16
src/views/ErrorPage/index.vue

@@ -1,16 +0,0 @@
-<template>
-    
-  <div>
-    <h1>错误提示页面</h1>
-  </div>
-</template>
-
-<script>
-/**
- * 针对无权限用户的错误提示页面
- */
-export default {};
-</script>
-
-<style>
-</style>

+ 0 - 12
src/views/UserInfo/index.vue

@@ -1,12 +0,0 @@
-<template>
-  <div>
-    <h1>这里是用户详情页</h1>
-  </div>
-</template>
-
-<script>
-export default {};
-</script>
-
-<style>
-</style>

+ 0 - 44
src/views/UserList/index.vue

@@ -1,44 +0,0 @@
-<template>
-  <div>
-    <h1>这里是用户列表页</h1>
-    <el-divider />
-    <el-form :inline="true">
-      <el-form-item label="归属区县">
-        <el-select placeholder="活动区域">
-          <el-option
-            label="区域一"
-            value="shanghai"
-          ></el-option>
-          <el-option
-            label="区域二"
-            value="beijing"
-          ></el-option>
-
-        </el-select>
-      </el-form-item>
-      <el-form-item label="检索条件">
-        <el-input></el-input>
-      </el-form-item>
-      <el-form-item>
-        <el-button>查询</el-button>
-      </el-form-item>
-    </el-form>
-    <el-divider />
-    <el-table></el-table>
-  </div>
-</template>
-
-<script>
-/**
- * 1. 鉴权 用户进入列表页会在url上携带fromSystem 和 token 两个参数,使用这两个参数调用鉴权接口(见文档)
- *    有权限用户显示列表页,无权限用户跳转到error页面
- * 2. 分域 1中获取到的用户权限信息中,包含用户有权限的地市信息, 分域主要体现在归属区县和列表数据的查询
- * 
- */
-export default {
-  setup() {},
-};
-</script>
-
-<style>
-</style>

+ 234 - 0
static/axios/CHANGELOG.md

@@ -0,0 +1,234 @@
+# Changelog
+
+### 0.17.1 (Nov 11, 2017)
+
+- Fixing issue with web workers ([#1160](https://github.com/axios/axios/pull/1160))
+- Allowing overriding transport ([#1080](https://github.com/axios/axios/pull/1080))
+- Updating TypeScript typings ([#1165](https://github.com/axios/axios/pull/1165), [#1125](https://github.com/axios/axios/pull/1125), [#1131](https://github.com/axios/axios/pull/1131))
+
+### 0.17.0 (Oct 21, 2017)
+
+- **BREAKING** Fixing issue with `baseURL` and interceptors ([#950](https://github.com/axios/axios/pull/950))
+- **BREAKING** Improving handing of duplicate headers ([#874](https://github.com/axios/axios/pull/874))
+- Adding support for disabling proxies ([#691](https://github.com/axios/axios/pull/691))
+- Updating TypeScript typings with generic type parameters ([#1061](https://github.com/axios/axios/pull/1061))
+
+### 0.16.2 (Jun 3, 2017)
+
+- Fixing issue with including `buffer` in bundle ([#887](https://github.com/axios/axios/pull/887))
+- Including underlying request in errors ([#830](https://github.com/axios/axios/pull/830))
+- Convert `method` to lowercase ([#930](https://github.com/axios/axios/pull/930))
+
+### 0.16.1 (Apr 8, 2017)
+
+- Improving HTTP adapter to return last request in case of redirects ([#828](https://github.com/axios/axios/pull/828))
+- Updating `follow-redirects` dependency ([#829](https://github.com/axios/axios/pull/829))
+- Adding support for passing `Buffer` in node ([#773](https://github.com/axios/axios/pull/773))
+
+### 0.16.0 (Mar 31, 2017)
+
+- **BREAKING** Removing `Promise` from axios typings in favor of built-in type declarations ([#480](https://github.com/axios/axios/issues/480))
+- Adding `options` shortcut method ([#461](https://github.com/axios/axios/pull/461))
+- Fixing issue with using `responseType: 'json'` in browsers incompatible with XHR Level 2 ([#654](https://github.com/axios/axios/pull/654))
+- Improving React Native detection ([#731](https://github.com/axios/axios/pull/731))
+- Fixing `combineURLs` to support empty `relativeURL` ([#581](https://github.com/axios/axios/pull/581))
+- Removing `PROTECTION_PREFIX` support ([#561](https://github.com/axios/axios/pull/561))
+
+### 0.15.3 (Nov 27, 2016)
+
+- Fixing issue with custom instances and global defaults ([#443](https://github.com/axios/axios/issues/443))
+- Renaming `axios.d.ts` to `index.d.ts` ([#519](https://github.com/axios/axios/issues/519))
+- Adding `get`, `head`, and `delete` to `defaults.headers` ([#509](https://github.com/axios/axios/issues/509))
+- Fixing issue with `btoa` and IE ([#507](https://github.com/axios/axios/issues/507))
+- Adding support for proxy authentication ([#483](https://github.com/axios/axios/pull/483))
+- Improving HTTP adapter to use `http` protocol by default ([#493](https://github.com/axios/axios/pull/493))
+- Fixing proxy issues ([#491](https://github.com/axios/axios/pull/491))
+
+### 0.15.2 (Oct 17, 2016)
+
+- Fixing issue with calling `cancel` after response has been received ([#482](https://github.com/axios/axios/issues/482))
+
+### 0.15.1 (Oct 14, 2016)
+
+- Fixing issue with UMD ([#485](https://github.com/axios/axios/issues/485))
+
+### 0.15.0 (Oct 10, 2016)
+
+- Adding cancellation support ([#452](https://github.com/axios/axios/pull/452))
+- Moving default adapter to global defaults ([#437](https://github.com/axios/axios/pull/437))
+- Fixing issue with `file` URI scheme ([#440](https://github.com/axios/axios/pull/440))
+- Fixing issue with `params` objects that have no prototype ([#445](https://github.com/axios/axios/pull/445))
+
+### 0.14.0 (Aug 27, 2016)
+
+- **BREAKING** Updating TypeScript definitions ([#419](https://github.com/axios/axios/pull/419))
+- **BREAKING** Replacing `agent` option with `httpAgent` and `httpsAgent` ([#387](https://github.com/axios/axios/pull/387))
+- **BREAKING** Splitting `progress` event handlers into `onUploadProgress` and `onDownloadProgress` ([#423](https://github.com/axios/axios/pull/423))
+- Adding support for `http_proxy` and `https_proxy` environment variables ([#366](https://github.com/axios/axios/pull/366))
+- Fixing issue with `auth` config option and `Authorization` header ([#397](https://github.com/axios/axios/pull/397))
+- Don't set XSRF header if `xsrfCookieName` is `null` ([#406](https://github.com/axios/axios/pull/406))
+
+### 0.13.1 (Jul 16, 2016)
+
+- Fixing issue with response data not being transformed on error ([#378](https://github.com/axios/axios/issues/378))
+
+### 0.13.0 (Jul 13, 2016)
+
+- **BREAKING** Improved error handling ([#345](https://github.com/axios/axios/pull/345))
+- **BREAKING** Response transformer now invoked in dispatcher not adapter ([10eb238](https://github.com/axios/axios/commit/10eb23865101f9347570552c04e9d6211376e25e))
+- **BREAKING** Request adapters now return a `Promise` ([157efd5](https://github.com/axios/axios/commit/157efd5615890301824e3121cc6c9d2f9b21f94a))
+- Fixing issue with `withCredentials` not being overwritten ([#343](https://github.com/axios/axios/issues/343))
+- Fixing regression with request transformer being called before request interceptor ([#352](https://github.com/axios/axios/issues/352))
+- Fixing custom instance defaults ([#341](https://github.com/axios/axios/issues/341))
+- Fixing instances created from `axios.create` to have same API as default axios ([#217](https://github.com/axios/axios/issues/217))
+
+### 0.12.0 (May 31, 2016)
+
+- Adding support for `URLSearchParams` ([#317](https://github.com/axios/axios/pull/317))
+- Adding `maxRedirects` option ([#307](https://github.com/axios/axios/pull/307))
+
+### 0.11.1 (May 17, 2016)
+
+- Fixing IE CORS support ([#313](https://github.com/axios/axios/pull/313))
+- Fixing detection of `FormData` ([#325](https://github.com/axios/axios/pull/325))
+- Adding `Axios` class to exports ([#321](https://github.com/axios/axios/pull/321))
+
+### 0.11.0 (Apr 26, 2016)
+
+- Adding support for Stream with HTTP adapter ([#296](https://github.com/axios/axios/pull/296))
+- Adding support for custom HTTP status code error ranges ([#308](https://github.com/axios/axios/pull/308))
+- Fixing issue with ArrayBuffer ([#299](https://github.com/axios/axios/pull/299))
+
+### 0.10.0 (Apr 20, 2016)
+
+- Fixing issue with some requests sending `undefined` instead of `null` ([#250](https://github.com/axios/axios/pull/250))
+- Fixing basic auth for HTTP adapter ([#252](https://github.com/axios/axios/pull/252))
+- Fixing request timeout for XHR adapter ([#227](https://github.com/axios/axios/pull/227))
+- Fixing IE8 support by using `onreadystatechange` instead of `onload` ([#249](https://github.com/axios/axios/pull/249))
+- Fixing IE9 cross domain requests ([#251](https://github.com/axios/axios/pull/251))
+- Adding `maxContentLength` option ([#275](https://github.com/axios/axios/pull/275))
+- Fixing XHR support for WebWorker environment ([#279](https://github.com/axios/axios/pull/279))
+- Adding request instance to response ([#200](https://github.com/axios/axios/pull/200))
+
+### 0.9.1 (Jan 24, 2016)
+
+- Improving handling of request timeout in node ([#124](https://github.com/axios/axios/issues/124))
+- Fixing network errors not rejecting ([#205](https://github.com/axios/axios/pull/205))
+- Fixing issue with IE rejecting on HTTP 204 ([#201](https://github.com/axios/axios/issues/201))
+- Fixing host/port when following redirects ([#198](https://github.com/axios/axios/pull/198))
+
+### 0.9.0 (Jan 18, 2016)
+
+- Adding support for custom adapters
+- Fixing Content-Type header being removed when data is false ([#195](https://github.com/axios/axios/pull/195))
+- Improving XDomainRequest implementation ([#185](https://github.com/axios/axios/pull/185))
+- Improving config merging and order of precedence ([#183](https://github.com/axios/axios/pull/183))
+- Fixing XDomainRequest support for only <= IE9 ([#182](https://github.com/axios/axios/pull/182))
+
+### 0.8.1 (Dec 14, 2015)
+
+- Adding support for passing XSRF token for cross domain requests when using `withCredentials` ([#168](https://github.com/axios/axios/pull/168))
+- Fixing error with format of basic auth header ([#178](https://github.com/axios/axios/pull/173))
+- Fixing error with JSON payloads throwing `InvalidStateError` in some cases ([#174](https://github.com/axios/axios/pull/174))
+
+### 0.8.0 (Dec 11, 2015)
+
+- Adding support for creating instances of axios ([#123](https://github.com/axios/axios/pull/123))
+- Fixing http adapter to use `Buffer` instead of `String` in case of `responseType === 'arraybuffer'` ([#128](https://github.com/axios/axios/pull/128))
+- Adding support for using custom parameter serializer with `paramsSerializer` option ([#121](https://github.com/axios/axios/pull/121))
+- Fixing issue in IE8 caused by `forEach` on `arguments` ([#127](https://github.com/axios/axios/pull/127))
+- Adding support for following redirects in node ([#146](https://github.com/axios/axios/pull/146))
+- Adding support for transparent decompression if `content-encoding` is set ([#149](https://github.com/axios/axios/pull/149))
+- Adding support for transparent XDomainRequest to handle cross domain requests in IE9 ([#140](https://github.com/axios/axios/pull/140))
+- Adding support for HTTP basic auth via Authorization header ([#167](https://github.com/axios/axios/pull/167))
+- Adding support for baseURL option ([#160](https://github.com/axios/axios/pull/160))
+
+### 0.7.0 (Sep 29, 2015)
+
+- Fixing issue with minified bundle in IE8 ([#87](https://github.com/axios/axios/pull/87))
+- Adding support for passing agent in node ([#102](https://github.com/axios/axios/pull/102))
+- Adding support for returning result from `axios.spread` for chaining ([#106](https://github.com/axios/axios/pull/106))
+- Fixing typescript definition ([#105](https://github.com/axios/axios/pull/105))
+- Fixing default timeout config for node ([#112](https://github.com/axios/axios/pull/112))
+- Adding support for use in web workers, and react-native ([#70](https://github.com/axios/axios/issue/70)), ([#98](https://github.com/axios/axios/pull/98))
+- Adding support for fetch like API `axios(url[, config])` ([#116](https://github.com/axios/axios/issues/116))
+
+### 0.6.0 (Sep 21, 2015)
+
+- Removing deprecated success/error aliases
+- Fixing issue with array params not being properly encoded ([#49](https://github.com/axios/axios/pull/49))
+- Fixing issue with User-Agent getting overridden ([#69](https://github.com/axios/axios/issues/69))
+- Adding support for timeout config ([#56](https://github.com/axios/axios/issues/56))
+- Removing es6-promise dependency
+- Fixing issue preventing `length` to be used as a parameter ([#91](https://github.com/axios/axios/pull/91))
+- Fixing issue with IE8 ([#85](https://github.com/axios/axios/pull/85))
+- Converting build to UMD
+
+### 0.5.4 (Apr 08, 2015)
+
+- Fixing issue with FormData not being sent ([#53](https://github.com/axios/axios/issues/53))
+
+### 0.5.3 (Apr 07, 2015)
+
+- Using JSON.parse unconditionally when transforming response string ([#55](https://github.com/axios/axios/issues/55))
+
+### 0.5.2 (Mar 13, 2015)
+
+- Adding support for `statusText` in response ([#46](https://github.com/axios/axios/issues/46))
+
+### 0.5.1 (Mar 10, 2015)
+
+- Fixing issue using strict mode ([#45](https://github.com/axios/axios/issues/45))
+- Fixing issue with standalone build ([#47](https://github.com/axios/axios/issues/47))
+
+### 0.5.0 (Jan 23, 2015)
+
+- Adding support for intercepetors ([#14](https://github.com/axios/axios/issues/14))
+- Updating es6-promise dependency
+
+### 0.4.2 (Dec 10, 2014)
+
+- Fixing issue with `Content-Type` when using `FormData` ([#22](https://github.com/axios/axios/issues/22))
+- Adding support for TypeScript ([#25](https://github.com/axios/axios/issues/25))
+- Fixing issue with standalone build ([#29](https://github.com/axios/axios/issues/29))
+- Fixing issue with verbs needing to be capitalized in some browsers ([#30](https://github.com/axios/axios/issues/30))
+
+### 0.4.1 (Oct 15, 2014)
+
+- Adding error handling to request for node.js ([#18](https://github.com/axios/axios/issues/18))
+
+### 0.4.0 (Oct 03, 2014)
+
+- Adding support for `ArrayBuffer` and `ArrayBufferView` ([#10](https://github.com/axios/axios/issues/10))
+- Adding support for utf-8 for node.js ([#13](https://github.com/axios/axios/issues/13))
+- Adding support for SSL for node.js ([#12](https://github.com/axios/axios/issues/12))
+- Fixing incorrect `Content-Type` header ([#9](https://github.com/axios/axios/issues/9))
+- Adding standalone build without bundled es6-promise ([#11](https://github.com/axios/axios/issues/11))
+- Deprecating `success`/`error` in favor of `then`/`catch`
+
+### 0.3.1 (Sep 16, 2014)
+
+- Fixing missing post body when using node.js ([#3](https://github.com/axios/axios/issues/3))
+
+### 0.3.0 (Sep 16, 2014)
+
+- Fixing `success` and `error` to properly receive response data as individual arguments ([#8](https://github.com/axios/axios/issues/8))
+- Updating `then` and `catch` to receive response data as a single object ([#6](https://github.com/axios/axios/issues/6))
+- Fixing issue with `all` not working ([#7](https://github.com/axios/axios/issues/7))
+
+### 0.2.2 (Sep 14, 2014)
+
+- Fixing bundling with browserify ([#4](https://github.com/axios/axios/issues/4))
+
+### 0.2.1 (Sep 12, 2014)
+
+- Fixing build problem causing ridiculous file sizes
+
+### 0.2.0 (Sep 12, 2014)
+
+- Adding support for `all` and `spread`
+- Adding support for node.js ([#1](https://github.com/axios/axios/issues/1))
+
+### 0.1.0 (Aug 29, 2014)
+
+- Initial release

+ 19 - 0
static/axios/LICENSE

@@ -0,0 +1,19 @@
+Copyright (c) 2014 Matt Zabriskie
+
+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.

+ 612 - 0
static/axios/README.md

@@ -0,0 +1,612 @@
+# axios
+
+[![npm version](https://img.shields.io/npm/v/axios.svg?style=flat-square)](https://www.npmjs.org/package/axios)
+[![build status](https://img.shields.io/travis/axios/axios.svg?style=flat-square)](https://travis-ci.org/axios/axios)
+[![code coverage](https://img.shields.io/coveralls/mzabriskie/axios.svg?style=flat-square)](https://coveralls.io/r/mzabriskie/axios)
+[![npm downloads](https://img.shields.io/npm/dm/axios.svg?style=flat-square)](http://npm-stat.com/charts.html?package=axios)
+[![gitter chat](https://img.shields.io/gitter/room/mzabriskie/axios.svg?style=flat-square)](https://gitter.im/mzabriskie/axios)
+
+Promise based HTTP client for the browser and node.js
+
+## Features
+
+- Make [XMLHttpRequests](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest) from the browser
+- Make [http](http://nodejs.org/api/http.html) requests from node.js
+- Supports the [Promise](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise) API
+- Intercept request and response
+- Transform request and response data
+- Cancel requests
+- Automatic transforms for JSON data
+- Client side support for protecting against [XSRF](http://en.wikipedia.org/wiki/Cross-site_request_forgery)
+
+## Browser Support
+
+![Chrome](https://raw.github.com/alrra/browser-logos/master/src/chrome/chrome_48x48.png) | ![Firefox](https://raw.github.com/alrra/browser-logos/master/src/firefox/firefox_48x48.png) | ![Safari](https://raw.github.com/alrra/browser-logos/master/src/safari/safari_48x48.png) | ![Opera](https://raw.github.com/alrra/browser-logos/master/src/opera/opera_48x48.png) | ![Edge](https://raw.github.com/alrra/browser-logos/master/src/edge/edge_48x48.png) | ![IE](https://raw.github.com/alrra/browser-logos/master/src/archive/internet-explorer_9-11/internet-explorer_9-11_48x48.png) |
+--- | --- | --- | --- | --- | --- |
+Latest ✔ | Latest ✔ | Latest ✔ | Latest ✔ | Latest ✔ | 8+ ✔ |
+
+[![Browser Matrix](https://saucelabs.com/open_sauce/build_matrix/axios.svg)](https://saucelabs.com/u/axios)
+
+## Installing
+
+Using npm:
+
+```bash
+$ npm install axios
+```
+
+Using bower:
+
+```bash
+$ bower install axios
+```
+
+Using cdn:
+
+```html
+<script src="https://unpkg.com/axios/dist/axios.min.js"></script>
+```
+
+## Example
+
+Performing a `GET` request
+
+```js
+// Make a request for a user with a given ID
+axios.get('/user?ID=12345')
+  .then(function (response) {
+    console.log(response);
+  })
+  .catch(function (error) {
+    console.log(error);
+  });
+
+// Optionally the request above could also be done as
+axios.get('/user', {
+    params: {
+      ID: 12345
+    }
+  })
+  .then(function (response) {
+    console.log(response);
+  })
+  .catch(function (error) {
+    console.log(error);
+  });
+```
+
+Performing a `POST` request
+
+```js
+axios.post('/user', {
+    firstName: 'Fred',
+    lastName: 'Flintstone'
+  })
+  .then(function (response) {
+    console.log(response);
+  })
+  .catch(function (error) {
+    console.log(error);
+  });
+```
+
+Performing multiple concurrent requests
+
+```js
+function getUserAccount() {
+  return axios.get('/user/12345');
+}
+
+function getUserPermissions() {
+  return axios.get('/user/12345/permissions');
+}
+
+axios.all([getUserAccount(), getUserPermissions()])
+  .then(axios.spread(function (acct, perms) {
+    // Both requests are now complete
+  }));
+```
+
+## axios API
+
+Requests can be made by passing the relevant config to `axios`.
+
+##### axios(config)
+
+```js
+// Send a POST request
+axios({
+  method: 'post',
+  url: '/user/12345',
+  data: {
+    firstName: 'Fred',
+    lastName: 'Flintstone'
+  }
+});
+```
+
+```js
+// GET request for remote image
+axios({
+  method:'get',
+  url:'http://bit.ly/2mTM3nY',
+  responseType:'stream'
+})
+  .then(function(response) {
+  response.data.pipe(fs.createWriteStream('ada_lovelace.jpg'))
+});
+```
+
+##### axios(url[, config])
+
+```js
+// Send a GET request (default method)
+axios('/user/12345');
+```
+
+### Request method aliases
+
+For convenience aliases have been provided for all supported request methods.
+
+##### axios.request(config)
+##### axios.get(url[, config])
+##### axios.delete(url[, config])
+##### axios.head(url[, config])
+##### axios.options(url[, config])
+##### axios.post(url[, data[, config]])
+##### axios.put(url[, data[, config]])
+##### axios.patch(url[, data[, config]])
+
+###### NOTE
+When using the alias methods `url`, `method`, and `data` properties don't need to be specified in config.
+
+### Concurrency
+
+Helper functions for dealing with concurrent requests.
+
+##### axios.all(iterable)
+##### axios.spread(callback)
+
+### Creating an instance
+
+You can create a new instance of axios with a custom config.
+
+##### axios.create([config])
+
+```js
+var instance = axios.create({
+  baseURL: 'https://some-domain.com/api/',
+  timeout: 1000,
+  headers: {'X-Custom-Header': 'foobar'}
+});
+```
+
+### Instance methods
+
+The available instance methods are listed below. The specified config will be merged with the instance config.
+
+##### axios#request(config)
+##### axios#get(url[, config])
+##### axios#delete(url[, config])
+##### axios#head(url[, config])
+##### axios#options(url[, config])
+##### axios#post(url[, data[, config]])
+##### axios#put(url[, data[, config]])
+##### axios#patch(url[, data[, config]])
+
+## Request Config
+
+These are the available config options for making requests. Only the `url` is required. Requests will default to `GET` if `method` is not specified.
+
+```js
+{
+  // `url` is the server URL that will be used for the request
+  url: '/user',
+
+  // `method` is the request method to be used when making the request
+  method: 'get', // default
+
+  // `baseURL` will be prepended to `url` unless `url` is absolute.
+  // It can be convenient to set `baseURL` for an instance of axios to pass relative URLs
+  // to methods of that instance.
+  baseURL: 'https://some-domain.com/api/',
+
+  // `transformRequest` allows changes to the request data before it is sent to the server
+  // This is only applicable for request methods 'PUT', 'POST', and 'PATCH'
+  // The last function in the array must return a string or an instance of Buffer, ArrayBuffer,
+  // FormData or Stream
+  // You may modify the headers object.
+  transformRequest: [function (data, headers) {
+    // Do whatever you want to transform the data
+
+    return data;
+  }],
+
+  // `transformResponse` allows changes to the response data to be made before
+  // it is passed to then/catch
+  transformResponse: [function (data) {
+    // Do whatever you want to transform the data
+
+    return data;
+  }],
+
+  // `headers` are custom headers to be sent
+  headers: {'X-Requested-With': 'XMLHttpRequest'},
+
+  // `params` are the URL parameters to be sent with the request
+  // Must be a plain object or a URLSearchParams object
+  params: {
+    ID: 12345
+  },
+
+  // `paramsSerializer` is an optional function in charge of serializing `params`
+  // (e.g. https://www.npmjs.com/package/qs, http://api.jquery.com/jquery.param/)
+  paramsSerializer: function(params) {
+    return Qs.stringify(params, {arrayFormat: 'brackets'})
+  },
+
+  // `data` is the data to be sent as the request body
+  // Only applicable for request methods 'PUT', 'POST', and 'PATCH'
+  // When no `transformRequest` is set, must be of one of the following types:
+  // - string, plain object, ArrayBuffer, ArrayBufferView, URLSearchParams
+  // - Browser only: FormData, File, Blob
+  // - Node only: Stream, Buffer
+  data: {
+    firstName: 'Fred'
+  },
+
+  // `timeout` specifies the number of milliseconds before the request times out.
+  // If the request takes longer than `timeout`, the request will be aborted.
+  timeout: 1000,
+
+  // `withCredentials` indicates whether or not cross-site Access-Control requests
+  // should be made using credentials
+  withCredentials: false, // default
+
+  // `adapter` allows custom handling of requests which makes testing easier.
+  // Return a promise and supply a valid response (see lib/adapters/README.md).
+  adapter: function (config) {
+    /* ... */
+  },
+
+  // `auth` indicates that HTTP Basic auth should be used, and supplies credentials.
+  // This will set an `Authorization` header, overwriting any existing
+  // `Authorization` custom headers you have set using `headers`.
+  auth: {
+    username: 'janedoe',
+    password: 's00pers3cret'
+  },
+
+  // `responseType` indicates the type of data that the server will respond with
+  // options are 'arraybuffer', 'blob', 'document', 'json', 'text', 'stream'
+  responseType: 'json', // default
+
+  // `xsrfCookieName` is the name of the cookie to use as a value for xsrf token
+  xsrfCookieName: 'XSRF-TOKEN', // default
+
+  // `xsrfHeaderName` is the name of the http header that carries the xsrf token value
+  xsrfHeaderName: 'X-XSRF-TOKEN', // default
+
+  // `onUploadProgress` allows handling of progress events for uploads
+  onUploadProgress: function (progressEvent) {
+    // Do whatever you want with the native progress event
+  },
+
+  // `onDownloadProgress` allows handling of progress events for downloads
+  onDownloadProgress: function (progressEvent) {
+    // Do whatever you want with the native progress event
+  },
+
+  // `maxContentLength` defines the max size of the http response content allowed
+  maxContentLength: 2000,
+
+  // `validateStatus` defines whether to resolve or reject the promise for a given
+  // HTTP response status code. If `validateStatus` returns `true` (or is set to `null`
+  // or `undefined`), the promise will be resolved; otherwise, the promise will be
+  // rejected.
+  validateStatus: function (status) {
+    return status >= 200 && status < 300; // default
+  },
+
+  // `maxRedirects` defines the maximum number of redirects to follow in node.js.
+  // If set to 0, no redirects will be followed.
+  maxRedirects: 5, // default
+
+  // `httpAgent` and `httpsAgent` define a custom agent to be used when performing http
+  // and https requests, respectively, in node.js. This allows options to be added like
+  // `keepAlive` that are not enabled by default.
+  httpAgent: new http.Agent({ keepAlive: true }),
+  httpsAgent: new https.Agent({ keepAlive: true }),
+
+  // 'proxy' defines the hostname and port of the proxy server
+  // Use `false` to disable proxies, ignoring environment variables.
+  // `auth` indicates that HTTP Basic auth should be used to connect to the proxy, and
+  // supplies credentials.
+  // This will set an `Proxy-Authorization` header, overwriting any existing
+  // `Proxy-Authorization` custom headers you have set using `headers`.
+  proxy: {
+    host: '127.0.0.1',
+    port: 9000,
+    auth: {
+      username: 'mikeymike',
+      password: 'rapunz3l'
+    }
+  },
+
+  // `cancelToken` specifies a cancel token that can be used to cancel the request
+  // (see Cancellation section below for details)
+  cancelToken: new CancelToken(function (cancel) {
+  })
+}
+```
+
+## Response Schema
+
+The response for a request contains the following information.
+
+```js
+{
+  // `data` is the response that was provided by the server
+  data: {},
+
+  // `status` is the HTTP status code from the server response
+  status: 200,
+
+  // `statusText` is the HTTP status message from the server response
+  statusText: 'OK',
+
+  // `headers` the headers that the server responded with
+  // All header names are lower cased
+  headers: {},
+
+  // `config` is the config that was provided to `axios` for the request
+  config: {},
+
+  // `request` is the request that generated this response
+  // It is the last ClientRequest instance in node.js (in redirects)
+  // and an XMLHttpRequest instance the browser
+  request: {}
+}
+```
+
+When using `then`, you will receive the response as follows:
+
+```js
+axios.get('/user/12345')
+  .then(function(response) {
+    console.log(response.data);
+    console.log(response.status);
+    console.log(response.statusText);
+    console.log(response.headers);
+    console.log(response.config);
+  });
+```
+
+When using `catch`, or passing a [rejection callback](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/then) as second parameter of `then`, the response will be available through the `error` object as explained in the [Handling Errors](#handling-errors) section.
+
+## Config Defaults
+
+You can specify config defaults that will be applied to every request.
+
+### Global axios defaults
+
+```js
+axios.defaults.baseURL = 'https://api.example.com';
+axios.defaults.headers.common['Authorization'] = AUTH_TOKEN;
+axios.defaults.headers.post['Content-Type'] = 'application/x-www-form-urlencoded';
+```
+
+### Custom instance defaults
+
+```js
+// Set config defaults when creating the instance
+var instance = axios.create({
+  baseURL: 'https://api.example.com'
+});
+
+// Alter defaults after instance has been created
+instance.defaults.headers.common['Authorization'] = AUTH_TOKEN;
+```
+
+### Config order of precedence
+
+Config will be merged with an order of precedence. The order is library defaults found in `lib/defaults.js`, then `defaults` property of the instance, and finally `config` argument for the request. The latter will take precedence over the former. Here's an example.
+
+```js
+// Create an instance using the config defaults provided by the library
+// At this point the timeout config value is `0` as is the default for the library
+var instance = axios.create();
+
+// Override timeout default for the library
+// Now all requests will wait 2.5 seconds before timing out
+instance.defaults.timeout = 2500;
+
+// Override timeout for this request as it's known to take a long time
+instance.get('/longRequest', {
+  timeout: 5000
+});
+```
+
+## Interceptors
+
+You can intercept requests or responses before they are handled by `then` or `catch`.
+
+```js
+// Add a request interceptor
+axios.interceptors.request.use(function (config) {
+    // Do something before request is sent
+    return config;
+  }, function (error) {
+    // Do something with request error
+    return Promise.reject(error);
+  });
+
+// Add a response interceptor
+axios.interceptors.response.use(function (response) {
+    // Do something with response data
+    return response;
+  }, function (error) {
+    // Do something with response error
+    return Promise.reject(error);
+  });
+```
+
+If you may need to remove an interceptor later you can.
+
+```js
+var myInterceptor = axios.interceptors.request.use(function () {/*...*/});
+axios.interceptors.request.eject(myInterceptor);
+```
+
+You can add interceptors to a custom instance of axios.
+
+```js
+var instance = axios.create();
+instance.interceptors.request.use(function () {/*...*/});
+```
+
+## Handling Errors
+
+```js
+axios.get('/user/12345')
+  .catch(function (error) {
+    if (error.response) {
+      // The request was made and the server responded with a status code
+      // that falls out of the range of 2xx
+      console.log(error.response.data);
+      console.log(error.response.status);
+      console.log(error.response.headers);
+    } else if (error.request) {
+      // The request was made but no response was received
+      // `error.request` is an instance of XMLHttpRequest in the browser and an instance of
+      // http.ClientRequest in node.js
+      console.log(error.request);
+    } else {
+      // Something happened in setting up the request that triggered an Error
+      console.log('Error', error.message);
+    }
+    console.log(error.config);
+  });
+```
+
+You can define a custom HTTP status code error range using the `validateStatus` config option.
+
+```js
+axios.get('/user/12345', {
+  validateStatus: function (status) {
+    return status < 500; // Reject only if the status code is greater than or equal to 500
+  }
+})
+```
+
+## Cancellation
+
+You can cancel a request using a *cancel token*.
+
+> The axios cancel token API is based on the withdrawn [cancelable promises proposal](https://github.com/tc39/proposal-cancelable-promises).
+
+You can create a cancel token using the `CancelToken.source` factory as shown below:
+
+```js
+var CancelToken = axios.CancelToken;
+var source = CancelToken.source();
+
+axios.get('/user/12345', {
+  cancelToken: source.token
+}).catch(function(thrown) {
+  if (axios.isCancel(thrown)) {
+    console.log('Request canceled', thrown.message);
+  } else {
+    // handle error
+  }
+});
+
+// cancel the request (the message parameter is optional)
+source.cancel('Operation canceled by the user.');
+```
+
+You can also create a cancel token by passing an executor function to the `CancelToken` constructor:
+
+```js
+var CancelToken = axios.CancelToken;
+var cancel;
+
+axios.get('/user/12345', {
+  cancelToken: new CancelToken(function executor(c) {
+    // An executor function receives a cancel function as a parameter
+    cancel = c;
+  })
+});
+
+// cancel the request
+cancel();
+```
+
+> Note: you can cancel several requests with the same cancel token.
+
+## Using application/x-www-form-urlencoded format
+
+By default, axios serializes JavaScript objects to `JSON`. To send data in the `application/x-www-form-urlencoded` format instead, you can use one of the following options.
+
+### Browser
+
+In a browser, you can use the [`URLSearchParams`](https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams) API as follows:
+
+```js
+var params = new URLSearchParams();
+params.append('param1', 'value1');
+params.append('param2', 'value2');
+axios.post('/foo', params);
+```
+
+> Note that `URLSearchParams` is not supported by all browsers (see [caniuse.com](http://www.caniuse.com/#feat=urlsearchparams)), but there is a [polyfill](https://github.com/WebReflection/url-search-params) available (make sure to polyfill the global environment).
+
+Alternatively, you can encode data using the [`qs`](https://github.com/ljharb/qs) library:
+
+```js
+var qs = require('qs');
+axios.post('/foo', qs.stringify({ 'bar': 123 }));
+```
+
+### Node.js
+
+In node.js, you can use the [`querystring`](https://nodejs.org/api/querystring.html) module as follows:
+
+```js
+var querystring = require('querystring');
+axios.post('http://something.com/', querystring.stringify({ foo: 'bar' }));
+```
+
+You can also use the [`qs`](https://github.com/ljharb/qs) library.
+
+## Semver
+
+Until axios reaches a `1.0` release, breaking changes will be released with a new minor version. For example `0.5.1`, and `0.5.4` will have the same API, but `0.6.0` will have breaking changes.
+
+## Promises
+
+axios depends on a native ES6 Promise implementation to be [supported](http://caniuse.com/promises).
+If your environment doesn't support ES6 Promises, you can [polyfill](https://github.com/jakearchibald/es6-promise).
+
+## TypeScript
+axios includes [TypeScript](http://typescriptlang.org) definitions.
+```typescript
+import axios from 'axios';
+axios.get('/user?ID=12345');
+```
+
+## Resources
+
+* [Changelog](https://github.com/axios/axios/blob/master/CHANGELOG.md)
+* [Upgrade Guide](https://github.com/axios/axios/blob/master/UPGRADE_GUIDE.md)
+* [Ecosystem](https://github.com/axios/axios/blob/master/ECOSYSTEM.md)
+* [Contributing Guide](https://github.com/axios/axios/blob/master/CONTRIBUTING.md)
+* [Code of Conduct](https://github.com/axios/axios/blob/master/CODE_OF_CONDUCT.md)
+
+## Credits
+
+axios is heavily inspired by the [$http service](https://docs.angularjs.org/api/ng/service/$http) provided in [Angular](https://angularjs.org/). Ultimately axios is an effort to provide a standalone `$http`-like service for use outside of Angular.
+
+## License
+
+MIT

+ 162 - 0
static/axios/UPGRADE_GUIDE.md

@@ -0,0 +1,162 @@
+# Upgrade Guide
+
+### 0.15.x -> 0.16.0
+
+#### `Promise` Type Declarations
+
+The `Promise` type declarations have been removed from the axios typings in favor of the built-in type declarations. If you use axios in a TypeScript project that targets `ES5`, please make sure to include the `es2015.promise` lib. Please see [this post](https://blog.mariusschulz.com/2016/11/25/typescript-2-0-built-in-type-declarations) for details.
+
+### 0.13.x -> 0.14.0
+
+#### TypeScript Definitions
+
+The axios TypeScript definitions have been updated to match the axios API and use the ES2015 module syntax.
+
+Please use the following `import` statement to import axios in TypeScript:
+
+```typescript
+import axios from 'axios';
+
+axios.get('/foo')
+  .then(response => console.log(response))
+  .catch(error => console.log(error));
+```
+
+#### `agent` Config Option
+
+The `agent` config option has been replaced with two new options: `httpAgent` and `httpsAgent`. Please use them instead.
+
+```js
+{
+  // Define a custom agent for HTTP
+  httpAgent: new http.Agent({ keepAlive: true }),
+  // Define a custom agent for HTTPS
+  httpsAgent: new https.Agent({ keepAlive: true })
+}
+```
+
+#### `progress` Config Option
+
+The `progress` config option has been replaced with the `onUploadProgress` and `onDownloadProgress` options.
+
+```js
+{
+  // Define a handler for upload progress events
+  onUploadProgress: function (progressEvent) {
+    // ...
+  },
+
+  // Define a handler for download progress events
+  onDownloadProgress: function (progressEvent) {
+    // ...
+  }
+}
+```
+
+### 0.12.x -> 0.13.0
+
+The `0.13.0` release contains several changes to custom adapters and error handling.
+
+#### Error Handling
+
+Previous to this release an error could either be a server response with bad status code or an actual `Error`. With this release Promise will always reject with an `Error`. In the case that a response was received, the `Error` will also include the response.
+
+```js
+axios.get('/user/12345')
+  .catch((error) => {
+    console.log(error.message);
+    console.log(error.code); // Not always specified
+    console.log(error.config); // The config that was used to make the request
+    console.log(error.response); // Only available if response was received from the server
+  });
+```
+
+#### Request Adapters
+
+This release changes a few things about how request adapters work. Please take note if you are using your own custom adapter.
+
+1. Response transformer is now called outside of adapter.
+2. Request adapter returns a `Promise`.
+
+This means that you no longer need to invoke `transformData` on response data. You will also no longer receive `resolve` and `reject` as arguments in your adapter.
+
+Previous code:
+
+```js
+function myAdapter(resolve, reject, config) {
+  var response = {
+    data: transformData(
+      responseData,
+      responseHeaders,
+      config.transformResponse
+    ),
+    status: request.status,
+    statusText: request.statusText,
+    headers: responseHeaders
+  };
+  settle(resolve, reject, response);
+}
+```
+
+New code:
+
+```js
+function myAdapter(config) {
+  return new Promise(function (resolve, reject) {
+    var response = {
+      data: responseData,
+      status: request.status,
+      statusText: request.statusText,
+      headers: responseHeaders
+    };
+    settle(resolve, reject, response);
+  });
+}
+```
+
+See the related commits for more details:
+- [Response transformers](https://github.com/axios/axios/commit/10eb23865101f9347570552c04e9d6211376e25e)
+- [Request adapter Promise](https://github.com/axios/axios/commit/157efd5615890301824e3121cc6c9d2f9b21f94a)
+
+### 0.5.x -> 0.6.0
+
+The `0.6.0` release contains mostly bug fixes, but there are a couple things to be aware of when upgrading.
+
+#### ES6 Promise Polyfill
+
+Up until the `0.6.0` release ES6 `Promise` was being polyfilled using [es6-promise](https://github.com/jakearchibald/es6-promise). With this release, the polyfill has been removed, and you will need to supply it yourself if your environment needs it.
+
+```js
+require('es6-promise').polyfill();
+var axios = require('axios');
+```
+
+This will polyfill the global environment, and only needs to be done once.
+
+#### `axios.success`/`axios.error`
+
+The `success`, and `error` aliases were deprectated in [0.4.0](https://github.com/axios/axios/blob/master/CHANGELOG.md#040-oct-03-2014). As of this release they have been removed entirely. Instead please use `axios.then`, and `axios.catch` respectively.
+
+```js
+axios.get('some/url')
+  .then(function (res) {
+    /* ... */
+  })
+  .catch(function (err) {
+    /* ... */
+  });
+```
+
+#### UMD
+
+Previous versions of axios shipped with an AMD, CommonJS, and Global build. This has all been rolled into a single UMD build.
+
+```js
+// AMD
+require(['bower_components/axios/dist/axios'], function (axios) {
+  /* ... */
+});
+
+// CommonJS
+var axios = require('axios/dist/axios');
+```

+ 1601 - 0
static/axios/dist/axios.js

@@ -0,0 +1,1601 @@
+/* axios v0.17.1 | (c) 2017 by Matt Zabriskie */
+(function webpackUniversalModuleDefinition(root, factory) {
+	if(typeof exports === 'object' && typeof module === 'object')
+		module.exports = factory();
+	else if(typeof define === 'function' && define.amd)
+		define([], factory);
+	else if(typeof exports === 'object')
+		exports["axios"] = factory();
+	else
+		root["axios"] = factory();
+})(this, function() {
+return /******/ (function(modules) { // webpackBootstrap
+/******/ 	// The module cache
+/******/ 	var installedModules = {};
+/******/
+/******/ 	// The require function
+/******/ 	function __webpack_require__(moduleId) {
+/******/
+/******/ 		// Check if module is in cache
+/******/ 		if(installedModules[moduleId])
+/******/ 			return installedModules[moduleId].exports;
+/******/
+/******/ 		// Create a new module (and put it into the cache)
+/******/ 		var module = installedModules[moduleId] = {
+/******/ 			exports: {},
+/******/ 			id: moduleId,
+/******/ 			loaded: false
+/******/ 		};
+/******/
+/******/ 		// Execute the module function
+/******/ 		modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
+/******/
+/******/ 		// Flag the module as loaded
+/******/ 		module.loaded = true;
+/******/
+/******/ 		// Return the exports of the module
+/******/ 		return module.exports;
+/******/ 	}
+/******/
+/******/
+/******/ 	// expose the modules object (__webpack_modules__)
+/******/ 	__webpack_require__.m = modules;
+/******/
+/******/ 	// expose the module cache
+/******/ 	__webpack_require__.c = installedModules;
+/******/
+/******/ 	// __webpack_public_path__
+/******/ 	__webpack_require__.p = "";
+/******/
+/******/ 	// Load entry module and return exports
+/******/ 	return __webpack_require__(0);
+/******/ })
+/************************************************************************/
+/******/ ([
+/* 0 */
+/***/ (function(module, exports, __webpack_require__) {
+
+	module.exports = __webpack_require__(1);
+
+/***/ }),
+/* 1 */
+/***/ (function(module, exports, __webpack_require__) {
+
+	'use strict';
+	
+	var utils = __webpack_require__(2);
+	var bind = __webpack_require__(3);
+	var Axios = __webpack_require__(5);
+	var defaults = __webpack_require__(6);
+	
+	/**
+	 * Create an instance of Axios
+	 *
+	 * @param {Object} defaultConfig The default config for the instance
+	 * @return {Axios} A new instance of Axios
+	 */
+	function createInstance(defaultConfig) {
+	  var context = new Axios(defaultConfig);
+	  var instance = bind(Axios.prototype.request, context);
+	
+	  // Copy axios.prototype to instance
+	  utils.extend(instance, Axios.prototype, context);
+	
+	  // Copy context to instance
+	  utils.extend(instance, context);
+	
+	  return instance;
+	}
+	
+	// Create the default instance to be exported
+	var axios = createInstance(defaults);
+	
+	// Expose Axios class to allow class inheritance
+	axios.Axios = Axios;
+	
+	// Factory for creating new instances
+	axios.create = function create(instanceConfig) {
+	  return createInstance(utils.merge(defaults, instanceConfig));
+	};
+	
+	// Expose Cancel & CancelToken
+	axios.Cancel = __webpack_require__(23);
+	axios.CancelToken = __webpack_require__(24);
+	axios.isCancel = __webpack_require__(20);
+	
+	// Expose all/spread
+	axios.all = function all(promises) {
+	  return Promise.all(promises);
+	};
+	axios.spread = __webpack_require__(25);
+	
+	module.exports = axios;
+	
+	// Allow use of default import syntax in TypeScript
+	module.exports.default = axios;
+
+
+/***/ }),
+/* 2 */
+/***/ (function(module, exports, __webpack_require__) {
+
+	'use strict';
+	
+	var bind = __webpack_require__(3);
+	var isBuffer = __webpack_require__(4);
+	
+	/*global toString:true*/
+	
+	// utils is a library of generic helper functions non-specific to axios
+	
+	var toString = Object.prototype.toString;
+	
+	/**
+	 * Determine if a value is an Array
+	 *
+	 * @param {Object} val The value to test
+	 * @returns {boolean} True if value is an Array, otherwise false
+	 */
+	function isArray(val) {
+	  return toString.call(val) === '[object Array]';
+	}
+	
+	/**
+	 * Determine if a value is an ArrayBuffer
+	 *
+	 * @param {Object} val The value to test
+	 * @returns {boolean} True if value is an ArrayBuffer, otherwise false
+	 */
+	function isArrayBuffer(val) {
+	  return toString.call(val) === '[object ArrayBuffer]';
+	}
+	
+	/**
+	 * Determine if a value is a FormData
+	 *
+	 * @param {Object} val The value to test
+	 * @returns {boolean} True if value is an FormData, otherwise false
+	 */
+	function isFormData(val) {
+	  return (typeof FormData !== 'undefined') && (val instanceof FormData);
+	}
+	
+	/**
+	 * Determine if a value is a view on an ArrayBuffer
+	 *
+	 * @param {Object} val The value to test
+	 * @returns {boolean} True if value is a view on an ArrayBuffer, otherwise false
+	 */
+	function isArrayBufferView(val) {
+	  var result;
+	  if ((typeof ArrayBuffer !== 'undefined') && (ArrayBuffer.isView)) {
+	    result = ArrayBuffer.isView(val);
+	  } else {
+	    result = (val) && (val.buffer) && (val.buffer instanceof ArrayBuffer);
+	  }
+	  return result;
+	}
+	
+	/**
+	 * Determine if a value is a String
+	 *
+	 * @param {Object} val The value to test
+	 * @returns {boolean} True if value is a String, otherwise false
+	 */
+	function isString(val) {
+	  return typeof val === 'string';
+	}
+	
+	/**
+	 * Determine if a value is a Number
+	 *
+	 * @param {Object} val The value to test
+	 * @returns {boolean} True if value is a Number, otherwise false
+	 */
+	function isNumber(val) {
+	  return typeof val === 'number';
+	}
+	
+	/**
+	 * Determine if a value is undefined
+	 *
+	 * @param {Object} val The value to test
+	 * @returns {boolean} True if the value is undefined, otherwise false
+	 */
+	function isUndefined(val) {
+	  return typeof val === 'undefined';
+	}
+	
+	/**
+	 * Determine if a value is an Object
+	 *
+	 * @param {Object} val The value to test
+	 * @returns {boolean} True if value is an Object, otherwise false
+	 */
+	function isObject(val) {
+	  return val !== null && typeof val === 'object';
+	}
+	
+	/**
+	 * Determine if a value is a Date
+	 *
+	 * @param {Object} val The value to test
+	 * @returns {boolean} True if value is a Date, otherwise false
+	 */
+	function isDate(val) {
+	  return toString.call(val) === '[object Date]';
+	}
+	
+	/**
+	 * Determine if a value is a File
+	 *
+	 * @param {Object} val The value to test
+	 * @returns {boolean} True if value is a File, otherwise false
+	 */
+	function isFile(val) {
+	  return toString.call(val) === '[object File]';
+	}
+	
+	/**
+	 * Determine if a value is a Blob
+	 *
+	 * @param {Object} val The value to test
+	 * @returns {boolean} True if value is a Blob, otherwise false
+	 */
+	function isBlob(val) {
+	  return toString.call(val) === '[object Blob]';
+	}
+	
+	/**
+	 * Determine if a value is a Function
+	 *
+	 * @param {Object} val The value to test
+	 * @returns {boolean} True if value is a Function, otherwise false
+	 */
+	function isFunction(val) {
+	  return toString.call(val) === '[object Function]';
+	}
+	
+	/**
+	 * Determine if a value is a Stream
+	 *
+	 * @param {Object} val The value to test
+	 * @returns {boolean} True if value is a Stream, otherwise false
+	 */
+	function isStream(val) {
+	  return isObject(val) && isFunction(val.pipe);
+	}
+	
+	/**
+	 * Determine if a value is a URLSearchParams object
+	 *
+	 * @param {Object} val The value to test
+	 * @returns {boolean} True if value is a URLSearchParams object, otherwise false
+	 */
+	function isURLSearchParams(val) {
+	  return typeof URLSearchParams !== 'undefined' && val instanceof URLSearchParams;
+	}
+	
+	/**
+	 * Trim excess whitespace off the beginning and end of a string
+	 *
+	 * @param {String} str The String to trim
+	 * @returns {String} The String freed of excess whitespace
+	 */
+	function trim(str) {
+	  return str.replace(/^\s*/, '').replace(/\s*$/, '');
+	}
+	
+	/**
+	 * Determine if we're running in a standard browser environment
+	 *
+	 * This allows axios to run in a web worker, and react-native.
+	 * Both environments support XMLHttpRequest, but not fully standard globals.
+	 *
+	 * web workers:
+	 *  typeof window -> undefined
+	 *  typeof document -> undefined
+	 *
+	 * react-native:
+	 *  navigator.product -> 'ReactNative'
+	 */
+	function isStandardBrowserEnv() {
+	  if (typeof navigator !== 'undefined' && navigator.product === 'ReactNative') {
+	    return false;
+	  }
+	  return (
+	    typeof window !== 'undefined' &&
+	    typeof document !== 'undefined'
+	  );
+	}
+	
+	/**
+	 * Iterate over an Array or an Object invoking a function for each item.
+	 *
+	 * If `obj` is an Array callback will be called passing
+	 * the value, index, and complete array for each item.
+	 *
+	 * If 'obj' is an Object callback will be called passing
+	 * the value, key, and complete object for each property.
+	 *
+	 * @param {Object|Array} obj The object to iterate
+	 * @param {Function} fn The callback to invoke for each item
+	 */
+	function forEach(obj, fn) {
+	  // Don't bother if no value provided
+	  if (obj === null || typeof obj === 'undefined') {
+	    return;
+	  }
+	
+	  // Force an array if not already something iterable
+	  if (typeof obj !== 'object') {
+	    /*eslint no-param-reassign:0*/
+	    obj = [obj];
+	  }
+	
+	  if (isArray(obj)) {
+	    // Iterate over array values
+	    for (var i = 0, l = obj.length; i < l; i++) {
+	      fn.call(null, obj[i], i, obj);
+	    }
+	  } else {
+	    // Iterate over object keys
+	    for (var key in obj) {
+	      if (Object.prototype.hasOwnProperty.call(obj, key)) {
+	        fn.call(null, obj[key], key, obj);
+	      }
+	    }
+	  }
+	}
+	
+	/**
+	 * Accepts varargs expecting each argument to be an object, then
+	 * immutably merges the properties of each object and returns result.
+	 *
+	 * When multiple objects contain the same key the later object in
+	 * the arguments list will take precedence.
+	 *
+	 * Example:
+	 *
+	 * ```js
+	 * var result = merge({foo: 123}, {foo: 456});
+	 * console.log(result.foo); // outputs 456
+	 * ```
+	 *
+	 * @param {Object} obj1 Object to merge
+	 * @returns {Object} Result of all merge properties
+	 */
+	function merge(/* obj1, obj2, obj3, ... */) {
+	  var result = {};
+	  function assignValue(val, key) {
+	    if (typeof result[key] === 'object' && typeof val === 'object') {
+	      result[key] = merge(result[key], val);
+	    } else {
+	      result[key] = val;
+	    }
+	  }
+	
+	  for (var i = 0, l = arguments.length; i < l; i++) {
+	    forEach(arguments[i], assignValue);
+	  }
+	  return result;
+	}
+	
+	/**
+	 * Extends object a by mutably adding to it the properties of object b.
+	 *
+	 * @param {Object} a The object to be extended
+	 * @param {Object} b The object to copy properties from
+	 * @param {Object} thisArg The object to bind function to
+	 * @return {Object} The resulting value of object a
+	 */
+	function extend(a, b, thisArg) {
+	  forEach(b, function assignValue(val, key) {
+	    if (thisArg && typeof val === 'function') {
+	      a[key] = bind(val, thisArg);
+	    } else {
+	      a[key] = val;
+	    }
+	  });
+	  return a;
+	}
+	
+	module.exports = {
+	  isArray: isArray,
+	  isArrayBuffer: isArrayBuffer,
+	  isBuffer: isBuffer,
+	  isFormData: isFormData,
+	  isArrayBufferView: isArrayBufferView,
+	  isString: isString,
+	  isNumber: isNumber,
+	  isObject: isObject,
+	  isUndefined: isUndefined,
+	  isDate: isDate,
+	  isFile: isFile,
+	  isBlob: isBlob,
+	  isFunction: isFunction,
+	  isStream: isStream,
+	  isURLSearchParams: isURLSearchParams,
+	  isStandardBrowserEnv: isStandardBrowserEnv,
+	  forEach: forEach,
+	  merge: merge,
+	  extend: extend,
+	  trim: trim
+	};
+
+
+/***/ }),
+/* 3 */
+/***/ (function(module, exports) {
+
+	'use strict';
+	
+	module.exports = function bind(fn, thisArg) {
+	  return function wrap() {
+	    var args = new Array(arguments.length);
+	    for (var i = 0; i < args.length; i++) {
+	      args[i] = arguments[i];
+	    }
+	    return fn.apply(thisArg, args);
+	  };
+	};
+
+
+/***/ }),
+/* 4 */
+/***/ (function(module, exports) {
+
+	/*!
+	 * Determine if an object is a Buffer
+	 *
+	 * @author   Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
+	 * @license  MIT
+	 */
+	
+	// The _isBuffer check is for Safari 5-7 support, because it's missing
+	// Object.prototype.constructor. Remove this eventually
+	module.exports = function (obj) {
+	  return obj != null && (isBuffer(obj) || isSlowBuffer(obj) || !!obj._isBuffer)
+	}
+	
+	function isBuffer (obj) {
+	  return !!obj.constructor && typeof obj.constructor.isBuffer === 'function' && obj.constructor.isBuffer(obj)
+	}
+	
+	// For Node v0.10 support. Remove this eventually.
+	function isSlowBuffer (obj) {
+	  return typeof obj.readFloatLE === 'function' && typeof obj.slice === 'function' && isBuffer(obj.slice(0, 0))
+	}
+
+
+/***/ }),
+/* 5 */
+/***/ (function(module, exports, __webpack_require__) {
+
+	'use strict';
+	
+	var defaults = __webpack_require__(6);
+	var utils = __webpack_require__(2);
+	var InterceptorManager = __webpack_require__(17);
+	var dispatchRequest = __webpack_require__(18);
+	
+	/**
+	 * Create a new instance of Axios
+	 *
+	 * @param {Object} instanceConfig The default config for the instance
+	 */
+	function Axios(instanceConfig) {
+	  this.defaults = instanceConfig;
+	  this.interceptors = {
+	    request: new InterceptorManager(),
+	    response: new InterceptorManager()
+	  };
+	}
+	
+	/**
+	 * Dispatch a request
+	 *
+	 * @param {Object} config The config specific for this request (merged with this.defaults)
+	 */
+	Axios.prototype.request = function request(config) {
+	  /*eslint no-param-reassign:0*/
+	  // Allow for axios('example/url'[, config]) a la fetch API
+	  if (typeof config === 'string') {
+	    config = utils.merge({
+	      url: arguments[0]
+	    }, arguments[1]);
+	  }
+	
+	  config = utils.merge(defaults, this.defaults, { method: 'get' }, config);
+	  config.method = config.method.toLowerCase();
+	
+	  // Hook up interceptors middleware
+	  var chain = [dispatchRequest, undefined];
+	  var promise = Promise.resolve(config);
+	
+	  this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor) {
+	    chain.unshift(interceptor.fulfilled, interceptor.rejected);
+	  });
+	
+	  this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) {
+	    chain.push(interceptor.fulfilled, interceptor.rejected);
+	  });
+	
+	  while (chain.length) {
+	    promise = promise.then(chain.shift(), chain.shift());
+	  }
+	
+	  return promise;
+	};
+	
+	// Provide aliases for supported request methods
+	utils.forEach(['delete', 'get', 'head', 'options'], function forEachMethodNoData(method) {
+	  /*eslint func-names:0*/
+	  Axios.prototype[method] = function(url, config) {
+	    return this.request(utils.merge(config || {}, {
+	      method: method,
+	      url: url
+	    }));
+	  };
+	});
+	
+	utils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {
+	  /*eslint func-names:0*/
+	  Axios.prototype[method] = function(url, data, config) {
+	    return this.request(utils.merge(config || {}, {
+	      method: method,
+	      url: url,
+	      data: data
+	    }));
+	  };
+	});
+	
+	module.exports = Axios;
+
+
+/***/ }),
+/* 6 */
+/***/ (function(module, exports, __webpack_require__) {
+
+	'use strict';
+	
+	var utils = __webpack_require__(2);
+	var normalizeHeaderName = __webpack_require__(7);
+	
+	var DEFAULT_CONTENT_TYPE = {
+	  'Content-Type': 'application/x-www-form-urlencoded'
+	};
+	
+	function setContentTypeIfUnset(headers, value) {
+	  if (!utils.isUndefined(headers) && utils.isUndefined(headers['Content-Type'])) {
+	    headers['Content-Type'] = value;
+	  }
+	}
+	
+	function getDefaultAdapter() {
+	  var adapter;
+	  if (typeof XMLHttpRequest !== 'undefined') {
+	    // For browsers use XHR adapter
+	    adapter = __webpack_require__(8);
+	  } else if (typeof process !== 'undefined') {
+	    // For node use HTTP adapter
+	    adapter = __webpack_require__(8);
+	  }
+	  return adapter;
+	}
+	
+	var defaults = {
+	  adapter: getDefaultAdapter(),
+	
+	  transformRequest: [function transformRequest(data, headers) {
+	    normalizeHeaderName(headers, 'Content-Type');
+	    if (utils.isFormData(data) ||
+	      utils.isArrayBuffer(data) ||
+	      utils.isBuffer(data) ||
+	      utils.isStream(data) ||
+	      utils.isFile(data) ||
+	      utils.isBlob(data)
+	    ) {
+	      return data;
+	    }
+	    if (utils.isArrayBufferView(data)) {
+	      return data.buffer;
+	    }
+	    if (utils.isURLSearchParams(data)) {
+	      setContentTypeIfUnset(headers, 'application/x-www-form-urlencoded;charset=utf-8');
+	      return data.toString();
+	    }
+	    if (utils.isObject(data)) {
+	      setContentTypeIfUnset(headers, 'application/json;charset=utf-8');
+	      return JSON.stringify(data);
+	    }
+	    return data;
+	  }],
+	
+	  transformResponse: [function transformResponse(data) {
+	    /*eslint no-param-reassign:0*/
+	    if (typeof data === 'string') {
+	      try {
+	        data = JSON.parse(data);
+	      } catch (e) { /* Ignore */ }
+	    }
+	    return data;
+	  }],
+	
+	  timeout: 0,
+	
+	  xsrfCookieName: 'XSRF-TOKEN',
+	  xsrfHeaderName: 'X-XSRF-TOKEN',
+	
+	  maxContentLength: -1,
+	
+	  validateStatus: function validateStatus(status) {
+	    return status >= 200 && status < 300;
+	  }
+	};
+	
+	defaults.headers = {
+	  common: {
+	    'Accept': 'application/json, text/plain, */*'
+	  }
+	};
+	
+	utils.forEach(['delete', 'get', 'head'], function forEachMethodNoData(method) {
+	  defaults.headers[method] = {};
+	});
+	
+	utils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {
+	  defaults.headers[method] = utils.merge(DEFAULT_CONTENT_TYPE);
+	});
+	
+	module.exports = defaults;
+
+
+/***/ }),
+/* 7 */
+/***/ (function(module, exports, __webpack_require__) {
+
+	'use strict';
+	
+	var utils = __webpack_require__(2);
+	
+	module.exports = function normalizeHeaderName(headers, normalizedName) {
+	  utils.forEach(headers, function processHeader(value, name) {
+	    if (name !== normalizedName && name.toUpperCase() === normalizedName.toUpperCase()) {
+	      headers[normalizedName] = value;
+	      delete headers[name];
+	    }
+	  });
+	};
+
+
+/***/ }),
+/* 8 */
+/***/ (function(module, exports, __webpack_require__) {
+
+	'use strict';
+	
+	var utils = __webpack_require__(2);
+	var settle = __webpack_require__(9);
+	var buildURL = __webpack_require__(12);
+	var parseHeaders = __webpack_require__(13);
+	var isURLSameOrigin = __webpack_require__(14);
+	var createError = __webpack_require__(10);
+	var btoa = (typeof window !== 'undefined' && window.btoa && window.btoa.bind(window)) || __webpack_require__(15);
+	
+	module.exports = function xhrAdapter(config) {
+	  return new Promise(function dispatchXhrRequest(resolve, reject) {
+	    var requestData = config.data;
+	    var requestHeaders = config.headers;
+	
+	    if (utils.isFormData(requestData)) {
+	      delete requestHeaders['Content-Type']; // Let the browser set it
+	    }
+	
+	    var request = new XMLHttpRequest();
+	    var loadEvent = 'onreadystatechange';
+	    var xDomain = false;
+	
+	    // For IE 8/9 CORS support
+	    // Only supports POST and GET calls and doesn't returns the response headers.
+	    // DON'T do this for testing b/c XMLHttpRequest is mocked, not XDomainRequest.
+	    if (("production") !== 'test' &&
+	        typeof window !== 'undefined' &&
+	        window.XDomainRequest && !('withCredentials' in request) &&
+	        !isURLSameOrigin(config.url)) {
+	      request = new window.XDomainRequest();
+	      loadEvent = 'onload';
+	      xDomain = true;
+	      request.onprogress = function handleProgress() {};
+	      request.ontimeout = function handleTimeout() {};
+	    }
+	
+	    // HTTP basic authentication
+	    if (config.auth) {
+	      var username = config.auth.username || '';
+	      var password = config.auth.password || '';
+	      requestHeaders.Authorization = 'Basic ' + btoa(username + ':' + password);
+	    }
+	
+	    request.open(config.method.toUpperCase(), buildURL(config.url, config.params, config.paramsSerializer), true);
+	
+	    // Set the request timeout in MS
+	    request.timeout = config.timeout;
+	
+	    // Listen for ready state
+	    request[loadEvent] = function handleLoad() {
+	      if (!request || (request.readyState !== 4 && !xDomain)) {
+	        return;
+	      }
+	
+	      // The request errored out and we didn't get a response, this will be
+	      // handled by onerror instead
+	      // With one exception: request that using file: protocol, most browsers
+	      // will return status as 0 even though it's a successful request
+	      if (request.status === 0 && !(request.responseURL && request.responseURL.indexOf('file:') === 0)) {
+	        return;
+	      }
+	
+	      // Prepare the response
+	      var responseHeaders = 'getAllResponseHeaders' in request ? parseHeaders(request.getAllResponseHeaders()) : null;
+	      var responseData = !config.responseType || config.responseType === 'text' ? request.responseText : request.response;
+	      var response = {
+	        data: responseData,
+	        // IE sends 1223 instead of 204 (https://github.com/axios/axios/issues/201)
+	        status: request.status === 1223 ? 204 : request.status,
+	        statusText: request.status === 1223 ? 'No Content' : request.statusText,
+	        headers: responseHeaders,
+	        config: config,
+	        request: request
+	      };
+	
+	      settle(resolve, reject, response);
+	
+	      // Clean up request
+	      request = null;
+	    };
+	
+	    // Handle low level network errors
+	    request.onerror = function handleError() {
+	      // Real errors are hidden from us by the browser
+	      // onerror should only fire if it's a network error
+	      reject(createError('Network Error', config, null, request));
+	
+	      // Clean up request
+	      request = null;
+	    };
+	
+	    // Handle timeout
+	    request.ontimeout = function handleTimeout() {
+	      reject(createError('timeout of ' + config.timeout + 'ms exceeded', config, 'ECONNABORTED',
+	        request));
+	
+	      // Clean up request
+	      request = null;
+	    };
+	
+	    // Add xsrf header
+	    // This is only done if running in a standard browser environment.
+	    // Specifically not if we're in a web worker, or react-native.
+	    if (utils.isStandardBrowserEnv()) {
+	      var cookies = __webpack_require__(16);
+	
+	      // Add xsrf header
+	      var xsrfValue = (config.withCredentials || isURLSameOrigin(config.url)) && config.xsrfCookieName ?
+	          cookies.read(config.xsrfCookieName) :
+	          undefined;
+	
+	      if (xsrfValue) {
+	        requestHeaders[config.xsrfHeaderName] = xsrfValue;
+	      }
+	    }
+	
+	    // Add headers to the request
+	    if ('setRequestHeader' in request) {
+	      utils.forEach(requestHeaders, function setRequestHeader(val, key) {
+	        if (typeof requestData === 'undefined' && key.toLowerCase() === 'content-type') {
+	          // Remove Content-Type if data is undefined
+	          delete requestHeaders[key];
+	        } else {
+	          // Otherwise add header to the request
+	          request.setRequestHeader(key, val);
+	        }
+	      });
+	    }
+	
+	    // Add withCredentials to request if needed
+	    if (config.withCredentials) {
+	      request.withCredentials = true;
+	    }
+	
+	    // Add responseType to request if needed
+	    if (config.responseType) {
+	      try {
+	        request.responseType = config.responseType;
+	      } catch (e) {
+	        // Expected DOMException thrown by browsers not compatible XMLHttpRequest Level 2.
+	        // But, this can be suppressed for 'json' type as it can be parsed by default 'transformResponse' function.
+	        if (config.responseType !== 'json') {
+	          throw e;
+	        }
+	      }
+	    }
+	
+	    // Handle progress if needed
+	    if (typeof config.onDownloadProgress === 'function') {
+	      request.addEventListener('progress', config.onDownloadProgress);
+	    }
+	
+	    // Not all browsers support upload events
+	    if (typeof config.onUploadProgress === 'function' && request.upload) {
+	      request.upload.addEventListener('progress', config.onUploadProgress);
+	    }
+	
+	    if (config.cancelToken) {
+	      // Handle cancellation
+	      config.cancelToken.promise.then(function onCanceled(cancel) {
+	        if (!request) {
+	          return;
+	        }
+	
+	        request.abort();
+	        reject(cancel);
+	        // Clean up request
+	        request = null;
+	      });
+	    }
+	
+	    if (requestData === undefined) {
+	      requestData = null;
+	    }
+	
+	    // Send the request
+	    request.send(requestData);
+	  });
+	};
+
+
+/***/ }),
+/* 9 */
+/***/ (function(module, exports, __webpack_require__) {
+
+	'use strict';
+	
+	var createError = __webpack_require__(10);
+	
+	/**
+	 * Resolve or reject a Promise based on response status.
+	 *
+	 * @param {Function} resolve A function that resolves the promise.
+	 * @param {Function} reject A function that rejects the promise.
+	 * @param {object} response The response.
+	 */
+	module.exports = function settle(resolve, reject, response) {
+	  var validateStatus = response.config.validateStatus;
+	  // Note: status is not exposed by XDomainRequest
+	  if (!response.status || !validateStatus || validateStatus(response.status)) {
+	    resolve(response);
+	  } else {
+	    reject(createError(
+	      'Request failed with status code ' + response.status,
+	      response.config,
+	      null,
+	      response.request,
+	      response
+	    ));
+	  }
+	};
+
+
+/***/ }),
+/* 10 */
+/***/ (function(module, exports, __webpack_require__) {
+
+	'use strict';
+	
+	var enhanceError = __webpack_require__(11);
+	
+	/**
+	 * Create an Error with the specified message, config, error code, request and response.
+	 *
+	 * @param {string} message The error message.
+	 * @param {Object} config The config.
+	 * @param {string} [code] The error code (for example, 'ECONNABORTED').
+	 * @param {Object} [request] The request.
+	 * @param {Object} [response] The response.
+	 * @returns {Error} The created error.
+	 */
+	module.exports = function createError(message, config, code, request, response) {
+	  var error = new Error(message);
+	  return enhanceError(error, config, code, request, response);
+	};
+
+
+/***/ }),
+/* 11 */
+/***/ (function(module, exports) {
+
+	'use strict';
+	
+	/**
+	 * Update an Error with the specified config, error code, and response.
+	 *
+	 * @param {Error} error The error to update.
+	 * @param {Object} config The config.
+	 * @param {string} [code] The error code (for example, 'ECONNABORTED').
+	 * @param {Object} [request] The request.
+	 * @param {Object} [response] The response.
+	 * @returns {Error} The error.
+	 */
+	module.exports = function enhanceError(error, config, code, request, response) {
+	  error.config = config;
+	  if (code) {
+	    error.code = code;
+	  }
+	  error.request = request;
+	  error.response = response;
+	  return error;
+	};
+
+
+/***/ }),
+/* 12 */
+/***/ (function(module, exports, __webpack_require__) {
+
+	'use strict';
+	
+	var utils = __webpack_require__(2);
+	
+	function encode(val) {
+	  return encodeURIComponent(val).
+	    replace(/%40/gi, '@').
+	    replace(/%3A/gi, ':').
+	    replace(/%24/g, '$').
+	    replace(/%2C/gi, ',').
+	    replace(/%20/g, '+').
+	    replace(/%5B/gi, '[').
+	    replace(/%5D/gi, ']');
+	}
+	
+	/**
+	 * Build a URL by appending params to the end
+	 *
+	 * @param {string} url The base of the url (e.g., http://www.google.com)
+	 * @param {object} [params] The params to be appended
+	 * @returns {string} The formatted url
+	 */
+	module.exports = function buildURL(url, params, paramsSerializer) {
+	  /*eslint no-param-reassign:0*/
+	  if (!params) {
+	    return url;
+	  }
+	
+	  var serializedParams;
+	  if (paramsSerializer) {
+	    serializedParams = paramsSerializer(params);
+	  } else if (utils.isURLSearchParams(params)) {
+	    serializedParams = params.toString();
+	  } else {
+	    var parts = [];
+	
+	    utils.forEach(params, function serialize(val, key) {
+	      if (val === null || typeof val === 'undefined') {
+	        return;
+	      }
+	
+	      if (utils.isArray(val)) {
+	        key = key + '[]';
+	      }
+	
+	      if (!utils.isArray(val)) {
+	        val = [val];
+	      }
+	
+	      utils.forEach(val, function parseValue(v) {
+	        if (utils.isDate(v)) {
+	          v = v.toISOString();
+	        } else if (utils.isObject(v)) {
+	          v = JSON.stringify(v);
+	        }
+	        parts.push(encode(key) + '=' + encode(v));
+	      });
+	    });
+	
+	    serializedParams = parts.join('&');
+	  }
+	
+	  if (serializedParams) {
+	    url += (url.indexOf('?') === -1 ? '?' : '&') + serializedParams;
+	  }
+	
+	  return url;
+	};
+
+
+/***/ }),
+/* 13 */
+/***/ (function(module, exports, __webpack_require__) {
+
+	'use strict';
+	
+	var utils = __webpack_require__(2);
+	
+	// Headers whose duplicates are ignored by node
+	// c.f. https://nodejs.org/api/http.html#http_message_headers
+	var ignoreDuplicateOf = [
+	  'age', 'authorization', 'content-length', 'content-type', 'etag',
+	  'expires', 'from', 'host', 'if-modified-since', 'if-unmodified-since',
+	  'last-modified', 'location', 'max-forwards', 'proxy-authorization',
+	  'referer', 'retry-after', 'user-agent'
+	];
+	
+	/**
+	 * Parse headers into an object
+	 *
+	 * ```
+	 * Date: Wed, 27 Aug 2014 08:58:49 GMT
+	 * Content-Type: application/json
+	 * Connection: keep-alive
+	 * Transfer-Encoding: chunked
+	 * ```
+	 *
+	 * @param {String} headers Headers needing to be parsed
+	 * @returns {Object} Headers parsed into an object
+	 */
+	module.exports = function parseHeaders(headers) {
+	  var parsed = {};
+	  var key;
+	  var val;
+	  var i;
+	
+	  if (!headers) { return parsed; }
+	
+	  utils.forEach(headers.split('\n'), function parser(line) {
+	    i = line.indexOf(':');
+	    key = utils.trim(line.substr(0, i)).toLowerCase();
+	    val = utils.trim(line.substr(i + 1));
+	
+	    if (key) {
+	      if (parsed[key] && ignoreDuplicateOf.indexOf(key) >= 0) {
+	        return;
+	      }
+	      if (key === 'set-cookie') {
+	        parsed[key] = (parsed[key] ? parsed[key] : []).concat([val]);
+	      } else {
+	        parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val;
+	      }
+	    }
+	  });
+	
+	  return parsed;
+	};
+
+
+/***/ }),
+/* 14 */
+/***/ (function(module, exports, __webpack_require__) {
+
+	'use strict';
+	
+	var utils = __webpack_require__(2);
+	
+	module.exports = (
+	  utils.isStandardBrowserEnv() ?
+	
+	  // Standard browser envs have full support of the APIs needed to test
+	  // whether the request URL is of the same origin as current location.
+	  (function standardBrowserEnv() {
+	    var msie = /(msie|trident)/i.test(navigator.userAgent);
+	    var urlParsingNode = document.createElement('a');
+	    var originURL;
+	
+	    /**
+	    * Parse a URL to discover it's components
+	    *
+	    * @param {String} url The URL to be parsed
+	    * @returns {Object}
+	    */
+	    function resolveURL(url) {
+	      var href = url;
+	
+	      if (msie) {
+	        // IE needs attribute set twice to normalize properties
+	        urlParsingNode.setAttribute('href', href);
+	        href = urlParsingNode.href;
+	      }
+	
+	      urlParsingNode.setAttribute('href', href);
+	
+	      // urlParsingNode provides the UrlUtils interface - http://url.spec.whatwg.org/#urlutils
+	      return {
+	        href: urlParsingNode.href,
+	        protocol: urlParsingNode.protocol ? urlParsingNode.protocol.replace(/:$/, '') : '',
+	        host: urlParsingNode.host,
+	        search: urlParsingNode.search ? urlParsingNode.search.replace(/^\?/, '') : '',
+	        hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, '') : '',
+	        hostname: urlParsingNode.hostname,
+	        port: urlParsingNode.port,
+	        pathname: (urlParsingNode.pathname.charAt(0) === '/') ?
+	                  urlParsingNode.pathname :
+	                  '/' + urlParsingNode.pathname
+	      };
+	    }
+	
+	    originURL = resolveURL(window.location.href);
+	
+	    /**
+	    * Determine if a URL shares the same origin as the current location
+	    *
+	    * @param {String} requestURL The URL to test
+	    * @returns {boolean} True if URL shares the same origin, otherwise false
+	    */
+	    return function isURLSameOrigin(requestURL) {
+	      var parsed = (utils.isString(requestURL)) ? resolveURL(requestURL) : requestURL;
+	      return (parsed.protocol === originURL.protocol &&
+	            parsed.host === originURL.host);
+	    };
+	  })() :
+	
+	  // Non standard browser envs (web workers, react-native) lack needed support.
+	  (function nonStandardBrowserEnv() {
+	    return function isURLSameOrigin() {
+	      return true;
+	    };
+	  })()
+	);
+
+
+/***/ }),
+/* 15 */
+/***/ (function(module, exports) {
+
+	'use strict';
+	
+	// btoa polyfill for IE<10 courtesy https://github.com/davidchambers/Base64.js
+	
+	var chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';
+	
+	function E() {
+	  this.message = 'String contains an invalid character';
+	}
+	E.prototype = new Error;
+	E.prototype.code = 5;
+	E.prototype.name = 'InvalidCharacterError';
+	
+	function btoa(input) {
+	  var str = String(input);
+	  var output = '';
+	  for (
+	    // initialize result and counter
+	    var block, charCode, idx = 0, map = chars;
+	    // if the next str index does not exist:
+	    //   change the mapping table to "="
+	    //   check if d has no fractional digits
+	    str.charAt(idx | 0) || (map = '=', idx % 1);
+	    // "8 - idx % 1 * 8" generates the sequence 2, 4, 6, 8
+	    output += map.charAt(63 & block >> 8 - idx % 1 * 8)
+	  ) {
+	    charCode = str.charCodeAt(idx += 3 / 4);
+	    if (charCode > 0xFF) {
+	      throw new E();
+	    }
+	    block = block << 8 | charCode;
+	  }
+	  return output;
+	}
+	
+	module.exports = btoa;
+
+
+/***/ }),
+/* 16 */
+/***/ (function(module, exports, __webpack_require__) {
+
+	'use strict';
+	
+	var utils = __webpack_require__(2);
+	
+	module.exports = (
+	  utils.isStandardBrowserEnv() ?
+	
+	  // Standard browser envs support document.cookie
+	  (function standardBrowserEnv() {
+	    return {
+	      write: function write(name, value, expires, path, domain, secure) {
+	        var cookie = [];
+	        cookie.push(name + '=' + encodeURIComponent(value));
+	
+	        if (utils.isNumber(expires)) {
+	          cookie.push('expires=' + new Date(expires).toGMTString());
+	        }
+	
+	        if (utils.isString(path)) {
+	          cookie.push('path=' + path);
+	        }
+	
+	        if (utils.isString(domain)) {
+	          cookie.push('domain=' + domain);
+	        }
+	
+	        if (secure === true) {
+	          cookie.push('secure');
+	        }
+	
+	        document.cookie = cookie.join('; ');
+	      },
+	
+	      read: function read(name) {
+	        var match = document.cookie.match(new RegExp('(^|;\\s*)(' + name + ')=([^;]*)'));
+	        return (match ? decodeURIComponent(match[3]) : null);
+	      },
+	
+	      remove: function remove(name) {
+	        this.write(name, '', Date.now() - 86400000);
+	      }
+	    };
+	  })() :
+	
+	  // Non standard browser env (web workers, react-native) lack needed support.
+	  (function nonStandardBrowserEnv() {
+	    return {
+	      write: function write() {},
+	      read: function read() { return null; },
+	      remove: function remove() {}
+	    };
+	  })()
+	);
+
+
+/***/ }),
+/* 17 */
+/***/ (function(module, exports, __webpack_require__) {
+
+	'use strict';
+	
+	var utils = __webpack_require__(2);
+	
+	function InterceptorManager() {
+	  this.handlers = [];
+	}
+	
+	/**
+	 * Add a new interceptor to the stack
+	 *
+	 * @param {Function} fulfilled The function to handle `then` for a `Promise`
+	 * @param {Function} rejected The function to handle `reject` for a `Promise`
+	 *
+	 * @return {Number} An ID used to remove interceptor later
+	 */
+	InterceptorManager.prototype.use = function use(fulfilled, rejected) {
+	  this.handlers.push({
+	    fulfilled: fulfilled,
+	    rejected: rejected
+	  });
+	  return this.handlers.length - 1;
+	};
+	
+	/**
+	 * Remove an interceptor from the stack
+	 *
+	 * @param {Number} id The ID that was returned by `use`
+	 */
+	InterceptorManager.prototype.eject = function eject(id) {
+	  if (this.handlers[id]) {
+	    this.handlers[id] = null;
+	  }
+	};
+	
+	/**
+	 * Iterate over all the registered interceptors
+	 *
+	 * This method is particularly useful for skipping over any
+	 * interceptors that may have become `null` calling `eject`.
+	 *
+	 * @param {Function} fn The function to call for each interceptor
+	 */
+	InterceptorManager.prototype.forEach = function forEach(fn) {
+	  utils.forEach(this.handlers, function forEachHandler(h) {
+	    if (h !== null) {
+	      fn(h);
+	    }
+	  });
+	};
+	
+	module.exports = InterceptorManager;
+
+
+/***/ }),
+/* 18 */
+/***/ (function(module, exports, __webpack_require__) {
+
+	'use strict';
+	
+	var utils = __webpack_require__(2);
+	var transformData = __webpack_require__(19);
+	var isCancel = __webpack_require__(20);
+	var defaults = __webpack_require__(6);
+	var isAbsoluteURL = __webpack_require__(21);
+	var combineURLs = __webpack_require__(22);
+	
+	/**
+	 * Throws a `Cancel` if cancellation has been requested.
+	 */
+	function throwIfCancellationRequested(config) {
+	  if (config.cancelToken) {
+	    config.cancelToken.throwIfRequested();
+	  }
+	}
+	
+	/**
+	 * Dispatch a request to the server using the configured adapter.
+	 *
+	 * @param {object} config The config that is to be used for the request
+	 * @returns {Promise} The Promise to be fulfilled
+	 */
+	module.exports = function dispatchRequest(config) {
+	  throwIfCancellationRequested(config);
+	
+	  // Support baseURL config
+	  if (config.baseURL && !isAbsoluteURL(config.url)) {
+	    config.url = combineURLs(config.baseURL, config.url);
+	  }
+	
+	  // Ensure headers exist
+	  config.headers = config.headers || {};
+	
+	  // Transform request data
+	  config.data = transformData(
+	    config.data,
+	    config.headers,
+	    config.transformRequest
+	  );
+	
+	  // Flatten headers
+	  config.headers = utils.merge(
+	    config.headers.common || {},
+	    config.headers[config.method] || {},
+	    config.headers || {}
+	  );
+	
+	  utils.forEach(
+	    ['delete', 'get', 'head', 'post', 'put', 'patch', 'common'],
+	    function cleanHeaderConfig(method) {
+	      delete config.headers[method];
+	    }
+	  );
+	
+	  var adapter = config.adapter || defaults.adapter;
+	
+	  return adapter(config).then(function onAdapterResolution(response) {
+	    throwIfCancellationRequested(config);
+	
+	    // Transform response data
+	    response.data = transformData(
+	      response.data,
+	      response.headers,
+	      config.transformResponse
+	    );
+	
+	    return response;
+	  }, function onAdapterRejection(reason) {
+	    if (!isCancel(reason)) {
+	      throwIfCancellationRequested(config);
+	
+	      // Transform response data
+	      if (reason && reason.response) {
+	        reason.response.data = transformData(
+	          reason.response.data,
+	          reason.response.headers,
+	          config.transformResponse
+	        );
+	      }
+	    }
+	
+	    return Promise.reject(reason);
+	  });
+	};
+
+
+/***/ }),
+/* 19 */
+/***/ (function(module, exports, __webpack_require__) {
+
+	'use strict';
+	
+	var utils = __webpack_require__(2);
+	
+	/**
+	 * Transform the data for a request or a response
+	 *
+	 * @param {Object|String} data The data to be transformed
+	 * @param {Array} headers The headers for the request or response
+	 * @param {Array|Function} fns A single function or Array of functions
+	 * @returns {*} The resulting transformed data
+	 */
+	module.exports = function transformData(data, headers, fns) {
+	  /*eslint no-param-reassign:0*/
+	  utils.forEach(fns, function transform(fn) {
+	    data = fn(data, headers);
+	  });
+	
+	  return data;
+	};
+
+
+/***/ }),
+/* 20 */
+/***/ (function(module, exports) {
+
+	'use strict';
+	
+	module.exports = function isCancel(value) {
+	  return !!(value && value.__CANCEL__);
+	};
+
+
+/***/ }),
+/* 21 */
+/***/ (function(module, exports) {
+
+	'use strict';
+	
+	/**
+	 * Determines whether the specified URL is absolute
+	 *
+	 * @param {string} url The URL to test
+	 * @returns {boolean} True if the specified URL is absolute, otherwise false
+	 */
+	module.exports = function isAbsoluteURL(url) {
+	  // A URL is considered absolute if it begins with "<scheme>://" or "//" (protocol-relative URL).
+	  // RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed
+	  // by any combination of letters, digits, plus, period, or hyphen.
+	  return /^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(url);
+	};
+
+
+/***/ }),
+/* 22 */
+/***/ (function(module, exports) {
+
+	'use strict';
+	
+	/**
+	 * Creates a new URL by combining the specified URLs
+	 *
+	 * @param {string} baseURL The base URL
+	 * @param {string} relativeURL The relative URL
+	 * @returns {string} The combined URL
+	 */
+	module.exports = function combineURLs(baseURL, relativeURL) {
+	  return relativeURL
+	    ? baseURL.replace(/\/+$/, '') + '/' + relativeURL.replace(/^\/+/, '')
+	    : baseURL;
+	};
+
+
+/***/ }),
+/* 23 */
+/***/ (function(module, exports) {
+
+	'use strict';
+	
+	/**
+	 * A `Cancel` is an object that is thrown when an operation is canceled.
+	 *
+	 * @class
+	 * @param {string=} message The message.
+	 */
+	function Cancel(message) {
+	  this.message = message;
+	}
+	
+	Cancel.prototype.toString = function toString() {
+	  return 'Cancel' + (this.message ? ': ' + this.message : '');
+	};
+	
+	Cancel.prototype.__CANCEL__ = true;
+	
+	module.exports = Cancel;
+
+
+/***/ }),
+/* 24 */
+/***/ (function(module, exports, __webpack_require__) {
+
+	'use strict';
+	
+	var Cancel = __webpack_require__(23);
+	
+	/**
+	 * A `CancelToken` is an object that can be used to request cancellation of an operation.
+	 *
+	 * @class
+	 * @param {Function} executor The executor function.
+	 */
+	function CancelToken(executor) {
+	  if (typeof executor !== 'function') {
+	    throw new TypeError('executor must be a function.');
+	  }
+	
+	  var resolvePromise;
+	  this.promise = new Promise(function promiseExecutor(resolve) {
+	    resolvePromise = resolve;
+	  });
+	
+	  var token = this;
+	  executor(function cancel(message) {
+	    if (token.reason) {
+	      // Cancellation has already been requested
+	      return;
+	    }
+	
+	    token.reason = new Cancel(message);
+	    resolvePromise(token.reason);
+	  });
+	}
+	
+	/**
+	 * Throws a `Cancel` if cancellation has been requested.
+	 */
+	CancelToken.prototype.throwIfRequested = function throwIfRequested() {
+	  if (this.reason) {
+	    throw this.reason;
+	  }
+	};
+	
+	/**
+	 * Returns an object that contains a new `CancelToken` and a function that, when called,
+	 * cancels the `CancelToken`.
+	 */
+	CancelToken.source = function source() {
+	  var cancel;
+	  var token = new CancelToken(function executor(c) {
+	    cancel = c;
+	  });
+	  return {
+	    token: token,
+	    cancel: cancel
+	  };
+	};
+	
+	module.exports = CancelToken;
+
+
+/***/ }),
+/* 25 */
+/***/ (function(module, exports) {
+
+	'use strict';
+	
+	/**
+	 * Syntactic sugar for invoking a function and expanding an array for arguments.
+	 *
+	 * Common use case would be to use `Function.prototype.apply`.
+	 *
+	 *  ```js
+	 *  function f(x, y, z) {}
+	 *  var args = [1, 2, 3];
+	 *  f.apply(null, args);
+	 *  ```
+	 *
+	 * With `spread` this example can be re-written.
+	 *
+	 *  ```js
+	 *  spread(function(x, y, z) {})([1, 2, 3]);
+	 *  ```
+	 *
+	 * @param {Function} callback
+	 * @returns {Function}
+	 */
+	module.exports = function spread(callback) {
+	  return function wrap(arr) {
+	    return callback.apply(null, arr);
+	  };
+	};
+
+
+/***/ })
+/******/ ])
+});
+;
+//# sourceMappingURL=axios.map

Diff do ficheiro suprimidas por serem muito extensas
+ 0 - 0
static/axios/dist/axios.map


Diff do ficheiro suprimidas por serem muito extensas
+ 1 - 0
static/axios/dist/axios.min.js


Diff do ficheiro suprimidas por serem muito extensas
+ 0 - 0
static/axios/dist/axios.min.map


+ 127 - 0
static/axios/index.d.ts

@@ -0,0 +1,127 @@
+export interface AxiosTransformer {
+  (data: any, headers?: any): any;
+}
+
+export interface AxiosAdapter {
+  (config: AxiosRequestConfig): AxiosPromise<any>;
+}
+
+export interface AxiosBasicCredentials {
+  username: string;
+  password: string;
+}
+
+export interface AxiosProxyConfig {
+  host: string;
+  port: number;
+}
+
+export interface AxiosRequestConfig {
+  url?: string;
+  method?: string;
+  baseURL?: string;
+  transformRequest?: AxiosTransformer | AxiosTransformer[];
+  transformResponse?: AxiosTransformer | AxiosTransformer[];
+  headers?: any;
+  params?: any;
+  paramsSerializer?: (params: any) => string;
+  data?: any;
+  timeout?: number;
+  withCredentials?: boolean;
+  adapter?: AxiosAdapter;
+  auth?: AxiosBasicCredentials;
+  responseType?: string;
+  xsrfCookieName?: string;
+  xsrfHeaderName?: string;
+  onUploadProgress?: (progressEvent: any) => void;
+  onDownloadProgress?: (progressEvent: any) => void;
+  maxContentLength?: number;
+  validateStatus?: (status: number) => boolean;
+  maxRedirects?: number;
+  httpAgent?: any;
+  httpsAgent?: any;
+  proxy?: AxiosProxyConfig;
+  cancelToken?: CancelToken;
+}
+
+export interface AxiosResponse<T = any>  {
+  data: T;
+  status: number;
+  statusText: string;
+  headers: any;
+  config: AxiosRequestConfig;
+  request?: any;
+}
+
+export interface AxiosError extends Error {
+  config: AxiosRequestConfig;
+  code?: string;
+  request?: any;
+  response?: AxiosResponse;
+}
+
+export interface AxiosPromise<T = any> extends Promise<AxiosResponse<T>> {
+}
+
+export interface CancelStatic {
+  new (message?: string): Cancel;
+}
+
+export interface Cancel {
+  message: string;
+}
+
+export interface Canceler {
+  (message?: string): void;
+}
+
+export interface CancelTokenStatic {
+  new (executor: (cancel: Canceler) => void): CancelToken;
+  source(): CancelTokenSource;
+}
+
+export interface CancelToken {
+  promise: Promise<Cancel>;
+  reason?: Cancel;
+  throwIfRequested(): void;
+}
+
+export interface CancelTokenSource {
+  token: CancelToken;
+  cancel: Canceler;
+}
+
+export interface AxiosInterceptorManager<V> {
+  use(onFulfilled?: (value: V) => V | Promise<V>, onRejected?: (error: any) => any): number;
+  eject(id: number): void;
+}
+
+export interface AxiosInstance {
+  defaults: AxiosRequestConfig;
+  interceptors: {
+    request: AxiosInterceptorManager<AxiosRequestConfig>;
+    response: AxiosInterceptorManager<AxiosResponse>;
+  };
+  request<T = any>(config: AxiosRequestConfig): AxiosPromise<T>;
+  get<T = any>(url: string, config?: AxiosRequestConfig): AxiosPromise<T>;
+  delete(url: string, config?: AxiosRequestConfig): AxiosPromise;
+  head(url: string, config?: AxiosRequestConfig): AxiosPromise;
+  post<T = any>(url: string, data?: any, config?: AxiosRequestConfig): AxiosPromise<T>;
+  put<T = any>(url: string, data?: any, config?: AxiosRequestConfig): AxiosPromise<T>;
+  patch<T = any>(url: string, data?: any, config?: AxiosRequestConfig): AxiosPromise<T>;
+}
+
+export interface AxiosStatic extends AxiosInstance {
+  (config: AxiosRequestConfig): AxiosPromise;
+  (url: string, config?: AxiosRequestConfig): AxiosPromise;
+  create(config?: AxiosRequestConfig): AxiosInstance;
+  Cancel: CancelStatic;
+  CancelToken: CancelTokenStatic;
+  isCancel(value: any): boolean;
+  all<T>(values: (T | Promise<T>)[]): Promise<T[]>;
+  spread<T, R>(callback: (...args: T[]) => R): (array: T[]) => R;
+}
+
+declare const Axios: AxiosStatic;
+
+export default Axios;

+ 1 - 0
static/axios/index.js

@@ -0,0 +1 @@
+module.exports = require('./lib/axios');

+ 37 - 0
static/axios/lib/adapters/README.md

@@ -0,0 +1,37 @@
+# axios // adapters
+
+The modules under `adapters/` are modules that handle dispatching a request and settling a returned `Promise` once a response is received.
+
+## Example
+
+```js
+var settle = require('./../core/settle');
+
+module.exports = function myAdapter(config) {
+  // At this point:
+  //  - config has been merged with defaults
+  //  - request transformers have already run
+  //  - request interceptors have already run
+  
+  // Make the request using config provided
+  // Upon response settle the Promise
+
+  return new Promise(function(resolve, reject) {
+  
+    var response = {
+      data: responseData,
+      status: request.status,
+      statusText: request.statusText,
+      headers: responseHeaders,
+      config: config,
+      request: request
+    };
+
+    settle(resolve, reject, response);
+
+    // From here:
+    //  - response transformers will run
+    //  - response interceptors will run
+  });
+}
+```

+ 228 - 0
static/axios/lib/adapters/http.js

@@ -0,0 +1,228 @@
+'use strict';
+
+var utils = require('./../utils');
+var settle = require('./../core/settle');
+var buildURL = require('./../helpers/buildURL');
+var http = require('http');
+var https = require('https');
+var httpFollow = require('follow-redirects').http;
+var httpsFollow = require('follow-redirects').https;
+var url = require('url');
+var zlib = require('zlib');
+var pkg = require('./../../package.json');
+var createError = require('../core/createError');
+var enhanceError = require('../core/enhanceError');
+
+/*eslint consistent-return:0*/
+module.exports = function httpAdapter(config) {
+  return new Promise(function dispatchHttpRequest(resolve, reject) {
+    var data = config.data;
+    var headers = config.headers;
+    var timer;
+
+    // Set User-Agent (required by some servers)
+    // Only set header if it hasn't been set in config
+    // See https://github.com/axios/axios/issues/69
+    if (!headers['User-Agent'] && !headers['user-agent']) {
+      headers['User-Agent'] = 'axios/' + pkg.version;
+    }
+
+    if (data && !utils.isStream(data)) {
+      if (Buffer.isBuffer(data)) {
+        // Nothing to do...
+      } else if (utils.isArrayBuffer(data)) {
+        data = new Buffer(new Uint8Array(data));
+      } else if (utils.isString(data)) {
+        data = new Buffer(data, 'utf-8');
+      } else {
+        return reject(createError(
+          'Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream',
+          config
+        ));
+      }
+
+      // Add Content-Length header if data exists
+      headers['Content-Length'] = data.length;
+    }
+
+    // HTTP basic authentication
+    var auth = undefined;
+    if (config.auth) {
+      var username = config.auth.username || '';
+      var password = config.auth.password || '';
+      auth = username + ':' + password;
+    }
+
+    // Parse url
+    var parsed = url.parse(config.url);
+    var protocol = parsed.protocol || 'http:';
+
+    if (!auth && parsed.auth) {
+      var urlAuth = parsed.auth.split(':');
+      var urlUsername = urlAuth[0] || '';
+      var urlPassword = urlAuth[1] || '';
+      auth = urlUsername + ':' + urlPassword;
+    }
+
+    if (auth) {
+      delete headers.Authorization;
+    }
+
+    var isHttps = protocol === 'https:';
+    var agent = isHttps ? config.httpsAgent : config.httpAgent;
+
+    var options = {
+      hostname: parsed.hostname,
+      port: parsed.port,
+      path: buildURL(parsed.path, config.params, config.paramsSerializer).replace(/^\?/, ''),
+      method: config.method,
+      headers: headers,
+      agent: agent,
+      auth: auth
+    };
+
+    var proxy = config.proxy;
+    if (!proxy && proxy !== false) {
+      var proxyEnv = protocol.slice(0, -1) + '_proxy';
+      var proxyUrl = process.env[proxyEnv] || process.env[proxyEnv.toUpperCase()];
+      if (proxyUrl) {
+        var parsedProxyUrl = url.parse(proxyUrl);
+        proxy = {
+          host: parsedProxyUrl.hostname,
+          port: parsedProxyUrl.port
+        };
+
+        if (parsedProxyUrl.auth) {
+          var proxyUrlAuth = parsedProxyUrl.auth.split(':');
+          proxy.auth = {
+            username: proxyUrlAuth[0],
+            password: proxyUrlAuth[1]
+          };
+        }
+      }
+    }
+
+    if (proxy) {
+      options.hostname = proxy.host;
+      options.host = proxy.host;
+      options.headers.host = parsed.hostname + (parsed.port ? ':' + parsed.port : '');
+      options.port = proxy.port;
+      options.path = protocol + '//' + parsed.hostname + (parsed.port ? ':' + parsed.port : '') + options.path;
+
+      // Basic proxy authorization
+      if (proxy.auth) {
+        var base64 = new Buffer(proxy.auth.username + ':' + proxy.auth.password, 'utf8').toString('base64');
+        options.headers['Proxy-Authorization'] = 'Basic ' + base64;
+      }
+    }
+
+    var transport;
+    if (config.transport) {
+      transport = config.transport;
+    } else if (config.maxRedirects === 0) {
+      transport = isHttps ? https : http;
+    } else {
+      if (config.maxRedirects) {
+        options.maxRedirects = config.maxRedirects;
+      }
+      transport = isHttps ? httpsFollow : httpFollow;
+    }
+
+    // Create the request
+    var req = transport.request(options, function handleResponse(res) {
+      if (req.aborted) return;
+
+      // Response has been received so kill timer that handles request timeout
+      clearTimeout(timer);
+      timer = null;
+
+      // uncompress the response body transparently if required
+      var stream = res;
+      switch (res.headers['content-encoding']) {
+      /*eslint default-case:0*/
+      case 'gzip':
+      case 'compress':
+      case 'deflate':
+        // add the unzipper to the body stream processing pipeline
+        stream = stream.pipe(zlib.createUnzip());
+
+        // remove the content-encoding in order to not confuse downstream operations
+        delete res.headers['content-encoding'];
+        break;
+      }
+
+      // return the last request in case of redirects
+      var lastRequest = res.req || req;
+
+      var response = {
+        status: res.statusCode,
+        statusText: res.statusMessage,
+        headers: res.headers,
+        config: config,
+        request: lastRequest
+      };
+
+      if (config.responseType === 'stream') {
+        response.data = stream;
+        settle(resolve, reject, response);
+      } else {
+        var responseBuffer = [];
+        stream.on('data', function handleStreamData(chunk) {
+          responseBuffer.push(chunk);
+
+          // make sure the content length is not over the maxContentLength if specified
+          if (config.maxContentLength > -1 && Buffer.concat(responseBuffer).length > config.maxContentLength) {
+            reject(createError('maxContentLength size of ' + config.maxContentLength + ' exceeded',
+              config, null, lastRequest));
+          }
+        });
+
+        stream.on('error', function handleStreamError(err) {
+          if (req.aborted) return;
+          reject(enhanceError(err, config, null, lastRequest));
+        });
+
+        stream.on('end', function handleStreamEnd() {
+          var responseData = Buffer.concat(responseBuffer);
+          if (config.responseType !== 'arraybuffer') {
+            responseData = responseData.toString('utf8');
+          }
+
+          response.data = responseData;
+          settle(resolve, reject, response);
+        });
+      }
+    });
+
+    // Handle errors
+    req.on('error', function handleRequestError(err) {
+      if (req.aborted) return;
+      reject(enhanceError(err, config, null, req));
+    });
+
+    // Handle request timeout
+    if (config.timeout && !timer) {
+      timer = setTimeout(function handleRequestTimeout() {
+        req.abort();
+        reject(createError('timeout of ' + config.timeout + 'ms exceeded', config, 'ECONNABORTED', req));
+      }, config.timeout);
+    }
+
+    if (config.cancelToken) {
+      // Handle cancellation
+      config.cancelToken.promise.then(function onCanceled(cancel) {
+        if (req.aborted) return;
+
+        req.abort();
+        reject(cancel);
+      });
+    }
+
+    // Send the request
+    if (utils.isStream(data)) {
+      data.pipe(req);
+    } else {
+      req.end(data);
+    }
+  });
+};

+ 180 - 0
static/axios/lib/adapters/xhr.js

@@ -0,0 +1,180 @@
+'use strict';
+
+var utils = require('./../utils');
+var settle = require('./../core/settle');
+var buildURL = require('./../helpers/buildURL');
+var parseHeaders = require('./../helpers/parseHeaders');
+var isURLSameOrigin = require('./../helpers/isURLSameOrigin');
+var createError = require('../core/createError');
+var btoa = (typeof window !== 'undefined' && window.btoa && window.btoa.bind(window)) || require('./../helpers/btoa');
+
+module.exports = function xhrAdapter(config) {
+  return new Promise(function dispatchXhrRequest(resolve, reject) {
+    var requestData = config.data;
+    var requestHeaders = config.headers;
+
+    if (utils.isFormData(requestData)) {
+      delete requestHeaders['Content-Type']; // Let the browser set it
+    }
+
+    var request = new XMLHttpRequest();
+    var loadEvent = 'onreadystatechange';
+    var xDomain = false;
+
+    // For IE 8/9 CORS support
+    // Only supports POST and GET calls and doesn't returns the response headers.
+    // DON'T do this for testing b/c XMLHttpRequest is mocked, not XDomainRequest.
+    if (process.env.NODE_ENV !== 'test' &&
+        typeof window !== 'undefined' &&
+        window.XDomainRequest && !('withCredentials' in request) &&
+        !isURLSameOrigin(config.url)) {
+      request = new window.XDomainRequest();
+      loadEvent = 'onload';
+      xDomain = true;
+      request.onprogress = function handleProgress() {};
+      request.ontimeout = function handleTimeout() {};
+    }
+
+    // HTTP basic authentication
+    if (config.auth) {
+      var username = config.auth.username || '';
+      var password = config.auth.password || '';
+      requestHeaders.Authorization = 'Basic ' + btoa(username + ':' + password);
+    }
+
+    request.open(config.method.toUpperCase(), buildURL(config.url, config.params, config.paramsSerializer), true);
+
+    // Set the request timeout in MS
+    request.timeout = config.timeout;
+
+    // Listen for ready state
+    request[loadEvent] = function handleLoad() {
+      if (!request || (request.readyState !== 4 && !xDomain)) {
+        return;
+      }
+
+      // The request errored out and we didn't get a response, this will be
+      // handled by onerror instead
+      // With one exception: request that using file: protocol, most browsers
+      // will return status as 0 even though it's a successful request
+      if (request.status === 0 && !(request.responseURL && request.responseURL.indexOf('file:') === 0)) {
+        return;
+      }
+
+      // Prepare the response
+      var responseHeaders = 'getAllResponseHeaders' in request ? parseHeaders(request.getAllResponseHeaders()) : null;
+      var responseData = !config.responseType || config.responseType === 'text' ? request.responseText : request.response;
+      var response = {
+        data: responseData,
+        // IE sends 1223 instead of 204 (https://github.com/axios/axios/issues/201)
+        status: request.status === 1223 ? 204 : request.status,
+        statusText: request.status === 1223 ? 'No Content' : request.statusText,
+        headers: responseHeaders,
+        config: config,
+        request: request
+      };
+
+      settle(resolve, reject, response);
+
+      // Clean up request
+      request = null;
+    };
+
+    // Handle low level network errors
+    request.onerror = function handleError() {
+      // Real errors are hidden from us by the browser
+      // onerror should only fire if it's a network error
+      reject(createError('Network Error', config, null, request));
+
+      // Clean up request
+      request = null;
+    };
+
+    // Handle timeout
+    request.ontimeout = function handleTimeout() {
+      reject(createError('timeout of ' + config.timeout + 'ms exceeded', config, 'ECONNABORTED',
+        request));
+
+      // Clean up request
+      request = null;
+    };
+
+    // Add xsrf header
+    // This is only done if running in a standard browser environment.
+    // Specifically not if we're in a web worker, or react-native.
+    if (utils.isStandardBrowserEnv()) {
+      var cookies = require('./../helpers/cookies');
+
+      // Add xsrf header
+      var xsrfValue = (config.withCredentials || isURLSameOrigin(config.url)) && config.xsrfCookieName ?
+          cookies.read(config.xsrfCookieName) :
+          undefined;
+
+      if (xsrfValue) {
+        requestHeaders[config.xsrfHeaderName] = xsrfValue;
+      }
+    }
+
+    // Add headers to the request
+    if ('setRequestHeader' in request) {
+      utils.forEach(requestHeaders, function setRequestHeader(val, key) {
+        if (typeof requestData === 'undefined' && key.toLowerCase() === 'content-type') {
+          // Remove Content-Type if data is undefined
+          delete requestHeaders[key];
+        } else {
+          // Otherwise add header to the request
+          request.setRequestHeader(key, val);
+        }
+      });
+    }
+
+    // Add withCredentials to request if needed
+    if (config.withCredentials) {
+      request.withCredentials = true;
+    }
+
+    // Add responseType to request if needed
+    if (config.responseType) {
+      try {
+        request.responseType = config.responseType;
+      } catch (e) {
+        // Expected DOMException thrown by browsers not compatible XMLHttpRequest Level 2.
+        // But, this can be suppressed for 'json' type as it can be parsed by default 'transformResponse' function.
+        if (config.responseType !== 'json') {
+          throw e;
+        }
+      }
+    }
+
+    // Handle progress if needed
+    if (typeof config.onDownloadProgress === 'function') {
+      request.addEventListener('progress', config.onDownloadProgress);
+    }
+
+    // Not all browsers support upload events
+    if (typeof config.onUploadProgress === 'function' && request.upload) {
+      request.upload.addEventListener('progress', config.onUploadProgress);
+    }
+
+    if (config.cancelToken) {
+      // Handle cancellation
+      config.cancelToken.promise.then(function onCanceled(cancel) {
+        if (!request) {
+          return;
+        }
+
+        request.abort();
+        reject(cancel);
+        // Clean up request
+        request = null;
+      });
+    }
+
+    if (requestData === undefined) {
+      requestData = null;
+    }
+
+    // Send the request
+    request.send(requestData);
+  });
+};

+ 52 - 0
static/axios/lib/axios.js

@@ -0,0 +1,52 @@
+'use strict';
+
+var utils = require('./utils');
+var bind = require('./helpers/bind');
+var Axios = require('./core/Axios');
+var defaults = require('./defaults');
+
+/**
+ * Create an instance of Axios
+ *
+ * @param {Object} defaultConfig The default config for the instance
+ * @return {Axios} A new instance of Axios
+ */
+function createInstance(defaultConfig) {
+  var context = new Axios(defaultConfig);
+  var instance = bind(Axios.prototype.request, context);
+
+  // Copy axios.prototype to instance
+  utils.extend(instance, Axios.prototype, context);
+
+  // Copy context to instance
+  utils.extend(instance, context);
+
+  return instance;
+}
+
+// Create the default instance to be exported
+var axios = createInstance(defaults);
+
+// Expose Axios class to allow class inheritance
+axios.Axios = Axios;
+
+// Factory for creating new instances
+axios.create = function create(instanceConfig) {
+  return createInstance(utils.merge(defaults, instanceConfig));
+};
+
+// Expose Cancel & CancelToken
+axios.Cancel = require('./cancel/Cancel');
+axios.CancelToken = require('./cancel/CancelToken');
+axios.isCancel = require('./cancel/isCancel');
+
+// Expose all/spread
+axios.all = function all(promises) {
+  return Promise.all(promises);
+};
+axios.spread = require('./helpers/spread');
+
+module.exports = axios;
+
+// Allow use of default import syntax in TypeScript
+module.exports.default = axios;

+ 19 - 0
static/axios/lib/cancel/Cancel.js

@@ -0,0 +1,19 @@
+'use strict';
+
+/**
+ * A `Cancel` is an object that is thrown when an operation is canceled.
+ *
+ * @class
+ * @param {string=} message The message.
+ */
+function Cancel(message) {
+  this.message = message;
+}
+
+Cancel.prototype.toString = function toString() {
+  return 'Cancel' + (this.message ? ': ' + this.message : '');
+};
+
+Cancel.prototype.__CANCEL__ = true;
+
+module.exports = Cancel;

+ 57 - 0
static/axios/lib/cancel/CancelToken.js

@@ -0,0 +1,57 @@
+'use strict';
+
+var Cancel = require('./Cancel');
+
+/**
+ * A `CancelToken` is an object that can be used to request cancellation of an operation.
+ *
+ * @class
+ * @param {Function} executor The executor function.
+ */
+function CancelToken(executor) {
+  if (typeof executor !== 'function') {
+    throw new TypeError('executor must be a function.');
+  }
+
+  var resolvePromise;
+  this.promise = new Promise(function promiseExecutor(resolve) {
+    resolvePromise = resolve;
+  });
+
+  var token = this;
+  executor(function cancel(message) {
+    if (token.reason) {
+      // Cancellation has already been requested
+      return;
+    }
+
+    token.reason = new Cancel(message);
+    resolvePromise(token.reason);
+  });
+}
+
+/**
+ * Throws a `Cancel` if cancellation has been requested.
+ */
+CancelToken.prototype.throwIfRequested = function throwIfRequested() {
+  if (this.reason) {
+    throw this.reason;
+  }
+};
+
+/**
+ * Returns an object that contains a new `CancelToken` and a function that, when called,
+ * cancels the `CancelToken`.
+ */
+CancelToken.source = function source() {
+  var cancel;
+  var token = new CancelToken(function executor(c) {
+    cancel = c;
+  });
+  return {
+    token: token,
+    cancel: cancel
+  };
+};
+
+module.exports = CancelToken;

+ 5 - 0
static/axios/lib/cancel/isCancel.js

@@ -0,0 +1,5 @@
+'use strict';
+
+module.exports = function isCancel(value) {
+  return !!(value && value.__CANCEL__);
+};

+ 79 - 0
static/axios/lib/core/Axios.js

@@ -0,0 +1,79 @@
+'use strict';
+
+var defaults = require('./../defaults');
+var utils = require('./../utils');
+var InterceptorManager = require('./InterceptorManager');
+var dispatchRequest = require('./dispatchRequest');
+
+/**
+ * Create a new instance of Axios
+ *
+ * @param {Object} instanceConfig The default config for the instance
+ */
+function Axios(instanceConfig) {
+  this.defaults = instanceConfig;
+  this.interceptors = {
+    request: new InterceptorManager(),
+    response: new InterceptorManager()
+  };
+}
+
+/**
+ * Dispatch a request
+ *
+ * @param {Object} config The config specific for this request (merged with this.defaults)
+ */
+Axios.prototype.request = function request(config) {
+  /*eslint no-param-reassign:0*/
+  // Allow for axios('example/url'[, config]) a la fetch API
+  if (typeof config === 'string') {
+    config = utils.merge({
+      url: arguments[0]
+    }, arguments[1]);
+  }
+
+  config = utils.merge(defaults, this.defaults, { method: 'get' }, config);
+  config.method = config.method.toLowerCase();
+
+  // Hook up interceptors middleware
+  var chain = [dispatchRequest, undefined];
+  var promise = Promise.resolve(config);
+
+  this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor) {
+    chain.unshift(interceptor.fulfilled, interceptor.rejected);
+  });
+
+  this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) {
+    chain.push(interceptor.fulfilled, interceptor.rejected);
+  });
+
+  while (chain.length) {
+    promise = promise.then(chain.shift(), chain.shift());
+  }
+
+  return promise;
+};
+
+// Provide aliases for supported request methods
+utils.forEach(['delete', 'get', 'head', 'options'], function forEachMethodNoData(method) {
+  /*eslint func-names:0*/
+  Axios.prototype[method] = function(url, config) {
+    return this.request(utils.merge(config || {}, {
+      method: method,
+      url: url
+    }));
+  };
+});
+
+utils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {
+  /*eslint func-names:0*/
+  Axios.prototype[method] = function(url, data, config) {
+    return this.request(utils.merge(config || {}, {
+      method: method,
+      url: url,
+      data: data
+    }));
+  };
+});
+
+module.exports = Axios;

+ 52 - 0
static/axios/lib/core/InterceptorManager.js

@@ -0,0 +1,52 @@
+'use strict';
+
+var utils = require('./../utils');
+
+function InterceptorManager() {
+  this.handlers = [];
+}
+
+/**
+ * Add a new interceptor to the stack
+ *
+ * @param {Function} fulfilled The function to handle `then` for a `Promise`
+ * @param {Function} rejected The function to handle `reject` for a `Promise`
+ *
+ * @return {Number} An ID used to remove interceptor later
+ */
+InterceptorManager.prototype.use = function use(fulfilled, rejected) {
+  this.handlers.push({
+    fulfilled: fulfilled,
+    rejected: rejected
+  });
+  return this.handlers.length - 1;
+};
+
+/**
+ * Remove an interceptor from the stack
+ *
+ * @param {Number} id The ID that was returned by `use`
+ */
+InterceptorManager.prototype.eject = function eject(id) {
+  if (this.handlers[id]) {
+    this.handlers[id] = null;
+  }
+};
+
+/**
+ * Iterate over all the registered interceptors
+ *
+ * This method is particularly useful for skipping over any
+ * interceptors that may have become `null` calling `eject`.
+ *
+ * @param {Function} fn The function to call for each interceptor
+ */
+InterceptorManager.prototype.forEach = function forEach(fn) {
+  utils.forEach(this.handlers, function forEachHandler(h) {
+    if (h !== null) {
+      fn(h);
+    }
+  });
+};
+
+module.exports = InterceptorManager;

+ 7 - 0
static/axios/lib/core/README.md

@@ -0,0 +1,7 @@
+# axios // core
+
+The modules found in `core/` should be modules that are specific to the domain logic of axios. These modules would most likely not make sense to be consumed outside of the axios module, as their logic is too specific. Some examples of core modules are:
+
+- Dispatching requests
+- Managing interceptors
+- Handling config

+ 18 - 0
static/axios/lib/core/createError.js

@@ -0,0 +1,18 @@
+'use strict';
+
+var enhanceError = require('./enhanceError');
+
+/**
+ * Create an Error with the specified message, config, error code, request and response.
+ *
+ * @param {string} message The error message.
+ * @param {Object} config The config.
+ * @param {string} [code] The error code (for example, 'ECONNABORTED').
+ * @param {Object} [request] The request.
+ * @param {Object} [response] The response.
+ * @returns {Error} The created error.
+ */
+module.exports = function createError(message, config, code, request, response) {
+  var error = new Error(message);
+  return enhanceError(error, config, code, request, response);
+};

+ 86 - 0
static/axios/lib/core/dispatchRequest.js

@@ -0,0 +1,86 @@
+'use strict';
+
+var utils = require('./../utils');
+var transformData = require('./transformData');
+var isCancel = require('../cancel/isCancel');
+var defaults = require('../defaults');
+var isAbsoluteURL = require('./../helpers/isAbsoluteURL');
+var combineURLs = require('./../helpers/combineURLs');
+
+/**
+ * Throws a `Cancel` if cancellation has been requested.
+ */
+function throwIfCancellationRequested(config) {
+  if (config.cancelToken) {
+    config.cancelToken.throwIfRequested();
+  }
+}
+
+/**
+ * Dispatch a request to the server using the configured adapter.
+ *
+ * @param {object} config The config that is to be used for the request
+ * @returns {Promise} The Promise to be fulfilled
+ */
+module.exports = function dispatchRequest(config) {
+  throwIfCancellationRequested(config);
+
+  // Support baseURL config
+  if (config.baseURL && !isAbsoluteURL(config.url)) {
+    config.url = combineURLs(config.baseURL, config.url);
+  }
+
+  // Ensure headers exist
+  config.headers = config.headers || {};
+
+  // Transform request data
+  config.data = transformData(
+    config.data,
+    config.headers,
+    config.transformRequest
+  );
+
+  // Flatten headers
+  config.headers = utils.merge(
+    config.headers.common || {},
+    config.headers[config.method] || {},
+    config.headers || {}
+  );
+
+  utils.forEach(
+    ['delete', 'get', 'head', 'post', 'put', 'patch', 'common'],
+    function cleanHeaderConfig(method) {
+      delete config.headers[method];
+    }
+  );
+
+  var adapter = config.adapter || defaults.adapter;
+
+  return adapter(config).then(function onAdapterResolution(response) {
+    throwIfCancellationRequested(config);
+
+    // Transform response data
+    response.data = transformData(
+      response.data,
+      response.headers,
+      config.transformResponse
+    );
+
+    return response;
+  }, function onAdapterRejection(reason) {
+    if (!isCancel(reason)) {
+      throwIfCancellationRequested(config);
+
+      // Transform response data
+      if (reason && reason.response) {
+        reason.response.data = transformData(
+          reason.response.data,
+          reason.response.headers,
+          config.transformResponse
+        );
+      }
+    }
+
+    return Promise.reject(reason);
+  });
+};

+ 21 - 0
static/axios/lib/core/enhanceError.js

@@ -0,0 +1,21 @@
+'use strict';
+
+/**
+ * Update an Error with the specified config, error code, and response.
+ *
+ * @param {Error} error The error to update.
+ * @param {Object} config The config.
+ * @param {string} [code] The error code (for example, 'ECONNABORTED').
+ * @param {Object} [request] The request.
+ * @param {Object} [response] The response.
+ * @returns {Error} The error.
+ */
+module.exports = function enhanceError(error, config, code, request, response) {
+  error.config = config;
+  if (code) {
+    error.code = code;
+  }
+  error.request = request;
+  error.response = response;
+  return error;
+};

+ 26 - 0
static/axios/lib/core/settle.js

@@ -0,0 +1,26 @@
+'use strict';
+
+var createError = require('./createError');
+
+/**
+ * Resolve or reject a Promise based on response status.
+ *
+ * @param {Function} resolve A function that resolves the promise.
+ * @param {Function} reject A function that rejects the promise.
+ * @param {object} response The response.
+ */
+module.exports = function settle(resolve, reject, response) {
+  var validateStatus = response.config.validateStatus;
+  // Note: status is not exposed by XDomainRequest
+  if (!response.status || !validateStatus || validateStatus(response.status)) {
+    resolve(response);
+  } else {
+    reject(createError(
+      'Request failed with status code ' + response.status,
+      response.config,
+      null,
+      response.request,
+      response
+    ));
+  }
+};

+ 20 - 0
static/axios/lib/core/transformData.js

@@ -0,0 +1,20 @@
+'use strict';
+
+var utils = require('./../utils');
+
+/**
+ * Transform the data for a request or a response
+ *
+ * @param {Object|String} data The data to be transformed
+ * @param {Array} headers The headers for the request or response
+ * @param {Array|Function} fns A single function or Array of functions
+ * @returns {*} The resulting transformed data
+ */
+module.exports = function transformData(data, headers, fns) {
+  /*eslint no-param-reassign:0*/
+  utils.forEach(fns, function transform(fn) {
+    data = fn(data, headers);
+  });
+
+  return data;
+};

+ 92 - 0
static/axios/lib/defaults.js

@@ -0,0 +1,92 @@
+'use strict';
+
+var utils = require('./utils');
+var normalizeHeaderName = require('./helpers/normalizeHeaderName');
+
+var DEFAULT_CONTENT_TYPE = {
+  'Content-Type': 'application/x-www-form-urlencoded'
+};
+
+function setContentTypeIfUnset(headers, value) {
+  if (!utils.isUndefined(headers) && utils.isUndefined(headers['Content-Type'])) {
+    headers['Content-Type'] = value;
+  }
+}
+
+function getDefaultAdapter() {
+  var adapter;
+  if (typeof XMLHttpRequest !== 'undefined') {
+    // For browsers use XHR adapter
+    adapter = require('./adapters/xhr');
+  } else if (typeof process !== 'undefined') {
+    // For node use HTTP adapter
+    adapter = require('./adapters/http');
+  }
+  return adapter;
+}
+
+var defaults = {
+  adapter: getDefaultAdapter(),
+
+  transformRequest: [function transformRequest(data, headers) {
+    normalizeHeaderName(headers, 'Content-Type');
+    if (utils.isFormData(data) ||
+      utils.isArrayBuffer(data) ||
+      utils.isBuffer(data) ||
+      utils.isStream(data) ||
+      utils.isFile(data) ||
+      utils.isBlob(data)
+    ) {
+      return data;
+    }
+    if (utils.isArrayBufferView(data)) {
+      return data.buffer;
+    }
+    if (utils.isURLSearchParams(data)) {
+      setContentTypeIfUnset(headers, 'application/x-www-form-urlencoded;charset=utf-8');
+      return data.toString();
+    }
+    if (utils.isObject(data)) {
+      setContentTypeIfUnset(headers, 'application/json;charset=utf-8');
+      return JSON.stringify(data);
+    }
+    return data;
+  }],
+
+  transformResponse: [function transformResponse(data) {
+    /*eslint no-param-reassign:0*/
+    if (typeof data === 'string') {
+      try {
+        data = JSON.parse(data);
+      } catch (e) { /* Ignore */ }
+    }
+    return data;
+  }],
+
+  timeout: 0,
+
+  xsrfCookieName: 'XSRF-TOKEN',
+  xsrfHeaderName: 'X-XSRF-TOKEN',
+
+  maxContentLength: -1,
+
+  validateStatus: function validateStatus(status) {
+    return status >= 200 && status < 300;
+  }
+};
+
+defaults.headers = {
+  common: {
+    'Accept': 'application/json, text/plain, */*'
+  }
+};
+
+utils.forEach(['delete', 'get', 'head'], function forEachMethodNoData(method) {
+  defaults.headers[method] = {};
+});
+
+utils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {
+  defaults.headers[method] = utils.merge(DEFAULT_CONTENT_TYPE);
+});
+
+module.exports = defaults;

+ 7 - 0
static/axios/lib/helpers/README.md

@@ -0,0 +1,7 @@
+# axios // helpers
+
+The modules found in `helpers/` should be generic modules that are _not_ specific to the domain logic of axios. These modules could theoretically be published to npm on their own and consumed by other modules or apps. Some examples of generic modules are things like:
+
+- Browser polyfills
+- Managing cookies
+- Parsing HTTP headers

+ 11 - 0
static/axios/lib/helpers/bind.js

@@ -0,0 +1,11 @@
+'use strict';
+
+module.exports = function bind(fn, thisArg) {
+  return function wrap() {
+    var args = new Array(arguments.length);
+    for (var i = 0; i < args.length; i++) {
+      args[i] = arguments[i];
+    }
+    return fn.apply(thisArg, args);
+  };
+};

+ 36 - 0
static/axios/lib/helpers/btoa.js

@@ -0,0 +1,36 @@
+'use strict';
+
+// btoa polyfill for IE<10 courtesy https://github.com/davidchambers/Base64.js
+
+var chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';
+
+function E() {
+  this.message = 'String contains an invalid character';
+}
+E.prototype = new Error;
+E.prototype.code = 5;
+E.prototype.name = 'InvalidCharacterError';
+
+function btoa(input) {
+  var str = String(input);
+  var output = '';
+  for (
+    // initialize result and counter
+    var block, charCode, idx = 0, map = chars;
+    // if the next str index does not exist:
+    //   change the mapping table to "="
+    //   check if d has no fractional digits
+    str.charAt(idx | 0) || (map = '=', idx % 1);
+    // "8 - idx % 1 * 8" generates the sequence 2, 4, 6, 8
+    output += map.charAt(63 & block >> 8 - idx % 1 * 8)
+  ) {
+    charCode = str.charCodeAt(idx += 3 / 4);
+    if (charCode > 0xFF) {
+      throw new E();
+    }
+    block = block << 8 | charCode;
+  }
+  return output;
+}
+
+module.exports = btoa;

+ 68 - 0
static/axios/lib/helpers/buildURL.js

@@ -0,0 +1,68 @@
+'use strict';
+
+var utils = require('./../utils');
+
+function encode(val) {
+  return encodeURIComponent(val).
+    replace(/%40/gi, '@').
+    replace(/%3A/gi, ':').
+    replace(/%24/g, '$').
+    replace(/%2C/gi, ',').
+    replace(/%20/g, '+').
+    replace(/%5B/gi, '[').
+    replace(/%5D/gi, ']');
+}
+
+/**
+ * Build a URL by appending params to the end
+ *
+ * @param {string} url The base of the url (e.g., http://www.google.com)
+ * @param {object} [params] The params to be appended
+ * @returns {string} The formatted url
+ */
+module.exports = function buildURL(url, params, paramsSerializer) {
+  /*eslint no-param-reassign:0*/
+  if (!params) {
+    return url;
+  }
+
+  var serializedParams;
+  if (paramsSerializer) {
+    serializedParams = paramsSerializer(params);
+  } else if (utils.isURLSearchParams(params)) {
+    serializedParams = params.toString();
+  } else {
+    var parts = [];
+
+    utils.forEach(params, function serialize(val, key) {
+      if (val === null || typeof val === 'undefined') {
+        return;
+      }
+
+      if (utils.isArray(val)) {
+        key = key + '[]';
+      }
+
+      if (!utils.isArray(val)) {
+        val = [val];
+      }
+
+      utils.forEach(val, function parseValue(v) {
+        if (utils.isDate(v)) {
+          v = v.toISOString();
+        } else if (utils.isObject(v)) {
+          v = JSON.stringify(v);
+        }
+        parts.push(encode(key) + '=' + encode(v));
+      });
+    });
+
+    serializedParams = parts.join('&');
+  }
+
+  if (serializedParams) {
+    url += (url.indexOf('?') === -1 ? '?' : '&') + serializedParams;
+  }
+
+  return url;
+};

Alguns ficheiros não foram mostrados porque muitos ficheiros mudaram neste diff