zhang 4 年之前
父节点
当前提交
a34e793335
共有 67 个文件被更改,包括 22144 次插入0 次删除
  1. 22 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. 1 0
      README.md
  8. 41 0
      build/build.js
  9. 54 0
      build/check-versions.js
  10. 二进制
      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. 95 0
      build/webpack.dev.conf.js
  15. 149 0
      build/webpack.prod.conf.js
  16. 7 0
      config/dev.env.js
  17. 85 0
      config/index.js
  18. 4 0
      config/prod.env.js
  19. 7 0
      config/test.env.js
  20. 12 0
      index.html
  21. 17578 0
      package-lock.json
  22. 93 0
      package.json
  23. 27 0
      src/App.vue
  24. 二进制
      src/assets/logo.png
  25. 252 0
      src/components/balance/Balance.css
  26. 172 0
      src/components/balance/Balance.vue
  27. 254 0
      src/components/dev_mgr/DevMgr.css
  28. 222 0
      src/components/dev_mgr/DevMgr.vue
  29. 276 0
      src/components/feilvset/feilvset.css
  30. 154 0
      src/components/feilvset/feilvset.vue
  31. 193 0
      src/components/index/Index.css
  32. 113 0
      src/components/index/Index.vue
  33. 105 0
      src/components/login/Login.vue
  34. 87 0
      src/components/login/login.css
  35. 273 0
      src/components/shangjiaduizhang/shangjiaduizhang.css
  36. 240 0
      src/components/shangjiaduizhang/shangjiaduizhang.vue
  37. 309 0
      src/components/yongshuifenxi/yongshuifenxi.css
  38. 283 0
      src/components/yongshuifenxi/yongshuifenxi.vue
  39. 238 0
      src/components/zhanghaoguanli/zhanghaoguanli.css
  40. 183 0
      src/components/zhanghaoguanli/zhanghaoguanli.vue
  41. 30 0
      src/main.js
  42. 50 0
      src/router/index.js
  43. 59 0
      src/store/index.js
  44. 0 0
      static/.gitkeep
  45. 二进制
      static/images/add.png
  46. 二进制
      static/images/bg.png
  47. 二进制
      static/images/diwen.png
  48. 二进制
      static/images/duizhang.png
  49. 二进制
      static/images/exit.png
  50. 二进制
      static/images/feilvshezhi.png
  51. 二进制
      static/images/info.png
  52. 二进制
      static/images/logo.png
  53. 二进制
      static/images/mima.png
  54. 二进制
      static/images/susheguanli.png
  55. 二进制
      static/images/touxiang.jpg
  56. 二进制
      static/images/yonghuguanli.png
  57. 二进制
      static/images/yonghuming.png
  58. 二进制
      static/images/yongshuifenxi.png
  59. 二进制
      static/images/yue.png
  60. 27 0
      test/e2e/custom-assertions/elementCount.js
  61. 46 0
      test/e2e/nightwatch.conf.js
  62. 48 0
      test/e2e/runner.js
  63. 19 0
      test/e2e/specs/test.js
  64. 7 0
      test/unit/.eslintrc
  65. 30 0
      test/unit/jest.conf.js
  66. 3 0
      test/unit/setup.js
  67. 11 0
      test/unit/specs/HelloWorld.spec.js

+ 22 - 0
.babelrc

@@ -0,0 +1,22 @@
+{
+  "presets": [
+    ["env", {
+      "modules": false,
+      "targets": {
+        "browsers": ["> 1%", "last 2 versions", "not ie <= 8"]
+      }
+    }],
+    "stage-2"
+  ],
+  "plugins": [
+		"transform-vue-jsx",
+		"transform-runtime",
+		["import", { "libraryName": "ant-design-vue", "libraryDirectory": "es", "style": "css" }]
+  ],
+  "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": {}
+  }
+}

+ 1 - 0
README.md

@@ -0,0 +1 @@
+#hotWaterManagerWeb

+ 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)
+  }
+}

二进制
build/logo.png


+ 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'
+  }
+}

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

@@ -0,0 +1,95 @@
+'use strict'
+const utils = require('./utils')
+const webpack = require('webpack')
+const config = require('../config')
+const merge = require('webpack-merge')
+const path = require('path')
+const baseWebpackConfig = require('./webpack.base.conf')
+const CopyWebpackPlugin = require('copy-webpack-plugin')
+const HtmlWebpackPlugin = require('html-webpack-plugin')
+const FriendlyErrorsPlugin = require('friendly-errors-webpack-plugin')
+const portfinder = require('portfinder')
+
+const HOST = process.env.HOST
+const PORT = process.env.PORT && Number(process.env.PORT)
+
+const devWebpackConfig = merge(baseWebpackConfig, {
+  module: {
+    rules: utils.styleLoaders({ sourceMap: config.dev.cssSourceMap, usePostCSS: true })
+  },
+  // cheap-module-eval-source-map is faster for development
+  devtool: config.dev.devtool,
+
+  // these devServer options should be customized in /config/index.js
+  devServer: {
+    clientLogLevel: 'warning',
+    historyApiFallback: {
+      rewrites: [
+        { from: /.*/, to: path.posix.join(config.dev.assetsPublicPath, 'index.html') },
+      ],
+    },
+    hot: true,
+    contentBase: false, // since we use CopyWebpackPlugin.
+    compress: true,
+    host: HOST || config.dev.host,
+    port: PORT || config.dev.port,
+    open: config.dev.autoOpenBrowser,
+    overlay: config.dev.errorOverlay
+      ? { warnings: false, errors: true }
+      : false,
+    publicPath: config.dev.assetsPublicPath,
+    proxy: config.dev.proxyTable,
+    quiet: true, // necessary for FriendlyErrorsPlugin
+    watchOptions: {
+      poll: config.dev.poll,
+    }
+  },
+  plugins: [
+    new webpack.DefinePlugin({
+      'process.env': require('../config/dev.env')
+    }),
+    new webpack.HotModuleReplacementPlugin(),
+    new webpack.NamedModulesPlugin(), // HMR shows correct file names in console on update.
+    new webpack.NoEmitOnErrorsPlugin(),
+    // https://github.com/ampedandwired/html-webpack-plugin
+    new HtmlWebpackPlugin({
+      filename: 'index.html',
+      template: 'index.html',
+      inject: true
+    }),
+    // copy custom static assets
+    new CopyWebpackPlugin([
+      {
+        from: path.resolve(__dirname, '../static'),
+        to: config.dev.assetsSubDirectory,
+        ignore: ['.*']
+      }
+    ])
+  ]
+})
+
+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"'
+})

+ 85 - 0
config/index.js

@@ -0,0 +1,85 @@
+'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: '/',
+		// 后端请求地址代理,配置后testIp再之后的页面调用时就直接指代 http://197.82.15.15:8088
+		proxyTable: {
+			'/api': {
+				target: 'http://baibai.natapp1.cc/', // 你请求的第三方接口
+				changeOrigin: true, // 在本地会创建一个虚拟服务端,然后发送请求的数据,并同时接收请求的数据,这样服务端和服务端进行数据的交互就不会有跨域问题
+				pathRewrite: { // 路径重写,
+					'^/api': '/' // 替换target中的请求地址,也就是说以后你在请求http://api.douban.com/v2/XXXXX这个地址的时候直接写成/api即可。
+				}
+			}
+		},
+
+		// Various Dev Server settings
+		host: 'localhost', // can be overwritten by process.env.HOST
+		port: 8080, // 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"'
+})

+ 12 - 0
index.html

@@ -0,0 +1,12 @@
+<!DOCTYPE html>
+<html>
+  <head>
+    <meta charset="utf-8">
+    <meta name="viewport" content="width=device-width,initial-scale=1.0">
+    <title>hot-water-manager-web</title>
+  </head>
+  <body>
+    <div id="app"></div>
+    <!-- built files will be auto injected -->
+  </body>
+</html>

文件差异内容过多而无法显示
+ 17578 - 0
package-lock.json


+ 93 - 0
package.json

@@ -0,0 +1,93 @@
+{
+  "name": "hot-water-manager-web",
+  "version": "1.0.0",
+  "description": "hotWaterManagerWeb",
+  "author": "程志平 <383040202@qq.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": {
+    "ant-design-vue": "^1.7.7",
+    "axios": "^0.21.1",
+    "echarts": "^4.9.0",
+    "element-ui": "^2.15.5",
+    "vue": "^2.5.2",
+    "vue-router": "^3.0.1",
+    "webpack-cli": "^4.7.2"
+  },
+  "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-import": "^1.13.3",
+    "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.0",
+    "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",
+    "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",
+    "selenium-server": "^3.0.1",
+    "semver": "^5.3.0",
+    "shelljs": "^0.7.6",
+    "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.11.5",
+    "webpack-merge": "^4.1.0"
+  },
+  "engines": {
+    "node": ">= 6.0.0",
+    "npm": ">= 3.0.0"
+  },
+  "browserslist": [
+    "> 1%",
+    "last 2 versions",
+    "not ie <= 8"
+  ]
+}

+ 27 - 0
src/App.vue

@@ -0,0 +1,27 @@
+<template>
+	<div id="app">
+		<router-view></router-view>
+	</div>
+</template>
+
+<script>
+	export default {
+		name: 'App'
+	}
+</script>
+
+<style>
+	html,
+	body,
+	#app {
+		padding: 0;
+		margin: 0;
+		height: 100%;
+		width: 100%;
+		background-color: #eaeaea;
+	}
+	
+	a {
+		text-decoration: none;
+	}
+</style>

二进制
src/assets/logo.png


+ 252 - 0
src/components/balance/Balance.css

@@ -0,0 +1,252 @@
+/* dev-mgr */
+.first-row {
+	display: flex;
+	justify-content: space-between;
+	align-items: center;
+	height: 50px;
+}
+
+.second-row {
+	display: flex;
+	justify-content: flex-start;
+	align-items: center;
+	height: 80px;
+	padding-top: 20px;
+}
+
+.third-row {
+	margin-top: 10px;
+}
+
+.tag {
+	width: 108px;
+	height: 40px;
+	font-size: 24px;
+	font-family: Microsoft YaHei-3970(82674968);
+	font-weight: bold;
+	color: #000000;
+	line-height: 54px;
+}
+
+>>>.demo-form-inline {
+	padding: 0;
+	margin: 0;
+	display: flex;
+	justify-content: space-between;
+	align-items: center;
+}
+
+.el-form-item {
+	margin-bottom: 0px;
+}
+
+.total_balance {
+	font-size: 22px;
+	font-family: Microsoft YaHei-3970(82674968);
+	font-weight: 400;
+	color: #333333;
+	margin-right: 106px;
+}
+
+>>>.el-form-item__label {
+	margin: 0;
+	padding: 0;
+	font-size: 22px;
+	font-family: Microsoft YaHei-3970(82674968);
+	font-weight: 400;
+	color: #333333;
+	line-height: 40px;
+}
+
+.shuibiaoId>>>.el-input__inner {
+	width: 240px;
+	height: 40px;
+	border: 1px solid #4D4D4D;
+	border-radius: 4px;
+	font-size: 20px;
+}
+
+.loudonghao>>>.el-input__inner {
+	width: 181px;
+	height: 40px;
+	border: 1px solid #4D4D4D;
+	border-radius: 4px;
+	font-size: 20px;
+	font-family: Microsoft YaHei-3970(82674968);
+	font-weight: 400;
+	color: #333333;
+	line-height: 54px;
+}
+
+.el-button {
+	margin: 0 60px 0 40px;
+	width: 100px;
+	height: 40px;
+	background: #298DEF;
+	border-radius: 4px;
+	font-size: 18px;
+}
+
+>>>.el-table__header {
+	font-size: 20px;
+	font-family: Microsoft YaHei-3970(82674968);
+	font-weight: 400;
+}
+
+>>>.el-table__header .cell {
+	color: #010101;
+}
+
+>>>.el-checkbox,
+>>>.el-checkbox__inner {
+	width: 24px;
+	height: 24px;
+}
+
+>>>.el-checkbox__inner::after {
+	margin: 3px 0 0 4px;
+	width: 4px;
+	height: 10px;
+}
+
+>>>.el-table__row .cell {
+	height: 35px;
+	line-height: 35px;
+	font-size: 18px;
+	color: #333333;
+}
+
+>>>.el-table__row .cell .el-button {
+	background: none;
+	margin: 0 20px 0 0;
+	width: 50px;
+	height: 35px;
+	font-size: 18px;
+}
+
+.el-pagination>>>.el-icon {
+	width: 38px;
+	height: 38px;
+	line-height: 38px;
+	border: 1px solid #626262;
+	border-radius: 2px;
+	font-size: 18px;
+}
+
+.el-pagination>>>.number,
+.el-pagination>>>.more {
+	margin: 0 5px;
+	width: 40px;
+	height: 40px;
+	line-height: 40px;
+	border: 1px solid #626262;
+	border-radius: 2px;
+	font-size: 18px;
+}
+
+.table-footer {
+	display: flex;
+	align-items: center;
+	justify-content: space-between;
+}
+
+.pages {
+	width: 1000px;
+	display: flex;
+	justify-content: flex-end;
+}
+
+>>>.el-pager li.active {
+	color: #FFF;
+	font-weight: bold;
+	background-color: #298DEF
+}
+
+>>>.el-dialog__title {
+	font-size: 24px;
+}
+
+>>>.el-form-item__label {
+	font-size: 20px;
+}
+
+>>>.el-dialog__body .el-input__inner {
+	font-size: 18px;
+}
+
+.dialog-footer>>>.el-button--default {
+	border: 1px solid #298DEF;
+	border-radius: 4px;
+	font-size: 24px;
+	font-family: Microsoft YaHei-3970(82674968);
+	font-weight: 400;
+	color: #298DEF;
+	height: 46px;
+	background-color: #FFFFFF;
+}
+
+.dialog-footer>>>.el-button--primary {
+	background: #298DEF;
+	border-radius: 4px;
+	font-size: 24px;
+	font-family: Microsoft YaHei-3970(82674968);
+	font-weight: 400;
+	color: #FFFFFF;
+	height: 46px;
+}
+
+.my-dialog {
+	display: flex;
+	justify-content: center;
+	align-items: center;
+}
+
+.forth-row .el-form {
+	margin-top: 10px;
+	white-space: nowrap;
+}
+
+.forth-row .el-form .el-select {
+	width: 130px;
+}
+
+.right-tip {
+	font-size: 20px;
+	font-family: Microsoft YaHei-3970(82674968);
+	font-weight: 400;
+	color: #333333;
+	line-height: 34px;
+	text-align: right;
+}
+
+.dialog-pages {
+	display: flex;
+	justify-content: center;
+}
+
+.dialog-pages>>>.el-pager li.active {
+	color: #FFF;
+	font-weight: bold;
+	background-color: #298DEF
+}
+
+.dialog-pages .el-pagination>>>.el-icon {
+	width: 30px;
+	height: 30px;
+	line-height: 30px;
+	border: 1px solid #626262;
+	border-radius: 2px;
+	font-size: 16px;
+}
+
+.dialog-pages .el-pagination>>>.number,
+.dialog-pages .el-pagination>>>.more {
+	margin: 0 3px;
+	width: 30px;
+	height: 33px;
+	line-height: 33px;
+	border: 1px solid #626262;
+	border-radius: 2px;
+	font-size: 14px;
+}
+/* dev-mgr */

