rsbi пре 4 година
комит
0687719596
49 измењених фајлова са 20588 додато и 0 уклоњено
  1. 18 0
      .babelrc
  2. 9 0
      .editorconfig
  3. 5 0
      .eslintignore
  4. 29 0
      .eslintrc.js
  5. 17 0
      .gitignore
  6. 10 0
      .postcssrc.js
  7. 30 0
      README.md
  8. 41 0
      build/build.js
  9. 54 0
      build/check-versions.js
  10. BIN
      build/logo.png
  11. 101 0
      build/utils.js
  12. 22 0
      build/vue-loader.conf.js
  13. 92 0
      build/webpack.base.conf.js
  14. 96 0
      build/webpack.dev.conf.js
  15. 149 0
      build/webpack.prod.conf.js
  16. 7 0
      config/dev.env.js
  17. 76 0
      config/index.js
  18. 4 0
      config/prod.env.js
  19. 7 0
      config/test.env.js
  20. 11 0
      index.html
  21. 17113 0
      package-lock.json
  22. 105 0
      package.json
  23. BIN
      rs_favicon.ico
  24. 15 0
      src/App.vue
  25. 864 0
      src/assets/data/menu-icons.json
  26. BIN
      src/assets/image/log2.png
  27. BIN
      src/assets/image/xsqq.png
  28. 50 0
      src/common/biConfig.js
  29. 123 0
      src/components/FrameTop.vue
  30. 84 0
      src/components/OperationDailog.vue
  31. 20 0
      src/main.js
  32. 47 0
      src/router/index.js
  33. 110 0
      src/style/common.less
  34. 72 0
      src/style/mixin.less
  35. 183 0
      src/view/Login.vue
  36. 103 0
      src/view/Main.vue
  37. 53 0
      src/view/Welcome.vue
  38. 205 0
      src/view/frame/Menu.vue
  39. 182 0
      src/view/frame/Role.vue
  40. 290 0
      src/view/frame/User.vue
  41. 0 0
      static/.gitkeep
  42. 27 0
      test/e2e/custom-assertions/elementCount.js
  43. 46 0
      test/e2e/nightwatch.conf.js
  44. 48 0
      test/e2e/runner.js
  45. 19 0
      test/e2e/specs/test.js
  46. 7 0
      test/unit/.eslintrc
  47. 30 0
      test/unit/jest.conf.js
  48. 3 0
      test/unit/setup.js
  49. 11 0
      test/unit/specs/HelloWorld.spec.js

+ 18 - 0
.babelrc

@@ -0,0 +1,18 @@
+{
+  "presets": [
+    ["env", {
+      "modules": false,
+      "targets": {
+        "browsers": ["> 1%", "last 2 versions", "not ie <= 8"]
+      }
+    }],
+    "stage-2"
+  ],
+  "plugins": ["transform-vue-jsx", "transform-runtime"],
+  "env": {
+    "test": {
+      "presets": ["env", "stage-2"],
+      "plugins": ["transform-vue-jsx", "transform-es2015-modules-commonjs", "dynamic-import-node"]
+    }
+  }
+}

+ 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

+ 5 - 0
.eslintignore

