├── .babelrc
├── .editorconfig
├── .gitignore
├── .postcssrc.js
├── README.md
├── build
├── build.js
├── check-versions.js
├── logo.png
├── utils.js
├── vue-loader.conf.js
├── webpack.base.conf.js
├── webpack.dev.conf.js
└── webpack.prod.conf.js
├── config
├── dev.env.js
├── index.js
└── prod.env.js
├── doc
├── QQ图片20180611154752.jpg
├── QQ图片20180611154805.jpg
├── QQ图片20180612101350.jpg
├── QQ图片20180612103128.jpg
├── QQ图片20180620100027.jpg
└── b6000f27-00c4-4b75-8d84-604c29210ea6
├── index.html
├── njxs-freshs-screen
├── index.html
└── static
│ ├── css
│ ├── app.710e6e1fe66c0728254d2402be0e5fbb.css
│ ├── app.710e6e1fe66c0728254d2402be0e5fbb.css.map
│ ├── app.e13d3c7c2ee327857a0fd32a81f9317d.css
│ └── app.e13d3c7c2ee327857a0fd32a81f9317d.css.map
│ ├── fonts
│ └── element-icons.6f0a763.ttf
│ └── js
│ ├── 0.a0f7fe4067406bf88029.js
│ ├── 0.a0f7fe4067406bf88029.js.map
│ ├── 0.f94b3166b2662a4741a6.js
│ ├── 0.f94b3166b2662a4741a6.js.map
│ ├── app.0adf07eae0d6e347c043.js
│ ├── app.0adf07eae0d6e347c043.js.map
│ ├── app.af0b32dc1b03fb68c40f.js
│ ├── app.af0b32dc1b03fb68c40f.js.map
│ ├── manifest.3c80549e9a11cabbe627.js
│ ├── manifest.3c80549e9a11cabbe627.js.map
│ ├── manifest.52dbc2391c73b03390b9.js
│ ├── manifest.52dbc2391c73b03390b9.js.map
│ ├── vendor.a1a738ebcd49afe31545.js
│ └── vendor.a1a738ebcd49afe31545.js.map
├── package-lock.json
├── package.json
├── src
├── App.vue
├── assets
│ ├── css
│ │ ├── calender.css
│ │ ├── calender.less
│ │ ├── common.css
│ │ └── reset.css
│ ├── iconfont
│ │ ├── demo.css
│ │ ├── demo_fontclass.html
│ │ ├── iconfont.css
│ │ ├── iconfont.eot
│ │ ├── iconfont.js
│ │ ├── iconfont.svg
│ │ ├── iconfont.ttf
│ │ └── iconfont.woff
│ └── img
│ │ ├── border.png
│ │ ├── busy.png
│ │ ├── equal.png
│ │ ├── favicon.ico
│ │ ├── green.png
│ │ ├── hideing.png
│ │ ├── leave.png
│ │ ├── navImg.jpg
│ │ ├── noshow.png
│ │ ├── on.png
│ │ ├── quit.png
│ │ ├── red.png
│ │ ├── set.png
│ │ ├── show.png
│ │ ├── status.png
│ │ ├── statuson.png
│ │ └── time.png
├── axios
│ └── axios.js
├── components
│ ├── Header.vue
│ └── Left.vue
├── main.js
├── pages
│ ├── businessProfile
│ │ └── business.vue
│ ├── competive
│ │ └── competive.vue
│ ├── editecharts
│ │ └── editecharts.vue
│ ├── efficiency
│ │ └── efficiency.vue
│ ├── home.vue
│ ├── keyIndicators
│ │ └── key.vue
│ ├── main
│ │ └── index.vue
│ └── sales
│ │ └── sales.vue
└── router
│ └── index.js
├── static
└── .gitkeep
└── yarn.lock
/.babelrc:
--------------------------------------------------------------------------------
1 | {
2 | "presets": [
3 | ["env", {
4 | "modules": false,
5 | "targets": {
6 | "browsers": ["> 1%", "last 2 versions", "not ie <= 8"]
7 | }
8 | }],
9 | "stage-2"
10 | ],
11 | "plugins": ["transform-vue-jsx", "transform-runtime"]
12 | }
13 |
--------------------------------------------------------------------------------
/.editorconfig:
--------------------------------------------------------------------------------
1 | root = true
2 |
3 | [*]
4 | charset = utf-8
5 | indent_style = space
6 | indent_size = 2
7 | end_of_line = lf
8 | insert_final_newline = true
9 | trim_trailing_whitespace = true
10 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | .DS_Store
2 | node_modules/
3 | /dist/
4 | npm-debug.log*
5 | yarn-debug.log*
6 | yarn-error.log*
7 |
8 | # Editor directories and files
9 | .idea
10 | .history
11 | .vscode
12 | *.suo
13 | *.ntvs*
14 | *.njsproj
15 | *.sln
16 |
--------------------------------------------------------------------------------
/.postcssrc.js:
--------------------------------------------------------------------------------
1 | // https://github.com/michael-ciniawsky/postcss-load-config
2 |
3 | module.exports = {
4 | "plugins": {
5 | "postcss-import": {},
6 | "postcss-url": {},
7 | // to edit target browsers: use "browserslist" field in package.json
8 | "autoprefixer": {}
9 | }
10 | }
11 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # static
2 |
3 | > A Vue.js project
4 |
5 | ## Build Setup
6 |
7 | ``` bash
8 | # install dependencies
9 | npm install
10 |
11 | # serve with hot reload at localhost:8080
12 | npm run dev
13 |
14 | # build for production with minification
15 | npm run build
16 |
17 | # build for production and view the bundle analyzer report
18 | npm run build --report
19 | ```
20 |
21 | For a detailed explanation on how things work, check out the [guide](http://vuejs-templates.github.io/webpack/) and [docs for vue-loader](http://vuejs.github.io/vue-loader).
22 |
--------------------------------------------------------------------------------
/build/build.js:
--------------------------------------------------------------------------------
1 | 'use strict'
2 | require('./check-versions')()
3 |
4 | process.env.NODE_ENV = 'production'
5 |
6 | const ora = require('ora')
7 | const rm = require('rimraf')
8 | const path = require('path')
9 | const chalk = require('chalk')
10 | const webpack = require('webpack')
11 | const config = require('../config')
12 | const webpackConfig = require('./webpack.prod.conf')
13 |
14 | const spinner = ora('building for production...')
15 | spinner.start()
16 |
17 | rm(path.join(config.build.assetsRoot, config.build.assetsSubDirectory), err => {
18 | if (err) throw err
19 | webpack(webpackConfig, (err, stats) => {
20 | spinner.stop()
21 | if (err) throw err
22 | process.stdout.write(stats.toString({
23 | colors: true,
24 | modules: false,
25 | children: false, // If you are using ts-loader, setting this to true will make TypeScript errors show up during build.
26 | chunks: false,
27 | chunkModules: false
28 | }) + '\n\n')
29 |
30 | if (stats.hasErrors()) {
31 | console.log(chalk.red(' Build failed with errors.\n'))
32 | process.exit(1)
33 | }
34 |
35 | console.log(chalk.cyan(' Build complete.\n'))
36 | console.log(chalk.yellow(
37 | ' Tip: built files are meant to be served over an HTTP server.\n' +
38 | ' Opening index.html over file:// won\'t work.\n'
39 | ))
40 | })
41 | })
42 |
--------------------------------------------------------------------------------
/build/check-versions.js:
--------------------------------------------------------------------------------
1 | 'use strict'
2 | const chalk = require('chalk')
3 | const semver = require('semver')
4 | const packageConfig = require('../package.json')
5 | const shell = require('shelljs')
6 |
7 | function exec (cmd) {
8 | return require('child_process').execSync(cmd).toString().trim()
9 | }
10 |
11 | const versionRequirements = [
12 | {
13 | name: 'node',
14 | currentVersion: semver.clean(process.version),
15 | versionRequirement: packageConfig.engines.node
16 | }
17 | ]
18 |
19 | if (shell.which('npm')) {
20 | versionRequirements.push({
21 | name: 'npm',
22 | currentVersion: exec('npm --version'),
23 | versionRequirement: packageConfig.engines.npm
24 | })
25 | }
26 |
27 | module.exports = function () {
28 | const warnings = []
29 |
30 | for (let i = 0; i < versionRequirements.length; i++) {
31 | const mod = versionRequirements[i]
32 |
33 | if (!semver.satisfies(mod.currentVersion, mod.versionRequirement)) {
34 | warnings.push(mod.name + ': ' +
35 | chalk.red(mod.currentVersion) + ' should be ' +
36 | chalk.green(mod.versionRequirement)
37 | )
38 | }
39 | }
40 |
41 | if (warnings.length) {
42 | console.log('')
43 | console.log(chalk.yellow('To use this template, you must update following to modules:'))
44 | console.log()
45 |
46 | for (let i = 0; i < warnings.length; i++) {
47 | const warning = warnings[i]
48 | console.log(' ' + warning)
49 | }
50 |
51 | console.log()
52 | process.exit(1)
53 | }
54 | }
55 |
--------------------------------------------------------------------------------
/build/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dengzeyuan/front-njxs-screen/f4961f2d802bf44974cbfe89016d454477afbcd7/build/logo.png
--------------------------------------------------------------------------------
/build/utils.js:
--------------------------------------------------------------------------------
1 | 'use strict'
2 | const path = require('path')
3 | const config = require('../config')
4 | const ExtractTextPlugin = require('extract-text-webpack-plugin')
5 | const packageConfig = require('../package.json')
6 |
7 | exports.assetsPath = function (_path) {
8 | const assetsSubDirectory = process.env.NODE_ENV === 'production'
9 | ? config.build.assetsSubDirectory
10 | : config.dev.assetsSubDirectory
11 |
12 | return path.posix.join(assetsSubDirectory, _path)
13 | }
14 |
15 | exports.cssLoaders = function (options) {
16 | options = options || {}
17 |
18 | const cssLoader = {
19 | loader: 'css-loader',
20 | options: {
21 | sourceMap: options.sourceMap
22 | }
23 | }
24 |
25 | const postcssLoader = {
26 | loader: 'postcss-loader',
27 | options: {
28 | sourceMap: options.sourceMap
29 | }
30 | }
31 |
32 | // generate loader string to be used with extract text plugin
33 | function generateLoaders (loader, loaderOptions) {
34 | const loaders = options.usePostCSS ? [cssLoader, postcssLoader] : [cssLoader]
35 |
36 | if (loader) {
37 | loaders.push({
38 | loader: loader + '-loader',
39 | options: Object.assign({}, loaderOptions, {
40 | sourceMap: options.sourceMap
41 | })
42 | })
43 | }
44 |
45 | // Extract CSS when that option is specified
46 | // (which is the case during production build)
47 | if (options.extract) {
48 | return ExtractTextPlugin.extract({
49 | use: loaders,
50 | fallback: 'vue-style-loader'
51 | })
52 | } else {
53 | return ['vue-style-loader'].concat(loaders)
54 | }
55 | }
56 |
57 | // https://vue-loader.vuejs.org/en/configurations/extract-css.html
58 | return {
59 | css: generateLoaders(),
60 | postcss: generateLoaders(),
61 | less: generateLoaders('less'),
62 | sass: generateLoaders('sass', { indentedSyntax: true }),
63 | scss: generateLoaders('sass'),
64 | stylus: generateLoaders('stylus'),
65 | styl: generateLoaders('stylus')
66 | }
67 | }
68 |
69 | // Generate loaders for standalone style files (outside of .vue)
70 | exports.styleLoaders = function (options) {
71 | const output = []
72 | const loaders = exports.cssLoaders(options)
73 |
74 | for (const extension in loaders) {
75 | const loader = loaders[extension]
76 | output.push({
77 | test: new RegExp('\\.' + extension + '$'),
78 | use: loader
79 | })
80 | }
81 |
82 | return output
83 | }
84 |
85 | exports.createNotifierCallback = () => {
86 | const notifier = require('node-notifier')
87 |
88 | return (severity, errors) => {
89 | if (severity !== 'error') return
90 |
91 | const error = errors[0]
92 | const filename = error.file && error.file.split('!').pop()
93 |
94 | notifier.notify({
95 | title: packageConfig.name,
96 | message: severity + ': ' + error.name,
97 | subtitle: filename || '',
98 | icon: path.join(__dirname, 'logo.png')
99 | })
100 | }
101 | }
102 |
--------------------------------------------------------------------------------
/build/vue-loader.conf.js:
--------------------------------------------------------------------------------
1 | 'use strict'
2 | const utils = require('./utils')
3 | const config = require('../config')
4 | const isProduction = process.env.NODE_ENV === 'production'
5 | const sourceMapEnabled = isProduction
6 | ? config.build.productionSourceMap
7 | : config.dev.cssSourceMap
8 |
9 | module.exports = {
10 | loaders: utils.cssLoaders({
11 | sourceMap: sourceMapEnabled,
12 | extract: isProduction
13 | }),
14 | cssSourceMap: sourceMapEnabled,
15 | cacheBusting: config.dev.cacheBusting,
16 | transformToRequire: {
17 | video: ['src', 'poster'],
18 | source: 'src',
19 | img: 'src',
20 | image: 'xlink:href'
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/build/webpack.base.conf.js:
--------------------------------------------------------------------------------
1 | 'use strict'
2 | const path = require('path')
3 | const utils = require('./utils')
4 | const config = require('../config')
5 | const vueLoaderConfig = require('./vue-loader.conf')
6 |
7 | function resolve (dir) {
8 | return path.join(__dirname, '..', dir)
9 | }
10 |
11 |
12 |
13 | module.exports = {
14 | context: path.resolve(__dirname, '../'),
15 | entry: {
16 | app: './src/main.js'
17 | },
18 | output: {
19 | path: config.build.assetsRoot,
20 | filename: '[name].js',
21 | publicPath: process.env.NODE_ENV === 'production'
22 | ? config.build.assetsPublicPath
23 | : config.dev.assetsPublicPath
24 | },
25 | resolve: {
26 | extensions: ['.js', '.vue', '.json'],
27 | alias: {
28 | 'vue$': 'vue/dist/vue.esm.js',
29 | '@': resolve('src'),
30 | }
31 | },
32 | module: {
33 | rules: [
34 | {
35 | test: /\.vue$/,
36 | loader: 'vue-loader',
37 | options: vueLoaderConfig
38 | },
39 | {
40 | test: /\.js$/,
41 | loader: 'babel-loader',
42 | include: [resolve('src'), resolve('test'), resolve('node_modules/webpack-dev-server/client')]
43 | },
44 | {
45 | test: /\.(png|jpe?g|gif|svg)(\?.*)?$/,
46 | loader: 'url-loader',
47 | options: {
48 | limit: 10000,
49 | name: utils.assetsPath('img/[name].[hash:7].[ext]')
50 | }
51 | },
52 | {
53 | test: /\.(mp4|webm|ogg|mp3|wav|flac|aac)(\?.*)?$/,
54 | loader: 'url-loader',
55 | options: {
56 | limit: 10000,
57 | name: utils.assetsPath('media/[name].[hash:7].[ext]')
58 | }
59 | },
60 | {
61 | test: /\.(woff2?|eot|ttf|otf)(\?.*)?$/,
62 | loader: 'url-loader',
63 | options: {
64 | limit: 10000,
65 | name: utils.assetsPath('fonts/[name].[hash:7].[ext]')
66 | }
67 | }
68 | ]
69 | },
70 | node: {
71 | // prevent webpack from injecting useless setImmediate polyfill because Vue
72 | // source contains it (although only uses it if it's native).
73 | setImmediate: false,
74 | // prevent webpack from injecting mocks to Node native modules
75 | // that does not make sense for the client
76 | dgram: 'empty',
77 | fs: 'empty',
78 | net: 'empty',
79 | tls: 'empty',
80 | child_process: 'empty'
81 | }
82 | }
83 |
--------------------------------------------------------------------------------
/build/webpack.dev.conf.js:
--------------------------------------------------------------------------------
1 | 'use strict'
2 | const utils = require('./utils')
3 | const webpack = require('webpack')
4 | const config = require('../config')
5 | const merge = require('webpack-merge')
6 | const path = require('path')
7 | const baseWebpackConfig = require('./webpack.base.conf')
8 | const CopyWebpackPlugin = require('copy-webpack-plugin')
9 | const HtmlWebpackPlugin = require('html-webpack-plugin')
10 | const FriendlyErrorsPlugin = require('friendly-errors-webpack-plugin')
11 | const portfinder = require('portfinder')
12 |
13 | const HOST = process.env.HOST
14 | const PORT = process.env.PORT && Number(process.env.PORT)
15 |
16 | const devWebpackConfig = merge(baseWebpackConfig, {
17 | module: {
18 | rules: utils.styleLoaders({ sourceMap: config.dev.cssSourceMap, usePostCSS: true })
19 | },
20 | // cheap-module-eval-source-map is faster for development
21 | devtool: config.dev.devtool,
22 |
23 | // these devServer options should be customized in /config/index.js
24 | devServer: {
25 | clientLogLevel: 'warning',
26 | historyApiFallback: {
27 | rewrites: [
28 | { from: /.*/, to: path.posix.join(config.dev.assetsPublicPath, 'index.html') },
29 | ],
30 | },
31 | hot: true,
32 | contentBase: false, // since we use CopyWebpackPlugin.
33 | compress: true,
34 | host: HOST || config.dev.host,
35 | port: PORT || config.dev.port,
36 | open: config.dev.autoOpenBrowser,
37 | overlay: config.dev.errorOverlay
38 | ? { warnings: false, errors: true }
39 | : false,
40 | publicPath: config.dev.assetsPublicPath,
41 | proxy: config.dev.proxyTable,
42 | quiet: true, // necessary for FriendlyErrorsPlugin
43 | watchOptions: {
44 | poll: config.dev.poll,
45 | }
46 | },
47 | plugins: [
48 | new webpack.DefinePlugin({
49 | 'process.env': require('../config/dev.env')
50 | }),
51 | new webpack.HotModuleReplacementPlugin(),
52 | new webpack.NamedModulesPlugin(), // HMR shows correct file names in console on update.
53 | new webpack.NoEmitOnErrorsPlugin(),
54 | // https://github.com/ampedandwired/html-webpack-plugin
55 | new HtmlWebpackPlugin({
56 | filename: 'index.html',
57 | template: 'index.html',
58 | inject: true
59 | }),
60 | // copy custom static assets
61 | new CopyWebpackPlugin([
62 | {
63 | from: path.resolve(__dirname, '../static'),
64 | to: config.dev.assetsSubDirectory,
65 | ignore: ['.*']
66 | }
67 | ])
68 | ]
69 | })
70 |
71 | module.exports = new Promise((resolve, reject) => {
72 | portfinder.basePort = process.env.PORT || config.dev.port
73 | portfinder.getPort((err, port) => {
74 | if (err) {
75 | reject(err)
76 | } else {
77 | // publish the new Port, necessary for e2e tests
78 | process.env.PORT = port
79 | // add port to devServer config
80 | devWebpackConfig.devServer.port = port
81 |
82 | // Add FriendlyErrorsPlugin
83 | devWebpackConfig.plugins.push(new FriendlyErrorsPlugin({
84 | compilationSuccessInfo: {
85 | messages: [`Your application is running here: http://${devWebpackConfig.devServer.host}:${port}`],
86 | },
87 | onErrors: config.dev.notifyOnErrors
88 | ? utils.createNotifierCallback()
89 | : undefined
90 | }))
91 |
92 | resolve(devWebpackConfig)
93 | }
94 | })
95 | })
96 |
--------------------------------------------------------------------------------
/build/webpack.prod.conf.js:
--------------------------------------------------------------------------------
1 | 'use strict'
2 | const path = require('path')
3 | const utils = require('./utils')
4 | const webpack = require('webpack')
5 | const config = require('../config')
6 | const merge = require('webpack-merge')
7 | const baseWebpackConfig = require('./webpack.base.conf')
8 | const CopyWebpackPlugin = require('copy-webpack-plugin')
9 | const HtmlWebpackPlugin = require('html-webpack-plugin')
10 | const ExtractTextPlugin = require('extract-text-webpack-plugin')
11 | const OptimizeCSSPlugin = require('optimize-css-assets-webpack-plugin')
12 | const UglifyJsPlugin = require('uglifyjs-webpack-plugin')
13 |
14 | const env = require('../config/prod.env')
15 |
16 | const webpackConfig = merge(baseWebpackConfig, {
17 | module: {
18 | rules: utils.styleLoaders({
19 | sourceMap: config.build.productionSourceMap,
20 | extract: true,
21 | usePostCSS: true
22 | })
23 | },
24 | devtool: config.build.productionSourceMap ? config.build.devtool : false,
25 | output: {
26 | path: config.build.assetsRoot,
27 | filename: utils.assetsPath('js/[name].[chunkhash].js'),
28 | chunkFilename: utils.assetsPath('js/[id].[chunkhash].js')
29 | },
30 | plugins: [
31 | // http://vuejs.github.io/vue-loader/en/workflow/production.html
32 | new webpack.DefinePlugin({
33 | 'process.env': env
34 | }),
35 | new UglifyJsPlugin({
36 | uglifyOptions: {
37 | compress: {
38 | warnings: false
39 | }
40 | },
41 | sourceMap: config.build.productionSourceMap,
42 | parallel: true
43 | }),
44 | // extract css into its own file
45 | new ExtractTextPlugin({
46 | filename: utils.assetsPath('css/[name].[contenthash].css'),
47 | // Setting the following option to `false` will not extract CSS from codesplit chunks.
48 | // Their CSS will instead be inserted dynamically with style-loader when the codesplit chunk has been loaded by webpack.
49 | // It's currently set to `true` because we are seeing that sourcemaps are included in the codesplit bundle as well when it's `false`,
50 | // increasing file size: https://github.com/vuejs-templates/webpack/issues/1110
51 | allChunks: true,
52 | }),
53 | // Compress extracted CSS. We are using this plugin so that possible
54 | // duplicated CSS from different components can be deduped.
55 | new OptimizeCSSPlugin({
56 | cssProcessorOptions: config.build.productionSourceMap
57 | ? { safe: true, map: { inline: false } }
58 | : { safe: true }
59 | }),
60 | // generate dist index.html with correct asset hash for caching.
61 | // you can customize output by editing /index.html
62 | // see https://github.com/ampedandwired/html-webpack-plugin
63 | new HtmlWebpackPlugin({
64 | filename: config.build.index,
65 | template: 'index.html',
66 | inject: true,
67 | minify: {
68 | removeComments: true,
69 | collapseWhitespace: true,
70 | removeAttributeQuotes: true
71 | // more options:
72 | // https://github.com/kangax/html-minifier#options-quick-reference
73 | },
74 | // necessary to consistently work with multiple chunks via CommonsChunkPlugin
75 | chunksSortMode: 'dependency'
76 | }),
77 | // keep module.id stable when vendor modules does not change
78 | new webpack.HashedModuleIdsPlugin(),
79 | // enable scope hoisting
80 | new webpack.optimize.ModuleConcatenationPlugin(),
81 | // split vendor js into its own file
82 | new webpack.optimize.CommonsChunkPlugin({
83 | name: 'vendor',
84 | minChunks (module) {
85 | // any required modules inside node_modules are extracted to vendor
86 | return (
87 | module.resource &&
88 | /\.js$/.test(module.resource) &&
89 | module.resource.indexOf(
90 | path.join(__dirname, '../node_modules')
91 | ) === 0
92 | )
93 | }
94 | }),
95 | // extract webpack runtime and module manifest to its own file in order to
96 | // prevent vendor hash from being updated whenever app bundle is updated
97 | new webpack.optimize.CommonsChunkPlugin({
98 | name: 'manifest',
99 | minChunks: Infinity
100 | }),
101 | // This instance extracts shared chunks from code splitted chunks and bundles them
102 | // in a separate chunk, similar to the vendor chunk
103 | // see: https://webpack.js.org/plugins/commons-chunk-plugin/#extra-async-commons-chunk
104 | new webpack.optimize.CommonsChunkPlugin({
105 | name: 'app',
106 | async: 'vendor-async',
107 | children: true,
108 | minChunks: 3
109 | }),
110 |
111 | // copy custom static assets
112 | new CopyWebpackPlugin([
113 | {
114 | from: path.resolve(__dirname, '../static'),
115 | to: config.build.assetsSubDirectory,
116 | ignore: ['.*']
117 | }
118 | ])
119 | ]
120 | })
121 |
122 | if (config.build.productionGzip) {
123 | const CompressionWebpackPlugin = require('compression-webpack-plugin')
124 |
125 | webpackConfig.plugins.push(
126 | new CompressionWebpackPlugin({
127 | asset: '[path].gz[query]',
128 | algorithm: 'gzip',
129 | test: new RegExp(
130 | '\\.(' +
131 | config.build.productionGzipExtensions.join('|') +
132 | ')$'
133 | ),
134 | threshold: 10240,
135 | minRatio: 0.8
136 | })
137 | )
138 | }
139 |
140 | if (config.build.bundleAnalyzerReport) {
141 | const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin
142 | webpackConfig.plugins.push(new BundleAnalyzerPlugin())
143 | }
144 |
145 | module.exports = webpackConfig
146 |
--------------------------------------------------------------------------------
/config/dev.env.js:
--------------------------------------------------------------------------------
1 | 'use strict'
2 | const merge = require('webpack-merge')
3 | const prodEnv = require('./prod.env')
4 |
5 | module.exports = merge(prodEnv, {
6 | NODE_ENV: '"development"'
7 | })
8 |
--------------------------------------------------------------------------------
/config/index.js:
--------------------------------------------------------------------------------
1 | 'use strict'
2 | // Template version: 1.3.1
3 | // see http://vuejs-templates.github.io/webpack for documentation.
4 |
5 | const path = require('path')
6 |
7 | module.exports = {
8 | dev: {
9 |
10 | // Paths
11 | assetsSubDirectory: 'static',
12 | assetsPublicPath: '/',
13 | proxyTable: {},
14 |
15 | // Various Dev Server settings
16 | host: '0.0.0.0', // can be overwritten by process.env.HOST
17 | port: 8081, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined
18 | autoOpenBrowser: true,
19 | errorOverlay: true,
20 | notifyOnErrors: true,
21 | poll: false, // https://webpack.js.org/configuration/dev-server/#devserver-watchoptions-
22 |
23 |
24 | /**
25 | * Source Maps
26 | */
27 |
28 | // https://webpack.js.org/configuration/devtool/#development
29 | devtool: 'cheap-module-eval-source-map',
30 |
31 | // If you have problems debugging vue-files in devtools,
32 | // set this to false - it *may* help
33 | // https://vue-loader.vuejs.org/en/options.html#cachebusting
34 | cacheBusting: true,
35 |
36 | cssSourceMap: true
37 | },
38 |
39 | build: {
40 | // Template for index.html
41 | index: path.resolve(__dirname, '../njxs-freshs-screen/index.html'),
42 |
43 | // Paths
44 | assetsRoot: path.resolve(__dirname, '../njxs-freshs-screen'),
45 | assetsSubDirectory: 'static',
46 | assetsPublicPath: '/njxs-freshs-screen/',
47 |
48 | /**
49 | * Source Maps
50 | */
51 |
52 | productionSourceMap: true,
53 | // https://webpack.js.org/configuration/devtool/#production
54 | devtool: '#source-map',
55 |
56 | // Gzip off by default as many popular static hosts such as
57 | // Surge or Netlify already gzip all static assets for you.
58 | // Before setting to `true`, make sure to:
59 | // npm install --save-dev compression-webpack-plugin
60 | productionGzip: false,
61 | productionGzipExtensions: ['js', 'css'],
62 |
63 | // Run the build command with an extra argument to
64 | // View the bundle analyzer report after build finishes:
65 | // `npm run build --report`
66 | // Set to `true` or `false` to always turn it on or off
67 | bundleAnalyzerReport: process.env.npm_config_report
68 | }
69 | }
70 |
--------------------------------------------------------------------------------
/config/prod.env.js:
--------------------------------------------------------------------------------
1 | 'use strict'
2 | module.exports = {
3 | NODE_ENV: '"production"'
4 | }
5 |
--------------------------------------------------------------------------------
/doc/QQ图片20180611154752.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dengzeyuan/front-njxs-screen/f4961f2d802bf44974cbfe89016d454477afbcd7/doc/QQ图片20180611154752.jpg
--------------------------------------------------------------------------------
/doc/QQ图片20180611154805.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dengzeyuan/front-njxs-screen/f4961f2d802bf44974cbfe89016d454477afbcd7/doc/QQ图片20180611154805.jpg
--------------------------------------------------------------------------------
/doc/QQ图片20180612101350.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dengzeyuan/front-njxs-screen/f4961f2d802bf44974cbfe89016d454477afbcd7/doc/QQ图片20180612101350.jpg
--------------------------------------------------------------------------------
/doc/QQ图片20180612103128.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dengzeyuan/front-njxs-screen/f4961f2d802bf44974cbfe89016d454477afbcd7/doc/QQ图片20180612103128.jpg
--------------------------------------------------------------------------------
/doc/QQ图片20180620100027.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dengzeyuan/front-njxs-screen/f4961f2d802bf44974cbfe89016d454477afbcd7/doc/QQ图片20180620100027.jpg
--------------------------------------------------------------------------------
/doc/b6000f27-00c4-4b75-8d84-604c29210ea6:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dengzeyuan/front-njxs-screen/f4961f2d802bf44974cbfe89016d454477afbcd7/doc/b6000f27-00c4-4b75-8d84-604c29210ea6
--------------------------------------------------------------------------------
/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | 宁家鲜生
8 |
9 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/njxs-freshs-screen/index.html:
--------------------------------------------------------------------------------
1 | 宁家鲜生
--------------------------------------------------------------------------------
/njxs-freshs-screen/static/fonts/element-icons.6f0a763.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dengzeyuan/front-njxs-screen/f4961f2d802bf44974cbfe89016d454477afbcd7/njxs-freshs-screen/static/fonts/element-icons.6f0a763.ttf
--------------------------------------------------------------------------------
/njxs-freshs-screen/static/js/app.0adf07eae0d6e347c043.js:
--------------------------------------------------------------------------------
1 | webpackJsonp([2],{JIp0:function(e,t){},NHnr:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=n("7+uW"),i={render:function(){var e=this.$createElement,t=this._self._c||e;return t("div",{attrs:{id:"app"}},[t("router-view")],1)},staticRenderFns:[]},r=n("VU/8")({name:"App"},i,!1,null,null,null).exports,l=n("/ocq"),s={data:function(){return{screenmin:window.innerWidth<756,screenwidth:0,headertitltstyle:{fontSize:Math.ceil(36*this.baseScreenRate)+"px",height:"100%"},headerheight:{height:Math.ceil(64*this.baseScreenRate)+"px",lineHeight:Math.ceil(64*this.baseScreenRate)+"px"},trigonleft:{float:"left",borderTop:Math.ceil(64*this.baseScreenRate)+"px solid rgba(40,39,55,1)",borderBottom:"0px"},trigonright:{float:"right",borderBottom:Math.ceil(64*this.baseScreenRate)+"px solid #1a1a29",borderTop:"0px"},timechange:{width:Math.ceil(128*this.baseScreenRate)+"px",height:Math.ceil(35*this.baseScreenRate)+"px"},options:[{value:"WEEK",label:"the week"},{value:"MONTH",label:"the month"},{value:"QUARTER",label:"the quarter"}],value:"WEEK"}},components:{}},o={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"container"},[e.screenmin?e._e():n("div",{staticClass:"header",style:e.headerheight},[n("span",{style:e.headertitltstyle},[n("span",{staticClass:"trigon",style:e.trigonleft}),e._v("宁家鲜生运营数据展示"),n("span",{staticClass:"trigon",style:e.trigonright})]),e._v(" "),n("el-select",{staticClass:"timechange",attrs:{size:"mini",name:"timechange"},model:{value:e.value,callback:function(t){e.value=t},expression:"value"}},e._l(e.options,function(e){return n("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}))],1),e._v(" "),e.screenmin?n("div",{staticClass:"header",style:e.headerheight},[e._v("\n 宁家鲜生运营数据展示\n ")]):e._e(),e._v(" "),n("div",{staticClass:"container-home"},[e.screenmin?n("div",{staticClass:"minitimeRange"},[n("el-select",{staticClass:"timechange",attrs:{size:"mini",name:"timechange"},model:{value:e.value,callback:function(t){e.value=t},expression:"value"}},e._l(e.options,function(e){return n("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}))],1):e._e(),e._v(" "),n("router-view",{attrs:{timeRange:e.value}})],1)])},staticRenderFns:[]};var c=n("VU/8")(s,o,!1,function(e){n("ppfC"),n("JIp0")},"data-v-047dba2b",null).exports;a.default.use(l.a);var u=new l.a({routes:[{path:"/",name:"Home",component:c,redirect:"/index",children:[{path:"/index",name:"index",component:function(e){return n.e(0).then(function(){var t=[n("uUni")];e.apply(null,t)}.bind(this)).catch(n.oe)}},{path:"/index/:id",name:"index",component:function(e){return n.e(0).then(function(){var t=[n("uUni")];e.apply(null,t)}.bind(this)).catch(n.oe)}}]}]}),h=n("zL8q"),p=n.n(h),d=(n("tvR6"),n("//Fk")),v=n.n(d),f=n("mtWM"),m=n.n(f),b=(n("mw3O"),m.a.create({headers:{}}));b.interceptors.request.use(function(e){return"post"===e.method&&(e.data=e.data),e},function(e){return _.toast("错误的传参","fail"),v.a.reject(e)});var g=b,w=n("XLwt"),x=n.n(w),y=n("vwbq");if(a.default.config.productionTip=!1,a.default.prototype.axios=g,a.default.prototype.$echarts=x.a,a.default.prototype.$d3=y,a.default.use(p.a),window.innerWidth>756){var R=window.innerWidth/1920,C=window.innerHeight/1080,S=R>C?C:R;a.default.prototype.baseScreenRate=S}else{R=window.innerWidth/750;document.documentElement.style.fontSize=100*R+"px",a.default.prototype.baseScreenRate=R}new a.default({el:"#app",router:u,components:{App:r},template:""})},ppfC:function(e,t){},tvR6:function(e,t){}},["NHnr"]);
2 | //# sourceMappingURL=app.0adf07eae0d6e347c043.js.map
--------------------------------------------------------------------------------
/njxs-freshs-screen/static/js/app.0adf07eae0d6e347c043.js.map:
--------------------------------------------------------------------------------
1 | {"version":3,"sources":["webpack:///./src/App.vue?0178","webpack:///./src/App.vue","webpack:///src/App.vue","webpack:///src/pages/home.vue","webpack:///./src/pages/home.vue?83fe","webpack:///./src/pages/home.vue","webpack:///./src/router/index.js","webpack:///./src/axios/axios.js","webpack:///./src/main.js"],"names":["selectortype_template_index_0_src_App","render","_h","this","$createElement","_c","_self","attrs","id","staticRenderFns","src_App","__webpack_require__","normalizeComponent","name","home","data","screenmin","window","innerWidth","screenwidth","headertitltstyle","fontSize","Math","ceil","baseScreenRate","height","headerheight","lineHeight","trigonleft","float","borderTop","borderBottom","trigonright","timechange","width","options","value","label","components","pages_home","_vm","staticClass","_e","style","_v","size","model","callback","$$v","expression","_l","item","key","timeRange","src_pages_home","home_normalizeComponent","ssrContext","vue_esm","use","vue_router_esm","router","routes","path","component","redirect","children","resolve","e","then","__WEBPACK_AMD_REQUIRE_ARRAY__","bind","catch","oe","$axios","axios_default","a","create","headers","interceptors","request","config","method","error","_","toast","promise_default","reject","axios_axios","productionTip","prototype","axios","$echarts","echarts_default","$d3","d3","element_ui_common_default","baseWidthRate","baseHeightRate","innerHeight","document","documentElement","el","App","template"],"mappings":"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","file":"static/js/app.0adf07eae0d6e347c043.js","sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{attrs:{\"id\":\"app\"}},[_c('router-view')],1)}\nvar staticRenderFns = []\nvar esExports = { render: render, staticRenderFns: staticRenderFns }\nexport default esExports\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/vue-loader/lib/template-compiler?{\"id\":\"data-v-48a6620c\",\"hasScoped\":false,\"transformToRequire\":{\"video\":[\"src\",\"poster\"],\"source\":\"src\",\"img\":\"src\",\"image\":\"xlink:href\"},\"buble\":{\"transforms\":{}}}!./node_modules/vue-loader/lib/selector.js?type=template&index=0!./src/App.vue\n// module id = null\n// module chunks = ","var normalizeComponent = require(\"!../node_modules/vue-loader/lib/component-normalizer\")\n/* script */\nexport * from \"!!babel-loader!../node_modules/vue-loader/lib/selector?type=script&index=0!./App.vue\"\nimport __vue_script__ from \"!!babel-loader!../node_modules/vue-loader/lib/selector?type=script&index=0!./App.vue\"\n/* template */\nimport __vue_template__ from \"!!../node_modules/vue-loader/lib/template-compiler/index?{\\\"id\\\":\\\"data-v-48a6620c\\\",\\\"hasScoped\\\":false,\\\"transformToRequire\\\":{\\\"video\\\":[\\\"src\\\",\\\"poster\\\"],\\\"source\\\":\\\"src\\\",\\\"img\\\":\\\"src\\\",\\\"image\\\":\\\"xlink:href\\\"},\\\"buble\\\":{\\\"transforms\\\":{}}}!../node_modules/vue-loader/lib/selector?type=template&index=0!./App.vue\"\n/* template functional */\nvar __vue_template_functional__ = false\n/* styles */\nvar __vue_styles__ = null\n/* scopeId */\nvar __vue_scopeId__ = null\n/* moduleIdentifier (server only) */\nvar __vue_module_identifier__ = null\nvar Component = normalizeComponent(\n __vue_script__,\n __vue_template__,\n __vue_template_functional__,\n __vue_styles__,\n __vue_scopeId__,\n __vue_module_identifier__\n)\n\nexport default Component.exports\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/App.vue\n// module id = null\n// module chunks = ","\r\n \r\n \r\n
\r\n\r\n\r\n\r\n\r\n\n\n\n// WEBPACK FOOTER //\n// src/App.vue","\r\n \r\n \r\n \r\n \r\n\r\n\r\n \r\n
\r\n \r\n
\r\n \r\n \r\n \r\n \r\n
\r\n
\r\n
\r\n
\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\n\n\n// WEBPACK FOOTER //\n// src/pages/home.vue","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"container\"},[(!_vm.screenmin)?_c('div',{staticClass:\"header\",style:(_vm.headerheight)},[_c('span',{style:(_vm.headertitltstyle)},[_c('span',{staticClass:\"trigon\",style:(_vm.trigonleft)}),_vm._v(\"宁家鲜生运营数据展示\"),_c('span',{staticClass:\"trigon\",style:(_vm.trigonright)})]),_vm._v(\" \"),_c('el-select',{staticClass:\"timechange\",attrs:{\"size\":\"mini\",\"name\":\"timechange\"},model:{value:(_vm.value),callback:function ($$v) {_vm.value=$$v},expression:\"value\"}},_vm._l((_vm.options),function(item){return _c('el-option',{key:item.value,attrs:{\"label\":item.label,\"value\":item.value}})}))],1):_vm._e(),_vm._v(\" \"),(_vm.screenmin)?_c('div',{staticClass:\"header\",style:(_vm.headerheight)},[_vm._v(\"\\n 宁家鲜生运营数据展示\\n \")]):_vm._e(),_vm._v(\" \"),_c('div',{staticClass:\"container-home\"},[(_vm.screenmin)?_c('div',{staticClass:\"minitimeRange\"},[_c('el-select',{staticClass:\"timechange\",attrs:{\"size\":\"mini\",\"name\":\"timechange\"},model:{value:(_vm.value),callback:function ($$v) {_vm.value=$$v},expression:\"value\"}},_vm._l((_vm.options),function(item){return _c('el-option',{key:item.value,attrs:{\"label\":item.label,\"value\":item.value}})}))],1):_vm._e(),_vm._v(\" \"),_c('router-view',{attrs:{\"timeRange\":_vm.value}})],1)])}\nvar staticRenderFns = []\nvar esExports = { render: render, staticRenderFns: staticRenderFns }\nexport default esExports\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/vue-loader/lib/template-compiler?{\"id\":\"data-v-047dba2b\",\"hasScoped\":true,\"transformToRequire\":{\"video\":[\"src\",\"poster\"],\"source\":\"src\",\"img\":\"src\",\"image\":\"xlink:href\"},\"buble\":{\"transforms\":{}}}!./node_modules/vue-loader/lib/selector.js?type=template&index=0!./src/pages/home.vue\n// module id = null\n// module chunks = ","function injectStyle (ssrContext) {\n require(\"!!../../node_modules/extract-text-webpack-plugin/dist/loader.js?{\\\"omit\\\":1,\\\"remove\\\":true}!vue-style-loader!css-loader?{\\\"sourceMap\\\":true}!../../node_modules/vue-loader/lib/style-compiler/index?{\\\"vue\\\":true,\\\"id\\\":\\\"data-v-047dba2b\\\",\\\"scoped\\\":false,\\\"hasInlineConfig\\\":false}!../../node_modules/vue-loader/lib/selector?type=styles&index=0!./home.vue\")\n require(\"!!../../node_modules/extract-text-webpack-plugin/dist/loader.js?{\\\"omit\\\":1,\\\"remove\\\":true}!vue-style-loader!css-loader?{\\\"sourceMap\\\":true}!../../node_modules/vue-loader/lib/style-compiler/index?{\\\"vue\\\":true,\\\"id\\\":\\\"data-v-047dba2b\\\",\\\"scoped\\\":true,\\\"hasInlineConfig\\\":false}!less-loader?{\\\"sourceMap\\\":true}!../../node_modules/vue-loader/lib/selector?type=styles&index=1!./home.vue\")\n}\nvar normalizeComponent = require(\"!../../node_modules/vue-loader/lib/component-normalizer\")\n/* script */\nexport * from \"!!babel-loader!../../node_modules/vue-loader/lib/selector?type=script&index=0!./home.vue\"\nimport __vue_script__ from \"!!babel-loader!../../node_modules/vue-loader/lib/selector?type=script&index=0!./home.vue\"\n/* template */\nimport __vue_template__ from \"!!../../node_modules/vue-loader/lib/template-compiler/index?{\\\"id\\\":\\\"data-v-047dba2b\\\",\\\"hasScoped\\\":true,\\\"transformToRequire\\\":{\\\"video\\\":[\\\"src\\\",\\\"poster\\\"],\\\"source\\\":\\\"src\\\",\\\"img\\\":\\\"src\\\",\\\"image\\\":\\\"xlink:href\\\"},\\\"buble\\\":{\\\"transforms\\\":{}}}!../../node_modules/vue-loader/lib/selector?type=template&index=0!./home.vue\"\n/* template functional */\nvar __vue_template_functional__ = false\n/* styles */\nvar __vue_styles__ = injectStyle\n/* scopeId */\nvar __vue_scopeId__ = \"data-v-047dba2b\"\n/* moduleIdentifier (server only) */\nvar __vue_module_identifier__ = null\nvar Component = normalizeComponent(\n __vue_script__,\n __vue_template__,\n __vue_template_functional__,\n __vue_styles__,\n __vue_scopeId__,\n __vue_module_identifier__\n)\n\nexport default Component.exports\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/pages/home.vue\n// module id = null\n// module chunks = ","import Vue from 'vue'\r\nimport Router from 'vue-router'\r\nimport Home from '@/pages/home.vue'\r\n\r\n\r\nVue.use(Router)\r\n\r\nexport default new Router({\r\n routes: [\r\n {\r\n path: '/',\r\n name: 'Home',\r\n component: Home,\r\n redirect: '/index',\r\n children: [\r\n {\r\n path: '/index',\r\n name: 'index',\r\n component: resolve => require(['../pages/main/index.vue'], resolve),\r\n },\r\n {\r\n path: '/index/:id',\r\n name: 'index',\r\n component: resolve => require(['../pages/main/index.vue'], resolve),\r\n },\r\n ]\r\n }\r\n ]\r\n})\n\n\n// WEBPACK FOOTER //\n// ./src/router/index.js","import axios from 'axios';\r\nimport qs from 'qs';\r\n\r\n// function getUrlParam(sessionId) {\r\n// var reg = new RegExp(\"(^|&)\" + name + \"=([^&]*)(&|$|#)\");\r\n// var r = window.location.search.substr(1).match(reg);\r\n// if (r != null) return decodeURIComponent(r[2].split(\"#\")[0]);\r\n// return null;\r\n// }\r\n\r\n// axios.defaults.withCredentials = true;\r\n// var reg = new RegExp(\"(^|&)sessionId=([^&]*)(&|$|#)\");\r\n// var urls = window.location.search.substr(1).match(reg);\r\n// var url = '';\r\n// if (urls != null) {\r\n// url = decodeURIComponent(urls[2].split(\"#\")[0]);\r\n// } else {\r\n// url = '4c944608b74c45f8994dadb66590ccc7'\r\n// }\r\n// sessionStorage.setItem('sessionId', url);\r\n\r\nvar $axios = axios.create({\r\n // baseURL: 'http://suneee.dcp.weilian.cn',\r\n // timeout: 5000,\r\n headers: {\r\n // 'Content-type': 'application/x-www-form-urlencoded',//form 表单\r\n // 'Content-type': 'text/plain',//raw\r\n // 'Content-type': 'application/json', \r\n // 'Authorization':'wn-jnq_user_session_idd2239db2-d01d-47b6-bf55-8c24aae4101c'\r\n // \"sessionId\": url\r\n }\r\n});\r\n\r\n//POST传参序列化\r\n$axios.interceptors.request.use((config) => {\r\n if (config.method === 'post') {\r\n config.data = config.data;\r\n }\r\n return config;\r\n}, (error) => {\r\n _.toast(\"错误的传参\", 'fail');\r\n return Promise.reject(error);\r\n});\r\n\r\nexport default $axios\r\n\n\n\n// WEBPACK FOOTER //\n// ./src/axios/axios.js","// The Vue build version to load with the `import` command\r\n// (runtime-only or standalone) has been set in webpack.base.conf with an alias.\r\nimport Vue from 'vue'\r\nimport App from './App'\r\nimport router from './router'\r\nimport ElementUI from 'element-ui';\r\nimport 'element-ui/lib/theme-chalk/index.css';\r\nimport axios from './axios/axios.js';\r\nimport qs from 'qs';\r\nimport echarts from 'echarts'\r\nimport * as d3 from 'd3'\r\n\r\nVue.config.productionTip = false\r\nVue.prototype.axios = axios;\r\nVue.prototype.$echarts = echarts;\r\nVue.prototype.$d3 = d3;\r\nVue.use(ElementUI);\r\n\r\nif (window.innerWidth > 756) {\r\n var basePercent = \"100%\"\r\n var baseWidthRate = window.innerWidth / 1920;\r\n var baseHeightRate = window.innerHeight / 1080;\r\n var baseScreenRate = (baseWidthRate > baseHeightRate) ? baseHeightRate : baseWidthRate;\r\n Vue.prototype.baseScreenRate = baseScreenRate;\r\n} else {\r\n var basePercent = \"100%\"\r\n var baseWidthRate = window.innerWidth / 750;\r\n document.documentElement.style.fontSize = 100 * baseWidthRate + 'px';\r\n Vue.prototype.baseScreenRate = baseWidthRate;\r\n}\r\n\r\nnew Vue({\r\n el: '#app',\r\n router,\r\n components: { App },\r\n template: ''\r\n})\r\n\n\n\n// WEBPACK FOOTER //\n// ./src/main.js"],"sourceRoot":""}
--------------------------------------------------------------------------------
/njxs-freshs-screen/static/js/app.af0b32dc1b03fb68c40f.js:
--------------------------------------------------------------------------------
1 | webpackJsonp([2],{NHnr:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a("7+uW"),i={render:function(){var e=this.$createElement,t=this._self._c||e;return t("div",{attrs:{id:"app"}},[t("router-view")],1)},staticRenderFns:[]},l=a("VU/8")({name:"App"},i,!1,null,null,null).exports,s=a("/ocq"),r={data:function(){return{deldisabled:!0,screenmin:window.innerWidth<756,screenwidth:0,headertitltstyle:{fontSize:Math.ceil(36*this.baseScreenRate)+"px",height:"100%"},headerheight:{height:Math.ceil(64*this.baseScreenRate)+"px",lineHeight:Math.ceil(64*this.baseScreenRate)+"px"},trigonleft:{float:"left",borderTop:Math.ceil(64*this.baseScreenRate)+"px solid rgba(40,39,55,1)",borderBottom:"0px"},trigonright:{float:"right",borderBottom:Math.ceil(64*this.baseScreenRate)+"px solid #1a1a29",borderTop:"0px"},timechange:{width:Math.ceil(128*this.baseScreenRate)+"px",height:Math.ceil(35*this.baseScreenRate)+"px"},options:[{value:"WEEK",label:"the week"},{value:"MONTH",label:"the month"},{value:"QUARTER",label:"the quarter"}],value:"WEEK",timevalue:"1"}},components:{},methods:{changetimeRange:function(e){"add"==e?(this.timevalue++,this.deldisabled=!0):this.timevalue>0&&(this.timevalue--,0==this.timevalue&&(this.deldisabled=!1))}}},o={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"container"},[e.screenmin?e._e():a("div",{staticClass:"header",style:e.headerheight},[a("span",{style:e.headertitltstyle},[a("span",{staticClass:"trigon",style:e.trigonleft}),e._v("宁家鲜生经营分析"),a("span",{staticClass:"trigon",style:e.trigonright})]),e._v(" "),a("span",{staticClass:"el-icon-arrow-left",on:{click:function(t){e.changetimeRange("add")}}}),e._v(" "),a("el-select",{staticClass:"timechange",attrs:{size:"mini",name:"timechange"},model:{value:e.value,callback:function(t){e.value=t},expression:"value"}},e._l(e.options,function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),e._v(" "),a("span",{directives:[{name:"show",rawName:"v-show",value:e.deldisabled,expression:"deldisabled"}],staticClass:"el-icon-arrow-right",on:{click:function(t){e.changetimeRange("del")}}})],1),e._v(" "),e.screenmin?a("div",{staticClass:"header",style:e.headerheight},[e._v("\n 宁家鲜生运营数据展示\n ")]):e._e(),e._v(" "),a("div",{staticClass:"container-home"},[e.screenmin?a("div",{staticClass:"minitimeRange"},[a("span",{staticClass:"el-icon-arrow-left",on:{click:function(t){e.changetimeRange("add")}}}),e._v(" "),a("el-select",{staticClass:"timechange",attrs:{size:"mini",name:"timechange"},model:{value:e.value,callback:function(t){e.value=t},expression:"value"}},e._l(e.options,function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),e._v(" "),a("span",{directives:[{name:"show",rawName:"v-show",value:e.deldisabled,expression:"deldisabled"}],staticClass:"el-icon-arrow-right",on:{click:function(t){e.changetimeRange("del")}}})],1):e._e(),e._v(" "),a("router-view",{attrs:{timeRange:{time:e.value,change:e.timevalue}}})],1)])},staticRenderFns:[]};var c=a("VU/8")(r,o,!1,function(e){a("tepA"),a("UvTm")},"data-v-88aad290",null).exports;n.default.use(s.a);var d=new s.a({routes:[{path:"/",name:"Home",component:c,redirect:"/index",children:[{path:"/index",name:"index",component:function(e){return a.e(0).then(function(){var t=[a("uUni")];e.apply(null,t)}.bind(this)).catch(a.oe)}},{path:"/index/:id",name:"index",component:function(e){return a.e(0).then(function(){var t=[a("uUni")];e.apply(null,t)}.bind(this)).catch(a.oe)}}]}]}),u=a("zL8q"),h=a.n(u),p=(a("tvR6"),a("//Fk")),v=a.n(p),m=a("mtWM"),f=a.n(m),g=(a("mw3O"),f.a.create({headers:{}}));g.interceptors.request.use(function(e){return"post"===e.method&&(e.data=e.data),e},function(e){return _.toast("错误的传参","fail"),v.a.reject(e)});var b=g,w=a("XLwt"),x=a.n(w),R=a("vwbq");if(n.default.config.productionTip=!1,n.default.prototype.axios=b,n.default.prototype.$echarts=x.a,n.default.prototype.$d3=R,n.default.use(h.a),window.innerWidth>756){var y=window.innerWidth/1920,C=window.innerHeight/1080,k=y>C?C:y;n.default.prototype.baseScreenRate=k}else{y=window.innerWidth/750;document.documentElement.style.fontSize=100*y+"px",n.default.prototype.baseScreenRate=y}new n.default({el:"#app",router:d,components:{App:l},template:""})},UvTm:function(e,t){},tepA:function(e,t){},tvR6:function(e,t){}},["NHnr"]);
2 | //# sourceMappingURL=app.af0b32dc1b03fb68c40f.js.map
--------------------------------------------------------------------------------
/njxs-freshs-screen/static/js/app.af0b32dc1b03fb68c40f.js.map:
--------------------------------------------------------------------------------
1 | {"version":3,"sources":["webpack:///./src/App.vue?0178","webpack:///./src/App.vue","webpack:///src/App.vue","webpack:///src/pages/home.vue","webpack:///./src/pages/home.vue?5130","webpack:///./src/pages/home.vue","webpack:///./src/router/index.js","webpack:///./src/axios/axios.js","webpack:///./src/main.js"],"names":["selectortype_template_index_0_src_App","render","_h","this","$createElement","_c","_self","attrs","id","staticRenderFns","src_App","__webpack_require__","normalizeComponent","name","home","data","deldisabled","screenmin","window","innerWidth","screenwidth","headertitltstyle","fontSize","Math","ceil","baseScreenRate","height","headerheight","lineHeight","trigonleft","float","borderTop","borderBottom","trigonright","timechange","width","options","value","label","timevalue","components","methods","changetimeRange","flag","pages_home","_vm","staticClass","_e","style","_v","on","click","$event","size","model","callback","$$v","expression","_l","item","key","directives","rawName","timeRange","time","change","src_pages_home","home_normalizeComponent","ssrContext","vue_esm","use","vue_router_esm","router","routes","path","component","redirect","children","resolve","e","then","__WEBPACK_AMD_REQUIRE_ARRAY__","bind","catch","oe","$axios","axios_default","a","create","headers","interceptors","request","config","method","error","_","toast","promise_default","reject","axios_axios","productionTip","prototype","axios","$echarts","echarts_default","$d3","d3","element_ui_common_default","baseWidthRate","baseHeightRate","innerHeight","document","documentElement","el","App","template"],"mappings":"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","file":"static/js/app.af0b32dc1b03fb68c40f.js","sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{attrs:{\"id\":\"app\"}},[_c('router-view')],1)}\nvar staticRenderFns = []\nvar esExports = { render: render, staticRenderFns: staticRenderFns }\nexport default esExports\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/vue-loader/lib/template-compiler?{\"id\":\"data-v-48a6620c\",\"hasScoped\":false,\"transformToRequire\":{\"video\":[\"src\",\"poster\"],\"source\":\"src\",\"img\":\"src\",\"image\":\"xlink:href\"},\"buble\":{\"transforms\":{}}}!./node_modules/vue-loader/lib/selector.js?type=template&index=0!./src/App.vue\n// module id = null\n// module chunks = ","var normalizeComponent = require(\"!../node_modules/vue-loader/lib/component-normalizer\")\n/* script */\nexport * from \"!!babel-loader!../node_modules/vue-loader/lib/selector?type=script&index=0!./App.vue\"\nimport __vue_script__ from \"!!babel-loader!../node_modules/vue-loader/lib/selector?type=script&index=0!./App.vue\"\n/* template */\nimport __vue_template__ from \"!!../node_modules/vue-loader/lib/template-compiler/index?{\\\"id\\\":\\\"data-v-48a6620c\\\",\\\"hasScoped\\\":false,\\\"transformToRequire\\\":{\\\"video\\\":[\\\"src\\\",\\\"poster\\\"],\\\"source\\\":\\\"src\\\",\\\"img\\\":\\\"src\\\",\\\"image\\\":\\\"xlink:href\\\"},\\\"buble\\\":{\\\"transforms\\\":{}}}!../node_modules/vue-loader/lib/selector?type=template&index=0!./App.vue\"\n/* template functional */\nvar __vue_template_functional__ = false\n/* styles */\nvar __vue_styles__ = null\n/* scopeId */\nvar __vue_scopeId__ = null\n/* moduleIdentifier (server only) */\nvar __vue_module_identifier__ = null\nvar Component = normalizeComponent(\n __vue_script__,\n __vue_template__,\n __vue_template_functional__,\n __vue_styles__,\n __vue_scopeId__,\n __vue_module_identifier__\n)\n\nexport default Component.exports\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/App.vue\n// module id = null\n// module chunks = ","\r\n \r\n \r\n
\r\n\r\n\r\n\r\n\r\n\n\n\n// WEBPACK FOOTER //\n// src/App.vue","\r\n \r\n \r\n \r\n \r\n\r\n\r\n \r\n
\r\n \r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n
\r\n
\r\n
\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\n\n\n// WEBPACK FOOTER //\n// src/pages/home.vue","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"container\"},[(!_vm.screenmin)?_c('div',{staticClass:\"header\",style:(_vm.headerheight)},[_c('span',{style:(_vm.headertitltstyle)},[_c('span',{staticClass:\"trigon\",style:(_vm.trigonleft)}),_vm._v(\"宁家鲜生经营分析\"),_c('span',{staticClass:\"trigon\",style:(_vm.trigonright)})]),_vm._v(\" \"),_c('span',{staticClass:\"el-icon-arrow-left\",on:{\"click\":function($event){_vm.changetimeRange('add')}}}),_vm._v(\" \"),_c('el-select',{staticClass:\"timechange\",attrs:{\"size\":\"mini\",\"name\":\"timechange\"},model:{value:(_vm.value),callback:function ($$v) {_vm.value=$$v},expression:\"value\"}},_vm._l((_vm.options),function(item){return _c('el-option',{key:item.value,attrs:{\"label\":item.label,\"value\":item.value}})})),_vm._v(\" \"),_c('span',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.deldisabled),expression:\"deldisabled\"}],staticClass:\"el-icon-arrow-right\",on:{\"click\":function($event){_vm.changetimeRange('del')}}})],1):_vm._e(),_vm._v(\" \"),(_vm.screenmin)?_c('div',{staticClass:\"header\",style:(_vm.headerheight)},[_vm._v(\"\\n 宁家鲜生运营数据展示\\n \")]):_vm._e(),_vm._v(\" \"),_c('div',{staticClass:\"container-home\"},[(_vm.screenmin)?_c('div',{staticClass:\"minitimeRange\"},[_c('span',{staticClass:\"el-icon-arrow-left\",on:{\"click\":function($event){_vm.changetimeRange('add')}}}),_vm._v(\" \"),_c('el-select',{staticClass:\"timechange\",attrs:{\"size\":\"mini\",\"name\":\"timechange\"},model:{value:(_vm.value),callback:function ($$v) {_vm.value=$$v},expression:\"value\"}},_vm._l((_vm.options),function(item){return _c('el-option',{key:item.value,attrs:{\"label\":item.label,\"value\":item.value}})})),_vm._v(\" \"),_c('span',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.deldisabled),expression:\"deldisabled\"}],staticClass:\"el-icon-arrow-right\",on:{\"click\":function($event){_vm.changetimeRange('del')}}})],1):_vm._e(),_vm._v(\" \"),_c('router-view',{attrs:{\"timeRange\":{time:_vm.value,change:_vm.timevalue}}})],1)])}\nvar staticRenderFns = []\nvar esExports = { render: render, staticRenderFns: staticRenderFns }\nexport default esExports\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/vue-loader/lib/template-compiler?{\"id\":\"data-v-88aad290\",\"hasScoped\":true,\"transformToRequire\":{\"video\":[\"src\",\"poster\"],\"source\":\"src\",\"img\":\"src\",\"image\":\"xlink:href\"},\"buble\":{\"transforms\":{}}}!./node_modules/vue-loader/lib/selector.js?type=template&index=0!./src/pages/home.vue\n// module id = null\n// module chunks = ","function injectStyle (ssrContext) {\n require(\"!!../../node_modules/extract-text-webpack-plugin/dist/loader.js?{\\\"omit\\\":1,\\\"remove\\\":true}!vue-style-loader!css-loader?{\\\"sourceMap\\\":true}!../../node_modules/vue-loader/lib/style-compiler/index?{\\\"vue\\\":true,\\\"id\\\":\\\"data-v-88aad290\\\",\\\"scoped\\\":false,\\\"hasInlineConfig\\\":false}!../../node_modules/vue-loader/lib/selector?type=styles&index=0!./home.vue\")\n require(\"!!../../node_modules/extract-text-webpack-plugin/dist/loader.js?{\\\"omit\\\":1,\\\"remove\\\":true}!vue-style-loader!css-loader?{\\\"sourceMap\\\":true}!../../node_modules/vue-loader/lib/style-compiler/index?{\\\"vue\\\":true,\\\"id\\\":\\\"data-v-88aad290\\\",\\\"scoped\\\":true,\\\"hasInlineConfig\\\":false}!less-loader?{\\\"sourceMap\\\":true}!../../node_modules/vue-loader/lib/selector?type=styles&index=1!./home.vue\")\n}\nvar normalizeComponent = require(\"!../../node_modules/vue-loader/lib/component-normalizer\")\n/* script */\nexport * from \"!!babel-loader!../../node_modules/vue-loader/lib/selector?type=script&index=0!./home.vue\"\nimport __vue_script__ from \"!!babel-loader!../../node_modules/vue-loader/lib/selector?type=script&index=0!./home.vue\"\n/* template */\nimport __vue_template__ from \"!!../../node_modules/vue-loader/lib/template-compiler/index?{\\\"id\\\":\\\"data-v-88aad290\\\",\\\"hasScoped\\\":true,\\\"transformToRequire\\\":{\\\"video\\\":[\\\"src\\\",\\\"poster\\\"],\\\"source\\\":\\\"src\\\",\\\"img\\\":\\\"src\\\",\\\"image\\\":\\\"xlink:href\\\"},\\\"buble\\\":{\\\"transforms\\\":{}}}!../../node_modules/vue-loader/lib/selector?type=template&index=0!./home.vue\"\n/* template functional */\nvar __vue_template_functional__ = false\n/* styles */\nvar __vue_styles__ = injectStyle\n/* scopeId */\nvar __vue_scopeId__ = \"data-v-88aad290\"\n/* moduleIdentifier (server only) */\nvar __vue_module_identifier__ = null\nvar Component = normalizeComponent(\n __vue_script__,\n __vue_template__,\n __vue_template_functional__,\n __vue_styles__,\n __vue_scopeId__,\n __vue_module_identifier__\n)\n\nexport default Component.exports\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/pages/home.vue\n// module id = null\n// module chunks = ","import Vue from 'vue'\r\nimport Router from 'vue-router'\r\nimport Home from '@/pages/home.vue'\r\n\r\n\r\nVue.use(Router)\r\n\r\nexport default new Router({\r\n routes: [\r\n {\r\n path: '/',\r\n name: 'Home',\r\n component: Home,\r\n redirect: '/index',\r\n children: [\r\n {\r\n path: '/index',\r\n name: 'index',\r\n component: resolve => require(['../pages/main/index.vue'], resolve),\r\n },\r\n {\r\n path: '/index/:id',\r\n name: 'index',\r\n component: resolve => require(['../pages/main/index.vue'], resolve),\r\n },\r\n ]\r\n }\r\n ]\r\n})\n\n\n// WEBPACK FOOTER //\n// ./src/router/index.js","import axios from 'axios';\r\nimport qs from 'qs';\r\n\r\n// function getUrlParam(sessionId) {\r\n// var reg = new RegExp(\"(^|&)\" + name + \"=([^&]*)(&|$|#)\");\r\n// var r = window.location.search.substr(1).match(reg);\r\n// if (r != null) return decodeURIComponent(r[2].split(\"#\")[0]);\r\n// return null;\r\n// }\r\n\r\n// axios.defaults.withCredentials = true;\r\n// var reg = new RegExp(\"(^|&)sessionId=([^&]*)(&|$|#)\");\r\n// var urls = window.location.search.substr(1).match(reg);\r\n// var url = '';\r\n// if (urls != null) {\r\n// url = decodeURIComponent(urls[2].split(\"#\")[0]);\r\n// } else {\r\n// url = '4c944608b74c45f8994dadb66590ccc7'\r\n// }\r\n// sessionStorage.setItem('sessionId', url);\r\n\r\nvar $axios = axios.create({\r\n // baseURL: 'http://suneee.dcp.weilian.cn',\r\n // timeout: 5000,\r\n headers: {\r\n // 'Content-type': 'application/x-www-form-urlencoded',//form 表单\r\n // 'Content-type': 'text/plain',//raw\r\n // 'Content-type': 'application/json', \r\n // 'Authorization':'wn-jnq_user_session_idd2239db2-d01d-47b6-bf55-8c24aae4101c'\r\n // \"sessionId\": url\r\n }\r\n});\r\n\r\n//POST传参序列化\r\n$axios.interceptors.request.use((config) => {\r\n if (config.method === 'post') {\r\n config.data = config.data;\r\n }\r\n return config;\r\n}, (error) => {\r\n _.toast(\"错误的传参\", 'fail');\r\n return Promise.reject(error);\r\n});\r\n\r\nexport default $axios\r\n\n\n\n// WEBPACK FOOTER //\n// ./src/axios/axios.js","// The Vue build version to load with the `import` command\r\n// (runtime-only or standalone) has been set in webpack.base.conf with an alias.\r\nimport Vue from 'vue'\r\nimport App from './App'\r\nimport router from './router'\r\nimport ElementUI from 'element-ui';\r\nimport 'element-ui/lib/theme-chalk/index.css';\r\nimport axios from './axios/axios.js';\r\nimport qs from 'qs';\r\nimport echarts from 'echarts'\r\nimport * as d3 from 'd3'\r\n\r\nVue.config.productionTip = false\r\nVue.prototype.axios = axios;\r\nVue.prototype.$echarts = echarts;\r\nVue.prototype.$d3 = d3;\r\nVue.use(ElementUI);\r\n\r\nif (window.innerWidth > 756) {\r\n var basePercent = \"100%\"\r\n var baseWidthRate = window.innerWidth / 1920;\r\n var baseHeightRate = window.innerHeight / 1080;\r\n var baseScreenRate = (baseWidthRate > baseHeightRate) ? baseHeightRate : baseWidthRate;\r\n Vue.prototype.baseScreenRate = baseScreenRate;\r\n} else {\r\n var basePercent = \"100%\"\r\n var baseWidthRate = window.innerWidth / 750;\r\n document.documentElement.style.fontSize = 100 * baseWidthRate + 'px';\r\n Vue.prototype.baseScreenRate = baseWidthRate;\r\n}\r\n\r\nnew Vue({\r\n el: '#app',\r\n router,\r\n components: { App },\r\n template: ''\r\n})\r\n\n\n\n// WEBPACK FOOTER //\n// ./src/main.js"],"sourceRoot":""}
--------------------------------------------------------------------------------
/njxs-freshs-screen/static/js/manifest.3c80549e9a11cabbe627.js:
--------------------------------------------------------------------------------
1 | !function(e){var n=window.webpackJsonp;window.webpackJsonp=function(r,c,a){for(var i,u,s,f=0,l=[];f= 6.0.0",
62 | "npm": ">= 3.0.0"
63 | },
64 | "browserslist": [
65 | "> 1%",
66 | "last 2 versions",
67 | "not ie <= 8"
68 | ]
69 | }
70 |
--------------------------------------------------------------------------------
/src/App.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
12 |
13 |
--------------------------------------------------------------------------------
/src/assets/css/calender.css:
--------------------------------------------------------------------------------
1 | .displayF {
2 | display: none;
3 | }
4 | .displayE {
5 | display: none;
6 | }
7 | .calendar-input-container {
8 | display: inline-block;
9 | text-align: center;
10 | font-family: SimHei;
11 | position: relative;
12 | z-index: 1000;
13 | }
14 | .calendar-input-container .fade-enter-active,
15 | .calendar-input-container .fade-leave-active {
16 | transition: opacity .5s;
17 | }
18 | .calendar-input-container .fade-enter,
19 | .calendar-input-container .fade-leave-active {
20 | opacity: 0;
21 | }
22 | .calendar-input-container .calendar-input {
23 | width: 70px;
24 | height: 30px;
25 | padding: 0 5px 0 5px;
26 | border: 0px;
27 | border-bottom: 2px solid #2f80c3;
28 | cursor: pointer;
29 | }
30 | .calendar-input-container .calendar {
31 | position: fixed;
32 | width: 280px;
33 | height: 283px;
34 | top: 215px;
35 | right: 0;
36 | z-index: 120;
37 | background: #fff;
38 | z-index: 1000;
39 | box-sizing: border-box;
40 | }
41 | .calendar-input-container .calendar .calendar-header {
42 | width: 100%;
43 | height: 40px;
44 | line-height: 40px;
45 | }
46 | .calendar-input-container .calendar .calendar-header .arrow-left {
47 | float: left;
48 | margin-left: 10px;
49 | }
50 | .calendar-input-container .calendar .calendar-header .arrow-right {
51 | float: right;
52 | margin-right: 10px;
53 | }
54 | .calendar-input-container .calendar .week {
55 | width: 100%;
56 | height: 36px;
57 | text-align: center;
58 | line-height: 36px;
59 | font-size: 16px;
60 | }
61 | .calendar-input-container .calendar .week span {
62 | float: left;
63 | width: 40px;
64 | height: 40px;
65 | }
66 | .calendar-input-container .calendar .days {
67 | width: 280px;
68 | height: 283px;
69 | font-size: 14px;
70 | position: relation;
71 | z-index: 10;
72 | }
73 | .calendar-input-container .calendar .days .spans {
74 | float: left;
75 | width: 40px;
76 | height: 47px;
77 | line-height: 33px;
78 | cursor: pointer;
79 | transition: all .5s;
80 | z-index: 10;
81 | }
82 | .calendar-input-container .calendar .days .span {
83 | height: 283px;
84 | position: absolute;
85 | top: 30px;
86 | z-index: -1;
87 | }
88 | .calendar-input-container .calendar .days .span i {
89 | float: left;
90 | width: 40px;
91 | height: 47px;
92 | z-index: -1;
93 | }
94 | .calendar-input-container .calendar .days .unselect {
95 | cursor: default;
96 | }
97 | .blue-theme .arrow-left,
98 | .blue-theme .arrow-right {
99 | cursor: pointer;
100 | color: #2f80c3;
101 | transition: color .5s;
102 | }
103 | .blue-theme .arrow-left:hover,
104 | .blue-theme .arrow-right:hover {
105 | color: #9ecaed;
106 | }
107 | .blue-theme .weekend {
108 | color: #2f80c3;
109 | }
110 | .blue-theme .days {
111 | background: #fff;
112 | }
113 | .blue-theme .days .spans:hover {
114 | border-radius: 2px;
115 | background-color: #9ecaed;
116 | opacity: 0.7;
117 | color: #fff;
118 | }
119 | .blue-theme .days .unselect,
120 | .blue-theme .days .unselect:hover {
121 | border-radius: 0;
122 | background-color: #fff;
123 | color: #ccc;
124 | }
125 | .blue-theme .days .select,
126 | .blue-theme .days .select:hover {
127 | border-radius: 2px;
128 | background-color: #2f80c3;
129 | color: #fff;
130 | opacity: 0.7;
131 | }
132 | .red-theme .calendar-header {
133 | color: #5a5a5a;
134 | background-color: #cb1b01;
135 | }
136 | .red-theme .arrow {
137 | cursor: pointer;
138 | }
139 | .red-theme .weekend {
140 | color: #cb1b01;
141 | }
142 | .red-theme .days {
143 | background: #fff;
144 | color: #5a5a5a;
145 | }
146 | .red-theme .days .spans:hover {
147 | border-radius: 2px;
148 | background-color: #f00;
149 | opacity: 0.7;
150 | color: #fff;
151 | }
152 | .red-theme .days .unselect,
153 | .red-theme .days .unselect:hover {
154 | border-radius: 0;
155 | background-color: #fff;
156 | color: #ccc;
157 | }
158 | .red-theme .days .select,
159 | .red-theme .days .select:hover {
160 | border-radius: 2px;
161 | background-color: #cb1b01;
162 | opacity: 0.7;
163 | color: #fff;
164 | }
165 | /*@media screen and (max-width: 480px) {
166 | .calendar-input-container{
167 | .calendar-input {
168 | width: 150px;
169 | }
170 | .calendar {
171 | width: 150px;
172 | }
173 | }
174 | }*/
175 |
--------------------------------------------------------------------------------
/src/assets/css/calender.less:
--------------------------------------------------------------------------------
1 | @blue: #9ecaed;
2 | @deepBlue: #2f80c3;
3 | @white: rgb(90, 90, 90);
4 | @gray: rgb(90, 90, 90);
5 | @red: #f00;
6 | @deepRed: #cb1b01;
7 | .displayF {
8 | display: none;
9 | }
10 | .displayE {
11 | display: none;
12 | }
13 | .calendar-input-container {
14 | display: inline-block;
15 | text-align: center;
16 | font-family: SimHei;
17 | position: relative;
18 | z-index:1000;
19 | .fade-enter-active,
20 | .fade-leave-active {
21 | transition: opacity .5s;
22 | }
23 | .fade-enter,
24 | .fade-leave-active {
25 | opacity: 0;
26 | }
27 | .calendar-input {
28 | width: 70px;
29 | height: 30px;
30 | padding: 0 5px 0 5px;
31 | border: 0px;
32 | border-bottom: 2px solid #2f80c3;
33 | cursor: pointer;
34 | }
35 | .calendar {
36 | position: fixed;
37 | width: 280px;
38 | height: 283px;
39 | top: 215px;
40 | right: 0;
41 | z-index: 120;
42 | background: #fff;
43 | z-index:1000;
44 | box-sizing: border-box;
45 | .calendar-header {
46 | width: 100%;
47 | height: 40px;
48 | line-height: 40px;
49 | .arrow-left {
50 | float: left;
51 | margin-left: 10px;
52 | }
53 | .arrow-right {
54 | float: right;
55 | margin-right: 10px;
56 | }
57 | }
58 | .week {
59 | width: 100%;
60 | height: 36px;
61 | text-align: center;
62 | line-height: 36px;
63 | font-size: 16px;
64 | span {
65 | float: left;
66 | width: 40px;
67 | height: 40px;
68 | }
69 | }
70 | .days {
71 | width: 280px;
72 | height: 283px;
73 | font-size: 14px;
74 | position:relation;
75 | z-index:10;
76 | .spans {
77 | float: left;
78 | width: 40px;
79 | height: 47px;
80 | line-height: 33px;
81 | cursor: pointer;
82 | transition: all .5s;
83 | z-index:10
84 | }
85 | .span{
86 | height:283px;
87 | position:absolute;
88 | top:30px;
89 | z-index:-1;
90 | i {
91 | float: left;
92 | width: 40px;
93 | height: 47px;
94 | z-index:-1;
95 | }
96 | }
97 | .unselect {
98 | cursor: default;
99 | }
100 | }
101 | }
102 | }
103 | .blue-theme {
104 | .arrow-left, .arrow-right {
105 | cursor: pointer;
106 | color: @deepBlue;
107 | transition: color .5s;
108 | &:hover {
109 | color: @blue;
110 | }
111 | }
112 | .weekend {
113 | color: @deepBlue;
114 | }
115 | .days {
116 | background: #fff;
117 | .spans {
118 | &:hover {
119 | border-radius: 2px;
120 | background-color: @blue;
121 | opacity:0.7;
122 | color: #fff;
123 | }
124 | }
125 | .unselect,
126 | .unselect:hover {
127 | border-radius: 0;
128 | background-color: #fff;
129 | color: #ccc;
130 | }
131 | .select,
132 | .select:hover {
133 | border-radius: 2px;
134 | background-color: @deepBlue;
135 | color: #fff;
136 | opacity:0.7;
137 | }
138 | }
139 | }
140 | .red-theme {
141 | .calendar-header {
142 | color: @white;
143 | background-color: @deepRed;
144 | }
145 | .arrow {
146 | cursor: pointer;
147 | }
148 | .weekend {
149 | color: @deepRed;
150 | }
151 | .days {
152 | background: #fff;
153 | color: @gray;
154 | .spans {
155 | &:hover {
156 | border-radius: 2px;
157 | background-color: @red;
158 | opacity:0.7;
159 | // margin-top:6px;
160 | color: #fff;
161 | }
162 | }
163 | .unselect,
164 | .unselect:hover {
165 | border-radius: 0;
166 | background-color: #fff;
167 | color: #ccc;
168 | }
169 | .select,
170 | .select:hover {
171 | border-radius: 2px;
172 | background-color: @deepRed;
173 | opacity:0.7;
174 | // margin-top:6px;
175 | color: #fff;
176 | }
177 | }
178 | }
179 |
180 | /*@media screen and (max-width: 480px) {
181 | .calendar-input-container{
182 | .calendar-input {
183 | width: 150px;
184 | }
185 | .calendar {
186 | width: 150px;
187 | }
188 | }
189 | }*/
190 |
--------------------------------------------------------------------------------
/src/assets/css/common.css:
--------------------------------------------------------------------------------
1 | @media (min-width: 768px) {
2 | html {
3 | font-size: 28px
4 | }
5 | }
6 |
7 | @media (min-width: 1024px) {
8 | html {
9 | font-size: 32px
10 | }
11 | }
12 |
13 |
14 | /*>=1024的设备*/
15 |
16 | @media (min-width: 1100px) {
17 | html {
18 | font-size: 34.375px
19 | }
20 | }
21 |
22 |
23 | /*>=1100的设备*/
24 |
25 | @media (min-width: 1280px) {
26 | html {
27 | font-size: 40px;
28 | }
29 | }
30 |
31 |
32 | /*>=1280的设备*/
33 |
34 | @media (min-width: 1366px) {
35 | html {
36 | font-size: 42.6875px;
37 | }
38 | }
39 |
40 | @media (min-width: 1440px) {
41 | html {
42 | font-size: 45px;
43 | }
44 | }
45 |
46 | @media (min-width: 1680px) {
47 | html {
48 | font-size: 52.5px;
49 | }
50 | }
51 |
52 | @media (min-width: 1920px) {
53 | html {
54 | font-size: 60px;
55 | }
56 | }
--------------------------------------------------------------------------------
/src/assets/css/reset.css:
--------------------------------------------------------------------------------
1 | @charset "utf-8";
2 | html {
3 | color: #666;
4 | background: #fff;
5 | }
6 | body, div, ol, ul, h1, h2, h3, h4, h5, h6, p, th, td, dl, dd, form, iframe, input, textarea, select, label, article, aside, footer, header, menu, nav, section, time, audio, video {
7 | margin: 0;
8 | padding: 0;
9 | }
10 | em, i, s {
11 | font-style: normal
12 | }
13 | article, aside, footer, header, hgroup, nav, section, audio, canvas, video {
14 | display: block;
15 | }
16 | audio, canvas, video {
17 | display: inline-block
18 | }
19 | .w {
20 | width: 100%;
21 | height: 100%;
22 | }
23 | h1, h2, h3, h4, h5, h6 {
24 | font-weight: 400;
25 | font-size: 100%
26 | }
27 | body, option,div,p,h1,h2,h3,h4,h5 {
28 | font: 12px/1.5 "'Microsoft YaHei", "微软雅黑", Arial, Helvetica, sans-serif;
29 | -webkit-text-size-adjust: 100%;
30 | -ms-text-size-adjust: 100%;
31 | -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
32 | word-wrap: break-word;
33 | word-break: break-all;
34 | }
35 | a {
36 | text-decoration: none;
37 | color: #666;
38 | }
39 | * {
40 | outline: 0 none;
41 | }
42 | textarea {
43 | resize: none;
44 | }
45 | iframe, img {
46 | border: 0;
47 | }
48 | iframe {
49 | display: block;
50 | }
51 | ul, ol li {
52 | list-style: outside none;
53 | }
54 | input,
55 | select,
56 | textarea {
57 | font-family: inherit;
58 | font-size: 100%;
59 | }
60 | table {
61 | border-collapse: collapse;
62 | border-spacing: 0;
63 | }
64 | input::-ms-clear, input::-ms-reveal {
65 | display: none;
66 | }
67 | .clear:after {
68 | content: ".";
69 | display: block;
70 | clear: both;
71 | height: 0;
72 | visibility: hidden;
73 | overflow: hidden;
74 | }
75 | .clear {
76 | zoom: 1
77 | }
78 | /* 清楚浮动*/
79 | .clearfix:after {
80 | content: "";
81 | display: block;
82 | clear: both;
83 | }
84 | /*检查页面的标签是否闭合 */
85 | .clearfix {
86 | zoom: 1;
87 | }
88 | .com-width {
89 | margin: 0 auto;
90 | }
91 | .fl {
92 | _display: inline;
93 | float: left;
94 | }
95 | .fr {
96 | _display: inline;
97 | float: right;
98 | }
99 | .show {
100 | display: inline-block;
101 | }
102 | .hide {
103 | display: none;
104 | }
105 | .text-ar {
106 | text-align: right;
107 | }
108 | .text-al {
109 | text-align: left;
110 | }
111 | *, *:after, *:before {
112 | box-sizing: border-box;
113 | -webkit-box-sizing: border-box; /*兼容移动端主流浏览器*/
114 |
115 | -webkit-tap-highlight-color: transparent;/*设置点击高亮颜色是透明*/
116 | }
117 | /* 解决兼容而加的样式 */
118 | a, img {
119 | -webkit-touch-callout: none; /*禁止长按链接与图片弹出菜单*/
120 | }
121 | html, body {
122 | width: 100%;
123 | height: 100%;
124 | -webkit-user-select: none; /*禁止选中文本*/
125 | user-select: none;
126 | }
127 | button, input, optgroup, select, textarea {
128 | -webkit-appearance:none; /*去掉webkit默认的表单样式
129 | }
130 | a, button, input, optgroup, select, textarea {
131 | -webkit-tap-highlight-color: rgba(0, 0, 0, 0); /*去掉a、input和button点击时的蓝色外边框和灰色半透明背景*/
132 | }
133 | .el-date-editor .el-range-separator{
134 | padding: 0 2px;
135 | line-height: 32px;
136 | width: 11% ! important;
137 | color: #7cbfe9;
138 | }
139 | .el-date-editor .el-range__icon {
140 | font-size: 14px;
141 | margin-left: -5px;
142 | color: #7cbfe9;
143 | float: left;
144 | line-height: 32px;
145 | }
146 | .el-date-editor .el-range-input {
147 | -webkit-appearance: none;
148 | -moz-appearance: none;
149 | appearance: none;
150 | border: none;
151 | outline: 0;
152 | padding: 0;
153 | width: 38%;
154 | color: #606266;
155 | border-bottom: 2px solid #7cbfe9;
156 | font-size: 10px;
157 | }
158 | .el-date-range-picker {
159 | width: 524px;
160 | height: 300px;
161 | }
162 | .el-button.is-plain:focus, .el-button.is-plain {
163 | background: #409EFF;
164 | border-color: #409EFF;
165 | color: rgb(255, 255, 255);
166 | padding: 3% 3%;
167 | }
168 | .el-radio+.el-radio{
169 | margin-left: 0px;
170 | }
171 | .el-radio-group {
172 | display: inline-block;
173 | line-height: 1;
174 | vertical-align: middle;
175 | font-size: 0;
176 | margin-left: 42px;
177 | }
178 | .el-table th, .el-table tr {
179 | background-color: #141313;
180 | }
181 | .el-table td, .el-table th.is-leaf {
182 | border-bottom: 1px solid #343344;
183 | }
184 | .el-table thead {
185 | color: #537F8C;
186 | font-weight: 500;
187 | }
188 | .el-table{
189 | color: #fff;
190 | }
191 | .el-table td, .el-table th{
192 | padding: 0;
193 | }
--------------------------------------------------------------------------------
/src/assets/iconfont/demo.css:
--------------------------------------------------------------------------------
1 | *{margin: 0;padding: 0;list-style: none;}
2 | /*
3 | KISSY CSS Reset
4 | 理念:1. reset 的目的不是清除浏览器的默认样式,这仅是部分工作。清除和重置是紧密不可分的。
5 | 2. reset 的目的不是让默认样式在所有浏览器下一致,而是减少默认样式有可能带来的问题。
6 | 3. reset 期望提供一套普适通用的基础样式。但没有银弹,推荐根据具体需求,裁剪和修改后再使用。
7 | 特色:1. 适应中文;2. 基于最新主流浏览器。
8 | 维护:玉伯, 正淳
9 | */
10 |
11 | /** 清除内外边距 **/
12 | body, h1, h2, h3, h4, h5, h6, hr, p, blockquote, /* structural elements 结构元素 */
13 | dl, dt, dd, ul, ol, li, /* list elements 列表元素 */
14 | pre, /* text formatting elements 文本格式元素 */
15 | form, fieldset, legend, button, input, textarea, /* form elements 表单元素 */
16 | th, td /* table elements 表格元素 */ {
17 | margin: 0;
18 | padding: 0;
19 | }
20 |
21 | /** 设置默认字体 **/
22 | body,
23 | button, input, select, textarea /* for ie */ {
24 | font: 12px/1.5 tahoma, arial, \5b8b\4f53, sans-serif;
25 | }
26 | h1, h2, h3, h4, h5, h6 { font-size: 100%; }
27 | address, cite, dfn, em, var { font-style: normal; } /* 将斜体扶正 */
28 | code, kbd, pre, samp { font-family: courier new, courier, monospace; } /* 统一等宽字体 */
29 | small { font-size: 12px; } /* 小于 12px 的中文很难阅读,让 small 正常化 */
30 |
31 | /** 重置列表元素 **/
32 | ul, ol { list-style: none; }
33 |
34 | /** 重置文本格式元素 **/
35 | a { text-decoration: none; }
36 | a:hover { text-decoration: underline; }
37 |
38 |
39 | /** 重置表单元素 **/
40 | legend { color: #000; } /* for ie6 */
41 | fieldset, img { border: 0; } /* img 搭车:让链接里的 img 无边框 */
42 | button, input, select, textarea { font-size: 100%; } /* 使得表单元素在 ie 下能继承字体大小 */
43 | /* 注:optgroup 无法扶正 */
44 |
45 | /** 重置表格元素 **/
46 | table { border-collapse: collapse; border-spacing: 0; }
47 |
48 | /* 清除浮动 */
49 | .ks-clear:after, .clear:after {
50 | content: '\20';
51 | display: block;
52 | height: 0;
53 | clear: both;
54 | }
55 | .ks-clear, .clear {
56 | *zoom: 1;
57 | }
58 |
59 | .main {
60 | padding: 30px 100px;
61 | width: 960px;
62 | margin: 0 auto;
63 | }
64 | .main h1{font-size:36px; color:#333; text-align:left;margin-bottom:30px; border-bottom: 1px solid #eee;}
65 |
66 | .helps{margin-top:40px;}
67 | .helps pre{
68 | padding:20px;
69 | margin:10px 0;
70 | border:solid 1px #e7e1cd;
71 | background-color: #fffdef;
72 | overflow: auto;
73 | }
74 |
75 | .icon_lists{
76 | width: 100% !important;
77 |
78 | }
79 |
80 | .icon_lists li{
81 | float:left;
82 | width: 100px;
83 | height:180px;
84 | text-align: center;
85 | list-style: none !important;
86 | }
87 | .icon_lists .icon{
88 | font-size: 42px;
89 | line-height: 100px;
90 | margin: 10px 0;
91 | color:#333;
92 | -webkit-transition: font-size 0.25s ease-out 0s;
93 | -moz-transition: font-size 0.25s ease-out 0s;
94 | transition: font-size 0.25s ease-out 0s;
95 |
96 | }
97 | .icon_lists .icon:hover{
98 | font-size: 100px;
99 | }
100 |
101 |
102 |
103 | .markdown {
104 | color: #666;
105 | font-size: 14px;
106 | line-height: 1.8;
107 | }
108 |
109 | .highlight {
110 | line-height: 1.5;
111 | }
112 |
113 | .markdown img {
114 | vertical-align: middle;
115 | max-width: 100%;
116 | }
117 |
118 | .markdown h1 {
119 | color: #404040;
120 | font-weight: 500;
121 | line-height: 40px;
122 | margin-bottom: 24px;
123 | }
124 |
125 | .markdown h2,
126 | .markdown h3,
127 | .markdown h4,
128 | .markdown h5,
129 | .markdown h6 {
130 | color: #404040;
131 | margin: 1.6em 0 0.6em 0;
132 | font-weight: 500;
133 | clear: both;
134 | }
135 |
136 | .markdown h1 {
137 | font-size: 28px;
138 | }
139 |
140 | .markdown h2 {
141 | font-size: 22px;
142 | }
143 |
144 | .markdown h3 {
145 | font-size: 16px;
146 | }
147 |
148 | .markdown h4 {
149 | font-size: 14px;
150 | }
151 |
152 | .markdown h5 {
153 | font-size: 12px;
154 | }
155 |
156 | .markdown h6 {
157 | font-size: 12px;
158 | }
159 |
160 | .markdown hr {
161 | height: 1px;
162 | border: 0;
163 | background: #e9e9e9;
164 | margin: 16px 0;
165 | clear: both;
166 | }
167 |
168 | .markdown p,
169 | .markdown pre {
170 | margin: 1em 0;
171 | }
172 |
173 | .markdown > p,
174 | .markdown > blockquote,
175 | .markdown > .highlight,
176 | .markdown > ol,
177 | .markdown > ul {
178 | width: 80%;
179 | }
180 |
181 | .markdown ul > li {
182 | list-style: circle;
183 | }
184 |
185 | .markdown > ul li,
186 | .markdown blockquote ul > li {
187 | margin-left: 20px;
188 | padding-left: 4px;
189 | }
190 |
191 | .markdown > ul li p,
192 | .markdown > ol li p {
193 | margin: 0.6em 0;
194 | }
195 |
196 | .markdown ol > li {
197 | list-style: decimal;
198 | }
199 |
200 | .markdown > ol li,
201 | .markdown blockquote ol > li {
202 | margin-left: 20px;
203 | padding-left: 4px;
204 | }
205 |
206 | .markdown code {
207 | margin: 0 3px;
208 | padding: 0 5px;
209 | background: #eee;
210 | border-radius: 3px;
211 | }
212 |
213 | .markdown pre {
214 | border-radius: 6px;
215 | background: #f7f7f7;
216 | padding: 20px;
217 | }
218 |
219 | .markdown pre code {
220 | border: none;
221 | background: #f7f7f7;
222 | margin: 0;
223 | }
224 |
225 | .markdown strong,
226 | .markdown b {
227 | font-weight: 600;
228 | }
229 |
230 | .markdown > table {
231 | border-collapse: collapse;
232 | border-spacing: 0px;
233 | empty-cells: show;
234 | border: 1px solid #e9e9e9;
235 | width: 95%;
236 | margin-bottom: 24px;
237 | }
238 |
239 | .markdown > table th {
240 | white-space: nowrap;
241 | color: #333;
242 | font-weight: 600;
243 |
244 | }
245 |
246 | .markdown > table th,
247 | .markdown > table td {
248 | border: 1px solid #e9e9e9;
249 | padding: 8px 16px;
250 | text-align: left;
251 | }
252 |
253 | .markdown > table th {
254 | background: #F7F7F7;
255 | }
256 |
257 | .markdown blockquote {
258 | font-size: 90%;
259 | color: #999;
260 | border-left: 4px solid #e9e9e9;
261 | padding-left: 0.8em;
262 | margin: 1em 0;
263 | font-style: italic;
264 | }
265 |
266 | .markdown blockquote p {
267 | margin: 0;
268 | }
269 |
270 | .markdown .anchor {
271 | opacity: 0;
272 | transition: opacity 0.3s ease;
273 | margin-left: 8px;
274 | }
275 |
276 | .markdown .waiting {
277 | color: #ccc;
278 | }
279 |
280 | .markdown h1:hover .anchor,
281 | .markdown h2:hover .anchor,
282 | .markdown h3:hover .anchor,
283 | .markdown h4:hover .anchor,
284 | .markdown h5:hover .anchor,
285 | .markdown h6:hover .anchor {
286 | opacity: 1;
287 | display: inline-block;
288 | }
289 |
290 | .markdown > br,
291 | .markdown > p > br {
292 | clear: both;
293 | }
294 |
295 |
296 | .hljs {
297 | display: block;
298 | background: white;
299 | padding: 0.5em;
300 | color: #333333;
301 | overflow-x: auto;
302 | }
303 |
304 | .hljs-comment,
305 | .hljs-meta {
306 | color: #969896;
307 | }
308 |
309 | .hljs-string,
310 | .hljs-variable,
311 | .hljs-template-variable,
312 | .hljs-strong,
313 | .hljs-emphasis,
314 | .hljs-quote {
315 | color: #df5000;
316 | }
317 |
318 | .hljs-keyword,
319 | .hljs-selector-tag,
320 | .hljs-type {
321 | color: #a71d5d;
322 | }
323 |
324 | .hljs-literal,
325 | .hljs-symbol,
326 | .hljs-bullet,
327 | .hljs-attribute {
328 | color: #0086b3;
329 | }
330 |
331 | .hljs-section,
332 | .hljs-name {
333 | color: #63a35c;
334 | }
335 |
336 | .hljs-tag {
337 | color: #333333;
338 | }
339 |
340 | .hljs-title,
341 | .hljs-attr,
342 | .hljs-selector-id,
343 | .hljs-selector-class,
344 | .hljs-selector-attr,
345 | .hljs-selector-pseudo {
346 | color: #795da3;
347 | }
348 |
349 | .hljs-addition {
350 | color: #55a532;
351 | background-color: #eaffea;
352 | }
353 |
354 | .hljs-deletion {
355 | color: #bd2c00;
356 | background-color: #ffecec;
357 | }
358 |
359 | .hljs-link {
360 | text-decoration: underline;
361 | }
362 |
363 | pre{
364 | background: #fff;
365 | }
366 |
367 |
368 |
369 |
370 |
371 |
--------------------------------------------------------------------------------
/src/assets/iconfont/iconfont.eot:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dengzeyuan/front-njxs-screen/f4961f2d802bf44974cbfe89016d454477afbcd7/src/assets/iconfont/iconfont.eot
--------------------------------------------------------------------------------
/src/assets/iconfont/iconfont.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dengzeyuan/front-njxs-screen/f4961f2d802bf44974cbfe89016d454477afbcd7/src/assets/iconfont/iconfont.ttf
--------------------------------------------------------------------------------
/src/assets/iconfont/iconfont.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dengzeyuan/front-njxs-screen/f4961f2d802bf44974cbfe89016d454477afbcd7/src/assets/iconfont/iconfont.woff
--------------------------------------------------------------------------------
/src/assets/img/border.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dengzeyuan/front-njxs-screen/f4961f2d802bf44974cbfe89016d454477afbcd7/src/assets/img/border.png
--------------------------------------------------------------------------------
/src/assets/img/busy.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dengzeyuan/front-njxs-screen/f4961f2d802bf44974cbfe89016d454477afbcd7/src/assets/img/busy.png
--------------------------------------------------------------------------------
/src/assets/img/equal.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dengzeyuan/front-njxs-screen/f4961f2d802bf44974cbfe89016d454477afbcd7/src/assets/img/equal.png
--------------------------------------------------------------------------------
/src/assets/img/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dengzeyuan/front-njxs-screen/f4961f2d802bf44974cbfe89016d454477afbcd7/src/assets/img/favicon.ico
--------------------------------------------------------------------------------
/src/assets/img/green.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dengzeyuan/front-njxs-screen/f4961f2d802bf44974cbfe89016d454477afbcd7/src/assets/img/green.png
--------------------------------------------------------------------------------
/src/assets/img/hideing.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dengzeyuan/front-njxs-screen/f4961f2d802bf44974cbfe89016d454477afbcd7/src/assets/img/hideing.png
--------------------------------------------------------------------------------
/src/assets/img/leave.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dengzeyuan/front-njxs-screen/f4961f2d802bf44974cbfe89016d454477afbcd7/src/assets/img/leave.png
--------------------------------------------------------------------------------
/src/assets/img/navImg.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dengzeyuan/front-njxs-screen/f4961f2d802bf44974cbfe89016d454477afbcd7/src/assets/img/navImg.jpg
--------------------------------------------------------------------------------
/src/assets/img/noshow.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dengzeyuan/front-njxs-screen/f4961f2d802bf44974cbfe89016d454477afbcd7/src/assets/img/noshow.png
--------------------------------------------------------------------------------
/src/assets/img/on.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dengzeyuan/front-njxs-screen/f4961f2d802bf44974cbfe89016d454477afbcd7/src/assets/img/on.png
--------------------------------------------------------------------------------
/src/assets/img/quit.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dengzeyuan/front-njxs-screen/f4961f2d802bf44974cbfe89016d454477afbcd7/src/assets/img/quit.png
--------------------------------------------------------------------------------
/src/assets/img/red.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dengzeyuan/front-njxs-screen/f4961f2d802bf44974cbfe89016d454477afbcd7/src/assets/img/red.png
--------------------------------------------------------------------------------
/src/assets/img/set.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dengzeyuan/front-njxs-screen/f4961f2d802bf44974cbfe89016d454477afbcd7/src/assets/img/set.png
--------------------------------------------------------------------------------
/src/assets/img/show.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dengzeyuan/front-njxs-screen/f4961f2d802bf44974cbfe89016d454477afbcd7/src/assets/img/show.png
--------------------------------------------------------------------------------
/src/assets/img/status.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dengzeyuan/front-njxs-screen/f4961f2d802bf44974cbfe89016d454477afbcd7/src/assets/img/status.png
--------------------------------------------------------------------------------
/src/assets/img/statuson.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dengzeyuan/front-njxs-screen/f4961f2d802bf44974cbfe89016d454477afbcd7/src/assets/img/statuson.png
--------------------------------------------------------------------------------
/src/assets/img/time.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dengzeyuan/front-njxs-screen/f4961f2d802bf44974cbfe89016d454477afbcd7/src/assets/img/time.png
--------------------------------------------------------------------------------
/src/axios/axios.js:
--------------------------------------------------------------------------------
1 | import axios from 'axios';
2 | import qs from 'qs';
3 |
4 | // function getUrlParam(sessionId) {
5 | // var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$|#)");
6 | // var r = window.location.search.substr(1).match(reg);
7 | // if (r != null) return decodeURIComponent(r[2].split("#")[0]);
8 | // return null;
9 | // }
10 |
11 | // axios.defaults.withCredentials = true;
12 | // var reg = new RegExp("(^|&)sessionId=([^&]*)(&|$|#)");
13 | // var urls = window.location.search.substr(1).match(reg);
14 | // var url = '';
15 | // if (urls != null) {
16 | // url = decodeURIComponent(urls[2].split("#")[0]);
17 | // } else {
18 | // url = '4c944608b74c45f8994dadb66590ccc7'
19 | // }
20 | // sessionStorage.setItem('sessionId', url);
21 |
22 | var $axios = axios.create({
23 | // baseURL: 'http://suneee.dcp.weilian.cn',
24 | // timeout: 5000,
25 | headers: {
26 | // 'Content-type': 'application/x-www-form-urlencoded',//form 表单
27 | // 'Content-type': 'text/plain',//raw
28 | // 'Content-type': 'application/json',
29 | // 'Authorization':'wn-jnq_user_session_idd2239db2-d01d-47b6-bf55-8c24aae4101c'
30 | // "sessionId": url
31 | }
32 | });
33 |
34 | //POST传参序列化
35 | $axios.interceptors.request.use((config) => {
36 | if (config.method === 'post') {
37 | config.data = config.data;
38 | }
39 | return config;
40 | }, (error) => {
41 | _.toast("错误的传参", 'fail');
42 | return Promise.reject(error);
43 | });
44 |
45 | export default $axios
46 |
--------------------------------------------------------------------------------
/src/components/Header.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | 年
8 | 月
9 | 周
10 |
11 |
12 | 时间维度
13 |
14 |
15 |
16 |
17 |
18 |
20 |
39 |
--------------------------------------------------------------------------------
/src/components/Left.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | 导航一
7 |
8 | 分组一
9 | 选项1
10 |
11 |
12 |
13 |
14 |
15 |
16 | 选项4
17 | 选项4-1
18 |
19 |
20 |
21 | 导航二
22 |
23 | 分组一
24 | 选项1
25 | 选项2
26 |
27 |
28 | 选项3
29 |
30 |
31 | 选项4
32 | 选项4-1
33 |
34 |
35 |
36 | 导航三
37 |
38 | 分组一
39 | 选项1
40 | 选项2
41 |
42 |
43 | 选项3
44 |
45 |
46 | 选项4
47 | 选项4-1
48 |
49 |
50 |
51 |
52 |
53 |
54 |
72 |
77 |
--------------------------------------------------------------------------------
/src/main.js:
--------------------------------------------------------------------------------
1 | // The Vue build version to load with the `import` command
2 | // (runtime-only or standalone) has been set in webpack.base.conf with an alias.
3 | import Vue from 'vue'
4 | import App from './App'
5 | import router from './router'
6 | import ElementUI from 'element-ui';
7 | import 'element-ui/lib/theme-chalk/index.css';
8 | import axios from './axios/axios.js';
9 | import qs from 'qs';
10 | import echarts from 'echarts'
11 | import * as d3 from 'd3'
12 |
13 | Vue.config.productionTip = false
14 | Vue.prototype.axios = axios;
15 | Vue.prototype.$echarts = echarts;
16 | Vue.prototype.$d3 = d3;
17 | Vue.use(ElementUI);
18 |
19 | if (window.innerWidth > 756) {
20 | var basePercent = "100%"
21 | var baseWidthRate = window.innerWidth / 1920;
22 | var baseHeightRate = window.innerHeight / 1080;
23 | var baseScreenRate = (baseWidthRate > baseHeightRate) ? baseHeightRate : baseWidthRate;
24 | Vue.prototype.baseScreenRate = baseScreenRate;
25 | } else {
26 | var basePercent = "100%"
27 | var baseWidthRate = window.innerWidth / 750;
28 | document.documentElement.style.fontSize = 100 * baseWidthRate + 'px';
29 | Vue.prototype.baseScreenRate = baseWidthRate;
30 | }
31 |
32 | new Vue({
33 | el: '#app',
34 | router,
35 | components: { App },
36 | template: ''
37 | })
38 |
--------------------------------------------------------------------------------
/src/pages/businessProfile/business.vue:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
299 |
316 |
317 |
318 |
--------------------------------------------------------------------------------
/src/pages/editecharts/editecharts.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 |
81 |
141 |
--------------------------------------------------------------------------------
/src/pages/efficiency/efficiency.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
经营效率
5 |
7 |
8 |
9 |
10 |
11 | 坪效
12 | {{responseDate.avgEfficiency+" 元/平"}}
13 |
14 |
15 | 人效
16 | {{responseDate.personEfficiency+" 元/人"}}
17 |
18 |
19 |
20 |
21 |
配送及时率客户满意度
22 |
26 |
27 |
28 |
40 |
41 |
42 |
43 |
44 |
282 |
283 |
457 |
--------------------------------------------------------------------------------
/src/pages/home.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
18 |
19 |
20 |
23 |
24 |
25 |
26 |
27 |
28 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
115 |
126 |
127 |
281 |
282 |
283 |
--------------------------------------------------------------------------------
/src/pages/keyIndicators/key.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
关键指标
5 |
6 |
7 |
8 |
9 |
{{ordername}}
10 |
11 |
线上线下
12 |
{{onlineordervalue}}{{underlineordervalue}}
13 |
14 |
15 |
16 |
17 |
18 |
21 |
22 | {{item.name}} |
23 | {{item.totalValue}} |
24 | {{item.unit}} |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
{{customername}}
33 |
34 |
线上线下
35 |
{{onlinecustomervalue}}{{underlinecustomervalue}}
36 |
37 |
38 |
39 |
40 |
41 |
42 |
45 |
46 | {{item.name}} |
47 | {{item.totalValue}} |
48 | {{item.unit}} |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
{{uservaluename}}
58 |
59 |
线上线下
60 |
{{onlineuservalue}}
61 | {{underlineuservalue}}
62 |
63 |
64 |
65 |
66 |
67 |
68 |
71 |
72 | {{item.name}} |
73 | {{item.totalValue}} |
74 | {{item.unit}} |
75 |
76 |
77 |
78 |
79 |
80 |
81 |
82 |
83 |
453 |
594 |
595 |
596 |
--------------------------------------------------------------------------------
/src/pages/main/index.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
19 |
20 |
46 |
47 |
--------------------------------------------------------------------------------
/src/pages/sales/sales.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
销售同环化
5 |
6 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
241 |
259 |
300 |
301 |
302 |
--------------------------------------------------------------------------------
/src/router/index.js:
--------------------------------------------------------------------------------
1 | import Vue from 'vue'
2 | import Router from 'vue-router'
3 | import Home from '@/pages/home.vue'
4 |
5 |
6 | Vue.use(Router)
7 |
8 | export default new Router({
9 | routes: [
10 | {
11 | path: '/',
12 | name: 'Home',
13 | component: Home,
14 | redirect: '/index',
15 | children: [
16 | {
17 | path: '/index',
18 | name: 'index',
19 | component: resolve => require(['../pages/main/index.vue'], resolve),
20 | },
21 | {
22 | path: '/index/:id',
23 | name: 'index',
24 | component: resolve => require(['../pages/main/index.vue'], resolve),
25 | },
26 | ]
27 | }
28 | ]
29 | })
--------------------------------------------------------------------------------
/static/.gitkeep:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dengzeyuan/front-njxs-screen/f4961f2d802bf44974cbfe89016d454477afbcd7/static/.gitkeep
--------------------------------------------------------------------------------