+ 172 - 0
src/components/balance/Balance.vue

@@ -0,0 +1,172 @@
+<template>
+	<div>
+		<el-row>
+			<el-col :span="24" class="first-row">
+				<div class="tag">余额管理</div>
+			</el-col>
+		</el-row>
+		<el-row>
+			<el-col :span="24" class="second-row">
+				<div class="total_balance">余额共计:15898元</div>
+				<el-form :inline="true" :model="formInline" class="demo-form-inline">
+					<el-form-item label="姓名:" class="shuibiaoId">
+						<el-input v-model="formInline.user" placeholder="请输入姓名"></el-input>
+					</el-form-item>
+					<el-form-item>
+						<el-button type="primary" @click="onSubmit">查找</el-button>
+					</el-form-item>
+				</el-form>
+			</el-col>
+		</el-row>
+		<hr style="background-color: #CCCCCC;height: 1px;border: 0;">
+		<el-row>
+			<el-col :span="24" class="third-row">
+				<el-table ref="multipleTable" :data="tableData" tooltip-effect="dark" style="width: 100%"
+					@selection-change="handleSelectionChange" highlight-current-row>
+					<el-table-column align="center" label="学号" width="260">
+						<template slot-scope="scope">{{ scope.row.id }}</template>
+					</el-table-column>
+					<el-table-column prop="stuName" label="姓名" align="center" width="400"></el-table-column>
+					<el-table-column prop="balance" label="余额(元)" show-overflow-tooltip></el-table-column>
+					<el-table-column label="操作" align="center" width="280">
+						<el-button type="text" slot-scope="scope" @click="handleEdit(scope.$index, scope.row)">查看记录
+						</el-button>
+					</el-table-column>
+				</el-table>
+				<div style="margin-top: 20px" class="table-footer">
+					<div class="pages">
+						<el-pagination layout="prev, pager, next" :total="9000"></el-pagination>
+					</div>
+				</div>
+			</el-col>
+		</el-row>
+		<el-row>
+			<el-col :span="24" class="forth-row">
+				<!-- 编辑对话框 -->
+				<el-dialog title="充值记录" :visible.sync="editdialogFormVisible" width="640px" top="0vh" class="my-dialog">
+					<hr
+						style="width: 100%; position: absolute; top: 60px; left: 0px;background-color: #CCCCCC;height: 1px;border: 0;">
+					<div class="right-tip">共计:14578元</div>
+					<el-form :inline="true" :model="formInline" class="demo-form-inline">
+						<el-form-item label="筛选条件:">
+							<el-select v-model="formInline.region" placeholder="月份">
+								<el-option label="1月" value="shanghai"></el-option>
+								<el-option label="2月" value="beijing"></el-option>
+							</el-select>
+						</el-form-item>
+					</el-form>
+					<el-table ref="multipleTable" :data="tableData" tooltip-effect="dark" style="width: 100%"
+						@selection-change="handleSelectionChange" highlight-current-row>
+						<el-table-column align="center" label="时间">
+							<template slot-scope="scope">{{ scope.row.id }}</template>
+						</el-table-column>
+						<el-table-column align="center" prop="balance" label="金额" show-overflow-tooltip>
+						</el-table-column>
+					</el-table>
+					<div slot="footer" class="dialog-footer">
+						<div class="dialog-pages">
+							<el-pagination layout="prev, pager, next" :total="9000"></el-pagination>
+						</div>
+					</div>
+				</el-dialog>
+			</el-col>
+		</el-row>
+	</div>
+</template>
+
+<script>
+	export default {
+		data() {
+			return {
+				editdialogFormVisible: false,
+				delDialogVisible: false,
+				form: {
+					id: 'KB580002652',
+					drom: '18',
+					room: '118'
+				},
+				formLabelWidth: '120px',
+				formInline: {
+					user: '',
+					options: [{
+						value: '选项1',
+						label: '全部'
+					}, {
+						value: '选项2',
+						label: '黄金糕'
+					}],
+					value: '选项1'
+				},
+				tableData: [{
+					id: '20140309010103',
+					stuName: '吴亦凡',
+					balance: '188'
+				}, {
+					id: '20140309010103',
+					stuName: '吴亦凡',
+					balance: '188'
+				}, {
+					id: '20140309010103',
+					stuName: '吴亦凡',
+					balance: '188'
+				}, {
+					id: '20140309010103',
+					stuName: '吴亦凡',
+					balance: '188'
+				}, {
+					id: '20140309010103',
+					stuName: '吴亦凡',
+					balance: '188'
+				}, {
+					id: '20140309010103',
+					stuName: '吴亦凡',
+					balance: '188'
+				}, {
+					id: '20140309010103',
+					stuName: '吴亦凡',
+					balance: '188'
+				}, {
+					id: '20140309010103',
+					stuName: '吴亦凡',
+					balance: '188'
+				}],
+				multipleSelection: []
+			}
+		},
+		methods: {
+			onSubmit() {
+				console.log('submit!')
+			},
+			handleOpen(key, keyPath) {
+				console.log(key, keyPath)
+			},
+			handleClose(key, keyPath) {
+				console.log(key, keyPath)
+			},
+			toggleSelection(rows) {
+				if (rows) {
+					rows.forEach(row => {
+						this.$refs.multipleTable.toggleRowSelection(row)
+					})
+				} else {
+					this.$refs.multipleTable.clearSelection()
+				}
+			},
+			handleSelectionChange(val) {
+				this.multipleSelection = val
+			},
+			handleEdit(index, row) {
+				this.editdialogFormVisible = true
+				console.log(index, row)
+			},
+			handleDelete(index, row) {
+				this.delDialogVisible = true
+				console.log(index, row)
+			}
+		}
+	}
+</script>
+
+<style scoped>
+	@import url("Balance.css");
+</style>

+ 254 - 0
src/components/dev_mgr/DevMgr.css

@@ -0,0 +1,254 @@
+/* dev-mgr */
+.first-row {
+	display: flex;
+	justify-content: space-between;
+	align-items: center;
+	height: 50px;
+}
+
+.second-row {
+	height: 80px;
+	display: flex;
+	justify-content: space-between;
+	align-items: center;
+	padding-top: 40px;
+}
+
+.third-row {
+	margin-top: 10px;
+}
+
+.tag {
+	width: 108px;
+	height: 40px;
+	font-size: 24px;
+	font-family: Microsoft YaHei-3970(82674968);
+	font-weight: bold;
+	color: #000000;
+	line-height: 54px;
+}
+
+.right-btn .el-button {
+	margin-right: 30px;
+}
+
+.demo-form-inline {
+	display: flex;
+	justify-content: space-between;
+	align-items: center;
+}
+
+>>>.el-form-item__label {
+	height: 40px;
+	font-size: 22px;
+	font-family: Microsoft YaHei-3970(82674968);
+	font-weight: 400;
+	color: #333333;
+	line-height: 40px;
+}
+
+.shuibiaoId>>>.el-input__inner {
+	width: 240px;
+	height: 40px;
+	border: 1px solid #4D4D4D;
+	border-radius: 4px;
+	font-size: 20px;
+}
+
+.loudonghao>>>.el-input__inner {
+	width: 181px;
+	height: 40px;
+	border: 1px solid #4D4D4D;
+	border-radius: 4px;
+	font-size: 20px;
+	font-family: Microsoft YaHei-3970(82674968);
+	font-weight: 400;
+	color: #333333;
+	line-height: 54px;
+}
+
+.el-button {
+	margin: 0 60px 0 40px;
+	width: 100px;
+	height: 40px;
+	background: #298DEF;
+	border-radius: 4px;
+	font-size: 18px;
+}
+
+.btn-add {
+	margin-top: -30px;
+}
+
+.btn-add .el-button {
+	width: 100px;
+	height: 40px;
+	background: #298DEF;
+	border-radius: 4px;
+	display: flex;
+	align-items: center;
+}
+
+>>>.el-icon-add {
+	width: 22px;
+	height: 22px;
+	background: url(../../../static/images/add.png) center center no-repeat;
+	background-size: 18px 18px;
+}
+
+>>>.el-table__header {
+	font-size: 20px;
+	font-family: Microsoft YaHei-3970(82674968);
+	font-weight: 400;
+}
+
+>>>.el-table__header .cell {
+	color: #010101;
+}
+
+>>>.el-checkbox,
+>>>.el-checkbox__inner {
+	width: 24px;
+	height: 24px;
+}
+
+>>>.el-checkbox__inner::after {
+	margin: 3px 0 0 4px;
+	width: 4px;
+	height: 10px;
+}
+
+>>>.el-table__row .cell {
+	height: 35px;
+	line-height: 35px;
+	font-size: 18px;
+	color: #333333;
+}
+
+>>>.el-table__row .cell .el-button {
+	background: none;
+	margin: 0 20px 0 0;
+	width: 50px;
+	height: 35px;
+	font-size: 18px;
+}
+
+.del-btn {
+	color: #333333 !important;
+}
+
+.el-pagination>>>.el-icon {
+	width: 38px;
+	height: 38px;
+	line-height: 38px;
+	border: 1px solid #626262;
+	border-radius: 2px;
+	font-size: 18px;
+}
+
+.el-pagination>>>.number,
+.el-pagination>>>.more {
+	margin: 0 5px;
+	width: 40px;
+	height: 40px;
+	line-height: 40px;
+	border: 1px solid #626262;
+	border-radius: 2px;
+	font-size: 18px;
+}
+
+.table-footer {
+	display: flex;
+	align-items: center;
+	justify-content: space-between;
+}
+
+.pages {
+	width: 1000px;
+	display: flex;
+	justify-content: flex-end;
+}
+
+>>>.el-pager li.active {
+	color: #FFF;
+	font-weight: bold;
+	background-color: #298DEF
+}
+
+.export-table {
+	width: 200px;
+	display: flex;
+	font-size: 20px;
+	font-family: Microsoft YaHei-3970(82674968);
+	font-weight: 400;
+	color: #FFFFFF;
+	line-height: 54px;
+}
+
+>>>.el-dialog__title {
+	font-size: 24px;
+}
+
+.el-dialog .el-form {
+	margin-top: 20px;
+}
+
+>>>.el-form-item__label {
+	font-size: 20px;
+}
+
+>>>.el-dialog__body .el-input__inner {
+	font-size: 18px;
+}
+
+.dialog-footer>>>.el-button--default {
+	border: 1px solid #298DEF;
+	border-radius: 4px;
+	font-size: 24px;
+	font-family: Microsoft YaHei-3970(82674968);
+	font-weight: 400;
+	color: #298DEF;
+	height: 46px;
+	background-color: #FFFFFF;
+}
+
+.dialog-footer>>>.el-button--primary {
+	background: #298DEF;
+	border-radius: 4px;
+	font-size: 24px;
+	font-family: Microsoft YaHei-3970(82674968);
+	font-weight: 400;
+	color: #FFFFFF;
+	height: 46px;
+}
+
+.my-dialog {
+	display: flex;
+	justify-content: center;
+	align-items: center;
+}
+
+.box-icon {
+	display: flex;
+	justify-content: center;
+	margin: 20px auto;
+	background: url(../../../static/images/info.png) no-repeat;
+	background-size: 107px 107px;
+	width: 107px;
+	height: 107px;
+}
+
+.del-msg {
+	display: flex;
+	justify-content: center;
+	align-items: center;
+	font-size: 22px;
+	font-family: Microsoft YaHei-3970(82674968);
+	font-weight: 400;
+	color: #333333;
+	line-height: 54px;
+	text-align: center;
+}
+
+
+/* dev-mgr */