@@ -0,0 +1,5 @@
+/build/
+/config/
+/dist/
+/*.js
+/test/unit/coverage/

+ 29 - 0
.eslintrc.js

@@ -0,0 +1,29 @@
+// https://eslint.org/docs/user-guide/configuring
+
+module.exports = {
+  root: true,
+  parserOptions: {
+    parser: 'babel-eslint'
+  },
+  env: {
+    browser: true,
+  },
+  extends: [
+    // https://github.com/vuejs/eslint-plugin-vue#priority-a-essential-error-prevention
+    // consider switching to `plugin:vue/strongly-recommended` or `plugin:vue/recommended` for stricter rules.
+    'plugin:vue/essential', 
+    // https://github.com/standard/standard/blob/master/docs/RULES-en.md
+    'standard'
+  ],
+  // required to lint *.vue files
+  plugins: [
+    'vue'
+  ],
+  // add your custom rules here
+  rules: {
+    // allow async-await
+    'generator-star-spacing': 'off',
+    // allow debugger during development
+    'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off'
+  }
+}

+ 17 - 0
.gitignore

@@ -0,0 +1,17 @@
+.DS_Store
+node_modules/
+/dist/
+npm-debug.log*
+yarn-debug.log*
+yarn-error.log*
+/test/unit/coverage/
+/test/e2e/reports/
+selenium-debug.log
+
+# Editor directories and files
+.idea
+.vscode
+*.suo
+*.ntvs*
+*.njsproj
+*.sln

+ 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": {}
+  }
+}

+ 30 - 0
README.md

@@ -0,0 +1,30 @@
+# rsbi-vue
+
+> A Vue.js project
+
+## Build Setup
+
+``` bash
+# install dependencies
+npm install
+
+# serve with hot reload at localhost:8080
+npm run dev
+
+# build for production with minification
+npm run build
+
+# build for production and view the bundle analyzer report
+npm run build --report
+
+# run unit tests
+npm run unit
+
+# run e2e tests
+npm run e2e
+
+# run all tests
+npm test
+```
+
+For a detailed explanation on how things work, check out the [guide](http://vuejs-templates.github.io/webpack/) and [docs for vue-loader](http://vuejs.github.io/vue-loader).

+ 41 - 0
build/build.js

@@ -0,0 +1,41 @@
+'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...')
+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)
+  }
+}


+ 101 - 0
build/utils.js

@@ -0,0 +1,101 @@
+'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'
+      })
+    } 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'
+  }
+}

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

@@ -0,0 +1,92 @@
+'use strict'
+const path = require('path')
+const utils = require('./utils')
+const config = require('../config')
+const vueLoaderConfig = require('./vue-loader.conf')
+
+function resolve (dir) {
+  return path.join(__dirname, '..', dir)
+}
+
+const createLintingRule = () => ({
+  test: /\.(js|vue)$/,
+  loader: 'eslint-loader',
+  enforce: 'pre',
+  include: [resolve('src'), resolve('test')],
+  options: {
+    formatter: require('eslint-friendly-formatter'),
+    emitWarning: !config.dev.showEslintErrorsInOverlay
+  }
+})
+
+module.exports = {
+  context: path.resolve(__dirname, '../'),
+  entry: {
+    app: './src/main.js'
+  },
+  output: {
+    path: config.build.assetsRoot,
+    filename: '[name].js',
+    publicPath: process.env.NODE_ENV === 'production'
+      ? config.build.assetsPublicPath
+      : config.dev.assetsPublicPath
+  },
+  resolve: {
+    extensions: ['.js', '.vue', '.json'],
+    alias: {
+      'vue$': 'vue/dist/vue.esm.js',
+      '@': resolve('src'),
+    }
+  },
+  module: {
+    rules: [
+      ...(config.dev.useEslint ? [createLintingRule()] : []),
+      {
+        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'
+  }
+}

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

@@ -0,0 +1,96 @@
+'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,
+      favicon: './rs_favicon.ico'
+    }),
+    // copy custom static assets
+    new CopyWebpackPlugin([
+      {
+        from: path.resolve(__dirname, '../static'),
+        to: config.dev.assetsSubDirectory,
+        ignore: ['.*']
+      }
+    ])
+  ]
+})
+
+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)
+    }
+  })
+})

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

@@ -0,0 +1,149 @@
+'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 = process.env.NODE_ENV === 'testing'
+  ? require('../config/test.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 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: process.env.NODE_ENV === 'testing'
+        ? 'index.html'
+        : 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: ['.*']
+      }
+    ])
+  ]
+})
+
+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

+ 7 - 0
config/dev.env.js

@@ -0,0 +1,7 @@
+'use strict'
+const merge = require('webpack-merge')
+const prodEnv = require('./prod.env')
+
+module.exports = merge(prodEnv, {
+  NODE_ENV: '"development"'
+})

+ 76 - 0
config/index.js

@@ -0,0 +1,76 @@
+'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: '/',
+    proxyTable: {},
+
+    // Various Dev Server settings
+    host: 'localhost', // can be overwritten by process.env.HOST
+    port: 8085, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined
+    autoOpenBrowser: false,
+    errorOverlay: true,
+    notifyOnErrors: true,
+    poll: false, // https://webpack.js.org/configuration/dev-server/#devserver-watchoptions-
+
+    // Use Eslint Loader?
+    // If true, your code will be linted during bundling and
+    // linting errors and warnings will be shown in the console.
+    useEslint: false,
+    // If true, eslint errors and warnings will also be shown in the error overlay
+    // in the browser.
+    showEslintErrorsInOverlay: false,
+
+    /**
+     * 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: true,
+    // 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: false,
+    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
+  }
+}

+ 4 - 0
config/prod.env.js

@@ -0,0 +1,4 @@
+'use strict'
+module.exports = {
+  NODE_ENV: '"production"'
+}

+ 7 - 0
config/test.env.js

@@ -0,0 +1,7 @@
+'use strict'
+const merge = require('webpack-merge')
+const devEnv = require('./dev.env')
+
+module.exports = merge(devEnv, {
+  NODE_ENV: '"testing"'
+})

+ 11 - 0
index.html

@@ -0,0 +1,11 @@
+<!DOCTYPE html>
+<html>
+  <head>
+    <meta charset="utf-8">
+    <meta name="viewport" content="width=device-width,initial-scale=1.0">
+    <title>睿思BI开源版</title>
+  </head>
+  <body>
+    <div id="app"></div>
+  </body>
+</html>

Разлика између датотеке није приказан због своје велике величине
+ 17113 - 0
package-lock.json


+ 105 - 0
package.json

@@ -0,0 +1,105 @@
+{
+  "name": "rsbi-vue",
+  "version": "1.0.0",
+  "description": "睿思bi开源版前端项目",
+  "author": "rsbi <huangqin_bj@163.com>",
+  "private": true,
+  "scripts": {
+    "dev": "webpack-dev-server --inline --progress --config build/webpack.dev.conf.js",
+    "start": "npm run dev",
+    "unit": "jest --config test/unit/jest.conf.js --coverage",
+    "e2e": "node test/e2e/runner.js",
+    "test": "npm run unit && npm run e2e",
+    "lint": "eslint --ext .js,.vue src test/unit test/e2e/specs",
+    "build": "node build/build.js"
+  },
+  "dependencies": {
+    "@fortawesome/fontawesome": "^1.1.8",
+    "@fortawesome/fontawesome-free-brands": "^5.0.13",
+    "@fortawesome/fontawesome-free-regular": "^5.0.13",
+    "@fortawesome/fontawesome-free-solid": "^5.0.13",
+    "@fortawesome/vue-fontawesome": "^2.0.0",
+    "bootstrap-table": "^1.18.0",
+    "bootstrap3": "^3.3.5",
+    "element-ui": "^2.13.2",
+    "font-awesome": "^4.7.0",
+    "jquery": "^3.5.1",
+    "jstree": "^3.3.10",
+    "popper.js": "^1.16.1",
+    "vue": "^2.5.2",
+    "vue-router": "^3.0.1"
+  },
+  "devDependencies": {
+    "autoprefixer": "^7.1.2",
+    "babel-core": "^6.22.1",
+    "babel-eslint": "^8.2.1",
+    "babel-helper-vue-jsx-merge-props": "^2.0.3",
+    "babel-jest": "^21.0.2",
+    "babel-loader": "^7.1.1",
+    "babel-plugin-dynamic-import-node": "^1.2.0",
+    "babel-plugin-syntax-jsx": "^6.18.0",
+    "babel-plugin-transform-es2015-modules-commonjs": "^6.26.0",
+    "babel-plugin-transform-runtime": "^6.22.0",
+    "babel-plugin-transform-vue-jsx": "^3.5.0",
+    "babel-preset-env": "^1.3.2",
+    "babel-preset-stage-2": "^6.22.0",
+    "babel-register": "^6.22.0",
+    "chalk": "^2.0.1",
+    "chromedriver": "^2.27.2",
+    "copy-webpack-plugin": "^4.0.1",
+    "cross-spawn": "^5.0.1",
+    "css-loader": "^0.28.11",
+    "eslint": "^4.15.0",
+    "eslint-config-standard": "^10.2.1",
+    "eslint-friendly-formatter": "^3.0.0",
+    "eslint-loader": "^1.7.1",
+    "eslint-plugin-import": "^2.7.0",
+    "eslint-plugin-node": "^5.2.0",
+    "eslint-plugin-promise": "^3.4.0",
+    "eslint-plugin-standard": "^3.0.1",
+    "eslint-plugin-vue": "^4.0.0",
+    "extract-text-webpack-plugin": "^3.0.0",
+    "file-loader": "^1.1.4",
+    "friendly-errors-webpack-plugin": "^1.6.1",
+    "html-webpack-plugin": "^2.30.1",
+    "jest": "^22.0.4",
+    "jest-serializer-vue": "^0.3.0",
+    "less": "^3.12.2",
+    "less-loader": "^4.1.0",
+    "nightwatch": "^0.9.12",
+    "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",
+    "sass": "^1.26.10",
+    "sass-loader": "^10.0.2",
+    "selenium-server": "^3.0.1",
+    "semver": "^5.3.0",
+    "shelljs": "^0.7.6",
+    "style-loader": "^1.2.1",
+    "stylus-loader": "^3.0.2",
+    "uglifyjs-webpack-plugin": "^1.1.1",
+    "url-loader": "^0.5.8",
+    "vue-jest": "^1.0.2",
+    "vue-loader": "^13.3.0",
+    "vue-style-loader": "^3.0.1",
+    "vue-template-compiler": "^2.5.2",
+    "webpack": "^3.6.0",
+    "webpack-bundle-analyzer": "^2.9.0",
+    "webpack-dev-server": "^2.9.1",
+    "webpack-merge": "^4.1.0"
+  },
+  "engines": {
+    "node": ">= 6.0.0",
+    "npm": ">= 3.0.0"
+  },
+  "browserslist": [
+    "> 1%",
+    "last 2 versions",
+    "not ie <= 8"
+  ]
+}


+ 15 - 0
src/App.vue

@@ -0,0 +1,15 @@
+<template>
+  <div id="app" class="fillcontain">
+    <router-view/>
+  </div>
+</template>
+
+<script>
+export default {
+  name: 'App'
+}
+</script>
+
+<style lang="less">
+	@import './style/common';
+</style>

+ 864 - 0
src/assets/data/menu-icons.json

@@ -0,0 +1,864 @@
+[
+{"cls":"fa fa-500px","text":"500px"},
+{"cls":"fa fa-amazon","text":"amazon"},
+{"cls":"fa fa-balance-scale","text":"balance-scale"},
+{"cls":"fa fa-battery-0","text":"battery-0 (alias)"},
+{"cls":"fa fa-battery-1","text":"battery-1 (alias)"},
+{"cls":"fa fa-battery-2","text":"battery-2 (alias)"},
+{"cls":"fa fa-battery-3","text":"battery-3 (alias)"},
+{"cls":"fa fa-battery-4","text":"battery-4 (alias)"},
+{"cls":"fa fa-battery-empty","text":"battery-empty"},
+{"cls":"fa fa-battery-full","text":"battery-full"},
+{"cls":"fa fa-battery-half","text":"battery-half"},
+{"cls":"fa fa-battery-quarter","text":"battery-quarter"},
+{"cls":"fa fa-battery-three-quarters","text":"battery-three-quarters"},
+{"cls":"fa fa-black-tie","text":"black-tie"},
+{"cls":"fa fa-calendar-check-o","text":"calendar-check-o"},
+{"cls":"fa fa-calendar-minus-o","text":"calendar-minus-o"},
+{"cls":"fa fa-calendar-plus-o","text":"calendar-plus-o"},
+{"cls":"fa fa-calendar-times-o","text":"calendar-times-o"},
+{"cls":"fa fa-cc-diners-club","text":"cc-diners-club"},
+{"cls":"fa fa-cc-jcb","text":"cc-jcb"},
+{"cls":"fa fa-chrome","text":"chrome"},
+{"cls":"fa fa-clone","text":"clone"},
+{"cls":"fa fa-commenting","text":"commenting"},
+{"cls":"fa fa-commenting-o","text":"commenting-o"},
+{"cls":"fa fa-contao","text":"contao"},
+{"cls":"fa fa-creative-commons","text":"creative-commons"},
+{"cls":"fa fa-expeditedssl","text":"expeditedssl"},
+{"cls":"fa fa-firefox","text":"firefox"},
+{"cls":"fa fa-fonticons","text":"fonticons"},
+{"cls":"fa fa-genderless","text":"genderless"},
+{"cls":"fa fa-get-pocket","text":"get-pocket"},
+{"cls":"fa fa-gg","text":"gg"},
+{"cls":"fa fa-gg-circle","text":"gg-circle"},
+{"cls":"fa fa-hand-grab-o","text":"hand-grab-o (alias)"},
+{"cls":"fa fa-hand-lizard-o","text":"hand-lizard-o"},
+{"cls":"fa fa-hand-paper-o","text":"hand-paper-o"},
+{"cls":"fa fa-hand-peace-o","text":"hand-peace-o"},
+{"cls":"fa fa-hand-pointer-o","text":"hand-pointer-o"},
+{"cls":"fa fa-hand-rock-o","text":"hand-rock-o"},
+{"cls":"fa fa-hand-scissors-o","text":"hand-scissors-o"},
+{"cls":"fa fa-hand-spock-o","text":"hand-spock-o"},
+{"cls":"fa fa-hand-stop-o","text":"hand-stop-o (alias)"},
+{"cls":"fa fa-hourglass","text":"hourglass"},
+{"cls":"fa fa-hourglass-1","text":"hourglass-1 (alias)"},
+{"cls":"fa fa-hourglass-2","text":"hourglass-2 (alias)"},
+{"cls":"fa fa-hourglass-3","text":"hourglass-3 (alias)"},
+{"cls":"fa fa-hourglass-end","text":"hourglass-end"},
+{"cls":"fa fa-hourglass-half","text":"hourglass-half"},
+{"cls":"fa fa-hourglass-o","text":"hourglass-o"},
+{"cls":"fa fa-hourglass-start","text":"hourglass-start"},
+{"cls":"fa fa-houzz","text":"houzz"},
+{"cls":"fa fa-i-cursor","text":"i-cursor"},
+{"cls":"fa fa-industry","text":"industry"},
+{"cls":"fa fa-internet-explorer","text":"internet-explorer"},
+{"cls":"fa fa-map","text":"map"},
+{"cls":"fa fa-map-o","text":"map-o"},
+{"cls":"fa fa-map-pin","text":"map-pin"},
+{"cls":"fa fa-map-signs","text":"map-signs"},
+{"cls":"fa fa-mouse-pointer","text":"mouse-pointer"},
+{"cls":"fa fa-object-group","text":"object-group"},
+{"cls":"fa fa-object-ungroup","text":"object-ungroup"},
+{"cls":"fa fa-odnoklassniki","text":"odnoklassniki"},
+{"cls":"fa fa-odnoklassniki-square","text":"odnoklassniki-square"},
+{"cls":"fa fa-opencart","text":"opencart"},
+{"cls":"fa fa-opera","text":"opera"},
+{"cls":"fa fa-optin-monster","text":"optin-monster"},
+{"cls":"fa fa-registered","text":"registered"},
+{"cls":"fa fa-safari","text":"safari"},
+{"cls":"fa fa-sticky-note","text":"sticky-note"},
+{"cls":"fa fa-sticky-note-o","text":"sticky-note-o"},
+{"cls":"fa fa-television","text":"television"},
+{"cls":"fa fa-trademark","text":"trademark"},
+{"cls":"fa fa-tripadvisor","text":"tripadvisor"},
+{"cls":"fa fa-tv","text":"tv (alias)"},
+{"cls":"fa fa-vimeo","text":"vimeo"},
+{"cls":"fa fa-wikipedia-w","text":"wikipedia-w"},
+{"cls":"fa fa-y-combinator","text":"y-combinator"},
+{"cls":"fa fa-yc","text":"yc (alias)"},
+{"cls":"fa fa-adjust","text":"adjust"},
+{"cls":"fa fa-anchor","text":"anchor"},
+{"cls":"fa fa-archive","text":"archive"},
+{"cls":"fa fa-area-chart","text":"area-chart"},
+{"cls":"fa fa-arrows","text":"arrows"},
+{"cls":"fa fa-arrows-h","text":"arrows-h"},
+{"cls":"fa fa-arrows-v","text":"arrows-v"},
+{"cls":"fa fa-asterisk","text":"asterisk"},
+{"cls":"fa fa-at","text":"at"},
+{"cls":"fa fa-automobile","text":"automobile (alias)"},
+{"cls":"fa fa-balance-scale","text":"balance-scale"},
+{"cls":"fa fa-ban","text":"ban"},
+{"cls":"fa fa-bank","text":"bank (alias)"},
+{"cls":"fa fa-bar-chart","text":"bar-chart"},
+{"cls":"fa fa-bar-chart-o","text":"bar-chart-o (alias)"},
+{"cls":"fa fa-barcode","text":"barcode"},
+{"cls":"fa fa-bars","text":"bars"},
+{"cls":"fa fa-battery-0","text":"battery-0 (alias)"},
+{"cls":"fa fa-battery-1","text":"battery-1 (alias)"},
+{"cls":"fa fa-battery-2","text":"battery-2 (alias)"},
+{"cls":"fa fa-battery-3","text":"battery-3 (alias)"},
+{"cls":"fa fa-battery-4","text":"battery-4 (alias)"},
+{"cls":"fa fa-battery-empty","text":"battery-empty"},
+{"cls":"fa fa-battery-full","text":"battery-full"},
+{"cls":"fa fa-battery-half","text":"battery-half"},
+{"cls":"fa fa-battery-quarter","text":"battery-quarter"},
+{"cls":"fa fa-battery-three-quarters","text":"battery-three-quarters"},
+{"cls":"fa fa-bed","text":"bed"},
+{"cls":"fa fa-beer","text":"beer"},
+{"cls":"fa fa-bell","text":"bell"},
+{"cls":"fa fa-bell-o","text":"bell-o"},
+{"cls":"fa fa-bell-slash","text":"bell-slash"},
+{"cls":"fa fa-bell-slash-o","text":"bell-slash-o"},
+{"cls":"fa fa-bicycle","text":"bicycle"},
+{"cls":"fa fa-binoculars","text":"binoculars"},
+{"cls":"fa fa-birthday-cake","text":"birthday-cake"},
+{"cls":"fa fa-bolt","text":"bolt"},
+{"cls":"fa fa-bomb","text":"bomb"},
+{"cls":"fa fa-book","text":"book"},
+{"cls":"fa fa-bookmark","text":"bookmark"},
+{"cls":"fa fa-bookmark-o","text":"bookmark-o"},
+{"cls":"fa fa-briefcase","text":"briefcase"},
+{"cls":"fa fa-bug","text":"bug"},
+{"cls":"fa fa-building","text":"building"},
+{"cls":"fa fa-building-o","text":"building-o"},
+{"cls":"fa fa-bullhorn","text":"bullhorn"},
+{"cls":"fa fa-bullseye","text":"bullseye"},
+{"cls":"fa fa-bus","text":"bus"},
+{"cls":"fa fa-cab","text":"cab (alias)"},
+{"cls":"fa fa-calculator","text":"calculator"},
+{"cls":"fa fa-calendar","text":"calendar"},
+{"cls":"fa fa-calendar-check-o","text":"calendar-check-o"},
+{"cls":"fa fa-calendar-minus-o","text":"calendar-minus-o"},
+{"cls":"fa fa-calendar-o","text":"calendar-o"},
+{"cls":"fa fa-calendar-plus-o","text":"calendar-plus-o"},
+{"cls":"fa fa-calendar-times-o","text":"calendar-times-o"},
+{"cls":"fa fa-camera","text":"camera"},
+{"cls":"fa fa-camera-retro","text":"camera-retro"},
+{"cls":"fa fa-car","text":"car"},
+{"cls":"fa fa-caret-square-o-down","text":"caret-square-o-down"},
+{"cls":"fa fa-caret-square-o-left","text":"caret-square-o-left"},
+{"cls":"fa fa-caret-square-o-right","text":"caret-square-o-right"},
+{"cls":"fa fa-caret-square-o-up","text":"caret-square-o-up"},
+{"cls":"fa fa-cart-arrow-down","text":"cart-arrow-down"},
+{"cls":"fa fa-cart-plus","text":"cart-plus"},
+{"cls":"fa fa-cc","text":"cc"},
+{"cls":"fa fa-certificate","text":"certificate"},
+{"cls":"fa fa-check","text":"check"},
+{"cls":"fa fa-check-circle","text":"check-circle"},
+{"cls":"fa fa-check-circle-o","text":"check-circle-o"},
+{"cls":"fa fa-check-square","text":"check-square"},
+{"cls":"fa fa-check-square-o","text":"check-square-o"},
+{"cls":"fa fa-child","text":"child"},
+{"cls":"fa fa-circle","text":"circle"},
+{"cls":"fa fa-circle-o","text":"circle-o"},
+{"cls":"fa fa-circle-o-notch","text":"circle-o-notch"},
+{"cls":"fa fa-circle-thin","text":"circle-thin"},
+{"cls":"fa fa-clock-o","text":"clock-o"},
+{"cls":"fa fa-clone","text":"clone"},
+{"cls":"fa fa-close","text":"close (alias)"},
+{"cls":"fa fa-cloud","text":"cloud"},
+{"cls":"fa fa-cloud-download","text":"cloud-download"},
+{"cls":"fa fa-cloud-upload","text":"cloud-upload"},
+{"cls":"fa fa-code","text":"code"},
+{"cls":"fa fa-code-fork","text":"code-fork"},
+{"cls":"fa fa-coffee","text":"coffee"},
+{"cls":"fa fa-cog","text":"cog"},
+{"cls":"fa fa-cogs","text":"cogs"},
+{"cls":"fa fa-comment","text":"comment"},
+{"cls":"fa fa-comment-o","text":"comment-o"},
+{"cls":"fa fa-commenting","text":"commenting"},
+{"cls":"fa fa-commenting-o","text":"commenting-o"},
+{"cls":"fa fa-comments","text":"comments"},
+{"cls":"fa fa-comments-o","text":"comments-o"},
+{"cls":"fa fa-compass","text":"compass"},
+{"cls":"fa fa-copyright","text":"copyright"},
+{"cls":"fa fa-creative-commons","text":"creative-commons"},
+{"cls":"fa fa-credit-card","text":"credit-card"},
+{"cls":"fa fa-crop","text":"crop"},
+{"cls":"fa fa-crosshairs","text":"crosshairs"},
+{"cls":"fa fa-cube","text":"cube"},
+{"cls":"fa fa-cubes","text":"cubes"},
+{"cls":"fa fa-cutlery","text":"cutlery"},
+{"cls":"fa fa-dashboard","text":"dashboard (alias)"},
+{"cls":"fa fa-database","text":"database"},
+{"cls":"fa fa-desktop","text":"desktop"},
+{"cls":"fa fa-diamond","text":"diamond"},
+{"cls":"fa fa-dot-circle-o","text":"dot-circle-o"},
+{"cls":"fa fa-download","text":"download"},
+{"cls":"fa fa-edit","text":"edit (alias)"},
+{"cls":"fa fa-ellipsis-h","text":"ellipsis-h"},
+{"cls":"fa fa-ellipsis-v","text":"ellipsis-v"},
+{"cls":"fa fa-envelope","text":"envelope"},
+{"cls":"fa fa-envelope-o","text":"envelope-o"},
+{"cls":"fa fa-envelope-square","text":"envelope-square"},
+{"cls":"fa fa-eraser","text":"eraser"},
+{"cls":"fa fa-exchange","text":"exchange"},
+{"cls":"fa fa-exclamation","text":"exclamation"},
+{"cls":"fa fa-exclamation-circle","text":"exclamation-circle"},
+{"cls":"fa fa-exclamation-triangle","text":"exclamation-triangle"},
+{"cls":"fa fa-external-link","text":"external-link"},
+{"cls":"fa fa-external-link-square","text":"external-link-square"},
+{"cls":"fa fa-eye","text":"eye"},
+{"cls":"fa fa-eye-slash","text":"eye-slash"},
+{"cls":"fa fa-eyedropper","text":"eyedropper"},
+{"cls":"fa fa-fax","text":"fax"},
+{"cls":"fa fa-feed","text":"feed (alias)"},
+{"cls":"fa fa-female","text":"female"},
+{"cls":"fa fa-fighter-jet","text":"fighter-jet"},
+{"cls":"fa fa-file-archive-o","text":"file-archive-o"},
+{"cls":"fa fa-file-audio-o","text":"file-audio-o"},
+{"cls":"fa fa-file-code-o","text":"file-code-o"},
+{"cls":"fa fa-file-excel-o","text":"file-excel-o"},
+{"cls":"fa fa-file-image-o","text":"file-image-o"},
+{"cls":"fa fa-file-movie-o","text":"file-movie-o (alias)"},
+{"cls":"fa fa-file-pdf-o","text":"file-pdf-o"},
+{"cls":"fa fa-file-photo-o","text":"file-photo-o (alias)"},
+{"cls":"fa fa-file-picture-o","text":"file-picture-o (alias)"},
+{"cls":"fa fa-file-powerpoint-o","text":"file-powerpoint-o"},
+{"cls":"fa fa-file-sound-o","text":"file-sound-o (alias)"},
+{"cls":"fa fa-file-video-o","text":"file-video-o"},
+{"cls":"fa fa-file-word-o","text":"file-word-o"},
+{"cls":"fa fa-file-zip-o","text":"file-zip-o (alias)"},
+{"cls":"fa fa-film","text":"film"},
+{"cls":"fa fa-filter","text":"filter"},
+{"cls":"fa fa-fire","text":"fire"},
+{"cls":"fa fa-fire-extinguisher","text":"fire-extinguisher"},
+{"cls":"fa fa-flag","text":"flag"},
+{"cls":"fa fa-flag-checkered","text":"flag-checkered"},
+{"cls":"fa fa-flag-o","text":"flag-o"},
+{"cls":"fa fa-flash","text":"flash (alias)"},
+{"cls":"fa fa-flask","text":"flask"},
+{"cls":"fa fa-folder","text":"folder"},
+{"cls":"fa fa-folder-o","text":"folder-o"},
+{"cls":"fa fa-folder-open","text":"folder-open"},
+{"cls":"fa fa-folder-open-o","text":"folder-open-o"},
+{"cls":"fa fa-frown-o","text":"frown-o"},
+{"cls":"fa fa-futbol-o","text":"futbol-o"},
+{"cls":"fa fa-gamepad","text":"gamepad"},
+{"cls":"fa fa-gavel","text":"gavel"},
+{"cls":"fa fa-gear","text":"gear (alias)"},
+{"cls":"fa fa-gears","text":"gears (alias)"},
+{"cls":"fa fa-gift","text":"gift"},
+{"cls":"fa fa-glass","text":"glass"},
+{"cls":"fa fa-globe","text":"globe"},
+{"cls":"fa fa-graduation-cap","text":"graduation-cap"},
+{"cls":"fa fa-group","text":"group (alias)"},
+{"cls":"fa fa-hand-grab-o","text":"hand-grab-o (alias)"},
+{"cls":"fa fa-hand-lizard-o","text":"hand-lizard-o"},
+{"cls":"fa fa-hand-paper-o","text":"hand-paper-o"},
+{"cls":"fa fa-hand-peace-o","text":"hand-peace-o"},
+{"cls":"fa fa-hand-pointer-o","text":"hand-pointer-o"},
+{"cls":"fa fa-hand-rock-o","text":"hand-rock-o"},
+{"cls":"fa fa-hand-scissors-o","text":"hand-scissors-o"},
+{"cls":"fa fa-hand-spock-o","text":"hand-spock-o"},
+{"cls":"fa fa-hand-stop-o","text":"hand-stop-o (alias)"},
+{"cls":"fa fa-hdd-o","text":"hdd-o"},
+{"cls":"fa fa-headphones","text":"headphones"},
+{"cls":"fa fa-heart","text":"heart"},
+{"cls":"fa fa-heart-o","text":"heart-o"},
+{"cls":"fa fa-heartbeat","text":"heartbeat"},
+{"cls":"fa fa-history","text":"history"},
+{"cls":"fa fa-home","text":"home"},
+{"cls":"fa fa-hotel","text":"hotel (alias)"},
+{"cls":"fa fa-hourglass","text":"hourglass"},
+{"cls":"fa fa-hourglass-1","text":"hourglass-1 (alias)"},
+{"cls":"fa fa-hourglass-2","text":"hourglass-2 (alias)"},
+{"cls":"fa fa-hourglass-3","text":"hourglass-3 (alias)"},
+{"cls":"fa fa-hourglass-end","text":"hourglass-end"},
+{"cls":"fa fa-hourglass-half","text":"hourglass-half"},
+{"cls":"fa fa-hourglass-o","text":"hourglass-o"},
+{"cls":"fa fa-hourglass-start","text":"hourglass-start"},
+{"cls":"fa fa-i-cursor","text":"i-cursor"},
+{"cls":"fa fa-image","text":"image (alias)"},
+{"cls":"fa fa-inbox","text":"inbox"},
+{"cls":"fa fa-industry","text":"industry"},
+{"cls":"fa fa-info","text":"info"},
+{"cls":"fa fa-info-circle","text":"info-circle"},
+{"cls":"fa fa-institution","text":"institution (alias)"},
+{"cls":"fa fa-key","text":"key"},
+{"cls":"fa fa-keyboard-o","text":"keyboard-o"},
+{"cls":"fa fa-language","text":"language"},
+{"cls":"fa fa-laptop","text":"laptop"},
+{"cls":"fa fa-leaf","text":"leaf"},
+{"cls":"fa fa-legal","text":"legal (alias)"},
+{"cls":"fa fa-lemon-o","text":"lemon-o"},
+{"cls":"fa fa-level-down","text":"level-down"},
+{"cls":"fa fa-level-up","text":"level-up"},
+{"cls":"fa fa-life-bouy","text":"life-bouy (alias)"},
+{"cls":"fa fa-life-buoy","text":"life-buoy (alias)"},
+{"cls":"fa fa-life-ring","text":"life-ring"},
+{"cls":"fa fa-life-saver","text":"life-saver (alias)"},
+{"cls":"fa fa-lightbulb-o","text":"lightbulb-o"},
+{"cls":"fa fa-line-chart","text":"line-chart"},
+{"cls":"fa fa-location-arrow","text":"location-arrow"},
+{"cls":"fa fa-lock","text":"lock"},
+{"cls":"fa fa-magic","text":"magic"},
+{"cls":"fa fa-magnet","text":"magnet"},
+{"cls":"fa fa-mail-forward","text":"mail-forward (alias)"},
+{"cls":"fa fa-mail-reply","text":"mail-reply (alias)"},
+{"cls":"fa fa-mail-reply-all","text":"mail-reply-all (alias)"},
+{"cls":"fa fa-male","text":"male"},
+{"cls":"fa fa-map","text":"map"},
+{"cls":"fa fa-map-marker","text":"map-marker"},
+{"cls":"fa fa-map-o","text":"map-o"},
+{"cls":"fa fa-map-pin","text":"map-pin"},
+{"cls":"fa fa-map-signs","text":"map-signs"},
+{"cls":"fa fa-meh-o","text":"meh-o"},
+{"cls":"fa fa-microphone","text":"microphone"},
+{"cls":"fa fa-microphone-slash","text":"microphone-slash"},
+{"cls":"fa fa-minus","text":"minus"},
+{"cls":"fa fa-minus-circle","text":"minus-circle"},
+{"cls":"fa fa-minus-square","text":"minus-square"},
+{"cls":"fa fa-minus-square-o","text":"minus-square-o"},
+{"cls":"fa fa-mobile","text":"mobile"},
+{"cls":"fa fa-mobile-phone","text":"mobile-phone (alias)"},
+{"cls":"fa fa-money","text":"money"},
+{"cls":"fa fa-moon-o","text":"moon-o"},
+{"cls":"fa fa-mortar-board","text":"mortar-board (alias)"},
+{"cls":"fa fa-motorcycle","text":"motorcycle"},
+{"cls":"fa fa-mouse-pointer","text":"mouse-pointer"},
+{"cls":"fa fa-music","text":"music"},
+{"cls":"fa fa-navicon","text":"navicon (alias)"},
+{"cls":"fa fa-newspaper-o","text":"newspaper-o"},
+{"cls":"fa fa-object-group","text":"object-group"},
+{"cls":"fa fa-object-ungroup","text":"object-ungroup"},
+{"cls":"fa fa-paint-brush","text":"paint-brush"},
+{"cls":"fa fa-paper-plane","text":"paper-plane"},
+{"cls":"fa fa-paper-plane-o","text":"paper-plane-o"},
+{"cls":"fa fa-paw","text":"paw"},
+{"cls":"fa fa-pencil","text":"pencil"},
+{"cls":"fa fa-pencil-square","text":"pencil-square"},
+{"cls":"fa fa-pencil-square-o","text":"pencil-square-o"},
+{"cls":"fa fa-phone","text":"phone"},
+{"cls":"fa fa-phone-square","text":"phone-square"},
+{"cls":"fa fa-photo","text":"photo (alias)"},
+{"cls":"fa fa-picture-o","text":"picture-o"},
+{"cls":"fa fa-pie-chart","text":"pie-chart"},
+{"cls":"fa fa-plane","text":"plane"},
+{"cls":"fa fa-plug","text":"plug"},
+{"cls":"fa fa-plus","text":"plus"},
+{"cls":"fa fa-plus-circle","text":"plus-circle"},
+{"cls":"fa fa-plus-square","text":"plus-square"},
+{"cls":"fa fa-plus-square-o","text":"plus-square-o"},
+{"cls":"fa fa-power-off","text":"power-off"},
+{"cls":"fa fa-print","text":"print"},
+{"cls":"fa fa-puzzle-piece","text":"puzzle-piece"},
+{"cls":"fa fa-qrcode","text":"qrcode"},
+{"cls":"fa fa-question","text":"question"},
+{"cls":"fa fa-question-circle","text":"question-circle"},
+{"cls":"fa fa-quote-left","text":"quote-left"},
+{"cls":"fa fa-quote-right","text":"quote-right"},
+{"cls":"fa fa-random","text":"random"},
+{"cls":"fa fa-recycle","text":"recycle"},
+{"cls":"fa fa-refresh","text":"refresh"},
+{"cls":"fa fa-registered","text":"registered"},
+{"cls":"fa fa-remove","text":"remove (alias)"},
+{"cls":"fa fa-reorder","text":"reorder (alias)"},
+{"cls":"fa fa-reply","text":"reply"},
+{"cls":"fa fa-reply-all","text":"reply-all"},
+{"cls":"fa fa-retweet","text":"retweet"},
+{"cls":"fa fa-road","text":"road"},
+{"cls":"fa fa-rocket","text":"rocket"},
+{"cls":"fa fa-rss","text":"rss"},
+{"cls":"fa fa-rss-square","text":"rss-square"},
+{"cls":"fa fa-search","text":"search"},
+{"cls":"fa fa-search-minus","text":"search-minus"},
+{"cls":"fa fa-search-plus","text":"search-plus"},
+{"cls":"fa fa-send","text":"send (alias)"},
+{"cls":"fa fa-send-o","text":"send-o (alias)"},
+{"cls":"fa fa-server","text":"server"},
+{"cls":"fa fa-share","text":"share"},
+{"cls":"fa fa-share-alt","text":"share-alt"},
+{"cls":"fa fa-share-alt-square","text":"share-alt-square"},
+{"cls":"fa fa-share-square","text":"share-square"},
+{"cls":"fa fa-share-square-o","text":"share-square-o"},
+{"cls":"fa fa-shield","text":"shield"},
+{"cls":"fa fa-ship","text":"ship"},
+{"cls":"fa fa-shopping-cart","text":"shopping-cart"},
+{"cls":"fa fa-sign-in","text":"sign-in"},
+{"cls":"fa fa-sign-out","text":"sign-out"},
+{"cls":"fa fa-signal","text":"signal"},
+{"cls":"fa fa-sitemap","text":"sitemap"},
+{"cls":"fa fa-sliders","text":"sliders"},
+{"cls":"fa fa-smile-o","text":"smile-o"},
+{"cls":"fa fa-soccer-ball-o","text":"soccer-ball-o (alias)"},
+{"cls":"fa fa-sort","text":"sort"},
+{"cls":"fa fa-sort-alpha-asc","text":"sort-alpha-asc"},
+{"cls":"fa fa-sort-alpha-desc","text":"sort-alpha-desc"},
+{"cls":"fa fa-sort-amount-asc","text":"sort-amount-asc"},
+{"cls":"fa fa-sort-amount-desc","text":"sort-amount-desc"},
+{"cls":"fa fa-sort-asc","text":"sort-asc"},
+{"cls":"fa fa-sort-desc","text":"sort-desc"},
+{"cls":"fa fa-sort-down","text":"sort-down (alias)"},
+{"cls":"fa fa-sort-numeric-asc","text":"sort-numeric-asc"},
+{"cls":"fa fa-sort-numeric-desc","text":"sort-numeric-desc"},
+{"cls":"fa fa-sort-up","text":"sort-up (alias)"},
+{"cls":"fa fa-space-shuttle","text":"space-shuttle"},
+{"cls":"fa fa-spinner","text":"spinner"},
+{"cls":"fa fa-spoon","text":"spoon"},
+{"cls":"fa fa-square","text":"square"},
+{"cls":"fa fa-square-o","text":"square-o"},
+{"cls":"fa fa-star","text":"star"},
+{"cls":"fa fa-star-half","text":"star-half"},
+{"cls":"fa fa-star-half-empty","text":"star-half-empty (alias)"},
+{"cls":"fa fa-star-half-full","text":"star-half-full (alias)"},
+{"cls":"fa fa-star-half-o","text":"star-half-o"},
+{"cls":"fa fa-star-o","text":"star-o"},
+{"cls":"fa fa-sticky-note","text":"sticky-note"},
+{"cls":"fa fa-sticky-note-o","text":"sticky-note-o"},
+{"cls":"fa fa-street-view","text":"street-view"},
+{"cls":"fa fa-suitcase","text":"suitcase"},
+{"cls":"fa fa-sun-o","text":"sun-o"},
+{"cls":"fa fa-support","text":"support (alias)"},
+{"cls":"fa fa-tablet","text":"tablet"},
+{"cls":"fa fa-tachometer","text":"tachometer"},
+{"cls":"fa fa-tag","text":"tag"},
+{"cls":"fa fa-tags","text":"tags"},
+{"cls":"fa fa-tasks","text":"tasks"},
+{"cls":"fa fa-taxi","text":"taxi"},
+{"cls":"fa fa-television","text":"television"},
+{"cls":"fa fa-terminal","text":"terminal"},
+{"cls":"fa fa-thumb-tack","text":"thumb-tack"},
+{"cls":"fa fa-thumbs-down","text":"thumbs-down"},
+{"cls":"fa fa-thumbs-o-down","text":"thumbs-o-down"},
+{"cls":"fa fa-thumbs-o-up","text":"thumbs-o-up"},
+{"cls":"fa fa-thumbs-up","text":"thumbs-up"},
+{"cls":"fa fa-ticket","text":"ticket"},
+{"cls":"fa fa-times","text":"times"},
+{"cls":"fa fa-times-circle","text":"times-circle"},
+{"cls":"fa fa-times-circle-o","text":"times-circle-o"},
+{"cls":"fa fa-tint","text":"tint"},
+{"cls":"fa fa-toggle-down","text":"toggle-down (alias)"},
+{"cls":"fa fa-toggle-left","text":"toggle-left (alias)"},
+{"cls":"fa fa-toggle-off","text":"toggle-off"},
+{"cls":"fa fa-toggle-on","text":"toggle-on"},
+{"cls":"fa fa-toggle-right","text":"toggle-right (alias)"},
+{"cls":"fa fa-toggle-up","text":"toggle-up (alias)"},
+{"cls":"fa fa-trademark","text":"trademark"},
+{"cls":"fa fa-trash","text":"trash"},
+{"cls":"fa fa-trash-o","text":"trash-o"},
+{"cls":"fa fa-tree","text":"tree"},
+{"cls":"fa fa-trophy","text":"trophy"},
+{"cls":"fa fa-truck","text":"truck"},
+{"cls":"fa fa-tty","text":"tty"},
+{"cls":"fa fa-tv","text":"tv (alias)"},
+{"cls":"fa fa-umbrella","text":"umbrella"},
+{"cls":"fa fa-university","text":"university"},
+{"cls":"fa fa-unlock","text":"unlock"},
+{"cls":"fa fa-unlock-alt","text":"unlock-alt"},
+{"cls":"fa fa-unsorted","text":"unsorted (alias)"},
+{"cls":"fa fa-upload","text":"upload"},
+{"cls":"fa fa-user","text":"user"},
+{"cls":"fa fa-user-plus","text":"user-plus"},
+{"cls":"fa fa-user-secret","text":"user-secret"},
+{"cls":"fa fa-user-times","text":"user-times"},
+{"cls":"fa fa-users","text":"users"},
+{"cls":"fa fa-video-camera","text":"video-camera"},
+{"cls":"fa fa-volume-down","text":"volume-down"},
+{"cls":"fa fa-volume-off","text":"volume-off"},
+{"cls":"fa fa-volume-up","text":"volume-up"},
+{"cls":"fa fa-warning","text":"warning (alias)"},
+{"cls":"fa fa-wheelchair","text":"wheelchair"},
+{"cls":"fa fa-wifi","text":"wifi"},
+{"cls":"fa fa-wrench","text":"wrench"},
+{"cls":"fa fa-hand-grab-o","text":"hand-grab-o (alias)"},
+{"cls":"fa fa-hand-lizard-o","text":"hand-lizard-o"},
+{"cls":"fa fa-hand-o-down","text":"hand-o-down"},
+{"cls":"fa fa-hand-o-left","text":"hand-o-left"},
+{"cls":"fa fa-hand-o-right","text":"hand-o-right"},
+{"cls":"fa fa-hand-o-up","text":"hand-o-up"},
+{"cls":"fa fa-hand-paper-o","text":"hand-paper-o"},
+{"cls":"fa fa-hand-peace-o","text":"hand-peace-o"},
+{"cls":"fa fa-hand-pointer-o","text":"hand-pointer-o"},
+{"cls":"fa fa-hand-rock-o","text":"hand-rock-o"},
+{"cls":"fa fa-hand-scissors-o","text":"hand-scissors-o"},
+{"cls":"fa fa-hand-spock-o","text":"hand-spock-o"},
+{"cls":"fa fa-hand-stop-o","text":"hand-stop-o (alias)"},
+{"cls":"fa fa-thumbs-down","text":"thumbs-down"},
+{"cls":"fa fa-thumbs-o-down","text":"thumbs-o-down"},
+{"cls":"fa fa-thumbs-o-up","text":"thumbs-o-up"},
+{"cls":"fa fa-thumbs-up","text":"thumbs-up"},
+{"cls":"fa fa-ambulance","text":"ambulance"},
+{"cls":"fa fa-automobile","text":"automobile (alias)"},
+{"cls":"fa fa-bicycle","text":"bicycle"},
+{"cls":"fa fa-bus","text":"bus"},
+{"cls":"fa fa-cab","text":"cab (alias)"},
+{"cls":"fa fa-car","text":"car"},
+{"cls":"fa fa-fighter-jet","text":"fighter-jet"},
+{"cls":"fa fa-motorcycle","text":"motorcycle"},
+{"cls":"fa fa-plane","text":"plane"},
+{"cls":"fa fa-rocket","text":"rocket"},
+{"cls":"fa fa-ship","text":"ship"},
+{"cls":"fa fa-space-shuttle","text":"space-shuttle"},
+{"cls":"fa fa-subway","text":"subway"},
+{"cls":"fa fa-taxi","text":"taxi"},
+{"cls":"fa fa-train","text":"train"},
+{"cls":"fa fa-truck","text":"truck"},
+{"cls":"fa fa-wheelchair","text":"wheelchair"},
+{"cls":"fa fa-genderless","text":"genderless"},
+{"cls":"fa fa-intersex","text":"intersex (alias)"},
+{"cls":"fa fa-mars","text":"mars"},
+{"cls":"fa fa-mars-double","text":"mars-double"},
+{"cls":"fa fa-mars-stroke","text":"mars-stroke"},
+{"cls":"fa fa-mars-stroke-h","text":"mars-stroke-h"},
+{"cls":"fa fa-mars-stroke-v","text":"mars-stroke-v"},
+{"cls":"fa fa-mercury","text":"mercury"},
+{"cls":"fa fa-neuter","text":"neuter"},
+{"cls":"fa fa-transgender","text":"transgender"},
+{"cls":"fa fa-transgender-alt","text":"transgender-alt"},
+{"cls":"fa fa-venus","text":"venus"},
+{"cls":"fa fa-venus-double","text":"venus-double"},
+{"cls":"fa fa-venus-mars","text":"venus-mars"},
+{"cls":"fa fa-file","text":"file"},
+{"cls":"fa fa-file-archive-o","text":"file-archive-o"},
+{"cls":"fa fa-file-audio-o","text":"file-audio-o"},
+{"cls":"fa fa-file-code-o","text":"file-code-o"},
+{"cls":"fa fa-file-excel-o","text":"file-excel-o"},
+{"cls":"fa fa-file-image-o","text":"file-image-o"},
+{"cls":"fa fa-file-movie-o","text":"file-movie-o (alias)"},
+{"cls":"fa fa-file-o","text":"file-o"},
+{"cls":"fa fa-file-pdf-o","text":"file-pdf-o"},
+{"cls":"fa fa-file-photo-o","text":"file-photo-o (alias)"},
+{"cls":"fa fa-file-picture-o","text":"file-picture-o (alias)"},
+{"cls":"fa fa-file-powerpoint-o","text":"file-powerpoint-o"},
+{"cls":"fa fa-file-sound-o","text":"file-sound-o (alias)"},
+{"cls":"fa fa-file-text","text":"file-text"},
+{"cls":"fa fa-file-text-o","text":"file-text-o"},
+{"cls":"fa fa-file-video-o","text":"file-video-o"},
+{"cls":"fa fa-file-word-o","text":"file-word-o"},
+{"cls":"fa fa-file-zip-o","text":"file-zip-o (alias)"},
+{"cls":"fa fa-circle-o-notch","text":"circle-o-notch"},
+{"cls":"fa fa-cog","text":"cog"},
+{"cls":"fa fa-gear","text":"gear (alias)"},
+{"cls":"fa fa-refresh","text":"refresh"},
+{"cls":"fa fa-spinner","text":"spinner"},
+{"cls":"fa fa-check-square","text":"check-square"},
+{"cls":"fa fa-check-square-o","text":"check-square-o"},
+{"cls":"fa fa-circle","text":"circle"},
+{"cls":"fa fa-circle-o","text":"circle-o"},
+{"cls":"fa fa-dot-circle-o","text":"dot-circle-o"},
+{"cls":"fa fa-minus-square","text":"minus-square"},
+{"cls":"fa fa-minus-square-o","text":"minus-square-o"},
+{"cls":"fa fa-plus-square","text":"plus-square"},
+{"cls":"fa fa-plus-square-o","text":"plus-square-o"},
+{"cls":"fa fa-square","text":"square"},
+{"cls":"fa fa-square-o","text":"square-o"},
+{"cls":"fa fa-cc-amex","text":"cc-amex"},
+{"cls":"fa fa-cc-diners-club","text":"cc-diners-club"},
+{"cls":"fa fa-cc-discover","text":"cc-discover"},
+{"cls":"fa fa-cc-jcb","text":"cc-jcb"},
+{"cls":"fa fa-cc-mastercard","text":"cc-mastercard"},
+{"cls":"fa fa-cc-paypal","text":"cc-paypal"},
+{"cls":"fa fa-cc-stripe","text":"cc-stripe"},
+{"cls":"fa fa-cc-visa","text":"cc-visa"},
+{"cls":"fa fa-credit-card","text":"credit-card"},
+{"cls":"fa fa-google-wallet","text":"google-wallet"},
+{"cls":"fa fa-paypal","text":"paypal"},
+{"cls":"fa fa-area-chart","text":"area-chart"},
+{"cls":"fa fa-bar-chart","text":"bar-chart"},
+{"cls":"fa fa-bar-chart-o","text":"bar-chart-o (alias)"},
+{"cls":"fa fa-line-chart","text":"line-chart"},
+{"cls":"fa fa-pie-chart","text":"pie-chart"},
+{"cls":"fa fa-bitcoin","text":"bitcoin (alias)"},
+{"cls":"fa fa-btc","text":"btc"},
+{"cls":"fa fa-cny","text":"cny (alias)"},
+{"cls":"fa fa-dollar","text":"dollar (alias)"},
+{"cls":"fa fa-eur","text":"eur"},
+{"cls":"fa fa-euro","text":"euro (alias)"},
+{"cls":"fa fa-gbp","text":"gbp"},
+{"cls":"fa fa-gg","text":"gg"},
+{"cls":"fa fa-gg-circle","text":"gg-circle"},
+{"cls":"fa fa-ils","text":"ils"},
+{"cls":"fa fa-inr","text":"inr"},
+{"cls":"fa fa-jpy","text":"jpy"},
+{"cls":"fa fa-krw","text":"krw"},
+{"cls":"fa fa-money","text":"money"},
+{"cls":"fa fa-rmb","text":"rmb (alias)"},
+{"cls":"fa fa-rouble","text":"rouble (alias)"},
+{"cls":"fa fa-rub","text":"rub"},
+{"cls":"fa fa-ruble","text":"ruble (alias)"},
+{"cls":"fa fa-rupee","text":"rupee (alias)"},
+{"cls":"fa fa-shekel","text":"shekel (alias)"},
+{"cls":"fa fa-sheqel","text":"sheqel (alias)"},
+{"cls":"fa fa-try","text":"try"},
+{"cls":"fa fa-turkish-lira","text":"turkish-lira (alias)"},
+{"cls":"fa fa-usd","text":"usd"},
+{"cls":"fa fa-won","text":"won (alias)"},
+{"cls":"fa fa-yen","text":"yen (alias)"},
+{"cls":"fa fa-align-center","text":"align-center"},
+{"cls":"fa fa-align-justify","text":"align-justify"},
+{"cls":"fa fa-align-left","text":"align-left"},
+{"cls":"fa fa-align-right","text":"align-right"},
+{"cls":"fa fa-bold","text":"bold"},
+{"cls":"fa fa-chain","text":"chain (alias)"},
+{"cls":"fa fa-chain-broken","text":"chain-broken"},
+{"cls":"fa fa-clipboard","text":"clipboard"},
+{"cls":"fa fa-columns","text":"columns"},
+{"cls":"fa fa-copy","text":"copy (alias)"},
+{"cls":"fa fa-cut","text":"cut (alias)"},
+{"cls":"fa fa-dedent","text":"dedent (alias)"},
+{"cls":"fa fa-eraser","text":"eraser"},
+{"cls":"fa fa-file","text":"file"},
+{"cls":"fa fa-file-o","text":"file-o"},
+{"cls":"fa fa-file-text","text":"file-text"},
+{"cls":"fa fa-file-text-o","text":"file-text-o"},
+{"cls":"fa fa-files-o","text":"files-o"},
+{"cls":"fa fa-floppy-o","text":"floppy-o"},
+{"cls":"fa fa-font","text":"font"},
+{"cls":"fa fa-header","text":"header"},
+{"cls":"fa fa-indent","text":"indent"},
+{"cls":"fa fa-italic","text":"italic"},
+{"cls":"fa fa-link","text":"link"},
+{"cls":"fa fa-list","text":"list"},
+{"cls":"fa fa-list-alt","text":"list-alt"},
+{"cls":"fa fa-list-ol","text":"list-ol"},
+{"cls":"fa fa-list-ul","text":"list-ul"},
+{"cls":"fa fa-outdent","text":"outdent"},
+{"cls":"fa fa-paperclip","text":"paperclip"},
+{"cls":"fa fa-paragraph","text":"paragraph"},
+{"cls":"fa fa-paste","text":"paste (alias)"},
+{"cls":"fa fa-repeat","text":"repeat"},
+{"cls":"fa fa-rotate-left","text":"rotate-left (alias)"},
+{"cls":"fa fa-rotate-right","text":"rotate-right (alias)"},
+{"cls":"fa fa-save","text":"save (alias)"},
+{"cls":"fa fa-scissors","text":"scissors"},
+{"cls":"fa fa-strikethrough","text":"strikethrough"},
+{"cls":"fa fa-subscript","text":"subscript"},
+{"cls":"fa fa-superscript","text":"superscript"},
+{"cls":"fa fa-table","text":"table"},
+{"cls":"fa fa-text-height","text":"text-height"},
+{"cls":"fa fa-text-width","text":"text-width"},
+{"cls":"fa fa-th","text":"th"},
+{"cls":"fa fa-th-large","text":"th-large"},
+{"cls":"fa fa-th-list","text":"th-list"},
+{"cls":"fa fa-underline","text":"underline"},
+{"cls":"fa fa-undo","text":"undo"},
+{"cls":"fa fa-unlink","text":"unlink (alias)"},
+{"cls":"fa fa-angle-double-down","text":"angle-double-down"},
+{"cls":"fa fa-angle-double-left","text":"angle-double-left"},
+{"cls":"fa fa-angle-double-right","text":"angle-double-right"},
+{"cls":"fa fa-angle-double-up","text":"angle-double-up"},
+{"cls":"fa fa-angle-down","text":"angle-down"},
+{"cls":"fa fa-angle-left","text":"angle-left"},
+{"cls":"fa fa-angle-right","text":"angle-right"},
+{"cls":"fa fa-angle-up","text":"angle-up"},
+{"cls":"fa fa-arrow-circle-down","text":"arrow-circle-down"},
+{"cls":"fa fa-arrow-circle-left","text":"arrow-circle-left"},
+{"cls":"fa fa-arrow-circle-o-down","text":"arrow-circle-o-down"},
+{"cls":"fa fa-arrow-circle-o-left","text":"arrow-circle-o-left"},
+{"cls":"fa fa-arrow-circle-o-right","text":"arrow-circle-o-right"},
+{"cls":"fa fa-arrow-circle-o-up","text":"arrow-circle-o-up"},
+{"cls":"fa fa-arrow-circle-right","text":"arrow-circle-right"},
+{"cls":"fa fa-arrow-circle-up","text":"arrow-circle-up"},
+{"cls":"fa fa-arrow-down","text":"arrow-down"},
+{"cls":"fa fa-arrow-left","text":"arrow-left"},
+{"cls":"fa fa-arrow-right","text":"arrow-right"},
+{"cls":"fa fa-arrow-up","text":"arrow-up"},
+{"cls":"fa fa-arrows","text":"arrows"},
+{"cls":"fa fa-arrows-alt","text":"arrows-alt"},
+{"cls":"fa fa-arrows-h","text":"arrows-h"},
+{"cls":"fa fa-arrows-v","text":"arrows-v"},
+{"cls":"fa fa-caret-down","text":"caret-down"},
+{"cls":"fa fa-caret-left","text":"caret-left"},
+{"cls":"fa fa-caret-right","text":"caret-right"},
+{"cls":"fa fa-caret-square-o-down","text":"caret-square-o-down"},
+{"cls":"fa fa-caret-square-o-left","text":"caret-square-o-left"},
+{"cls":"fa fa-caret-square-o-right","text":"caret-square-o-right"},
+{"cls":"fa fa-caret-square-o-up","text":"caret-square-o-up"},
+{"cls":"fa fa-caret-up","text":"caret-up"},
+{"cls":"fa fa-chevron-circle-down","text":"chevron-circle-down"},
+{"cls":"fa fa-chevron-circle-left","text":"chevron-circle-left"},
+{"cls":"fa fa-chevron-circle-right","text":"chevron-circle-right"},
+{"cls":"fa fa-chevron-circle-up","text":"chevron-circle-up"},
+{"cls":"fa fa-chevron-down","text":"chevron-down"},
+{"cls":"fa fa-chevron-left","text":"chevron-left"},
+{"cls":"fa fa-chevron-right","text":"chevron-right"},
+{"cls":"fa fa-chevron-up","text":"chevron-up"},
+{"cls":"fa fa-exchange","text":"exchange"},
+{"cls":"fa fa-hand-o-down","text":"hand-o-down"},
+{"cls":"fa fa-hand-o-left","text":"hand-o-left"},
+{"cls":"fa fa-hand-o-right","text":"hand-o-right"},
+{"cls":"fa fa-hand-o-up","text":"hand-o-up"},
+{"cls":"fa fa-long-arrow-down","text":"long-arrow-down"},
+{"cls":"fa fa-long-arrow-left","text":"long-arrow-left"},
+{"cls":"fa fa-long-arrow-right","text":"long-arrow-right"},
+{"cls":"fa fa-long-arrow-up","text":"long-arrow-up"},
+{"cls":"fa fa-toggle-down","text":"toggle-down (alias)"},
+{"cls":"fa fa-toggle-left","text":"toggle-left (alias)"},
+{"cls":"fa fa-toggle-right","text":"toggle-right (alias)"},
+{"cls":"fa fa-toggle-up","text":"toggle-up (alias)"},
+{"cls":"fa fa-arrows-alt","text":"arrows-alt"},
+{"cls":"fa fa-backward","text":"backward"},
+{"cls":"fa fa-compress","text":"compress"},
+{"cls":"fa fa-eject","text":"eject"},
+{"cls":"fa fa-expand","text":"expand"},
+{"cls":"fa fa-fast-backward","text":"fast-backward"},
+{"cls":"fa fa-fast-forward","text":"fast-forward"},
+{"cls":"fa fa-forward","text":"forward"},
+{"cls":"fa fa-pause","text":"pause"},
+{"cls":"fa fa-play","text":"play"},
+{"cls":"fa fa-play-circle","text":"play-circle"},
+{"cls":"fa fa-play-circle-o","text":"play-circle-o"},
+{"cls":"fa fa-random","text":"random"},
+{"cls":"fa fa-step-backward","text":"step-backward"},
+{"cls":"fa fa-step-forward","text":"step-forward"},
+{"cls":"fa fa-stop","text":"stop"},
+{"cls":"fa fa-youtube-play","text":"youtube-play"},
+{"cls":"fa fa-500px","text":"500px"},
+{"cls":"fa fa-adn","text":"adn"},
+{"cls":"fa fa-amazon","text":"amazon"},
+{"cls":"fa fa-android","text":"android"},
+{"cls":"fa fa-angellist","text":"angellist"},
+{"cls":"fa fa-apple","text":"apple"},
+{"cls":"fa fa-behance","text":"behance"},
+{"cls":"fa fa-behance-square","text":"behance-square"},
+{"cls":"fa fa-bitbucket","text":"bitbucket"},
+{"cls":"fa fa-bitbucket-square","text":"bitbucket-square"},
+{"cls":"fa fa-bitcoin","text":"bitcoin (alias)"},
+{"cls":"fa fa-black-tie","text":"black-tie"},
+{"cls":"fa fa-btc","text":"btc"},
+{"cls":"fa fa-buysellads","text":"buysellads"},
+{"cls":"fa fa-cc-amex","text":"cc-amex"},
+{"cls":"fa fa-cc-diners-club","text":"cc-diners-club"},
+{"cls":"fa fa-cc-discover","text":"cc-discover"},
+{"cls":"fa fa-cc-jcb","text":"cc-jcb"},
+{"cls":"fa fa-cc-mastercard","text":"cc-mastercard"},
+{"cls":"fa fa-cc-paypal","text":"cc-paypal"},
+{"cls":"fa fa-cc-stripe","text":"cc-stripe"},
+{"cls":"fa fa-cc-visa","text":"cc-visa"},
+{"cls":"fa fa-chrome","text":"chrome"},
+{"cls":"fa fa-codepen","text":"codepen"},
+{"cls":"fa fa-connectdevelop","text":"connectdevelop"},
+{"cls":"fa fa-contao","text":"contao"},
+{"cls":"fa fa-css3","text":"css3"},
+{"cls":"fa fa-dashcube","text":"dashcube"},
+{"cls":"fa fa-delicious","text":"delicious"},
+{"cls":"fa fa-deviantart","text":"deviantart"},
+{"cls":"fa fa-digg","text":"digg"},
+{"cls":"fa fa-dribbble","text":"dribbble"},
+{"cls":"fa fa-dropbox","text":"dropbox"},
+{"cls":"fa fa-drupal","text":"drupal"},
+{"cls":"fa fa-empire","text":"empire"},
+{"cls":"fa fa-expeditedssl","text":"expeditedssl"},
+{"cls":"fa fa-facebook","text":"facebook"},
+{"cls":"fa fa-facebook-f","text":"facebook-f (alias)"},
+{"cls":"fa fa-facebook-official","text":"facebook-official"},
+{"cls":"fa fa-facebook-square","text":"facebook-square"},
+{"cls":"fa fa-firefox","text":"firefox"},
+{"cls":"fa fa-flickr","text":"flickr"},
+{"cls":"fa fa-fonticons","text":"fonticons"},
+{"cls":"fa fa-forumbee","text":"forumbee"},
+{"cls":"fa fa-foursquare","text":"foursquare"},
+{"cls":"fa fa-ge","text":"ge (alias)"},
+{"cls":"fa fa-get-pocket","text":"get-pocket"},
+{"cls":"fa fa-gg","text":"gg"},
+{"cls":"fa fa-gg-circle","text":"gg-circle"},
+{"cls":"fa fa-git","text":"git"},
+{"cls":"fa fa-git-square","text":"git-square"},
+{"cls":"fa fa-github","text":"github"},
+{"cls":"fa fa-github-alt","text":"github-alt"},
+{"cls":"fa fa-github-square","text":"github-square"},
+{"cls":"fa fa-gittip","text":"gittip (alias)"},
+{"cls":"fa fa-google","text":"google"},
+{"cls":"fa fa-google-plus","text":"google-plus"},
+{"cls":"fa fa-google-plus-square","text":"google-plus-square"},
+{"cls":"fa fa-google-wallet","text":"google-wallet"},
+{"cls":"fa fa-gratipay","text":"gratipay"},
+{"cls":"fa fa-hacker-news","text":"hacker-news"},
+{"cls":"fa fa-houzz","text":"houzz"},
+{"cls":"fa fa-html5","text":"html5"},
+{"cls":"fa fa-instagram","text":"instagram"},
+{"cls":"fa fa-internet-explorer","text":"internet-explorer"},
+{"cls":"fa fa-ioxhost","text":"ioxhost"},
+{"cls":"fa fa-joomla","text":"joomla"},
+{"cls":"fa fa-jsfiddle","text":"jsfiddle"},
+{"cls":"fa fa-lastfm","text":"lastfm"},
+{"cls":"fa fa-lastfm-square","text":"lastfm-square"},
+{"cls":"fa fa-leanpub","text":"leanpub"},
+{"cls":"fa fa-linkedin","text":"linkedin"},
+{"cls":"fa fa-linkedin-square","text":"linkedin-square"},
+{"cls":"fa fa-linux","text":"linux"},
+{"cls":"fa fa-maxcdn","text":"maxcdn"},
+{"cls":"fa fa-meanpath","text":"meanpath"},
+{"cls":"fa fa-medium","text":"medium"},
+{"cls":"fa fa-odnoklassniki","text":"odnoklassniki"},
+{"cls":"fa fa-odnoklassniki-square","text":"odnoklassniki-square"},
+{"cls":"fa fa-opencart","text":"opencart"},
+{"cls":"fa fa-openid","text":"openid"},
+{"cls":"fa fa-opera","text":"opera"},
+{"cls":"fa fa-optin-monster","text":"optin-monster"},
+{"cls":"fa fa-pagelines","text":"pagelines"},
+{"cls":"fa fa-paypal","text":"paypal"},
+{"cls":"fa fa-pied-piper","text":"pied-piper"},
+{"cls":"fa fa-pied-piper-alt","text":"pied-piper-alt"},
+{"cls":"fa fa-pinterest","text":"pinterest"},
+{"cls":"fa fa-pinterest-p","text":"pinterest-p"},
+{"cls":"fa fa-pinterest-square","text":"pinterest-square"},
+{"cls":"fa fa-qq","text":"qq"},
+{"cls":"fa fa-ra","text":"ra (alias)"},
+{"cls":"fa fa-rebel","text":"rebel"},
+{"cls":"fa fa-reddit","text":"reddit"},
+{"cls":"fa fa-reddit-square","text":"reddit-square"},
+{"cls":"fa fa-renren","text":"renren"},
+{"cls":"fa fa-safari","text":"safari"},
+{"cls":"fa fa-sellsy","text":"sellsy"},
+{"cls":"fa fa-share-alt","text":"share-alt"},
+{"cls":"fa fa-share-alt-square","text":"share-alt-square"},
+{"cls":"fa fa-shirtsinbulk","text":"shirtsinbulk"},
+{"cls":"fa fa-simplybuilt","text":"simplybuilt"},
+{"cls":"fa fa-skyatlas","text":"skyatlas"},
+{"cls":"fa fa-skype","text":"skype"},
+{"cls":"fa fa-slack","text":"slack"},
+{"cls":"fa fa-slideshare","text":"slideshare"},
+{"cls":"fa fa-soundcloud","text":"soundcloud"},
+{"cls":"fa fa-spotify","text":"spotify"},
+{"cls":"fa fa-stack-exchange","text":"stack-exchange"},
+{"cls":"fa fa-stack-overflow","text":"stack-overflow"},
+{"cls":"fa fa-steam","text":"steam"},
+{"cls":"fa fa-steam-square","text":"steam-square"},
+{"cls":"fa fa-stumbleupon","text":"stumbleupon"},
+{"cls":"fa fa-stumbleupon-circle","text":"stumbleupon-circle"},
+{"cls":"fa fa-tencent-weibo","text":"tencent-weibo"},
+{"cls":"fa fa-trello","text":"trello"},
+{"cls":"fa fa-tripadvisor","text":"tripadvisor"},
+{"cls":"fa fa-tumblr","text":"tumblr"},
+{"cls":"fa fa-tumblr-square","text":"tumblr-square"},
+{"cls":"fa fa-twitch","text":"twitch"},
+{"cls":"fa fa-twitter","text":"twitter"},
+{"cls":"fa fa-twitter-square","text":"twitter-square"},
+{"cls":"fa fa-viacoin","text":"viacoin"},
+{"cls":"fa fa-vimeo","text":"vimeo"},
+{"cls":"fa fa-vimeo-square","text":"vimeo-square"},
+{"cls":"fa fa-vine","text":"vine"},
+{"cls":"fa fa-vk","text":"vk"},
+{"cls":"fa fa-wechat","text":"wechat (alias)"},
+{"cls":"fa fa-weibo","text":"weibo"},
+{"cls":"fa fa-weixin","text":"weixin"},
+{"cls":"fa fa-whatsapp","text":"whatsapp"},
+{"cls":"fa fa-wikipedia-w","text":"wikipedia-w"},
+{"cls":"fa fa-windows","text":"windows"},
+{"cls":"fa fa-wordpress","text":"wordpress"},
+{"cls":"fa fa-xing","text":"xing"},
+{"cls":"fa fa-xing-square","text":"xing-square"},
+{"cls":"fa fa-y-combinator","text":"y-combinator"},
+{"cls":"fa fa-y-combinator-square","text":"y-combinator-square (alias)"},
+{"cls":"fa fa-yahoo","text":"yahoo"},
+{"cls":"fa fa-yc","text":"yc (alias)"},
+{"cls":"fa fa-yc-square","text":"yc-square (alias)"},
+{"cls":"fa fa-yelp","text":"yelp"},
+{"cls":"fa fa-youtube","text":"youtube"},
+{"cls":"fa fa-youtube-play","text":"youtube-play"},
+{"cls":"fa fa-youtube-square","text":"youtube-square"},
+{"cls":"fa fa-ambulance","text":"ambulance"},
+{"cls":"fa fa-h-square","text":"h-square"},
+{"cls":"fa fa-heart","text":"heart"},
+{"cls":"fa fa-heart-o","text":"heart-o"},
+{"cls":"fa fa-heartbeat","text":"heartbeat"},
+{"cls":"fa fa-hospital-o","text":"hospital-o"},
+{"cls":"fa fa-medkit","text":"medkit"},
+{"cls":"fa fa-plus-square","text":"plus-square"},
+{"cls":"fa fa-stethoscope","text":"stethoscope"},
+{"cls":"fa fa-user-md","text":"user-md"},
+{"cls":"fa fa-wheelchair","text":"wheelchair"}
+]

BIN
src/assets/image/log2.png


BIN
src/assets/image/xsqq.png


+ 50 - 0
src/common/biConfig.js

@@ -0,0 +1,50 @@
+/**
+ * 配置编译环境和线上环境之间的切换
+ * 
+ * baseUrl: 域名地址
+ * 
+ */
+import $ from 'jquery'
+
+const baseUrl = 'http://localhost:8080/';
+
+export {
+	baseUrl
+}
+/**
+ * 封装Ajax请求
+ * @param {*} cfg 
+ * @param {*} ts 
+ */
+export const ajax = (cfg, ts) => {
+	let o = {
+		type:cfg.type,
+		data:cfg.data,
+		dataType:"JSON",
+		xhrFields: {withCredentials: true},
+		contentType: "application/json; charset=utf-8",
+		crossDomain: true,
+		url:baseUrl+cfg.url,
+		success:function(resp){
+			if(resp.result === 1){
+				cfg.success(resp);
+			}else{
+				ts.$notify.error({
+					title: '系统出错',
+					message:resp.msg,
+					offset: 50
+				});
+			}
+		},
+		error: function(){
+			ts.$notify.error({
+				title: '系统出错',
+				offset: 50
+			});
+		}
+	};
+	if(!cfg.postJSON || cfg.postJSON === false){
+		delete o.contentType;
+	}
+	$.ajax(o);
+}

+ 123 - 0
src/components/FrameTop.vue

@@ -0,0 +1,123 @@
+<template>
+  <div class="frameTop">
+   <nav class="navbar navbar-static-top">
+    <div class="navbar-head" style="width:220px;">
+      <img src="../assets/image/log2.png">
+    </div>
+    <div class="navbar-head myhead">
+      <button class="btn btn-default btn-xs uinfo-btn" type="button" :class="swatchcls" @click="swatch" title="切换菜单" style="margin-top:15px;"><i class="fa fa-bars"></i></button>
+    </div>
+    <ul class="navbar-right-my">
+      <li>
+        <a>
+          <el-dropdown @command="handleCommand" menu-align='start'>
+            <span class="avator" @mouseover="mover" @mouseout="mout">
+              <i class="fa fa-user"></i> demo <span :class="userbtnstyle" class="glyphicon"></span>
+            </span>
+            <el-dropdown-menu slot="dropdown">
+              <el-dropdown-item command="grxx">个人信息</el-dropdown-item>
+              <el-dropdown-item command="xgmm">修改密码</el-dropdown-item>
+              <el-dropdown-item command="wtfk">问题反馈</el-dropdown-item>
+              <el-dropdown-item command="sysc">使用手册</el-dropdown-item>
+              <el-dropdown-item command="signout">退出登录</el-dropdown-item>
+            </el-dropdown-menu>
+          </el-dropdown>
+        </a>
+      </li>
+    </ul>
+	</nav>
+  </div>
+</template>
+
+<script>
+import {baseUrl} from '@/common/biConfig'
+import $ from 'jquery'
+  
+export default {
+  name: 'FrameTOp',
+  data () {
+    return {userbtnstyle:'glyphicon-menu-up',swatchcls:''}
+  },
+  methods:{
+    mover:function(){
+      this.userbtnstyle = "glyphicon-menu-down";
+    },
+    mout:function(){
+      this.userbtnstyle = "glyphicon-menu-up";
+    },
+    swatch:function(){
+      if(this.swatchcls === ''){
+        this.swatchcls = 'swatchBtn';
+        this.$parent.isShowMenu = false;
+        window.setTimeout(()=>$(".page-wrapper").css({"margin": "0", "width":"100%"}), 200);
+      }else{
+        this.swatchcls = '';
+        this.$parent.isShowMenu = true;
+        window.setTimeout(()=>$(".page-wrapper").css({"margin": "0 0 0 220px", "width":"calc(100% - 220px)"}), 200);
+      }
+    },
+    handleCommand:function(cmd){
+        let ts = this;
+        if(cmd === 'signout'){
+          $.ajax({
+            url:baseUrl + "frame/Logout.action",
+            data:{},
+            dataType:'json',
+            xhrFields: {withCredentials: true},
+            crossDomain: true,
+            success:function(){
+                ts.$notify.success({
+                  title: '退出成功',
+                  offset: 50
+                });
+               ts.$router.push('/'); 
+            }
+          });
+        }
+    }
+  }
+}
+</script>
+
+<style scoped lang="less">
+  @import '../style/mixin';
+  .frameTop {
+    height: 50px;
+    background-color: #034d8f;
+  }
+  .navbar-head {
+    float: left;
+  }
+  .navbar-right-my {
+    float:right;
+    a {
+      display: inline-block;
+      height: 50px;
+    }
+    .avator {
+       display:inline-block;
+       padding: 13px;
+       font-size: 16px;
+       color: white;
+       &:hover {
+          background-color: white;
+          color: black;
+       }
+    }
+  }
+  @media (max-width: 512px) {
+    .myhead {
+      display: none;
+    }
+  }
+  .swatchBtn {
+    transform:rotate(90deg);
+    -ms-transform:rotate(90deg); 	/* IE 9 */
+    -moz-transform:rotate(90deg); 	/* Firefox */
+    -webkit-transform:rotate(90deg); /* Safari 和 Chrome */
+    -o-transform:rotate(90deg); 	/* Opera */
+  }
+  li {
+    list-style-type: none;
+  }
+</style>