+ 222 - 0
src/components/dev_mgr/DevMgr.vue

@@ -0,0 +1,222 @@
+<template>
+	<div>
+		<el-row>
+			<el-col :span="24" class="first-row">
+				<div class="tag">设备管理</div>
+				<span class="right-btn">
+					<el-button type="primary" size="small">表格导入</el-button>
+					<el-link type="primary">模板下载</el-link>
+				</span>
+			</el-col>
+		</el-row>
+		<el-row>
+			<el-col :span="24" class="second-row">
+				<el-form :inline="true" :model="form_select" class="demo-form-inline">
+					<el-form-item label="水表ID:" class="shuibiaoId">
+						<el-input placeholder="请输入水表ID"></el-input>
+					</el-form-item>
+					<el-form-item>
+						<el-button type="primary" @click="onSubmit">查找</el-button>
+					</el-form-item>
+					<el-form-item label="楼栋号:" class="loudonghao">
+						<el-select v-model="form_select.value" @change="selectGet(form_select.value)">
+							<el-option v-for="item in form_select.builds" :key="item.value" :label="item.label"
+								:value="item.value">
+							</el-option>
+						</el-select>
+					</el-form-item>
+				</el-form>
+				<div class="btn-add">
+					<el-button type="primary" icon="el-icon-add">添加</el-button>
+				</div>
+			</el-col>
+		</el-row>
+		<hr style="background-color: #CCCCCC;height: 1px;border: 0;">
+		<el-row>
+			<el-col :span="24" class="third-row">
+				<el-table ref="multipleTable" :data="tableData" tooltip-effect="dark" style="width: 100%"
+					@selection-change="handleSelectionChange" highlight-current-row>
+					<el-table-column type="selection" align="center" width="105"></el-table-column>
+					<el-table-column label="水表ID" width="260">
+						<template slot-scope="scope">{{ scope.row.user_id }}</template>
+					</el-table-column>
+					<el-table-column prop="build" label="楼栋号" align="center" width="400"></el-table-column>
+					<el-table-column prop="dom" label="宿舍号" show-overflow-tooltip></el-table-column>
+					<el-table-column label="操作" align="center" width="80">
+						<el-button type="text" class="del-btn" slot-scope="scope"
+							@click="handleDelete(scope.$index, scope.row)">删除
+						</el-button>
+					</el-table-column>
+					<el-table-column width="130">
+						<el-button type="text" slot-scope="scope" @click="handleEdit(scope.$index, scope.row)">编辑
+						</el-button>
+					</el-table-column>
+				</el-table>
+				<div style="margin-top: 20px" class="table-footer">
+					<div class="pages">
+						<el-pagination layout="prev, pager, next" :total="rows_total"></el-pagination>
+					</div>
+					<div class="export-table">
+						<el-button type="primary" size="small" @click="toggleSelection">表格导出</el-button>
+					</div>
+				</div>
+			</el-col>
+		</el-row>
+		<el-row>
+			<el-col :span="24" class="forth-row">
+				<!-- 编辑对话框 -->
+				<el-dialog title="编辑" :visible.sync="editdialogFormVisible" width="500px" top="0vh" class="my-dialog">
+					<hr
+						style="width: 100%; position: absolute; top: 60px; left: 0px;background-color: #CCCCCC;height: 1px;border: 0;">
+					<el-form :model="form">
+						<el-form-item label="水表ID:" :label-width="formLabelWidth">
+							<el-input v-model="form.user_id" autocomplete="off"></el-input>
+						</el-form-item>
+						<el-form-item label="楼栋号:" :label-width="formLabelWidth">
+							<el-input v-model="form.build" autocomplete="off"></el-input>
+						</el-form-item>
+						<el-form-item label="宿舍号:" :label-width="formLabelWidth">
+							<el-input v-model="form.dom" autocomplete="off"></el-input>
+						</el-form-item>
+					</el-form>
+					<div slot="footer" class="dialog-footer">
+						<el-button @click="editdialogFormVisible = false">取 消</el-button>
+						<el-button type="primary" @click="editdialogFormVisible = false">确 定</el-button>
+					</div>
+				</el-dialog>
+				<!-- 删除对话框 -->
+				<el-dialog :visible.sync="delDialogVisible" width="500px" center top="0vh" class="my-dialog">
+					<div class="box-icon"></div>
+					<span class="del-msg">确定删除该水表信息吗?</span>
+					<span slot="footer" class="dialog-footer">
+						<el-button @click="delDialogVisible = false">取 消</el-button>
+						<el-button type="primary" @click="delDialogVisible = false">确 定</el-button>
+					</span>
+				</el-dialog>
+			</el-col>
+		</el-row>
+	</div>
+</template>
+
+<script>
+	export default {
+		data() {
+			return {
+				editdialogFormVisible: false,
+				delDialogVisible: false,
+				form: {
+					id: 'KB580002652',
+					drom: '18',
+					room: '118'
+				},
+				formLabelWidth: '120px',
+				form_select: {
+					builds: [{
+						value: 0,
+						label: '全部'
+					}],
+					value: 0
+				},
+				tableData: [],
+				rows_total: 100,
+				multipleSelection: []
+			}
+		},
+		created() {
+			this.getTableData()
+		},
+		methods: {
+			/**
+			 * 获取下拉列表选择的id
+			 * @param {Object} vId
+			 */
+			selectGet(vId) {
+				console.log(vId);
+				let obj = {};
+				obj = this.form_select.builds.find((item) => {
+					return item.value === vId; //筛选出匹配数据
+				});
+				console.log(obj);
+				// 查询该栋的信息
+				this.$axios.get('/api/HotWaters/waterlist.action?page=1&rows=8')
+					.then(res => {
+						// console.log(res.data);
+						this.$message.success('获取数据成功!');
+						this.tableData = res.data.rows
+						this.rows_total = res.data.total
+						this.form_select.builds = [{
+							value: 0,
+							label: '全部'
+						}]
+						for (var i = 0; i < res.data.rows.length; i++) {
+							this.form_select.builds.push({
+								value: res.data.rows[i].id,
+								label: res.data.rows[i].build
+							})
+						}
+					})
+					.catch(err => {
+						console.log(err);
+						this.$message.error('请求异常');
+					})
+			},
+			/**
+			 * 获取数据,填充表格变量
+			 */
+			getTableData() {
+				let param = {
+					page: 1,
+					rows: 8
+				}
+				this.$axios.get('/api/HotWaters/waterlist.action?page=1&rows=8')
+					.then(res => {
+						// console.log(res.data);
+						this.$message.success('获取数据成功!');
+						this.tableData = res.data.rows
+						this.rows_total = res.data.total
+						this.form_select.builds = [{
+							value: 0,
+							label: '全部'
+						}]
+						for (var i = 0; i < res.data.rows.length; i++) {
+							this.form_select.builds.push({
+								value: res.data.rows[i].id,
+								label: res.data.rows[i].build
+							})
+						}
+					})
+					.catch(err => {
+						console.log(err);
+						this.$message.error('请求异常');
+					})
+			},
+			onSubmit() {
+				console.log('submit!');
+			},
+			handleOpen(key, keyPath) {
+				console.log(key, keyPath);
+			},
+			handleClose(key, keyPath) {
+				console.log(key, keyPath);
+			},
+			toggleSelection() {
+				console.log();
+			},
+			handleSelectionChange(val) {
+				this.multipleSelection = val;
+			},
+			handleEdit(index, row) {
+				this.editdialogFormVisible = true
+				console.log(index, row);
+			},
+			handleDelete(index, row) {
+				this.delDialogVisible = true
+				console.log(index, row);
+			}
+		}
+	}
+</script>
+
+<style scoped>
+	@import url("DevMgr.css");
+</style>

+ 276 - 0
src/components/feilvset/feilvset.css

@@ -0,0 +1,276 @@
+/* dev-mgr */
+.first-row {
+	display: flex;
+	justify-content: space-between;
+	align-items: center;
+	height: 50px;
+}
+
+.second-row {
+	display: flex;
+	justify-content: flex-start;
+	align-items: center;
+	height: 80px;
+	padding-top: 20px;
+}
+
+.third-row {
+	margin-top: 0px;
+}
+
+.tag {
+	width: 108px;
+	height: 40px;
+	font-size: 24px;
+	font-family: Microsoft YaHei-3970(82674968);
+	font-weight: bold;
+	color: #000000;
+	line-height: 54px;
+}
+
+>>>.demo-form-inline {
+	display: flex;
+	justify-content: center;
+	align-items: center;
+	padding: 0;
+	margin: 80px 0 160px 0 !important;
+}
+
+.el-form-item {
+	margin-bottom: 0px;
+}
+
+.total_balance {
+	font-size: 22px;
+	font-family: Microsoft YaHei-3970(82674968);
+	font-weight: 400;
+	color: #333333;
+	margin-right: 30px;
+}
+
+.show-detail {
+	height: 40px;
+	font-size: 22px;
+	font-family: Microsoft YaHei-3970(82674968);
+	font-weight: 400;
+	color: #298DEF;
+	line-height: 40px;
+	margin-left: 26px;
+	cursor: pointer;
+}
+
+.lsfl {
+	padding-top: 20px;
+	height: 50px;
+	line-height: 50px;
+	font-size: 22px;
+	font-family: Microsoft YaHei-3970(82674968);
+	font-weight: bold;
+	color: #333333;
+}
+
+>>>.el-form-item__label {
+	margin: 0;
+	padding: 0;
+	font-size: 22px;
+	font-family: Microsoft YaHei-3970(82674968);
+	font-weight: 400;
+	color: #333333;
+	line-height: 40px;
+}
+
+.shuibiaoId>>>.el-input__inner {
+	width: 150px;
+	height: 40px;
+	border: 1px solid #4D4D4D;
+	border-radius: 4px;
+	font-size: 20px;
+}
+
+.el-button {
+	margin: 0 60px 0 40px;
+	width: 100px;
+	height: 40px;
+	background: #298DEF;
+	border-radius: 4px;
+	font-size: 18px;
+}
+
+>>>.el-table__header {
+	font-size: 20px;
+	font-family: Microsoft YaHei-3970(82674968);
+	font-weight: 400;
+}
+
+>>>.el-table__header .cell {
+	color: #010101;
+}
+
+>>>.el-checkbox,
+>>>.el-checkbox__inner {
+	width: 24px;
+	height: 24px;
+}
+
+>>>.el-checkbox__inner::after {
+	margin: 3px 0 0 4px;
+	width: 4px;
+	height: 10px;
+}
+
+>>>.el-table__row .cell {
+	height: 35px;
+	line-height: 35px;
+	font-size: 18px;
+	color: #333333;
+}
+
+>>>.el-table__row .cell .el-button {
+	background: none;
+	margin: 0 20px 0 0;
+	width: 50px;
+	height: 35px;
+	font-size: 18px;
+}
+
+.el-pagination>>>.el-icon {
+	width: 38px;
+	height: 38px;
+	line-height: 38px;
+	border: 1px solid #626262;
+	border-radius: 2px;
+	font-size: 18px;
+}
+
+.el-pagination>>>.number,
+.el-pagination>>>.more {
+	margin: 0 5px;
+	width: 40px;
+	height: 40px;
+	line-height: 40px;
+	border: 1px solid #626262;
+	border-radius: 2px;
+	font-size: 18px;
+}
+
+.table-footer {
+	display: flex;
+	align-items: center;
+	justify-content: space-between;
+}
+
+.pages {
+	width: 1000px;
+	display: flex;
+	justify-content: flex-end;
+}
+
+>>>.el-pager li.active {
+	color: #FFF;
+	font-weight: bold;
+	background-color: #298DEF
+}
+
+>>>.el-dialog__title {
+	font-size: 24px;
+}
+
+>>>.el-form-item__label {
+	font-size: 20px;
+}
+
+>>>.el-dialog__body .el-input__inner {
+	font-size: 18px;
+}
+
+.dialog-footer {
+	display: flex;
+	justify-content: center;
+	align-items: center;
+}
+
+.dialog-footer>>>.el-button--default {
+	border: 1px solid #298DEF;
+	border-radius: 4px;
+	font-size: 24px;
+	font-family: Microsoft YaHei-3970(82674968);
+	font-weight: 400;
+	color: #298DEF;
+	height: 46px;
+	background-color: #FFFFFF;
+}
+
+.dialog-footer>>>.el-button--primary {
+	background: #298DEF;
+	border-radius: 4px;
+	font-size: 24px;
+	font-family: Microsoft YaHei-3970(82674968);
+	font-weight: 400;
+	color: #FFFFFF;
+	height: 46px;
+}
+
+.my-dialog {
+	display: flex;
+	justify-content: center;
+	align-items: center;
+}
+
+.forth-row .el-form {
+	margin-top: 10px;
+	white-space: nowrap;
+}
+
+.forth-row .el-form .el-select {
+	width: 130px;
+}
+
+.right-tip {
+	font-size: 20px;
+	font-family: Microsoft YaHei-3970(82674968);
+	font-weight: 400;
+	color: #333333;
+	line-height: 34px;
+	text-align: right;
+}
+
+.dialog-pages {
+	display: flex;
+	justify-content: center;
+}
+
+.dialog-pages>>>.el-pager li.active {
+	color: #FFF;
+	font-weight: bold;
+	background-color: #298DEF
+}
+
+.dialog-pages .el-pagination>>>.el-icon {
+	width: 30px;
+	height: 30px;
+	line-height: 30px;
+	border: 1px solid #626262;
+	border-radius: 2px;
+	font-size: 16px;
+}
+
+.dialog-pages .el-pagination>>>.number,
+.dialog-pages .el-pagination>>>.more {
+	margin: 0 3px;
+	width: 30px;
+	height: 33px;
+	line-height: 33px;
+	border: 1px solid #626262;
+	border-radius: 2px;
+	font-size: 14px;
+}
+
+.yuan {
+	height: 40px;
+	line-height: 40px;
+	font-size: 22px;
+	font-family: Microsoft YaHei-3970(82674968);
+	font-weight: 400;
+	color: #333333;
+}
+/* dev-mgr */