+ 84 - 0
src/components/OperationDailog.vue

@@ -0,0 +1,84 @@
+<!--
+编辑窗口, 在本页面打开页面
+ -->
+<template>
+  <div v-show="dailogShow">
+    <div class="ibox" style="margin-bottom:0px;">
+        <div class="ibox-title">
+            {{title}}
+        </div>
+        <div class="ibox-content" :style="autoHeight()" style="padding-bottom: 0px;overflow:auto;">
+            <slot></slot>
+        </div>
+        <div class="ibox-footer">
+            <el-button type="primary" @click="saveForm()">确 定</el-button>
+			<el-button @click="closeDailog()">取 消</el-button>
+        </div>
+    </div>
+  </div>
+</template>
+
+<script>
+import {baseUrl} from '@/common/biConfig'
+import $ from 'jquery'
+  
+export default {
+  name: 'operationDailog',
+  props:{
+      title:{
+          type:String,
+          required:true
+      },
+      mainDiv:{
+          type:String,
+          required:true
+      },
+      callback:{
+          type:Function,
+          required:true
+      }
+  },
+  data () {
+    return {
+        dailogShow:false,
+    }
+  },
+  computed:{
+      
+  },
+  methods:{
+      //动态计算div高度
+    autoHeight:function(){
+        let h = $(".page-wrapper").height();
+        if(h){
+            return  "height:"+ (h - 110 )+ "px;";
+        }else{
+            return "height:460px;";
+        }
+    },
+    showDailog:function(){
+        this.dailogShow = true;
+        $("#" + this.mainDiv).hide();
+    },
+    closeDailog:function(){
+        this.dailogShow = false;
+        $("#" + this.mainDiv).fadeIn('slow');
+    },
+    saveForm:function(){
+        if(this.callback()){
+            this.closeDailog();
+        }
+    }
+  }
+}
+</script>
+
+<style scoped lang="less">
+  @import '../style/mixin';
+  .ibox-footer {
+	text-align:center;
+	padding:6px; 
+	background-color: #f6f8f8;
+	border-top: 1px solid #edf1f2;
+}
+</style>

+ 20 - 0
src/main.js

@@ -0,0 +1,20 @@
+// 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 App from './App'
+import router from './router'
+import ElementUI from 'element-ui'
+import 'element-ui/lib/theme-chalk/index.css'
+import 'bootstrap3/dist/css/bootstrap.min.css'
+import 'font-awesome/css/font-awesome.css'
+
+Vue.config.productionTip = false;
+Vue.use(ElementUI);
+
+/* eslint-disable no-new */
+new Vue({
+  el: '#app',
+  router,
+  components: { App },
+  template: '<App/>'
+})

+ 47 - 0
src/router/index.js

@@ -0,0 +1,47 @@
+import Vue from 'vue'
+import Router from 'vue-router'
+import Login from '@/view/Login'
+import Main from '@/view/Main'
+import Welcome from '@/view/Welcome'
+import Menu from '@/view/frame/Menu'
+import Role from '@/view/frame/Role'
+import User from '@/view/frame/User'
+
+Vue.use(Router)
+
+export default new Router({
+  routes: [
+    {
+      path: '/',
+      name: 'login',
+      component: Login
+    },
+    {
+      path: '/main',
+      name: 'main',
+      component: Main,
+      children: [
+        {
+          path: '/Welcome',
+          name: 'welcome',
+          component: Welcome
+        },
+        {
+          path:'/frame/Menu',
+          name:'menu',
+          component:Menu
+        },
+        {
+          path:'/frame/User',
+          name:'user',
+          component:User
+        },
+        {
+          path:'/frame/Role',
+          name:'role',
+          component:Role
+        }
+      ]
+    }
+  ]
+})