+ 154 - 0
src/components/feilvset/feilvset.vue

@@ -0,0 +1,154 @@
+<template>
+	<div>
+		<el-row>
+			<el-col :span="24" class="first-row">
+				<div class="tag">费率设置</div>
+			</el-col>
+		</el-row>
+		<el-row>
+			<el-col :span="24" class="second-row">
+				<div class="total_balance">当前费率:3元/吨</div>
+				<div class="show-detail" @click="modify_feilv">修改费率</div>
+			</el-col>
+		</el-row>
+		<hr style="background-color: #CCCCCC;height: 1px;border: 0;">
+		<div class="lsfl">历史费率</div>
+		<el-row>
+			<el-col :span="24" class="third-row">
+				<el-table ref="multipleTable" :data="tableData" tooltip-effect="dark" style="width: 100%"
+					@selection-change="handleSelectionChange" highlight-current-row :row-class-name="rowClassName">
+					<el-table-column prop="id" label="序号" width="300" align="center"></el-table-column>
+					<el-table-column prop="feilv" label="费率(元/吨)" align="center"></el-table-column>
+					<el-table-column prop="dt" label="时间" align="center"></el-table-column>
+				</el-table>
+				<div style="margin-top: 20px" class="table-footer">
+					<div class="pages">
+						<el-pagination layout="prev, pager, next" :total="9000"></el-pagination>
+					</div>
+				</div>
+			</el-col>
+		</el-row>
+		<el-row>
+			<el-col :span="24" class="forth-row">
+				<!-- 修改费率对话框 -->
+				<el-dialog title="修改费率" :visible.sync="editdialogFormVisible" width="640px" top="0vh" class="my-dialog">
+					<hr
+						style="width: 100%; position: absolute; top: 60px; left: 0px;background-color: #CCCCCC;height: 1px;border: 0;">
+						<el-form :inline="true" :model="formInline" class="demo-form-inline">
+							<el-form-item label="费率:" class="shuibiaoId">
+								<el-input v-model="formInline.user" placeholder="请输入费率"></el-input>
+							</el-form-item>
+							<div class="yuan">元/吨</div>
+						</el-form>
+						<div slot="footer" class="dialog-footer">
+							<el-button @click="editdialogFormVisible = false">取 消</el-button>
+							<el-button type="primary" @click="editdialogFormVisible = false">确 定</el-button>
+						</div>
+				</el-dialog>
+			</el-col>
+		</el-row>
+	</div>
+</template>
+
+<script>
+	export default {
+		data() {
+			return {
+				editdialogFormVisible: false,
+				delDialogVisible: false,
+				form: {
+					id: 'KB580002652',
+					drom: '18',
+					room: '118'
+				},
+				formLabelWidth: '120px',
+				formInline: {
+					user: '',
+					options: [{
+						value: '选项1',
+						label: '全部'
+					}, {
+						value: '选项2',
+						label: '黄金糕'
+					}],
+					value: '选项1'
+				},
+				tableData: [{
+					id: 1,
+					feilv: 0.8,
+					dt: '2021-01-01 ~ 2021-07-01'
+				}, {
+					id: 1,
+					feilv: 0.8,
+					dt: '2021-01-01 ~ 2021-07-01'
+				}, {
+					id: 1,
+					feilv: 0.8,
+					dt: '2021-01-01 ~ 2021-07-01'
+				}, {
+					id: 1,
+					feilv: 0.8,
+					dt: '2021-01-01 ~ 2021-07-01'
+				}, {
+					id: 1,
+					feilv: 0.8,
+					dt: '2021-01-01 ~ 2021-07-01'
+				}, {
+					id: 1,
+					feilv: 0.8,
+					dt: '2021-01-01 ~ 2021-07-01'
+				}, {
+					id: 1,
+					feilv: 0.8,
+					dt: '2021-01-01 ~ 2021-07-01'
+				}],
+				multipleSelection: []
+			}
+		},
+		methods: {
+			rowClassName({
+				row,
+				rowIndex
+			}) {
+				//把每一行的索引放进row.id
+				row.id = rowIndex + 1;
+			},
+			modify_feilv() {
+				this.editdialogFormVisible = true
+			},
+			onSubmit() {
+				console.log('submit!');
+			},
+			handleOpen(key, keyPath) {
+				console.log(key, keyPath);
+			},
+			handleClose(key, keyPath) {
+				console.log(key, keyPath);
+			},
+			toggleSelection(rows) {
+				if (rows) {
+					rows.forEach(row => {
+						this.$refs.multipleTable.toggleRowSelection(row);
+					});
+				} else {
+					this.$refs.multipleTable.clearSelection();
+				}
+			},
+			handleSelectionChange(val) {
+				this.multipleSelection = val;
+			},
+			handleEdit(index, row) {
+				this.editdialogFormVisible = true
+				console.log(index, row);
+			},
+			handleDelete(index, row) {
+				this.delDialogVisible = true
+				console.log(index, row);
+			}
+		}
+	}
+</script>
+
+<style scoped>
+	@import url("feilvset.css");
+</style>

+ 193 - 0
src/components/index/Index.css

@@ -0,0 +1,193 @@
+/* menu */
+.container {
+	width: 100%;
+	height: 100%;
+}
+
+.menu-left {
+	width: 340px;
+	height: 100%;
+	background: #1D3251;
+	overflow: hidden;
+}
+
+.logo-col,
+.title-col {
+	display: flex;
+	justify-content: center;
+}
+
+.logo {
+	margin-top: 34px;
+	width: 84px;
+	height: 84px;
+	background: url(../../../static/images/logo.png) 0 0 no-repeat;
+	background-size: 84px 84px;
+}
+
+.title {
+	margin-top: 26px;
+	width: 268px;
+	height: 34px;
+	line-height: 34px;
+	font-size: 22px;
+	font-family: Microsoft YaHei-3970(82674968);
+	font-weight: bold;
+	color: #FFFFFF;
+}
+
+.menu-row {
+	margin-top: 39px;
+	width: 341px;
+}
+
+.el-menu-item {
+	padding-left: 50px !important;
+	height: 60px;
+}
+
+.el-menu-item:hover {
+	background: #134a7a !important;
+}
+
+.el-menu-item.is-active {
+	background: #298DEF !important;
+}
+
+.el-menu-item span {
+	height: 20px;
+	padding-left: 6px;
+	font-size: 20px;
+	font-family: Microsoft YaHei-3970(82674968);
+	font-weight: 400;
+	color: #FFFFFF;
+	line-height: 54px;
+}
+
+.el-menu-item .el-icon-sbgl {
+	width: 27px;
+	height: 27px;
+	background: url(../../../static/images/susheguanli.png) center center no-repeat;
+	background-size: cover;
+}
+
+.el-menu-item .el-icon-yue {
+	width: 27px;
+	height: 27px;
+	background: url(../../../static/images/yue.png) center center no-repeat;
+	background-size: cover;
+}
+
+.el-menu-item .el-icon-sjdz {
+	width: 27px;
+	height: 27px;
+	background: url(../../../static/images/duizhang.png) center center no-repeat;
+	background-size: cover;
+}
+
+.el-menu-item .el-icon-ysfx {
+	width: 27px;
+	height: 27px;
+	background: url(../../../static/images/yongshuifenxi.png) center center no-repeat;
+	background-size: cover;
+}
+
+.el-menu-item .el-icon-flsz {
+	width: 27px;
+	height: 27px;
+	background: url(../../../static/images/feilvshezhi.png) center center no-repeat;
+	background-size: cover;
+}
+.el-menu-item .el-icon-zhgl {
+	width: 27px;
+	height: 27px;
+	background: url(../../../static/images/yonghuguanli.png) center center no-repeat;
+	background-size: cover;
+}
+.diwen {
+	position: fixed;
+	left: 76px;
+	bottom: 62px;
+	width: 176px;
+	height: 145px;
+	background: url(../../../static/images/diwen.png) no-repeat;
+	background-size: 176px 145px;
+	z-index: 9999;
+}
+
+/* menu */
+
+/* top */
+.right-top {
+	display: flex;
+	justify-content: space-between;
+	width: 100%;
+	height: 90px;
+	line-height: 90px;
+	background: #FFFFFF;
+}
+
+.wecome-text {
+	width: 130px;
+	height: 90px;
+	line-height: 90px;
+	font-size: 16px;
+	font-family: Microsoft YaHei-3970(82674968);
+	font-weight: 400;
+	color: #333333;
+	padding-left: 34px;
+}
+
+.right-items {
+	display: flex;
+	justify-content: flex-end;
+	align-items: center;
+	padding-right: 51px;
+}
+
+.tx {
+	width: 54px;
+	height: 54px;
+	border-radius: 50%;
+	background: url(../../../static/images/touxiang.jpg) no-repeat;
+	background-size: 54px 54px;
+	border: 1px solid #EEEEEE;
+}
+
+.shuxian {
+	width: 1px;
+	height: 36px;
+	background: #CCCCCC;
+	margin: 0 21px 0 23px;
+}
+
+.user-name {
+	width: 80px;
+	height: 54px;
+	line-height: 54px;
+	font-size: 20px;
+	font-family: Microsoft YaHei-3970(82674968);
+	font-weight: 400;
+	color: #333333;
+	margin-left: 18px;
+	text-align: center;
+}
+
+.logout-btn {
+	width: 50px;
+	height: 90px;
+	background: url(../../../static/images/exit.png) center center no-repeat;
+	background-size: 29px 29px;
+	cursor: pointer;
+}
+/* top */
+
+/* main */
+.right-main {
+	margin: 20px 1px 0 20px;
+	padding: 20px 63px 28px 50px;
+	width: 1540px;
+	height: 790px;
+	background: #FFFFFF;
+}
+/* main */

+ 113 - 0
src/components/index/Index.vue

@@ -0,0 +1,113 @@
+<template>
+  <el-row type="flex" class="container" justify="space-between">
+    <el-col :span="4" class="menu-left">
+      <el-row>
+        <el-col :span="24" class="logo-col">
+          <div class="logo"></div>
+        </el-col>
+      </el-row>
+      <el-row>
+        <el-col :span="24" class="title-col">
+          <div class="title">南昌交通学院热水管理系统</div>
+        </el-col>
+      </el-row>
+      <el-row class="menu-row">
+        <el-col :span="24">
+          <el-menu router :default-active="$route.path" class="el-menu-vertical-demo" @open="handleOpen"
+            @close="handleClose" background-color="#1D3251" text-color="#fff" active-text-color="#fff">
+            <router-link to="devmgr">
+              <el-menu-item index="/index/devmgr">
+                <i class="el-icon-sbgl"></i>
+                <span slot="title">设备管理</span>
+              </el-menu-item>
+            </router-link>
+            <router-link to="balan">
+              <el-menu-item index="/index/balan">
+                <i class="el-icon-yue"></i>
+                <span slot="title">余额管理</span>
+              </el-menu-item>
+            </router-link>
+            <router-link to="sjdz">
+              <el-menu-item index="/index/sjdz">
+                <i class="el-icon-sjdz"></i>
+                <span slot="title">商家对账</span>
+              </el-menu-item>
+            </router-link>
+            <router-link to="ysfx">
+              <el-menu-item index="/index/ysfx">
+                <i class="el-icon-ysfx"></i>
+                <span slot="title">用水分析</span>
+              </el-menu-item>
+            </router-link>
+            <router-link to="flsz">
+              <el-menu-item index="/index/flsz">
+                <i class="el-icon-flsz"></i>
+                <span slot="title">费率设置</span>
+              </el-menu-item>
+            </router-link>
+            <router-link to="zhgl">
+              <el-menu-item index="/index/zhgl">
+                <i class="el-icon-zhgl"></i>
+                <span slot="title">账号管理</span>
+              </el-menu-item>
+            </router-link>
+          </el-menu>
+        </el-col>
+      </el-row>
+      <div class="diwen"></div>
+    </el-col>
+    <el-col :span="20">
+      <el-row>
+        <el-col :span="24" class="right-top">
+          <div class="wecome-text">您好,欢迎登陆!</div>
+          <div class="right-items">
+            <div class="tx"></div>
+            <div class="user-name">我是名称</div>
+            <div class="shuxian"></div>
+            <div class="logout-btn" @click="logout"></div>
+          </div>
+        </el-col>
+      </el-row>
+      <el-row class="right-main">
+        <el-col :span="24">
+          <router-view></router-view>
+        </el-col>
+      </el-row>
+    </el-col>
+  </el-row>
+</template>
+
+<script>
+  export default {
+    data() {
+      return {
+        formInline: {
+          user: '',
+          value: '代发地方'
+        }
+      }
+    },
+    methods: {
+      onSubmit() {
+        console.log('submit!');
+      },
+      handleOpen(key, keyPath) {
+        console.log(key, keyPath);
+      },
+      handleClose(key, keyPath) {
+        console.log(key, keyPath);
+      },
+      logout(done) {
+        this.$confirm('确认退出?')
+          .then(_ => {
+            done();
+          })
+          .catch(_ => {});
+      }
+    }
+  }
+</script>
+
+<style scoped>
+  @import url("Index.css");
+</style>