+ 110 - 0
src/style/common.less

@@ -0,0 +1,110 @@
+/*定义滚动条高宽及背景 高宽分别对应横竖滚动条的尺寸*/  
+::-webkit-scrollbar  
+{  
+    width: 0px;  
+    height: 0px;  
+    background-color: #F5F5F5;  
+}  
+  
+/*定义滚动条轨道 内阴影+圆角*/  
+::-webkit-scrollbar-track  
+{  
+    -webkit-box-shadow: inset 0 0 1px rgba(0,0,0,0);  
+    border-radius: 10px;  
+    background-color: #F5F5F5;  
+}  
+  
+/*定义滑块 内阴影+圆角*/  
+::-webkit-scrollbar-thumb  
+{  
+    border-radius: 10px;  
+    -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,.3);  
+    background-color: #555;  
+} 
+
+html,body{
+    height: 100%;
+    width: 100%;
+    // background-color: #F5F5F5;
+    color: rgba(0,0,0,.7);
+    font-family: "microsoft yahei", arial, sans-serif;
+}
+
+.fillcontain{
+    height: 100%;
+    width: 100%;
+    background-color: #f0f3f4;
+}
+.wrapper-content {
+    padding: 20px;
+}
+.ibox {
+    margin-bottom: 20px;
+    background-color: #fff;
+    border: 1px solid #dee5e7;
+    /**
+    -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, .05);
+    box-shadow: 0 1px 1px rgba(0, 0, 0, .05);
+    **/
+	min-width:120px;
+}
+.ibox-title {
+    height: 30px;
+    border-color: #edf1f2;
+    background-color: #f6f8f8;
+    font-weight: 700;
+    padding: 8px 10px 3px 10px;
+    border-bottom: 1px solid transparent;
+    display: block;
+    clear: both;
+}
+.ibox-content {
+    padding: 15px 20px 20px 20px;
+    -webkit-border-image: none;
+    -o-border-image: none;
+    border-image: none;
+    border-top: 1px solid #e7eaec;
+	position:relative;
+}
+.el-table tr.tableHeadbg th {
+    background-color: #F5F5F6;
+    color: rgba(0, 0, 0, 0.7);
+    padding: 5px;
+}
+.optbtncls {
+    margin-bottom: 10px;
+}
+/**
+.btn {
+    padding: 5px 12px;
+}
+**/
+//覆盖elementui 的 对话框样式
+.el-dialog__footer {
+    padding: 10px !important;
+    text-align: center !important;
+    background-color: #f8fafb !important;
+    border-top: 1px solid #e5e5e5 !important;
+}
+.el-dialog__header {
+    padding: 15px !important;
+    text-align: center !important;
+    background-color: #f8fafb !important;
+    border-bottom: 1px solid #e5e5e5 !important;
+    .el-dialog__title {
+        font-size: 20px;
+        font-weight: 600;
+    }
+}
+.el-button {
+    padding: 5px 12px;
+}
+.el-input__inner {
+    height: 32px;
+}
+.el-form-item {
+    margin-bottom:15px;
+}
+.el-form-item__error{
+    padding-top:0px;
+}

+ 72 - 0
src/style/mixin.less

@@ -0,0 +1,72 @@
+@blue: #3190e8;  
+@bc: #e4e4e4;
+@fc:#fff;
+
+// 背景图片地址和大小
+.bis(@url) { 
+	background-image: url(@url);
+	background-repeat: no-repeat;
+	background-size: 100% 100%;
+}
+
+//定位全屏
+.allcover{
+	position:absolute;
+	top:0;
+	right: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;
+}
+
+//flex 布局和 子元素 对其方式
+.fj(@type: space-between){
+	display: flex;
+	justify-content: @type;
+
+}

Разлика између датотеке није приказан због своје велике величине
+ 183 - 0
src/view/Login.vue


+ 103 - 0
src/view/Main.vue

@@ -0,0 +1,103 @@
+<template>
+  	<div class="fillcontain">
+		<frame-top></frame-top>
+		<transition name="el-fade-in">
+			<div class="navbar-static-side" v-show="isShowMenu">
+				<el-menu style="min-height: 100%;" router>
+					<template v-for="(item) in menus">
+						<el-submenu v-if="item.children&&item.children.length>0" :key="item.menuId" :index=" 'p' + item.menuId">
+							<template slot="title">
+								<i :class="item.avatar"></i>
+								<span>{{item.menuName}}</span>
+							</template>
+							<template v-for="(sub) in item.children">
+								<el-menu-item :index="sub.menuUrl" :key="sub.menuId">{{sub.menuName}}</el-menu-item>
+							</template>
+						</el-submenu>
+						<el-menu-item v-else :key="item.menuId" :index="item.menuUrl"><i :class="item.avatar"></i>{{item.menuName}}</el-menu-item>						
+					</template>
+				</el-menu>
+			</div>
+		</transition>
+		<div class="page-wrapper">
+			<keep-alive>
+				<router-view></router-view>
+			</keep-alive>
+		</div>
+  	</div>
+</template>
+
+<script>
+	import frameTop from '../components/FrameTop'
+	import {baseUrl, ajax} from '@/common/biConfig'
+	import $ from 'jquery'
+
+	export default {
+	    data(){
+			return {
+				isShowMenu:true,
+				menus:[]
+			}
+		},
+		components: {
+			frameTop
+    	},
+		mounted(){
+			let ts = this;
+			ajax({
+				type:"GET",
+				data:{},
+				url:"frame/Menus.action",
+				success:function(resp){
+					ts.menus = resp.rows;
+				}
+			}, ts);
+		},
+		computed: {
+		},
+		methods: {				
+		},
+		watch: {
+		}
+	}
+</script>
+
+<style lang="less" scoped>
+	.navbar-static-side {
+		position: fixed;
+		width: 220px;
+		height: 100%;
+	}
+	.page-wrapper {
+		position: inherit;
+		margin: 0 0 0 220px;
+		height: calc(100% - 55px);
+		overflow: auto;
+		width: calc(100% - 220px);
+	}
+	@media (max-width: 512px) {
+		.navbar-static-side {
+			display: none;
+		}
+		.page-wrapper {
+			margin: 0px;
+		}
+	}
+	.el-menu-item {
+		color: #0064b2;
+		i {
+			color: #0064b2;
+			margin-right: 3px;
+		}
+	}
+	.el-submenu__title {
+		color: #0064b2;
+		i {
+			color: #0064b2;
+			margin-right: 3px;
+		}
+		span {
+			color: #0064b2;
+		}
+	}
+</style>