+ 105 - 0
src/components/login/Login.vue

@@ -0,0 +1,105 @@
+<template>
+	<div class="container">
+		<el-row>
+			<el-col :span="24">
+				<div id="login_form">
+					<div id="logo"></div>
+					<div id="title">南昌交通学院热水端管理后台</div>
+					<el-form label-width="0px" :model="ruleForm" status-icon :rules="rules" ref="ruleForm"
+						class="demo-ruleForm">
+						<el-form-item prop="uname">
+							<el-input placeholder="请输入账号" maxlength="16" v-model="ruleForm.uname"
+								prefix-icon="el-icon-login-user"></el-input>
+						</el-form-item>
+						<el-form-item prop="upass">
+							<el-input placeholder="请输入密码" maxlength="16" type="password" v-model="ruleForm.upass"
+								prefix-icon="el-icon-login-pass"></el-input>
+						</el-form-item>
+						<el-form-item>
+							<el-button type="primary" @click="submitForm('ruleForm')">登 陆</el-button>
+						</el-form-item>
+					</el-form>
+				</div>
+			</el-col>
+		</el-row>
+	</div>
+</template>
+
+<script>
+	export default {
+		data() {
+			var checkName = (rule, value, callback) => {
+				console.log(rule, value, callback);
+				if (!value) {
+					return callback(new Error('请输入账号'));
+				}
+				setTimeout(() => {
+					if (value.length < 6) {
+						callback(new Error('账号长度不小于6位'));
+					} else {
+						callback();
+					}
+				}, 30);
+			};
+			var validatePass = (rule, value, callback) => {
+				console.log(rule, value, callback);
+				if (value === '') {
+					callback(new Error('请输入密码'));
+				} else {
+					callback();
+				}
+			};
+			return {
+				ruleForm: {
+					uname: '',
+					upass: ''
+				},
+				rules: {
+					uname: [{
+						validator: checkName,
+						trigger: 'blur'
+					}],
+					upass: [{
+						validator: validatePass,
+						trigger: 'blur'
+					}]
+				}
+			};
+		},
+		methods: {
+			onSubmit() {
+
+			},
+			submitForm(formName) {
+				let self = this;
+				this.$refs[formName].validate((valid) => {
+					this.loading = true;
+					requset.api_login(self.form)
+						.then(resp => {
+							this.loading = false;
+							if (resp.data.code == 200) {
+								let token = resp.data.data.token.access_token;
+								//存储用户名到数据库。
+								db.set("userName", resp.data.data.user.name);
+								//发送登录成功的action
+								this.loginAction(token);
+								this.$message("验证成功!");
+								this.$router.replace('/'); //跳转到首页
+							} else {
+								this.$message({
+									showClose: true,
+									message: resp.data.msg,
+									type: 'error'
+								});
+							}
+
+						})
+				});
+			}
+		}
+	}
+</script>
+
+<style scoped>
+	@import url("./login.css");
+</style>

+ 87 - 0
src/components/login/login.css