+ 53 - 0
src/view/Welcome.vue

@@ -0,0 +1,53 @@
+<template>
+  	<div class="wrapper-content">
+		  <div class="ibox">
+			  <div class="ibox-content">
+		<p>	<b>“睿思BI”</b>商业智能系统是由<a href="http://www.ruisitech.com">成都睿思商智科技有限公司</a>自主研发的,具有自主知识产权的企业数据分析系统。系统包含数据导入、数据填报、数据建模、多维分析、数据查询、报表、移动BI等功能模块,方便企业快速建立一套易用,灵活、低成本的商业能平台,通过数据掌握企业经营情况,以数据支撑决策。 
+		</p>
+		
+		<h2>开源版功能模块</h2>
+
+<p>1.数据建模</p>
+
+<p>2.多维分析</p>
+
+<p>3.数据报表</p>
+
+<p>4.移动BI</p>
+
+<p>5.权限管理</p>
+
+<br/>
+<p class="text-warning">如果您需要更多功能,可以<button class="btn btn-primary btn-sm" onclick="window.open('https://www.ruisitech.com/product.html')">购买企业版</button></p>
+
+<p class="text-info">技术支持QQ群:648548832</p> 
+			  </div>
+		  </div>
+  	</div>
+</template>
+
+<script>
+	import {baseUrl} from '@/common/biConfig'
+	import $ from 'jquery'
+
+	export default {
+	    data(){
+			return {
+				
+			}
+		},
+		mounted(){
+			
+		},
+		computed: {
+		},
+		methods: {				
+		},
+		watch: {
+		}
+	}
+</script>
+
+<style lang="less" scoped>
+	@import '../style/mixin';
+</style>

+ 205 - 0
src/view/frame/Menu.vue

@@ -0,0 +1,205 @@
+<template>
+  <div class="wrapper-content">
+    <div class="ibox" id="mainDiv">
+      <div class="ibox-title">菜单管理</div>
+      <div class="ibox-content">
+        <div class="row">
+          <div class="col-sm-6">
+            <div id="menuTree"></div>
+          </div>
+          <div class="col-sm-6">
+            <p class="text-warning">在菜单上点击鼠标右键来新建或编辑菜单。</p>
+          </div>
+        </div>
+      </div>
+    </div>
+	<operationDailog mainDiv="mainDiv"  :title="operDailogTitle" ref="operForm" :callback="saveMenu">
+		<div class="row">
+			<div class="col-sm-6">
+				<el-form :model="menu" :rules="rules" ref="menuForm">
+				    <el-form-item label="名称" label-width="100px" prop="menuName">
+				     	<el-input v-model="menu.menuName" ></el-input>
+				    </el-form-item>
+					<el-form-item label="URL" label-width="100px">
+				     	<el-input v-model="menu.menuUrl" placeholder="如果创建目录则不用填写URL"></el-input>
+				    </el-form-item>
+					<el-form-item label="排序" label-width="100px">
+						<el-input-number v-model="menu.menuOrder" :min="0" :max="100"></el-input-number>
+					</el-form-item>
+					<el-form-item label="备注" label-width="100px">
+				     	<el-input v-model="menu.menuDesc" ></el-input>
+				    </el-form-item>
+					<el-form-item label="图标" label-width="100px">
+				     	<div id="picview" style="font-size:20px;"></div>
+				    </el-form-item>
+			  	</el-form>
+			</div>
+			<div class="col-sm-6">
+				<div style="height:400px; overflow:auto;">
+				<template v-for="(m) in menuIcons">
+					<a href="javascript:;" @click="showPic(m.cls)" style='color:#403a3a; text-decoration:none' :key="m.index"><i :class="m.cls"></i> &nbsp; </a>
+				</template>
+				</div>
+			</div>
+		</div>
+	</operationDailog>
+  </div>
+</template>
+
+<script>
+import { baseUrl, ajax } from "@/common/biConfig";
+import operationDailog from '@/components/OperationDailog'
+import $ from "jquery";
+import "jstree";
+import "jstree/dist/themes/default/style.min.css";
+import menuData from "@/assets/data/menu-icons.json"
+
+export default {
+  data() {
+    return {
+		menu:{
+			menuId:null,
+			menuPid:null,
+			menuName:"",
+			menuDesc:"",
+			menuOrder:0,
+			menuUrl:"",
+			avatar:""
+		},
+		rules:{
+			menuName:[
+				{ required: true, message: '必填', trigger: 'blur' }
+			]
+		},
+		operDailog:false,
+		operDailogTitle:"",
+		menuIcons : menuData
+	};
+  },
+  components: {
+		operationDailog
+	},
+  mounted() {
+    this.initTree();
+  },
+  computed: {},
+  methods: {
+	  addMenu:function(node, isupdate){
+		  this.operDailogTitle = isupdate?"修改菜单":"创建菜单";
+		  this.$refs.operForm.showDailog();
+	  },
+	  delMenu:function(node){
+
+	  },
+	  showPic:function(cls){
+		  $("#picview").html(`<i class='${cls}'></i>`);
+	  },
+	  //在 operationDailog 里面进行回掉的函数
+	  saveMenu:function(){
+		  return true;
+	  },
+    //初始化 jstree
+    initTree: function () {
+		let ts = this;
+      $("#menuTree")
+        .jstree({
+          core: {
+            check_callback: true,
+            data: function (obj, callback) {
+              if (obj.id == "#") {
+                callback.call(this, [
+                  {
+                    id: "0",
+                    text: "系统菜单",
+                    children: true,
+                    state: { opened: true },
+                    icon: "fa fa-home",
+                  },
+                ]);
+              } else {
+                ajax({
+                  type: "GET",
+                  data: {id: obj.id},
+                  postJSON: false,
+                  url: 'frame/menu/loadData.action',
+                  success: function (resp) {
+                    callback.call(this, resp.rows);
+                  },
+                }, ts);
+              }
+            },
+          },
+          contextmenu: {
+            items: {
+              add: {
+                label: "新增",
+                icon: "glyphicon glyphicon-plus",
+                action: function (data) {
+                  const inst = $.jstree.reference(data.reference),
+                    node = inst.get_node(data.reference);
+                  ts.addMenu(node, false);
+                },
+              },
+              modify: {
+                label: "修改",
+                icon: "glyphicon glyphicon-edit",
+                action: function (data) {
+                  const inst = $.jstree.reference(data.reference),
+                    node = inst.get_node(data.reference);
+                  ts.addMenu(node, true);
+                },
+                _disabled: function (data) {
+                  const inst = $.jstree.reference(data.reference),
+                    node = inst.get_node(data.reference);
+                  if (node.id == "0") {
+                    return true;
+                  } else {
+                    return false;
+                  }
+                },
+              },
+              remove: {
+                label: "删除",
+                icon: "glyphicon glyphicon-trash",
+                _disabled: function (data) {
+                  const inst = $.jstree.reference(data.reference),
+                    node = inst.get_node(data.reference);
+                  if (node.id == "0") {
+                    return true;
+                  } else {
+                    return false;
+                  }
+                },
+                action: function (data) {
+                  const inst = $.jstree.reference(data.reference),
+                    node = inst.get_node(data.reference);
+                  ts.delMenu(node);
+                },
+              },
+            },
+          },
+          plugins: ["wholerow", "contextmenu"],
+        })
+        .bind("open_node.jstree", function (a, b) {
+          if (b.node.id == "0") {
+            return;
+          }
+          const ref = $("#menuTree").jstree(true);
+          ref.set_icon(b.node, "fa fa-folder-open-o");
+        })
+        .bind("close_node.jstree", function (a, b) {
+          if (b.node.id == "0") {
+            return;
+          }
+          const ref = $("#menuTree").jstree(true);
+          ref.set_icon(b.node, "fa fa-folder-o");
+        });
+    },
+  },
+  watch: {},
+};
+</script>
+
+<style lang="less" scoped>
+@import "../../style/mixin";
+</style>

+ 182 - 0
src/view/frame/Role.vue

@@ -0,0 +1,182 @@
+<template>
+  	<div class="wrapper-content">
+		  <div class="ibox">
+			  <div class="ibox-title">
+				  角色管理
+			  </div>
+			  <div class="ibox-content">
+					<div class="btn-group optbtncls" role="group">
+						<button type="button" class="btn btn-outline btn-default" title="新增" @click="addRole(false)">
+							<i class="glyphicon glyphicon-plus" aria-hidden="true"></i>
+						</button>
+						<button type="button" class="btn btn-outline btn-default" title="修改" @click="addRole(true)">
+							<i class="glyphicon glyphicon-edit" aria-hidden="true"></i>
+						</button>
+						<button type="button" class="btn btn-outline btn-default" title="删除" @click="delRole()">
+							<i class="glyphicon glyphicon-trash" aria-hidden="true"></i>
+						</button>
+					</div>
+					<el-table :data="tableData" @row-click="selectme" border style="width: 100%" header-row-class-name="tableHeadbg">
+						<!--
+						<el-table-column type="selection" width="45"></el-table-column>
+						-->
+						<el-table-column label="" width="45">
+							<template slot-scope="scope">
+								<el-radio v-model="checked" name="myselect2" :label="scope.row.roleId">&nbsp;</el-radio>
+							</template>
+						</el-table-column>
+						<el-table-column align="center" prop="roleId" label="标识"></el-table-column>
+						<el-table-column align="center" prop="roleName" label="角色名称"></el-table-column>
+						<el-table-column align="center" prop="roleDesc" label="备注信息"></el-table-column>
+						<el-table-column align="center" prop="createUser" label="创建人"></el-table-column>
+						<el-table-column align="center" prop="createDate" label="创建时间"></el-table-column>
+						<el-table-column align="center" prop="ord" label="排序"></el-table-column>
+						<el-table-column align="center" prop="roleId" label="操作">
+							<template slot-scope="scope">
+								<a class="btn btn-primary btn-xs" @click="userRole(scope.roleId)"> 授权菜单 </a>
+							</template>
+						</el-table-column>
+					</el-table>
+			  </div>
+			  
+		  </div>
+
+		  <el-dialog :title="dialogTitle" :visible.sync="addRoleDailog">
+			  	<el-form :model="role" :rules="rules" ref="roleForm">
+					 
+				    <el-form-item label="角色名称" label-width="100px" prop="roleName">
+				     	<el-input v-model="role.roleName" ></el-input>
+				    </el-form-item>
+					
+					<el-form-item label="角色备注" label-width="100px" prop="roleDesc">
+				     	<el-input v-model="role.roleDesc"  ></el-input>
+				    </el-form-item>
+					<el-form-item label="排序" label-width="100px">
+						<el-input-number v-model="role.ord" :min="0" :max="100"></el-input-number>
+					</el-form-item>
+					
+			  	</el-form>
+			  <div slot="footer" class="dialog-footer">
+			    <el-button type="primary" @click="saveRole(isupdate)">确 定</el-button>
+				<el-button @click="addRoleDailog = false">取 消</el-button>
+			  </div>
+		</el-dialog>
+  	</div>
+</template>
+
+<script>
+	import {baseUrl, ajax} from '@/common/biConfig'
+	import $ from 'jquery'
+
+	export default {
+	    data(){
+			return {
+				tableData:[],
+				checked:null,
+				addRoleDailog:false,
+				dialogTitle:"",
+				role:{
+					roleId:null,
+					roleName:"",
+					roleDesc:"",
+					ord:1
+				},
+				rules:{
+					roleName:[
+						{ required: true, message: '必填', trigger: 'blur' }
+					]
+				},
+				isupdate: false   //是否修改数据
+			}
+		},
+		mounted(){
+			this.loadDatas();
+		},
+		computed: {
+		},
+		methods: {	
+			loadDatas:function(){
+				let ts = this;
+				ajax({
+					type:"GET",
+					data:{},
+					url:"frame/role/list.action", 
+					success:function(resp){
+						ts.tableData = resp.rows;
+					}
+				}, ts);
+			},	
+			selectme:function(a, b){
+				this.checked = a.roleId;
+			},
+			addRole:function(isupdate){
+				let ts = this;
+				if(isupdate){
+					this.dialogTitle = "修改角色";
+					//回写值
+					ajax({
+						url:"frame/role/get.action",
+						data:{roleId:ts.checked},
+						dataType:"json",
+						success:function(dt){
+							dt = dt.rows;
+							for(let v in ts.role){
+								ts.role[v] = dt[v];
+							}
+						}
+					}, ts);
+				}else{
+					this.dialogTitle = "新增角色";
+					//清空值
+					for(let v in this.role){
+						this.role[v] = null;
+					}
+				}
+				this.isupdate = isupdate;
+				this.addRoleDailog = true;
+			},
+			saveRole:function(update){
+				let ts = this;
+				this.$refs['roleForm'].validate((valid) => {
+					if (valid) {
+						ajax({
+							type:"POST",
+							data: ts.role,
+							postJSON:false,
+							url:update?"frame/role/update.action":"frame/role/save.action",
+							success:function(resp){
+								ts.loadDatas();
+								ts.addRoleDailog = false;
+							}
+						}, ts);
+					}
+				});
+			},
+			delRole:function(){
+				let ts = this;
+				if(!this.checked){
+					ts.$notify.error({title: '请勾选数据',offset: 50});
+					return;
+				}
+				if(confirm("是否确认删除?")){
+					ajax({
+						type:"GET",
+						data: {roleId: ts.checked},
+						postJSON:false,
+						url:"frame/role/delete.action",
+						success:function(resp){
+							ts.$notify.success({title: '用户删除成功',offset: 50});
+							ts.loadDatas();
+						}
+					}, this);
+				}
+			}
+		},
+		watch: {
+		}
+	}
+</script>
+
+<style lang="less" scoped>
+	@import '../../style/mixin';
+</style>

+ 290 - 0
src/view/frame/User.vue

@@ -0,0 +1,290 @@
+<template>
+  	<div class="wrapper-content">
+		  <div class="ibox">
+			  <div class="ibox-title">
+				  用户管理
+			  </div>
+			  <div class="ibox-content">
+				<div class="btn-group optbtncls" role="group">
+					<button type="button" class="btn btn-outline btn-default" title="新增" @click="addUser(false)">
+						<i class="glyphicon glyphicon-plus" aria-hidden="true"></i>
+					</button>
+					<button type="button" class="btn btn-outline btn-default" title="修改" @click="addUser(true)">
+						<i class="glyphicon glyphicon-edit" aria-hidden="true"></i>
+					</button>
+					<button type="button" class="btn btn-outline btn-default" title="删除" @click="delUser()">
+						<i class="glyphicon glyphicon-trash" aria-hidden="true"></i>
+					</button>
+				</div>
+				 <el-table :data="tableData" @row-click="selectme" border style="width: 100%" header-row-class-name="tableHeadbg">
+					<!--
+					<el-table-column type="selection" width="45"></el-table-column>
+					-->
+					<el-table-column label="" width="45">
+						<template slot-scope="scope">
+							<el-radio v-model="checked" name="myselect" :label="scope.row.userId">&nbsp;</el-radio>
+						</template>
+					</el-table-column>
+					<el-table-column align="center" prop="userId" label="标识"></el-table-column>
+					<el-table-column align="center" prop="staffId" label="工号"></el-table-column>
+					<el-table-column align="center" prop="loginName" label="用户名"></el-table-column>
+					<el-table-column align="center" prop="state" :formatter="fmtstate" label="状态"></el-table-column>
+					<el-table-column align="center" prop="logCnt" label="登陆次数"></el-table-column>
+					<el-table-column align="center" prop="loginTime" label="登录时间"></el-table-column>
+					<el-table-column align="center" prop="userId" label="操作">
+						<template slot-scope="scope">
+								<a class="btn btn-primary btn-xs" @click="userRole(scope.userId)"> 授权角色 </a>
+								<a class="btn btn-primary btn-xs" @click="userMenu(scope.userId)"> 授权菜单 </a>
+						</template>
+					</el-table-column>
+				</el-table>
+			  </div>
+		  </div>
+		  	<el-dialog :title="dialogTitle" :visible.sync="addUserDailog">
+			  	<el-form :model="user" :rules="rules" ref="userForm">
+					  <template v-if="isupdate">
+						  <el-form-item label="用户标识" label-width="100px" prop="userId">
+							<el-input readOnly="true" v-model="user.userId"></el-input>
+						</el-form-item>
+					  </template>
+				    <el-form-item label="用户工号" label-width="100px" prop="staffId">
+				     	<el-input :readonly="isupdate" v-model="user.staffId"  placeholder="登录系统使用"></el-input>
+				    </el-form-item>
+					<template v-if="!isupdate">
+					<el-form-item label="登录密码" label-width="100px" prop="password">
+				     	<el-input type="password" v-model="user.password"  :show-password="true" ></el-input>
+				    </el-form-item>
+					<el-form-item label="重复密码" label-width="100px" prop="password2">
+				     	<el-input type="password" v-model="user.password2" :show-password="true"  ></el-input>
+				    </el-form-item>
+					</template>
+					<el-form-item label="用户名称" label-width="100px" prop="loginName">
+				     	<el-input v-model="user.loginName"  ></el-input>
+				    </el-form-item>
+					
+				    <el-form-item label="用户性别" label-width="100px" prop="gender">
+						<el-select v-model="user.gender" placeholder="请选择">
+							<el-option
+							v-for="item in opts.sexs"
+							:key="item.value"
+							:label="item.label"
+							:value="item.value">
+							</el-option>
+						</el-select>				    
+					</el-form-item>
+					<el-form-item label="账号状态" label-width="100px" prop="state">
+				     	<el-select v-model="user.state" placeholder="请选择">
+							<el-option
+							v-for="item in opts.status"
+							:key="item.value"
+							:label="item.label"
+							:value="item.value">
+							</el-option>
+						</el-select>
+				    </el-form-item>
+					<el-form-item label="手机号码" label-width="100px">
+				     	<el-input v-model="user.mobilePhone"  ></el-input>
+				    </el-form-item>
+					<el-form-item label="办公电话" label-width="100px">
+				     	<el-input v-model="user.officeTel"  ></el-input>
+				    </el-form-item>
+					<el-form-item label="电子邮件" label-width="100px">
+				     	<el-input v-model="user.email"  ></el-input>
+				    </el-form-item>
+			  	</el-form>
+			  <div slot="footer" class="dialog-footer">
+			    <el-button type="primary" @click="saveUser()">确 定</el-button>
+				<el-button @click="addUserDailog = false">取 消</el-button>
+			  </div>
+			</el-dialog>
+  	</div>
+</template>
+
+<script>
+	import {baseUrl, ajax} from '@/common/biConfig'
+	import $ from 'jquery'
+
+	export default {
+	    data(){
+			return {
+				tableData: [],
+				addUserDailog:false,
+				dialogTitle:"",
+				checked:null,
+				isupdate: false,
+				user:{
+					userId:null,
+					staffId:null,
+					password:'',
+					password2:'',
+					loginName:'',
+					gender:null,
+					state:null,
+					mobilePhone:'',
+					officeTel:'',
+					email:''
+				},
+				rules:{
+					staffId:[
+						{ required: true, message: '必填', trigger: 'blur' }
+					],
+					password:[
+						{ required: true, message: '必填', trigger: 'blur' },
+						{ min: 6, max: 18, message: '密码长度6到18位', trigger: 'blur' }
+					],
+					password2:[
+						{ required: true, message: '必填', trigger: 'blur' },
+						{ min: 6, max: 18, message: '密码长度6到18位', trigger: 'blur' }
+					],
+					loginName:[
+						{ required: true, message: '必填', trigger: 'blur' }
+					],
+					gender:[
+						{ required: true, message: '必填', trigger: 'blur' }
+					],
+					state:[
+						{ required: true, message: '必填', trigger: 'blur' }
+					]
+				},
+				opts:{
+					sexs:[{
+						label:"男",
+						value:"男"
+					},{
+						label:"女",
+						value:"女"
+					}],
+					status:[{
+						label:"启用",
+						value:"1"
+					},{
+						label:"停用",
+						value:"0"
+					}]
+				}
+				
+			}
+		},
+		mounted(){
+			this.loadDatas();
+		},
+		computed: {
+		},
+		methods: {
+			loadDatas:function(){
+				let ts = this;
+				ajax({
+					type:"GET",
+					data:{},
+					url:"frame/user/list.action", 
+					success:function(resp){
+						ts.tableData = resp.rows;
+					}
+				}, ts);
+			},
+			fmtstate:function(row, column, cellValue, index){
+				return cellValue === 1 ?"启用":"停用";
+			},
+			addUser : function(isupdate){
+				let ts = this;
+				if(isupdate){
+					if(!ts.checked){
+						ts.$notify.error({
+										title: '未勾选数据',
+										offset: 50
+									});
+						return false;
+					}
+					this.addUserDailog = true;	
+					this.dialogTitle = "修改用户";
+					//回写值
+					ajax({
+						url:"frame/user/get.action",
+						data:{userId:ts.checked},
+						dataType:"json",
+						success:function(dt){
+							dt = dt.rows;
+							for(let v in ts.user){
+								ts.user[v] = dt[v] + "";
+							}
+						}
+					}, ts);
+				}else{
+					this.addUserDailog = true;	
+					this.dialogTitle = "新增用户";
+					//清空值
+					for(let v in ts.user){
+						ts.user[v] = null;
+					}
+				}
+				this.isupdate = isupdate;
+			},
+			selectme:function(a, b){
+				this.checked = a.userId;
+			},
+			saveUser:function(){
+				let ts = this;
+				this.$refs['userForm'].validate((valid) => {
+					if (valid) {
+						if(ts.user.password != ts.user.password2){
+							ts.$notify.error({
+										title: '两次密码不一致',
+										offset: 50
+									});
+							return false;
+						}
+						ajax({
+							type:"POST",
+							data: ts.user,
+							postJSON:false,
+							url:ts.isupdate?"frame/user/update.action":"frame/user/save.action",
+							success:function(resp){
+								ts.$notify.success({
+										title: ts.isupdate?"用户修改成功":'用户创建成功',
+										offset: 50
+									});
+								ts.addUserDailog = false;
+								ts.loadDatas();
+							}
+						}, ts);
+					} else {
+						//console.log('error submit!!');
+						return false;
+					}
+				});
+			},
+			delUser:function(){
+				let ts = this;
+				if(!this.checked){
+					ts.$notify.error({
+						title: '请勾选数据',
+						offset: 50
+					});
+					return;
+				}
+				if(confirm("是否确认删除?")){
+					ajax({
+						type:"GET",
+						data: {userId: ts.checked},
+						postJSON:false,
+						url:"frame/user/delete.action",
+						success:function(resp){
+							ts.$notify.success({
+									title: '用户删除成功',
+									offset: 50
+								});
+							ts.loadDatas();
+						}
+					}, this);
+				}
+			}
+		},
+		watch: {
+		}
+	}
+</script>
+
+<style lang="less" scoped>
+	@import '../../style/mixin';
+	@import '../../style/common';
+</style>

+ 0 - 0
static/.gitkeep


+ 27 - 0
test/e2e/custom-assertions/elementCount.js

@@ -0,0 +1,27 @@
+// A custom Nightwatch assertion.
+// The assertion name is the filename.
+// Example usage:
+//
+//   browser.assert.elementCount(selector, count)
+//
+// For more information on custom assertions see:
+// http://nightwatchjs.org/guide#writing-custom-assertions
+
+exports.assertion = function (selector, count) {
+  this.message = 'Testing if element <' + selector + '> has count: ' + count
+  this.expected = count
+  this.pass = function (val) {
+    return val === this.expected
+  }
+  this.value = function (res) {
+    return res.value
+  }
+  this.command = function (cb) {
+    var self = this
+    return this.api.execute(function (selector) {
+      return document.querySelectorAll(selector).length
+    }, [selector], function (res) {
+      cb.call(self, res)
+    })
+  }
+}

+ 46 - 0
test/e2e/nightwatch.conf.js

@@ -0,0 +1,46 @@
+require('babel-register')
+var config = require('../../config')
+
+// http://nightwatchjs.org/gettingstarted#settings-file
+module.exports = {
+  src_folders: ['test/e2e/specs'],
+  output_folder: 'test/e2e/reports',
+  custom_assertions_path: ['test/e2e/custom-assertions'],
+
+  selenium: {
+    start_process: true,
+    server_path: require('selenium-server').path,
+    host: '127.0.0.1',
+    port: 4444,
+    cli_args: {
+      'webdriver.chrome.driver': require('chromedriver').path
+    }
+  },
+
+  test_settings: {
+    default: {
+      selenium_port: 4444,
+      selenium_host: 'localhost',
+      silent: true,
+      globals: {
+        devServerURL: 'http://localhost:' + (process.env.PORT || config.dev.port)
+      }
+    },
+
+    chrome: {
+      desiredCapabilities: {
+        browserName: 'chrome',
+        javascriptEnabled: true,
+        acceptSslCerts: true
+      }
+    },
+
+    firefox: {
+      desiredCapabilities: {
+        browserName: 'firefox',
+        javascriptEnabled: true,
+        acceptSslCerts: true
+      }
+    }
+  }
+}

+ 48 - 0
test/e2e/runner.js

@@ -0,0 +1,48 @@
+// 1. start the dev server using production config
+process.env.NODE_ENV = 'testing'
+
+const webpack = require('webpack')
+const DevServer = require('webpack-dev-server')
+
+const webpackConfig = require('../../build/webpack.prod.conf')
+const devConfigPromise = require('../../build/webpack.dev.conf')
+
+let server
+
+devConfigPromise.then(devConfig => {
+  const devServerOptions = devConfig.devServer
+  const compiler = webpack(webpackConfig)
+  server = new DevServer(compiler, devServerOptions)
+  const port = devServerOptions.port
+  const host = devServerOptions.host
+  return server.listen(port, host)
+})
+.then(() => {
+  // 2. run the nightwatch test suite against it
+  // to run in additional browsers:
+  //    1. add an entry in test/e2e/nightwatch.conf.js under "test_settings"
+  //    2. add it to the --env flag below
+  // or override the environment flag, for example: `npm run e2e -- --env chrome,firefox`
+  // For more information on Nightwatch's config file, see
+  // http://nightwatchjs.org/guide#settings-file
+  let opts = process.argv.slice(2)
+  if (opts.indexOf('--config') === -1) {
+    opts = opts.concat(['--config', 'test/e2e/nightwatch.conf.js'])
+  }
+  if (opts.indexOf('--env') === -1) {
+    opts = opts.concat(['--env', 'chrome'])
+  }
+
+  const spawn = require('cross-spawn')
+  const runner = spawn('./node_modules/.bin/nightwatch', opts, { stdio: 'inherit' })
+
+  runner.on('exit', function (code) {
+    server.close()
+    process.exit(code)
+  })
+
+  runner.on('error', function (err) {
+    server.close()
+    throw err
+  })
+})

+ 19 - 0
test/e2e/specs/test.js

@@ -0,0 +1,19 @@
+// For authoring Nightwatch tests, see
+// http://nightwatchjs.org/guide#usage
+
+module.exports = {
+  'default e2e tests': function (browser) {
+    // automatically uses dev Server port from /config.index.js
+    // default: http://localhost:8080
+    // see nightwatch.conf.js
+    const devServer = browser.globals.devServerURL
+
+    browser
+      .url(devServer)
+      .waitForElementVisible('#app', 5000)
+      .assert.elementPresent('.hello')
+      .assert.containsText('h1', 'Welcome to Your Vue.js App')
+      .assert.elementCount('img', 1)
+      .end()
+  }
+}

+ 7 - 0
test/unit/.eslintrc

@@ -0,0 +1,7 @@
+{
+  "env": { 
+    "jest": true
+  },
+  "globals": { 
+  }
+}

+ 30 - 0
test/unit/jest.conf.js

@@ -0,0 +1,30 @@
+const path = require('path')
+
+module.exports = {
+  rootDir: path.resolve(__dirname, '../../'),
+  moduleFileExtensions: [
+    'js',
+    'json',
+    'vue'
+  ],
+  moduleNameMapper: {
+    '^@/(.*)$': '<rootDir>/src/$1'
+  },
+  transform: {
+    '^.+\\.js$': '<rootDir>/node_modules/babel-jest',
+    '.*\\.(vue)$': '<rootDir>/node_modules/vue-jest'
+  },
+  testPathIgnorePatterns: [
+    '<rootDir>/test/e2e'
+  ],
+  snapshotSerializers: ['<rootDir>/node_modules/jest-serializer-vue'],
+  setupFiles: ['<rootDir>/test/unit/setup'],
+  mapCoverage: true,
+  coverageDirectory: '<rootDir>/test/unit/coverage',
+  collectCoverageFrom: [
+    'src/**/*.{js,vue}',
+    '!src/main.js',
+    '!src/router/index.js',
+    '!**/node_modules/**'
+  ]
+}

+ 3 - 0
test/unit/setup.js

@@ -0,0 +1,3 @@
+import Vue from 'vue'
+
+Vue.config.productionTip = false

+ 11 - 0
test/unit/specs/HelloWorld.spec.js

@@ -0,0 +1,11 @@
+import Vue from 'vue'
+import HelloWorld from '@/components/HelloWorld'
+
+describe('HelloWorld.vue', () => {
+  it('should render correct contents', () => {
+    const Constructor = Vue.extend(HelloWorld)
+    const vm = new Constructor().$mount()
+    expect(vm.$el.querySelector('.hello h1').textContent)
+      .toEqual('Welcome to Your Vue.js App')
+  })
+})