@@ -0,0 +1,87 @@
+.container {
+	width: 100%;
+	height: 100%;
+	min-width: 1900px;
+	min-height: 1080px;
+	max-width: 1920px;
+	max-height: 1080px;
+	background: url(../../../static/images/bg.png) no-repeat;
+	background-size: 100% 100%;
+	margin-bottom: 0;
+}
+
+#login_form {
+	display: flex;
+	flex-direction: column;
+	justify-content: center;
+	align-items: center;
+	padding: 230px 0 0 1015px;
+	width: 600px;
+}
+
+#logo {
+	width: 95px;
+	height: 95px;
+	background: url(../../../static/images/logo.png) 0 0 no-repeat;
+	background-size: 95px 95px;
+}
+
+#title {
+	width: 546px;
+	height: 42px;
+	line-height: 42px;
+	font-size: 42px;
+	font-family: Microsoft YaHei;
+	font-weight: bold;
+	color: #3CADFD;
+	margin-top: 19px;
+	background: linear-gradient(180deg, #4393F8 0%, #535EF0 100%);
+	-webkit-background-clip: text;
+	-webkit-text-fill-color: transparent;
+}
+
+.demo-ruleForm {
+	margin-top: 40px;
+	width: 400px;
+}
+
+.el-form-item {
+	margin-top: 30px;
+}
+
+>>> .el-form-item input {
+	padding-left: 60px;
+	height: 58px;
+	background: #F6F7FB;
+	border-radius: 29px;
+	font-size: 18px;
+}
+
+.el-form-item>>>.el-icon-login-user{
+	margin-left: 22px;
+    background: url(../../../static/images/yonghuming.png) center no-repeat;
+    background-size: contain;
+}
+
+.el-form-item>>>.el-icon-login-pass{
+	margin-left: 22px;
+    background: url(../../../static/images/mima.png) center no-repeat;
+    background-size: contain;
+}
+
+>>>.el-form-item button {
+	margin-top: 32px;
+	width: 400px;
+	height: 58px;
+	background: linear-gradient(180deg, #4393F8, #535EF0);
+	box-shadow: 1px 4px 16px 0px rgba(84, 136, 254, 0.25);
+	border-radius: 29px;
+	font-size: 24px;
+	font-family: Microsoft YaHei-3970(82674968);
+	font-weight: 400;
+	color: #FFFFFF;
+}
+
+>>> .el-form-item__error {
+	padding-left: 60px;
+}

+ 273 - 0
src/components/shangjiaduizhang/shangjiaduizhang.css

@@ -0,0 +1,273 @@
+/* dev-mgr */
+.first-row {
+	display: flex;
+	justify-content: space-between;
+	align-items: center;
+	height: 50px;
+}
+
+.second-row {
+	display: flex;
+	justify-content: flex-start;
+	align-items: center;
+	height: 80px;
+	padding-top: 20px;
+}
+
+.third-row {
+	margin-top: 10px;
+}
+
+.tag {
+	width: 108px;
+	height: 40px;
+	font-size: 24px;
+	font-family: Microsoft YaHei-3970(82674968);
+	font-weight: bold;
+	color: #000000;
+	line-height: 54px;
+}
+
+>>>.demo-form-inline {
+	padding: 0;
+	margin: 0;
+	display: flex;
+	justify-content: space-between;
+	align-items: center;
+}
+
+.el-form-item {
+	margin-bottom: 0px;
+}
+
+.total_balance {
+	font-size: 22px;
+	font-family: Microsoft YaHei-3970(82674968);
+	font-weight: 400;
+	color: #333333;
+}
+
+.xiaofei {
+	margin: 0 85px 0 18px;
+	font-size: 22px;
+}
+
+>>>.el-form-item__label {
+	margin: 0;
+	padding: 0;
+	font-size: 22px;
+	font-family: Microsoft YaHei-3970(82674968);
+	font-weight: 400;
+	color: #333333;
+	line-height: 40px;
+}
+
+.shuibiaoId>>>.el-input__inner {
+	width: 240px;
+	height: 40px;
+	border: 1px solid #4D4D4D;
+	border-radius: 4px;
+	font-size: 20px;
+}
+
+.loudonghao>>>.el-input__inner {
+	width: 181px;
+	height: 40px;
+	border: 1px solid #4D4D4D;
+	border-radius: 4px;
+	font-size: 20px;
+	font-family: Microsoft YaHei-3970(82674968);
+	font-weight: 400;
+	color: #333333;
+	line-height: 54px;
+}
+
+.el-button {
+	margin: 0 60px 0 40px;
+	width: 100px;
+	height: 40px;
+	background: #298DEF;
+	border-radius: 4px;
+	font-size: 18px;
+}
+
+>>>.el-table__header {
+	font-size: 20px;
+	font-family: Microsoft YaHei-3970(82674968);
+	font-weight: 400;
+}
+
+>>>.el-table__header .cell {
+	color: #010101;
+}
+
+>>>.el-checkbox,
+>>>.el-checkbox__inner {
+	width: 24px;
+	height: 24px;
+}
+
+>>>.el-checkbox__inner::after {
+	margin: 3px 0 0 4px;
+	width: 4px;
+	height: 10px;
+}
+
+>>>.el-table__row .cell {
+	height: 35px;
+	line-height: 35px;
+	font-size: 18px;
+	color: #333333;
+}
+
+>>>.el-table__row .cell .el-button {
+	background: none;
+	margin: 0 20px 0 0;
+	width: 50px;
+	height: 35px;
+	font-size: 18px;
+}
+
+.el-pagination>>>.el-icon {
+	width: 38px;
+	height: 38px;
+	line-height: 38px;
+	border: 1px solid #626262;
+	border-radius: 2px;
+	font-size: 18px;
+}
+
+.el-pagination>>>.number,
+.el-pagination>>>.more {
+	margin: 0 5px;
+	width: 40px;
+	height: 40px;
+	line-height: 40px;
+	border: 1px solid #626262;
+	border-radius: 2px;
+	font-size: 18px;
+}
+
+.table-footer {
+	display: flex;
+	align-items: center;
+	justify-content: space-between;
+}
+
+.pages {
+	width: 1000px;
+	display: flex;
+	justify-content: flex-end;
+}
+
+>>>.el-pager li.active {
+	color: #FFF;
+	font-weight: bold;
+	background-color: #298DEF
+}
+
+>>>.el-dialog__title {
+	font-size: 24px;
+}
+
+>>>.el-form-item__label {
+	font-size: 20px;
+}
+
+>>>.el-dialog__body .el-input__inner {
+	font-size: 18px;
+}
+
+.dialog-footer>>>.el-button--default {
+	border: 1px solid #298DEF;
+	border-radius: 4px;
+	font-size: 24px;
+	font-family: Microsoft YaHei-3970(82674968);
+	font-weight: 400;
+	color: #298DEF;
+	height: 46px;
+	background-color: #FFFFFF;
+}
+
+.dialog-footer>>>.el-button--primary {
+	background: #298DEF;
+	border-radius: 4px;
+	font-size: 24px;
+	font-family: Microsoft YaHei-3970(82674968);
+	font-weight: 400;
+	color: #FFFFFF;
+	height: 46px;
+}
+
+.my-dialog {
+	display: flex;
+	justify-content: center;
+	align-items: center;
+}
+
+.forth-row .el-form {
+	margin-top: 10px;
+	white-space: nowrap;
+}
+
+.forth-row .el-form .el-select {
+	width: 130px;
+}
+
+.right-tip {
+	font-size: 20px;
+	font-family: Microsoft YaHei-3970(82674968);
+	font-weight: 400;
+	color: #333333;
+	line-height: 34px;
+	text-align: right;
+}
+
+.dialog-pages {
+	display: flex;
+	justify-content: center;
+}
+
+.dialog-pages>>>.el-pager li.active {
+	color: #FFF;
+	font-weight: bold;
+	background-color: #298DEF
+}
+
+.dialog-pages .el-pagination>>>.el-icon {
+	width: 30px;
+	height: 30px;
+	line-height: 30px;
+	border: 1px solid #626262;
+	border-radius: 2px;
+	font-size: 16px;
+}
+
+.dialog-pages .el-pagination>>>.number,
+.dialog-pages .el-pagination>>>.more {
+	margin: 0 3px;
+	width: 30px;
+	height: 33px;
+	line-height: 33px;
+	border: 1px solid #626262;
+	border-radius: 2px;
+	font-size: 14px;
+}
+
+.shuibiaoId>>>.el-input__inner,
+.my-select {
+	width: 170px;
+	word-spacing: normal;
+}
+
+.view-balance {
+	height: 54px;
+	font-size: 22px;
+	font-family: Microsoft YaHei-3970(82674968);
+	font-weight: 400;
+	color: #333333;
+	line-height: 54px;
+	text-indent: 2em;
+}
+
+/* dev-mgr */

+ 240 - 0
src/components/shangjiaduizhang/shangjiaduizhang.vue

@@ -0,0 +1,240 @@
+<template>
+	<div>
+		<el-row>
+			<el-col :span="24" class="first-row">
+				<div class="tag">商家对账</div>
+			</el-col>
+		</el-row>
+		<el-row>
+			<el-col :span="24" class="second-row">
+				<div class="total_balance">当日消费:14879元</div>
+				<el-link type="primary" class="xiaofei" @click="handleEdit()">年/月消费</el-link>
+				<el-form :inline="true" class="demo-form-inline">
+					<el-form-item label="楼栋号:" class="shuibiaoId">
+						<el-select v-model="drom_value" placeholder="请选择" class="my-select">
+							<el-option v-for="item in drom_options" :key="item.value" :label="item.label"
+								:value="item.value">
+							</el-option>
+						</el-select>
+					</el-form-item>
+					<el-form-item label="宿舍号:" class="shuibiaoId">
+						<el-select v-model="room_value" placeholder="请选择" class="my-select">
+							<el-option v-for="item in room_options" :key="item.value" :label="item.label"
+								:value="item.value">
+							</el-option>
+						</el-select>
+					</el-form-item>
+					<el-form-item label="日期:" class="shuibiaoId">
+						<el-select v-model="date_value" placeholder="请选择" class="my-select">
+							<el-option v-for="item in date_options" :key="item.value" :label="item.label"
+								:value="item.value">
+							</el-option>
+						</el-select>
+					</el-form-item>
+				</el-form>
+			</el-col>
+		</el-row>
+		<hr style="background-color: #CCCCCC;height: 1px;border: 0;">
+		<el-row>
+			<el-col :span="24" class="third-row">
+				<el-table ref="multipleTable" :data="tableData" tooltip-effect="dark" style="width: 100%"
+					@selection-change="handleSelectionChange" highlight-current-row>
+					<el-table-column type="selection" label="全选" align="center" width="55"></el-table-column>
+					<el-table-column label="学号" align="center">
+						<template slot-scope="scope">{{ scope.row.id }}</template>
+					</el-table-column>
+					<el-table-column prop="stuName" label="姓名" align="center" ></el-table-column>
+					<el-table-column prop="balance" label="消费金额(元)" align="center" show-overflow-tooltip></el-table-column>
+					<el-table-column prop="drom" label="楼栋号" align="center" show-overflow-tooltip></el-table-column>
+					<el-table-column prop="room" label="宿舍号" align="center" show-overflow-tooltip></el-table-column>
+					<el-table-column prop="dt" label="消费时间" align="center" show-overflow-tooltip></el-table-column>
+				</el-table>
+				<div style="margin-top: 20px" class="table-footer">
+					<div class="pages">
+						<el-pagination layout="prev, pager, next" :total="9000"></el-pagination>
+					</div>
+					<div class="export-table">
+						<el-button type="primary" size="small" @click="toggleSelection()">表格导出</el-button>
+					</div>
+				</div>
+			</el-col>
+		</el-row>
+		<el-row>
+			<el-col :span="24" class="forth-row">
+				<!-- 编辑对话框 -->
+				<el-dialog title="消费情况" :visible.sync="editdialogFormVisible" width="640px" top="0vh" class="my-dialog">
+					<hr
+						style="width: 100%; position: absolute; top: 60px; left: 0px;background-color: #CCCCCC;height: 1px;border: 0;">
+						<div class="view-balance">当日消费:{{ day_balance }}元</div>
+						<div class="view-balance">当月消费:{{ month_balance }}元</div>
+						<div class="view-balance">当年消费:{{ year_balance }}元</div>
+						<div class="view-balance"></div>
+				</el-dialog>
+			</el-col>
+		</el-row>
+	</div>
+</template>
+
+<script>
+	export default {
+		data() {
+			return {
+				day_balance: 88888,
+				month_balance: 888888,
+				year_balance: 8888888,
+				drom_options: [{
+					value: '0',
+					label: '全部'
+				},{
+					value: '1',
+					label: '1栋'
+				}, {
+					value: '2',
+					label: '2栋'
+				}, {
+					value: '3',
+					label: '3栋'
+				}, {
+					value: '4',
+					label: '4栋'
+				}],
+				room_options: [{
+					value: '0',
+					label: '全部'
+				}, {
+					value: '1102',
+					label: '1102'
+				}, {
+					value: '1103',
+					label: '1103'
+				}, {
+					value: '1104',
+					label: '1104'
+				}],
+				date_options: [{
+					value: '0',
+					label: '当天日期'
+				}, {
+					value: '2021-08-10',
+					label: '2021-08-10'
+				}, {
+					value: '2021-09-20',
+					label: '2021-09-20'
+				}, {
+					value: '2021-10-19',
+					label: '2021-10-19'
+				}],
+				drom_value: '0',
+				room_value: '0',
+				date_value: '0',
+				editdialogFormVisible: false,
+				delDialogVisible: false,
+				formLabelWidth: '120px',
+				formInline: {
+					user: '',
+					options: [{
+						value: '选项1',
+						label: '全部'
+					}, {
+						value: '选项2',
+						label: '黄金糕'
+					}],
+					value: '选项1'
+				},
+				tableData: [{
+					id: '20140309010103',
+					stuName: '吴亦凡',
+					balance: '188',
+					drom: '1栋',
+					room: '1101',
+					dt: '2021-01-01'
+				},{
+					id: '20140309010103',
+					stuName: '吴亦凡',
+					balance: '188',
+					drom: '1栋',
+					room: '1101',
+					dt: '2021-01-01'
+				},{
+					id: '20140309010103',
+					stuName: '吴亦凡',
+					balance: '188',
+					drom: '1栋',
+					room: '1101',
+					dt: '2021-01-01'
+				},{
+					id: '20140309010103',
+					stuName: '吴亦凡',
+					balance: '188',
+					drom: '1栋',
+					room: '1101',
+					dt: '2021-01-01'
+				},{
+					id: '20140309010103',
+					stuName: '吴亦凡',
+					balance: '188',
+					drom: '1栋',
+					room: '1101',
+					dt: '2021-01-01'
+				},{
+					id: '20140309010103',
+					stuName: '吴亦凡',
+					balance: '188',
+					drom: '1栋',
+					room: '1101',
+					dt: '2021-01-01'
+				},{
+					id: '20140309010103',
+					stuName: '吴亦凡',
+					balance: '188',
+					drom: '1栋',
+					room: '1101',
+					dt: '2021-01-01'
+				},{
+					id: '20140309010103',
+					stuName: '吴亦凡',
+					balance: '188',
+					drom: '1栋',
+					room: '1101',
+					dt: '2021-01-01'
+				}],
+				multipleSelection: []
+			}
+		},
+		methods: {
+			onSubmit() {
+				console.log('submit!');
+			},
+			handleOpen(key, keyPath) {
+				console.log(key, keyPath);
+			},
+			handleClose(key, keyPath) {
+				console.log(key, keyPath);
+			},
+			toggleSelection(rows) {
+				if (rows) {
+					rows.forEach(row => {
+						this.$refs.multipleTable.toggleRowSelection(row);
+					});
+				} else {
+					this.$refs.multipleTable.clearSelection();
+				}
+			},
+			handleSelectionChange(val) {
+				this.multipleSelection = val;
+			},
+			handleEdit(index, row) {
+				this.editdialogFormVisible = true
+				console.log(index, row);
+			},
+			handleDelete(index, row) {
+				this.delDialogVisible = true
+				console.log(index, row);
+			}
+		}
+	}
+</script>
+
+<style scoped>
+	@import url("shangjiaduizhang.css");
+</style>

+ 309 - 0
src/components/yongshuifenxi/yongshuifenxi.css

@@ -0,0 +1,309 @@
+/* dev-mgr */
+.first-row {
+	display: flex;
+	justify-content: space-between;
+	align-items: center;
+	height: 50px;
+}
+
+.second-row {
+	display: flex;
+	justify-content: flex-start;
+	align-items: center;
+	height: 80px;
+	padding-top: 20px;
+}
+
+.third-row {
+	margin-top: 10px;
+}
+
+.tag {
+	width: 108px;
+	height: 40px;
+	font-size: 24px;
+	font-family: Microsoft YaHei-3970(82674968);
+	font-weight: bold;
+	color: #000000;
+	line-height: 54px;
+}
+
+>>>.demo-form-inline {
+	padding: 0;
+	margin: 0;
+	display: flex;
+	align-items: center;
+}
+
+.el-form-item {
+	margin-bottom: 0px;
+}
+
+>>>.el-form-item__label {
+	margin: 0;
+	padding: 0;
+	font-size: 22px;
+	font-family: Microsoft YaHei-3970(82674968);
+	font-weight: 400;
+	color: #333333;
+	line-height: 40px;
+}
+
+.shuibiaoId>>>.el-input__inner {
+	width: 240px;
+	height: 40px;
+	border: 1px solid #4D4D4D;
+	border-radius: 4px;
+	font-size: 20px;
+}
+
+.left-margin {
+	margin-left: 30px;
+}
+
+.water-total {
+	height: 40px;
+	font-size: 22px;
+	font-family: Microsoft YaHei-3970(82674968);
+	font-weight: 400;
+	color: #333333;
+	line-height: 40px;
+	margin-left: 136px;
+}
+
+.show-detail{
+	height: 40px;
+	font-size: 22px;
+	font-family: Microsoft YaHei-3970(82674968);
+	font-weight: 400;
+	color: #298DEF;
+	line-height: 40px;
+	margin-left: 26px;
+	cursor: pointer;
+}
+
+.loudonghao>>>.el-input__inner {
+	width: 181px;
+	height: 40px;
+	border: 1px solid #4D4D4D;
+	border-radius: 4px;
+	font-size: 20px;
+	font-family: Microsoft YaHei-3970(82674968);
+	font-weight: 400;
+	color: #333333;
+	line-height: 54px;
+}
+
+.el-button {
+	margin: 0 60px 0 40px;
+	width: 100px;
+	height: 40px;
+	background: #298DEF;
+	border-radius: 4px;
+	font-size: 18px;
+}
+
+>>>.el-table__header {
+	font-size: 20px;
+	font-family: Microsoft YaHei-3970(82674968);
+	font-weight: 400;
+}
+
+>>>.el-table__header .cell {
+	color: #010101;
+}
+
+>>>.el-checkbox,
+>>>.el-checkbox__inner {
+	width: 24px;
+	height: 24px;
+}
+
+>>>.el-checkbox__inner::after {
+	margin: 3px 0 0 4px;
+	width: 4px;
+	height: 10px;
+}
+
+>>>.el-table__row .cell {
+	height: 35px;
+	line-height: 35px;
+	font-size: 18px;
+	color: #333333;
+}
+
+>>>.el-table__row .cell .el-button {
+	background: none;
+	margin: 0 20px 0 0;
+	width: 50px;
+	height: 35px;
+	font-size: 18px;
+}
+
+.el-pagination>>>.el-icon {
+	width: 38px;
+	height: 38px;
+	line-height: 38px;
+	border: 1px solid #626262;
+	border-radius: 2px;
+	font-size: 18px;
+}
+
+.el-pagination>>>.number,
+.el-pagination>>>.more {
+	margin: 0 5px;
+	width: 40px;
+	height: 40px;
+	line-height: 40px;
+	border: 1px solid #626262;
+	border-radius: 2px;
+	font-size: 18px;
+}
+
+.pages {
+	width: 100%;
+	display: flex;
+	justify-content: space-between;
+	align-items: center;
+}
+
+.tip {
+	font-size: 22px;
+	font-family: Microsoft YaHei-3970(82674968);
+	font-weight: 400;
+	color: #010101;
+}
+
+>>>.el-pager li.active {
+	color: #FFF;
+	font-weight: bold;
+	background-color: #298DEF
+}
+
+>>>.el-dialog__title {
+	font-size: 24px;
+}
+
+>>>.el-form-item__label {
+	font-size: 20px;
+}
+
+>>>.el-dialog__body .el-input__inner {
+	font-size: 18px;
+}
+
+.dialog-footer>>>.el-button--default {
+	border: 1px solid #298DEF;
+	border-radius: 4px;
+	font-size: 24px;
+	font-family: Microsoft YaHei-3970(82674968);
+	font-weight: 400;
+	color: #298DEF;
+	height: 46px;
+	background-color: #FFFFFF;
+}
+
+.dialog-footer>>>.el-button--primary {
+	background: #298DEF;
+	border-radius: 4px;
+	font-size: 24px;
+	font-family: Microsoft YaHei-3970(82674968);
+	font-weight: 400;
+	color: #FFFFFF;
+	height: 46px;
+}
+
+.my-dialog {
+	display: flex;
+	justify-content: center;
+	align-items: center;
+}
+
+.forth-row .el-form {
+	margin-top: 10px;
+	white-space: nowrap;
+}
+
+.forth-row .el-form .el-select {
+	width: 130px;
+}
+
+.right-tip {
+	width: 300px;
+	display: flex;
+	justify-content: flex-end;
+}
+
+.dmy-btn {
+	width: 70px;
+	height: 35px;
+	line-height: 35px;
+	border-radius: 2px;
+	font-size: 18px;
+	font-family: Microsoft YaHei-3970(82674968);
+	font-weight: 400;
+	margin-left: 10px;
+	background: #FFFFFF;
+	border: 1px solid #298DEF;
+	text-align: center;
+	cursor: pointer;
+}
+
+.day-btn {
+	background: #298DEF;
+	color: #FFFFFF;
+}
+
+.dialog-pages {
+	display: flex;
+	justify-content: center;
+}
+
+.dialog-pages>>>.el-pager li.active {
+	color: #FFF;
+	font-weight: bold;
+	background-color: #298DEF
+}
+
+.dialog-pages .el-pagination>>>.el-icon {
+	width: 30px;
+	height: 30px;
+	line-height: 30px;
+	border: 1px solid #626262;
+	border-radius: 2px;
+	font-size: 16px;
+}
+
+.dialog-pages .el-pagination>>>.number,
+.dialog-pages .el-pagination>>>.more {
+	margin: 0 3px;
+	width: 30px;
+	height: 33px;
+	line-height: 33px;
+	border: 1px solid #626262;
+	border-radius: 2px;
+	font-size: 14px;
+}
+
+.shuibiaoId>>>.el-input__inner,
+.my-select {
+	width: 170px;
+	word-spacing: normal;
+}
+
+.view-balance {
+	height: 54px;
+	font-size: 22px;
+	font-family: Microsoft YaHei-3970(82674968);
+	font-weight: 400;
+	color: #333333;
+	line-height: 54px;
+	text-indent: 2em;
+}
+
+.hygrometer {
+	height: 500px;
+	width: 100%;
+	border: 1px solid red;
+}
+/* dev-mgr */

+ 283 - 0
src/components/yongshuifenxi/yongshuifenxi.vue

@@ -0,0 +1,283 @@
+<template>
+	<div>
+		<el-row>
+			<el-col :span="24" class="first-row">
+				<div class="tag">用水分析</div>
+			</el-col>
+		</el-row>
+		<el-row>
+			<el-col :span="24" class="second-row">
+				<el-form :inline="true" class="demo-form-inline">
+					<el-form-item label="楼栋号:" class="shuibiaoId">
+						<el-select v-model="drom_value" placeholder="请选择" class="my-select" @change="drom_change">
+							<el-option v-for="item in drom_options" :key="item.value" :label="item.label"
+								:value="item.value">
+							</el-option>
+						</el-select>
+					</el-form-item>
+					<el-form-item label="宿舍号:" class="shuibiaoId left-margin">
+						<el-input placeholder="请输入宿舍号" v-model="room_value" clearable :disabled="room_select_disabled">
+						</el-input>
+					</el-form-item>
+				</el-form>
+				<div class="water-total">用水总量:15898吨</div>
+				<div class="show-detail" @click="show_detail">查看详情</div>
+			</el-col>
+		</el-row>
+		<hr style="background-color: #CCCCCC;height: 1px;border: 0;">
+		<el-row>
+			<el-col :span="24" class="third-row">
+				<div style="margin-top: 20px">
+					<div class="pages">
+						<div class="tip">用水统计图</div>
+						<div class="right-tip">
+							<div class="dmy-btn day-btn">日</div>
+							<div class="dmy-btn month-btn">月</div>
+							<div class="dmy-btn year-btn">年</div>
+						</div>
+					</div>
+					<!-- <div class="hygrometer" ref="hygrometer"></div> -->
+					<!--为echarts准备一个具备大小的容器dom-->
+					<div id="main" style="width: 100%; height: 500px"></div>
+				</div>
+			</el-col>
+		</el-row>
+		<el-row>
+			<el-col :span="24" class="forth-row">
+				<!-- 编辑对话框 -->
+				<el-dialog title="用水详情" :visible.sync="editdialogFormVisible" width="640px" top="0vh" class="my-dialog">
+					<hr
+						style="width: 100%; position: absolute; top: 60px; left: 0px;background-color: #CCCCCC;height: 1px;border: 0;">
+					<el-form :inline="true" :model="formInline" class="demo-form-inline">
+						<el-form-item label="姓名:" class="shuibiaoId">
+							<el-input v-model="formInline.user" placeholder="请输入姓名"></el-input>
+						</el-form-item>
+						<el-form-item>
+							<el-button type="primary" @click="onSubmit">查找</el-button>
+						</el-form-item>
+					</el-form>
+					<el-table ref="multipleTable" :data="tableData" tooltip-effect="dark" style="width: 100%"
+						@selection-change="handleSelectionChange" highlight-current-row>
+						<el-table-column align="center" label="学号">
+							<template slot-scope="scope">{{ scope.row.id }}</template>
+						</el-table-column>
+						<el-table-column align="center" prop="stuName" label="姓名" show-overflow-tooltip>
+						</el-table-column>
+						<el-table-column align="center" prop="yongShuiLiang" label="用水量" show-overflow-tooltip>
+						</el-table-column>
+					</el-table>
+					<div slot="footer" class="dialog-footer">
+						<div class="dialog-pages">
+							<el-pagination layout="prev, pager, next" :total="9000"></el-pagination>
+						</div>
+					</div>
+				</el-dialog>
+			</el-col>
+		</el-row>
+	</div>
+</template>
+
+<script>
+	export default {
+		data() {
+			return {
+				charts: "",
+				opinionData: ["3", "2", "4", "4", "5"],
+				room_select_disabled: true,
+				day_balance: 88888,
+				month_balance: 888888,
+				year_balance: 8888888,
+				drom_value: '0',
+				room_value: '1201',
+				date_value: '0',
+				drom_options: [{
+					value: '0',
+					label: '全部'
+				}, {
+					value: '1',
+					label: '1栋'
+				}, {
+					value: '2',
+					label: '2栋'
+				}, {
+					value: '3',
+					label: '3栋'
+				}, {
+					value: '4',
+					label: '4栋'
+				}],
+				date_options: [{
+					value: '0',
+					label: '当天日期'
+				}, {
+					value: '2021-08-10',
+					label: '2021-08-10'
+				}, {
+					value: '2021-09-20',
+					label: '2021-09-20'
+				}, {
+					value: '2021-10-19',
+					label: '2021-10-19'
+				}],
+				editdialogFormVisible: false,
+				delDialogVisible: false,
+				formLabelWidth: '120px',
+				formInline: {
+					user: '',
+					options: [{
+						value: '选项1',
+						label: '全部'
+					}, {
+						value: '选项2',
+						label: '黄金糕'
+					}],
+					value: '选项1'
+				},
+				tableData: [{
+					id: '20140309010103',
+					stuName: '吴亦凡',
+					yongShuiLiang: '188'
+				}, {
+					id: '20140309010103',
+					stuName: '吴亦凡',
+					yongShuiLiang: '188'
+				}, {
+					id: '20140309010103',
+					stuName: '吴亦凡',
+					yongShuiLiang: '188'
+				}, {
+					id: '20140309010103',
+					stuName: '吴亦凡',
+					yongShuiLiang: '188'
+				}, {
+					id: '20140309010103',
+					stuName: '吴亦凡',
+					yongShuiLiang: '188'
+				}, {
+					id: '20140309010103',
+					stuName: '吴亦凡',
+					yongShuiLiang: '188'
+				}, {
+					id: '20140309010103',
+					stuName: '吴亦凡',
+					yongShuiLiang: '188'
+				}, {
+					id: '20140309010103',
+					stuName: '吴亦凡',
+					yongShuiLiang: '188'
+				}],
+				multipleSelection: [],
+			}
+		},
+		mounted() {
+			var base = +new Date(1988, 9, 3);
+			var oneDay = 24 * 3600 * 1000;
+
+			var data = [
+				[base, Math.random() * 300]
+			];
+
+			for (var i = 1; i < 200; i++) {
+				var now = new Date(base += oneDay);
+				data.push([
+					[now.getFullYear(), now.getMonth() + 1, now.getDate()].join('/'),
+					Math.round((Math.random() - 0.5) * 20 + data[i - 1][1])
+				]);
+			}
+
+			var option = {
+				tooltip: {
+					trigger: 'axis',
+					position: function(pt) {
+						return [pt[0], '10%'];
+					}
+				},
+				title: {
+					left: 'center',
+					text: '大数据量面积图',
+				},
+				toolbox: {
+					feature: {
+						dataZoom: {
+							yAxisIndex: 'none'
+						},
+						restore: {},
+						saveAsImage: {}
+					}
+				},
+				xAxis: {
+					type: 'time',
+					boundaryGap: false
+				},
+				yAxis: {
+					type: 'value',
+					boundaryGap: [0, '100%']
+				},
+				dataZoom: [{
+					type: 'inside',
+					start: 0,
+					end: 20
+				}, {
+					start: 0,
+					end: 20
+				}],
+				series: [{
+					name: '模拟数据',
+					type: 'line',
+					smooth: true,
+					symbol: 'none',
+					areaStyle: {},
+					data: data
+				}]
+			};
+
+			this.$nextTick(function() {
+				this.charts = this.$echarts.init(document.getElementById('main'));
+
+				this.charts.setOption(option);
+			});
+		},
+		methods: {
+			show_detail() {
+
+			},
+			drom_change() {
+				if (this.drom_value != 0) {
+					this.room_select_disabled = false
+				} else {
+					this.room_select_disabled = true
+				}
+			},
+			onSubmit() {
+				console.log('submit!');
+			},
+			handleOpen(key, keyPath) {
+				console.log(key, keyPath);
+			},
+			handleClose(key, keyPath) {
+				console.log(key, keyPath);
+			},
+			toggleSelection(rows) {
+				if (rows) {
+					rows.forEach(row => {
+						this.$refs.multipleTable.toggleRowSelection(row);
+					});
+				} else {
+					this.$refs.multipleTable.clearSelection();
+				}
+			},
+			show_detail(index, row) {
+				this.editdialogFormVisible = true
+				console.log(index, row);
+			},
+			handleDelete(index, row) {
+				this.delDialogVisible = true
+				console.log(index, row);
+			}
+		}
+	}
+</script>
+
+<style scoped>
+	@import url("yongshuifenxi.css");
+</style>

+ 238 - 0
src/components/zhanghaoguanli/zhanghaoguanli.css

@@ -0,0 +1,238 @@
+/* dev-mgr */
+.first-row {
+	display: flex;
+	justify-content: space-between;
+	align-items: center;
+	height: 50px;
+}
+
+.second-row {
+	height: 80px;
+	display: flex;
+	justify-content: space-between;
+	align-items: center;
+	padding-top: 40px;
+}
+
+.third-row {
+	margin-top: 10px;
+}
+
+.tag {
+	width: 108px;
+	height: 40px;
+	font-size: 24px;
+	font-family: Microsoft YaHei-3970(82674968);
+	font-weight: bold;
+	color: #000000;
+	line-height: 54px;
+}
+
+.demo-form-inline {
+	display: flex;
+	justify-content: space-between;
+	align-items: center;
+}
+
+>>>.el-form-item__label {
+	height: 40px;
+	font-size: 22px;
+	font-family: Microsoft YaHei-3970(82674968);
+	font-weight: 400;
+	color: #333333;
+	line-height: 40px;
+}
+
+.shuibiaoId>>>.el-input__inner {
+	width: 240px;
+	height: 40px;
+	border: 1px solid #4D4D4D;
+	border-radius: 4px;
+	font-size: 20px;
+}
+
+.el-button {
+	margin: 0 60px 0 40px;
+	width: 100px;
+	height: 40px;
+	background: #298DEF;
+	border-radius: 4px;
+	font-size: 18px;
+}
+
+.btn-add {
+	margin-top: -30px;
+}
+
+.btn-add .el-button {
+	width: 100px;
+	height: 40px;
+	background: #298DEF;
+	border-radius: 4px;
+	display: flex;
+	align-items: center;
+}
+
+>>>.el-icon-add {
+	width: 22px;
+	height: 22px;
+	background: url(../../../static/images/add.png) center center no-repeat;
+	background-size: 18px 18px;
+}
+
+>>>.el-table__header {
+	font-size: 20px;
+	font-family: Microsoft YaHei-3970(82674968);
+	font-weight: 400;
+}
+
+>>>.el-table__header .cell {
+	color: #010101;
+}
+
+>>>.el-checkbox,
+>>>.el-checkbox__inner {
+	width: 24px;
+	height: 24px;
+}
+
+>>>.el-checkbox__inner::after {
+	margin: 3px 0 0 4px;
+	width: 4px;
+	height: 10px;
+}
+
+>>>.el-table__row .cell {
+	height: 35px;
+	line-height: 35px;
+	font-size: 18px;
+	color: #333333;
+}
+
+>>>.el-table__row .cell .el-button {
+	background: none;
+	margin: 0 20px 0 0;
+	width: 50px;
+	height: 35px;
+	font-size: 18px;
+}
+
+.del-btn {
+	color: #333333 !important;
+}
+
+.el-pagination>>>.el-icon {
+	width: 38px;
+	height: 38px;
+	line-height: 38px;
+	border: 1px solid #626262;
+	border-radius: 2px;
+	font-size: 18px;
+}
+
+.el-pagination>>>.number,
+.el-pagination>>>.more {
+	margin: 0 5px;
+	width: 40px;
+	height: 40px;
+	line-height: 40px;
+	border: 1px solid #626262;
+	border-radius: 2px;
+	font-size: 18px;
+}
+
+.table-footer {
+	display: flex;
+	align-items: center;
+	justify-content: center;
+}
+
+.pages {
+	width: 100%;
+	display: flex;
+	justify-content: center;
+}
+
+>>>.el-pager li.active {
+	color: #FFF;
+	font-weight: bold;
+	background-color: #298DEF
+}
+
+.export-table {
+	width: 200px;
+	display: flex;
+	font-size: 20px;
+	font-family: Microsoft YaHei-3970(82674968);
+	font-weight: 400;
+	color: #FFFFFF;
+	line-height: 54px;
+}
+
+>>>.el-dialog__title {
+	font-size: 24px;
+}
+
+.el-dialog .el-form {
+	margin-top: 20px;
+}
+
+>>>.el-form-item__label {
+	font-size: 20px;
+}
+
+>>>.el-dialog__body .el-input__inner {
+	font-size: 18px;
+}
+
+.dialog-footer>>>.el-button--default {
+	border: 1px solid #298DEF;
+	border-radius: 4px;
+	font-size: 24px;
+	font-family: Microsoft YaHei-3970(82674968);
+	font-weight: 400;
+	color: #298DEF;
+	height: 46px;
+	background-color: #FFFFFF;
+}
+
+.dialog-footer>>>.el-button--primary {
+	background: #298DEF;
+	border-radius: 4px;
+	font-size: 24px;
+	font-family: Microsoft YaHei-3970(82674968);
+	font-weight: 400;
+	color: #FFFFFF;
+	height: 46px;
+}
+
+.my-dialog {
+	display: flex;
+	justify-content: center;
+	align-items: center;
+}
+
+.box-icon {
+	display: flex;
+	justify-content: center;
+	margin: 20px auto;
+	background: url(../../../static/images/info.png) no-repeat;
+	background-size: 107px 107px;
+	width: 107px;
+	height: 107px;
+}
+
+.del-msg {
+	display: flex;
+	justify-content: center;
+	align-items: center;
+	font-size: 22px;
+	font-family: Microsoft YaHei-3970(82674968);
+	font-weight: 400;
+	color: #333333;
+	line-height: 54px;
+	text-align: center;
+}
+
+
+/* dev-mgr */

+ 183 - 0
src/components/zhanghaoguanli/zhanghaoguanli.vue

@@ -0,0 +1,183 @@
+<template>
+	<div>
+		<el-row>
+			<el-col :span="24" class="first-row">
+				<div class="tag">账号管理</div>
+			</el-col>
+		</el-row>
+		<el-row>
+			<el-col :span="24" class="second-row">
+				<el-form :inline="true" :model="formInline" class="demo-form-inline">
+					<el-form-item label="账号:" class="shuibiaoId">
+						<el-input v-model="formInline.user" placeholder="请输入账号"></el-input>
+					</el-form-item>
+					<el-form-item>
+						<el-button type="primary" @click="onSubmit">查找</el-button>
+					</el-form-item>
+				</el-form>
+				<div class="btn-add">
+					<el-button type="primary" icon="el-icon-add">添加</el-button>
+				</div>
+			</el-col>
+		</el-row>
+		<hr style="background-color: #CCCCCC;height: 1px;border: 0;">
+		<el-row>
+			<el-col :span="24" class="third-row">
+				<el-table ref="multipleTable" :data="tableData" tooltip-effect="dark" style="width: 100%"
+					@selection-change="handleSelectionChange" highlight-current-row>
+					<el-table-column label="昵称" align="center">
+						<template slot-scope="scope">{{ scope.row.id }}</template>
+					</el-table-column>
+					<el-table-column prop="account" label="账号" align="center"></el-table-column>
+					<el-table-column prop="pass" label="密码" show-overflow-tooltip></el-table-column>
+					<el-table-column label="操作" align="center" width="80">
+						<el-button type="text" class="del-btn" slot-scope="scope"
+							@click="handleDelete(scope.$index, scope.row)">删除
+						</el-button>
+					</el-table-column>
+					<el-table-column width="130">
+						<el-button type="text" slot-scope="scope" @click="handleEdit(scope.$index, scope.row)">编辑
+						</el-button>
+					</el-table-column>
+				</el-table>
+				<div style="margin-top: 20px" class="table-footer">
+					<div class="pages">
+						<el-pagination layout="prev, pager, next" :total="9000"></el-pagination>
+					</div>
+				</div>
+			</el-col>
+		</el-row>
+		<el-row>
+			<el-col :span="24" class="forth-row">
+				<!-- 编辑对话框 -->
+				<el-dialog title="编辑" :visible.sync="editdialogFormVisible" width="500px" top="0vh" class="my-dialog">
+					<hr style="width: 100%; position: absolute; top: 60px; left: 0px;background-color: #CCCCCC;height: 1px;border: 0;">
+					<el-form :model="form">
+						<el-form-item label="昵称" :label-width="formLabelWidth">
+							<el-input v-model="form.id" autocomplete="off"></el-input>
+						</el-form-item>
+						<el-form-item label="账号:" :label-width="formLabelWidth">
+							<el-input v-model="form.account" autocomplete="off"></el-input>
+						</el-form-item>
+						<el-form-item label="密码:" :label-width="formLabelWidth">
+							<el-input v-model="form.pass" autocomplete="off"></el-input>
+						</el-form-item>
+						<el-form-item label="确认密码:" :label-width="formLabelWidth">
+							<el-input v-model="form.pass" autocomplete="off"></el-input>
+						</el-form-item>
+					</el-form>
+					<div slot="footer" class="dialog-footer">
+						<el-button @click="editdialogFormVisible = false">取 消</el-button>
+						<el-button type="primary" @click="editdialogFormVisible = false">确 定</el-button>
+					</div>
+				</el-dialog>
+				<!-- 删除对话框 -->
+				<el-dialog :visible.sync="delDialogVisible" width="500px" center top="0vh" class="my-dialog">
+					<div class="box-icon"></div>
+					<span class="del-msg">确定删除该学生信息吗?</span>
+					<span slot="footer" class="dialog-footer">
+						<el-button @click="delDialogVisible = false">取 消</el-button>
+						<el-button type="primary" @click="delDialogVisible = false">确 定</el-button>
+					</span>
+				</el-dialog>
+			</el-col>
+		</el-row>
+	</div>
+</template>
+
+<script>
+	export default {
+		data() {
+			return {
+				editdialogFormVisible: false,
+				delDialogVisible: false,
+				form: {
+					id: '随风飘荡',
+					account: 'admi123',
+					pass: '*******'
+				},
+				formLabelWidth: '120px',
+				formInline: {
+					user: '',
+					options: [{
+						value: '选项1',
+						label: '全部'
+					}, {
+						value: '选项2',
+						label: '黄金糕'
+					}],
+					value: '选项1'
+				},
+				tableData: [{
+					id: '随风飘荡',
+					account: 'admi123',
+					pass: '*******'
+				},{
+					id: '随风飘荡',
+					account: 'admi123',
+					pass: '*******'
+				},{
+					id: '随风飘荡',
+					account: 'admi123',
+					pass: '*******'
+				},{
+					id: '随风飘荡',
+					account: 'admi123',
+					pass: '*******'
+				},{
+					id: '随风飘荡',
+					account: 'admi123',
+					pass: '*******'
+				},{
+					id: '随风飘荡',
+					account: 'admi123',
+					pass: '*******'
+				},{
+					id: '随风飘荡',
+					account: 'admi123',
+					pass: '*******'
+				},{
+					id: '随风飘荡',
+					account: 'admi123',
+					pass: '*******'
+				}],
+				multipleSelection: []
+			}
+		},
+		methods: {
+			onSubmit() {
+				console.log('submit!');
+			},
+			handleOpen(key, keyPath) {
+				console.log(key, keyPath);
+			},
+			handleClose(key, keyPath) {
+				console.log(key, keyPath);
+			},
+			toggleSelection(rows) {
+				if (rows) {
+					rows.forEach(row => {
+						this.$refs.multipleTable.toggleRowSelection(row);
+					});
+				} else {
+					this.$refs.multipleTable.clearSelection();
+				}
+			},
+			handleSelectionChange(val) {
+				this.multipleSelection = val;
+			},
+			handleEdit(index, row) {
+				this.editdialogFormVisible = true
+				console.log(index, row);
+			},
+			handleDelete(index, row) {
+				this.delDialogVisible = true
+				console.log(index, row);
+			}
+		}
+	}
+</script>
+
+<style scoped>
+	@import url("zhanghaoguanli.css");
+</style>

+ 30 - 0
src/main.js

@@ -0,0 +1,30 @@
+// 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 echarts from 'echarts'
+import axios from 'axios'; /* 引入axios进行地址访问*/
+
+
+Vue.use(ElementUI);
+
+axios.defaults.headers['Content-Type'] = 'application/x-www-form-urlencoded'
+// axios.defaults.baseURL='http://baibai.natapp1.cc'
+
+Vue.prototype.$axios = axios;
+Vue.prototype.$echarts = echarts
+
+Vue.config.productionTip = false
+
+/* eslint-disable no-new */
+new Vue({
+	el: '#app',
+	router,
+	components: {
+		App
+	},
+	template: '<App/>'
+})

+ 50 - 0
src/router/index.js

@@ -0,0 +1,50 @@
+import Vue from 'vue'
+import Router from 'vue-router'
+import Login from '@/components/login/Login'
+import Index from '@/components/index/Index'
+import DevMgr from '@/components/dev_mgr/DevMgr'
+import Balance from '@/components/balance/Balance'
+import SJDZ from '@/components/shangjiaduizhang/shangjiaduizhang'
+import YSFX from '@/components/yongshuifenxi/yongshuifenxi'
+import FLSZ from '@/components/feilvset/feilvset'
+import ZHGL from '@/components/zhanghaoguanli/zhanghaoguanli'
+
+Vue.use(Router)
+
+export default new Router({
+	routes: [{
+		path: '/',
+		name: 'Login',
+		component: Login
+	}, {
+		path: '/index',
+		name: 'index',
+		redirect:'/index/devmgr', // 设置默认打开的页面
+		component: Index,
+		children: [{
+			path: 'devmgr',
+			name: 'DevMgr',
+			component: DevMgr
+		},{
+			path: 'balan',
+			name: 'Balance',
+			component: Balance
+		},{
+			path: 'sjdz',
+			name: 'SJDZ',
+			component: SJDZ
+		},{
+			path: 'ysfx',
+			name: 'YSFX',
+			component: YSFX
+		},{
+			path: 'flsz',
+			name: 'FLSZ',
+			component: FLSZ
+		},{
+			path: 'zhgl',
+			name: 'ZHGL',
+			component: ZHGL
+		}]
+	}]
+})

+ 59 - 0
src/store/index.js

@@ -0,0 +1,59 @@
+import Vue from 'vue'
+import Vuex from 'vuex'
+
+Vue.use(Vuex);
+let store = new Vuex.Store({
+	state: {
+		loginStatus: 0,
+		token: '',
+		userName: ''
+	},
+	mutations: {
+		loginSuccess(state) {
+			state.userName = db.get('userName');
+			state.loginStatus = 1
+		},
+		loginFail(state) {
+			state.loginStatus = 0
+		},
+		updateToken(state, token) {
+
+			state.token = token;
+			db.set('token', token);
+
+		},
+		loginOut(state) {
+			db.remove('token');
+			state.loginStatus = 0;
+			state.token = "";
+		}
+	},
+	actions: {
+		loginAction({
+			commit
+		}, token) {
+
+			commit('loginSuccess');
+			commit('updateToken', token)
+		},
+		tokenAction({
+			commit
+		}, token) {
+			commit('updateToken', token)
+		},
+		loginOutAction({
+			commit
+		}) {
+			commit('loginOut')
+		}
+
+	}
+})
+// 页面刷新时,重新赋值token
+let token = db.get('token');
+if (token) {
+	store.commit('updateToken', token);
+	store.commit('loginSuccess')
+}
+
+export default store

+ 0 - 0
static/.gitkeep


二进制
static/images/add.png


二进制
static/images/bg.png


二进制
static/images/diwen.png


二进制
static/images/duizhang.png


二进制
static/images/exit.png


二进制
static/images/feilvshezhi.png


二进制
static/images/info.png


二进制
static/images/logo.png


二进制
static/images/mima.png


二进制
static/images/susheguanli.png


二进制
static/images/touxiang.jpg


二进制
static/images/yonghuguanli.png


二进制
static/images/yonghuming.png


二进制
static/images/yongshuifenxi.png


二进制
static/images/yue.png


+ 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')
+  })
+})