├── .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
└── test.env.js
├── index.html
├── package-lock.json
├── package.json
├── src
├── App.vue
├── common
│ ├── api.js
│ ├── componentslist.js
│ ├── fontSize.js
│ ├── http.js
│ ├── setCookie.js
│ └── util.js
├── components
│ ├── common
│ │ ├── TXhead.vue
│ │ └── tabs.vue
│ └── controls
│ │ ├── Checklist.vue
│ │ ├── Datetime.vue
│ │ ├── PopupRadio.vue
│ │ ├── XInput.vue
│ │ ├── XTextarea.vue
│ │ ├── font.vue
│ │ ├── radio.vue
│ │ └── upload.vue
├── main.js
├── pages
│ ├── HelloWorld
│ │ └── HelloWorld.vue
│ ├── apply
│ │ ├── announcement
│ │ │ ├── AnnouncementDetails
│ │ │ │ ├── AnnouncementDC.vue
│ │ │ │ └── AnnouncementDetails.vue
│ │ │ └── announcement.vue
│ │ ├── apply.vue
│ │ ├── dakaData
│ │ │ └── dakaData.vue
│ │ ├── inform
│ │ │ ├── inform.vue
│ │ │ └── informDetails
│ │ │ │ ├── informContent.vue
│ │ │ │ └── informDetails.vue
│ │ ├── jiaBan
│ │ │ ├── jiaBan.vue
│ │ │ └── jiaBanDetails
│ │ │ │ └── jiaBanDetails.vue
│ │ ├── jiaqi
│ │ │ └── jiaqi.vue
│ │ ├── kaoQinErr
│ │ │ └── kaoQinErr.vue
│ │ ├── meLog
│ │ │ └── meLog.vue
│ │ ├── mePlan
│ │ │ └── mePlan.vue
│ │ ├── news
│ │ │ ├── news.vue
│ │ │ └── newsDetails
│ │ │ │ ├── newsContent.vue
│ │ │ │ └── newsDetails.vue
│ │ ├── peiXun
│ │ │ └── peiXun.vue
│ │ ├── qianKa
│ │ │ ├── qianKa.vue
│ │ │ └── qiankaDetail
│ │ │ │ └── qiankaDetail.vue
│ │ ├── salary
│ │ │ └── salary.vue
│ │ ├── suggest
│ │ │ └── suggest.vue
│ │ ├── vacation
│ │ │ ├── vacation.vue
│ │ │ └── vacationDetails
│ │ │ │ └── vacationDetails.vue
│ │ └── workSum
│ │ │ └── workSum.vue
│ ├── daka
│ │ ├── daka.vue
│ │ └── setAccount
│ │ │ └── setAccount.vue
│ ├── login
│ │ └── login.vue
│ ├── manage
│ │ ├── manage.vue
│ │ └── meDep
│ │ │ └── meDep.vue
│ ├── personTask
│ │ ├── personTask.vue
│ │ ├── taskFinished.vue
│ │ ├── taskLaunch.vue
│ │ └── taskWait.vue
│ ├── renderControl.vue
│ └── run.vue
├── router
│ └── index.js
└── store
│ ├── index.js
│ └── type.js
├── static
├── .gitkeep
├── apply
│ ├── applyFor
│ │ ├── 1.png
│ │ ├── 2.png
│ │ ├── 3.png
│ │ └── 4.png
│ ├── info
│ │ ├── 1.png
│ │ ├── 2.png
│ │ ├── 3.png
│ │ └── 4.png
│ ├── query
│ │ ├── 1.png
│ │ ├── 2.png
│ │ ├── 3.png
│ │ └── 4.png
│ ├── work
│ │ ├── 1.png
│ │ ├── 2.png
│ │ ├── 3.png
│ │ ├── 4.png
│ │ └── 5.png
│ └── 感谢.png
├── com
│ └── null_logo.png
├── common.css
├── daka
│ └── head.jpg
├── login
│ ├── 1.png
│ ├── 2.png
│ ├── 3.png
│ ├── 4.png
│ ├── 5.png
│ └── logo.png
├── manage
│ ├── dataAnalysis
│ │ ├── 1.png
│ │ ├── 2.png
│ │ ├── 3.png
│ │ ├── 4.png
│ │ ├── 5.png
│ │ ├── 6.png
│ │ ├── 7.png
│ │ └── 8.png
│ ├── department
│ │ ├── 1.png
│ │ ├── 2.png
│ │ ├── 3.png
│ │ └── 4.png
│ └── meTeam
│ │ ├── 1.png
│ │ └── 2.png
├── tabImg
│ ├── 个人任务.png
│ ├── 个人任务1.png
│ ├── 应用中心.png
│ ├── 应用中心1.png
│ ├── 打卡.png
│ ├── 打卡1.png
│ ├── 管理中心.png
│ └── 管理中心1.png
└── theme.less
├── test
├── components.html
├── e2e
│ ├── custom-assertions
│ │ └── elementCount.js
│ ├── nightwatch.conf.js
│ ├── runner.js
│ └── specs
│ │ └── test.js
├── t1.html
├── t2.html
├── watch.html
├── watch2.html
├── watch3.html
└── 测试数组.html
└── theme.less
/.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 | "env": {
13 | "test": {
14 | "presets": ["env", "stage-2"]
15 | }
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/.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 | /test/e2e/reports/
8 | selenium-debug.log
9 |
10 | # Editor directories and files
11 | .idea
12 | .vscode
13 | *.suo
14 | *.ntvs*
15 | *.njsproj
16 | *.sln
17 |
--------------------------------------------------------------------------------
/.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 |
2 |
3 |
4 | ### 集成表单设计器动态渲染控件
5 | ### miniform(基于jquery mini-ui做的表单设计器):
6 | ### github 地址 https://github.com/wsklxts/mini-form
7 |
8 | #### 后台接口采用django drf 点击保存将数据保存到数据库,然后前端获取接口进行渲染
9 |
10 |
11 |
12 | ## Build Setup
13 |
14 | ``` bash
15 | # install dependencies
16 | npm install
17 |
18 | # serve with hot reload at localhost:8080
19 | npm run dev
20 |
21 | # build for production with minification
22 | npm run build
23 |
24 | # build for production and view the bundle analyzer report
25 | npm run build --report
26 |
27 | # run e2e tests
28 | npm run e2e
29 |
30 | # run all tests
31 | npm test
32 | ```
33 |
34 | 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).
35 |
--------------------------------------------------------------------------------
/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/wsklxts/vueapp/2b9dcbb5987c934f71b05e5ba67429bad77dab0b/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 | const vuxLoader = require('vux-loader')
7 |
8 | function resolve (dir) {
9 | return path.join(__dirname, '..', dir)
10 | }
11 |
12 |
13 |
14 | let originalConfig = {
15 | context: path.resolve(__dirname, '../'),
16 | entry: {
17 | app: './src/main.js'
18 | },
19 | output: {
20 | path: config.build.assetsRoot,
21 | filename: '[name].js',
22 | publicPath: process.env.NODE_ENV === 'production'
23 | ? config.build.assetsPublicPath
24 | : config.dev.assetsPublicPath
25 | },
26 | resolve: {
27 | extensions: ['.js', '.vue', '.json'],
28 | alias: {
29 | 'vue$': 'vue/dist/vue.esm.js',
30 | '@': resolve('src'),
31 | }
32 | },
33 | module: {
34 | rules: [
35 | {
36 | test: /\.vue$/,
37 | loader: 'vue-loader',
38 | options: vueLoaderConfig
39 | },
40 | {
41 | test: /vux.src.*?js$/,
42 | loader: 'babel'
43 | },
44 | {
45 | test: /\.js$/,
46 | loader: 'babel-loader',
47 | include: [resolve('src'), resolve('test'), resolve('node_modules/webpack-dev-server/client')]
48 | },
49 | {
50 | test: /\.(png|jpe?g|gif|svg)(\?.*)?$/,
51 | loader: 'url-loader',
52 | options: {
53 | limit: 10000,
54 | name: utils.assetsPath('img/[name].[hash:7].[ext]')
55 | }
56 | },
57 | {
58 | test: /\.(mp4|webm|ogg|mp3|wav|flac|aac)(\?.*)?$/,
59 | loader: 'url-loader',
60 | options: {
61 | limit: 10000,
62 | name: utils.assetsPath('media/[name].[hash:7].[ext]')
63 | }
64 | },
65 | {
66 | test: /\.(woff2?|eot|ttf|otf)(\?.*)?$/,
67 | loader: 'url-loader',
68 | options: {
69 | limit: 10000,
70 | name: utils.assetsPath('fonts/[name].[hash:7].[ext]')
71 | }
72 | }
73 | ]
74 | },
75 | node: {
76 | // prevent webpack from injecting useless setImmediate polyfill because Vue
77 | // source contains it (although only uses it if it's native).
78 | setImmediate: false,
79 | // prevent webpack from injecting mocks to Node native modules
80 | // that does not make sense for the client
81 | dgram: 'empty',
82 | fs: 'empty',
83 | net: 'empty',
84 | tls: 'empty',
85 | child_process: 'empty'
86 | }
87 | }
88 |
89 | const webpackConfig = originalConfig // 原来的 module.exports 代码赋值给变量 webpackConfig
90 |
91 | module.exports = vuxLoader.merge(webpackConfig, {
92 | plugins: ['vux-ui'
93 | ,{
94 | name: 'less-theme',
95 | path: 'static/theme.less' // 相对项目根目录路径
96 | }
97 | ]
98 | })
99 |
100 |
--------------------------------------------------------------------------------
/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 = process.env.NODE_ENV === 'testing'
15 | ? require('../config/test.env')
16 | : require('../config/prod.env')
17 |
18 | const webpackConfig = merge(baseWebpackConfig, {
19 | module: {
20 | rules: utils.styleLoaders({
21 | sourceMap: config.build.productionSourceMap,
22 | extract: true,
23 | usePostCSS: true
24 | })
25 | },
26 | devtool: config.build.productionSourceMap ? config.build.devtool : false,
27 | output: {
28 | path: config.build.assetsRoot,
29 | filename: utils.assetsPath('js/[name].[chunkhash].js'),
30 | chunkFilename: utils.assetsPath('js/[id].[chunkhash].js')
31 | },
32 | plugins: [
33 | // http://vuejs.github.io/vue-loader/en/workflow/production.html
34 | new webpack.DefinePlugin({
35 | 'process.env': env
36 | }),
37 | new UglifyJsPlugin({
38 | uglifyOptions: {
39 | compress: {
40 | warnings: false
41 | }
42 | },
43 | sourceMap: config.build.productionSourceMap,
44 | parallel: true
45 | }),
46 | // extract css into its own file
47 | new ExtractTextPlugin({
48 | filename: utils.assetsPath('css/[name].[contenthash].css'),
49 | // Setting the following option to `false` will not extract CSS from codesplit chunks.
50 | // Their CSS will instead be inserted dynamically with style-loader when the codesplit chunk has been loaded by webpack.
51 | // It's currently set to `true` because we are seeing that sourcemaps are included in the codesplit bundle as well when it's `false`,
52 | // increasing file size: https://github.com/vuejs-templates/webpack/issues/1110
53 | allChunks: true,
54 | }),
55 | // Compress extracted CSS. We are using this plugin so that possible
56 | // duplicated CSS from different components can be deduped.
57 | new OptimizeCSSPlugin({
58 | cssProcessorOptions: config.build.productionSourceMap
59 | ? { safe: true, map: { inline: false } }
60 | : { safe: true }
61 | }),
62 | // generate dist index.html with correct asset hash for caching.
63 | // you can customize output by editing /index.html
64 | // see https://github.com/ampedandwired/html-webpack-plugin
65 | new HtmlWebpackPlugin({
66 | filename: process.env.NODE_ENV === 'testing'
67 | ? 'index.html'
68 | : config.build.index,
69 | template: 'index.html',
70 | inject: true,
71 | minify: {
72 | removeComments: true,
73 | collapseWhitespace: true,
74 | removeAttributeQuotes: true
75 | // more options:
76 | // https://github.com/kangax/html-minifier#options-quick-reference
77 | },
78 | // necessary to consistently work with multiple chunks via CommonsChunkPlugin
79 | chunksSortMode: 'dependency'
80 | }),
81 | // keep module.id stable when vendor modules does not change
82 | new webpack.HashedModuleIdsPlugin(),
83 | // enable scope hoisting
84 | new webpack.optimize.ModuleConcatenationPlugin(),
85 | // split vendor js into its own file
86 | new webpack.optimize.CommonsChunkPlugin({
87 | name: 'vendor',
88 | minChunks (module) {
89 | // any required modules inside node_modules are extracted to vendor
90 | return (
91 | module.resource &&
92 | /\.js$/.test(module.resource) &&
93 | module.resource.indexOf(
94 | path.join(__dirname, '../node_modules')
95 | ) === 0
96 | )
97 | }
98 | }),
99 | // extract webpack runtime and module manifest to its own file in order to
100 | // prevent vendor hash from being updated whenever app bundle is updated
101 | new webpack.optimize.CommonsChunkPlugin({
102 | name: 'manifest',
103 | minChunks: Infinity
104 | }),
105 | // This instance extracts shared chunks from code splitted chunks and bundles them
106 | // in a separate chunk, similar to the vendor chunk
107 | // see: https://webpack.js.org/plugins/commons-chunk-plugin/#extra-async-commons-chunk
108 | new webpack.optimize.CommonsChunkPlugin({
109 | name: 'app',
110 | async: 'vendor-async',
111 | children: true,
112 | minChunks: 3
113 | }),
114 |
115 | // copy custom static assets
116 | new CopyWebpackPlugin([
117 | {
118 | from: path.resolve(__dirname, '../static'),
119 | to: config.build.assetsSubDirectory,
120 | ignore: ['.*']
121 | }
122 | ])
123 | ]
124 | })
125 |
126 | if (config.build.productionGzip) {
127 | const CompressionWebpackPlugin = require('compression-webpack-plugin')
128 |
129 | webpackConfig.plugins.push(
130 | new CompressionWebpackPlugin({
131 | asset: '[path].gz[query]',
132 | algorithm: 'gzip',
133 | test: new RegExp(
134 | '\\.(' +
135 | config.build.productionGzipExtensions.join('|') +
136 | ')$'
137 | ),
138 | threshold: 10240,
139 | minRatio: 0.8
140 | })
141 | )
142 | }
143 |
144 | if (config.build.bundleAnalyzerReport) {
145 | const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin
146 | webpackConfig.plugins.push(new BundleAnalyzerPlugin())
147 | }
148 |
149 | module.exports = webpackConfig
150 |
--------------------------------------------------------------------------------
/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 | API_ROOT: '"http://localhost:8001/api"',
8 | proxyTable: {
9 | '/api': {
10 | target: 'http://localhost:8001/MobileService/Web/WebPage',
11 | changeOrigin: true,
12 | pathRewrite: {
13 | '^/api': ''
14 | }
15 | }
16 | },
17 | })
18 |
--------------------------------------------------------------------------------
/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 |
8 | //let h= window.location.hostname;
9 |
10 | //let h = "192.168.0.44"
11 | let h="localhost"
12 | //let h="192.168.43.246"
13 | let hh = "http://localhost:8001"
14 |
15 | h = "0.0.0.0"
16 |
17 |
18 |
19 | module.exports = {
20 | dev: {
21 |
22 | // Paths
23 | assetsSubDirectory: 'static',
24 | assetsPublicPath: '/',
25 | proxyTable: {
26 | '/devApi': {
27 | target: 'http://127.0.0.1:8888/api',// 请换成你的地址
28 | // target: 'http://jilalahk.com/api',// 请换成你的地址
29 | changeOrigin: true,
30 | pathRewrite: {
31 | '^/devApi': ''
32 | }
33 | }
34 | },
35 |
36 | // Various Dev Server settings
37 | host: h, // can be overwritten by process.env.HOST
38 | port: 8080, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined
39 | autoOpenBrowser: false,
40 | errorOverlay: true,
41 | notifyOnErrors: true,
42 | poll: false, // https://webpack.js.org/configuration/dev-server/#devserver-watchoptions-
43 |
44 |
45 | /**
46 | * Source Maps
47 | */
48 |
49 | // https://webpack.js.org/configuration/devtool/#development
50 | devtool: 'cheap-module-eval-source-map',
51 |
52 | // If you have problems debugging vue-files in devtools,
53 | // set this to false - it *may* help
54 | // https://vue-loader.vuejs.org/en/options.html#cachebusting
55 | cacheBusting: true,
56 |
57 | cssSourceMap: true
58 | },
59 |
60 | build: {
61 | // Template for index.html
62 | index: path.resolve(__dirname, '../docs/index.html'),
63 |
64 | // Paths
65 | assetsRoot: path.resolve(__dirname, '../docs'),
66 | assetsSubDirectory: 'static',
67 | assetsPublicPath: '/vueapp/',
68 | //proxyTable: {
69 | // '/api': {
70 | // target: 'http://localhost:8001/MobileService/Web/WebPage',// 请换成你的地址
71 | // changeOrigin: false,
72 | // pathRewrite: {
73 | // '^/api': ''
74 | // }
75 | // }
76 | //},
77 | /**
78 | * Source Maps
79 | */
80 |
81 | productionSourceMap: true,
82 | // https://webpack.js.org/configuration/devtool/#production
83 | devtool: '#source-map',
84 |
85 | // Gzip off by default as many popular static hosts such as
86 | // Surge or Netlify already gzip all static assets for you.
87 | // Before setting to `true`, make sure to:
88 | // npm install --save-dev compression-webpack-plugin
89 | productionGzip: false,
90 | productionGzipExtensions: ['js', 'css'],
91 |
92 | // Run the build command with an extra argument to
93 | // View the bundle analyzer report after build finishes:
94 | // `npm run build --report`
95 | // Set to `true` or `false` to always turn it on or off
96 | bundleAnalyzerReport: process.env.npm_config_report
97 | }
98 | }
99 |
--------------------------------------------------------------------------------
/config/prod.env.js:
--------------------------------------------------------------------------------
1 | 'use strict'
2 | module.exports = {
3 | NODE_ENV: '"production"',
4 | API_ROOT: '"http://localhost:8001/MobileService/Web/WebPage"',
5 | }
6 |
--------------------------------------------------------------------------------
/config/test.env.js:
--------------------------------------------------------------------------------
1 | 'use strict'
2 | const merge = require('webpack-merge')
3 | const devEnv = require('./dev.env')
4 |
5 | module.exports = merge(devEnv, {
6 | NODE_ENV: '"testing"'
7 | })
8 |
--------------------------------------------------------------------------------
/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 | vueapp
9 |
10 |
11 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "tsharenmobile",
3 | "version": "1.0.0",
4 | "description": "A Vue.js project",
5 | "author": "",
6 | "private": true,
7 | "scripts": {
8 | "dev": "webpack-dev-server --inline --progress --config build/webpack.dev.conf.js",
9 | "start": "npm run dev",
10 | "e2e": "node test/e2e/runner.js",
11 | "test": "npm run e2e",
12 | "build": "node build/build.js"
13 | },
14 | "dependencies": {
15 | "axios": "^0.18.0",
16 | "better-scroll": "^1.12.6",
17 | "fastclick": "^1.0.6",
18 | "less": "^3.0.4",
19 | "less-loader": "^4.1.0",
20 | "qs": "^6.5.2",
21 | "vue": "^2.5.2",
22 | "vue-router": "^3.0.1",
23 | "vueg": "^1.3.4",
24 | "vuex": "^3.0.1",
25 | "vux": "^2.9.2"
26 | },
27 | "devDependencies": {
28 | "autoprefixer": "^7.1.2",
29 | "babel-core": "^6.22.1",
30 | "babel-helper-vue-jsx-merge-props": "^2.0.3",
31 | "babel-loader": "^7.1.1",
32 | "babel-plugin-syntax-jsx": "^6.18.0",
33 | "babel-plugin-transform-runtime": "^6.22.0",
34 | "babel-plugin-transform-vue-jsx": "^3.5.0",
35 | "babel-preset-env": "^1.3.2",
36 | "babel-preset-stage-2": "^6.22.0",
37 | "babel-register": "^6.22.0",
38 | "chalk": "^2.0.1",
39 | "chromedriver": "^2.27.2",
40 | "copy-webpack-plugin": "^4.0.1",
41 | "cross-spawn": "^5.0.1",
42 | "css-loader": "^0.28.0",
43 | "extract-text-webpack-plugin": "^3.0.0",
44 | "file-loader": "^1.1.4",
45 | "friendly-errors-webpack-plugin": "^1.6.1",
46 | "html-webpack-plugin": "^2.30.1",
47 | "nightwatch": "^0.9.12",
48 | "node-notifier": "^5.1.2",
49 | "optimize-css-assets-webpack-plugin": "^3.2.0",
50 | "ora": "^1.2.0",
51 | "portfinder": "^1.0.13",
52 | "postcss-import": "^11.0.0",
53 | "postcss-loader": "^2.0.8",
54 | "postcss-url": "^7.2.1",
55 | "rimraf": "^2.6.0",
56 | "selenium-server": "^3.0.1",
57 | "semver": "^5.3.0",
58 | "shelljs": "^0.7.6",
59 | "uglifyjs-webpack-plugin": "^1.1.1",
60 | "url-loader": "^0.5.8",
61 | "vue-loader": "^13.3.0",
62 | "vue-style-loader": "^3.0.1",
63 | "vue-template-compiler": "^2.5.2",
64 | "vux-loader": "^1.2.9",
65 | "webpack": "^3.6.0",
66 | "webpack-bundle-analyzer": "^2.9.0",
67 | "webpack-dev-server": "^2.9.1",
68 | "webpack-merge": "^4.1.0",
69 | "yaml-loader": "^0.5.0"
70 | },
71 | "engines": {
72 | "node": ">= 6.0.0",
73 | "npm": ">= 3.0.0"
74 | },
75 | "browserslist": [
76 | "> 1%",
77 | "last 2 versions",
78 | "not ie <= 8"
79 | ]
80 | }
81 |
--------------------------------------------------------------------------------
/src/App.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | {{errMsgText}}
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
60 |
61 |
87 |
--------------------------------------------------------------------------------
/src/common/api.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by Administrator on 2018/7/31.
3 | */
4 |
5 |
6 |
7 |
8 |
9 |
10 | export default{
11 | a:"aaa"
12 | }
13 |
14 |
15 | export function abc(){
16 | alert("abc")
17 | }
18 |
--------------------------------------------------------------------------------
/src/common/componentslist.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by Administrator on 2018/12/21.
3 | */
4 |
5 | export default {
6 | XInput: (resolve) => require(['@/components/controls/XInput'], resolve),
7 | Checklist: (resolve) => require(['@/components/controls/Checklist'], resolve),
8 | PopupRadio: (resolve) => require(['@/components/controls/PopupRadio'], resolve),
9 | radio: (resolve) => require(['@/components/controls/radio'], resolve),
10 | XTextarea: (resolve) => require(['@/components/controls/XTextarea'], resolve),
11 | }
12 | export const componentMap ={
13 | "textbox":"XInput",
14 | "checkBox":"Checklist",
15 | "combobox":"PopupRadio",
16 | "textArea":"XTextarea",
17 | "radio":"radio",
18 | }
19 |
20 |
--------------------------------------------------------------------------------
/src/common/fontSize.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by Administrator on 2018/6/29.
3 | */
4 | (function() {
5 | var newRem = function() {
6 | document.documentElement.style.fontSize = document.documentElement.clientWidth / 720*100 + "px";
7 | };
8 | window.addEventListener('resize', newRem, false);
9 | newRem();
10 | })();
11 |
--------------------------------------------------------------------------------
/src/common/http.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by Administrator on 2018/8/1.
3 | */
4 |
5 |
6 |
7 | import axios from 'axios';
8 | import router from '../router'
9 | import stores from "../store"
10 | //axios.defaults.timeout = 5000;
11 |
12 |
13 |
14 |
15 |
16 | if(process.env.NODE_ENV=="development"){
17 | axios.defaults.baseURL="devApi"
18 | }else if(process.env.NODE_ENV=="production"){
19 | axios.defaults.baseURL = 'http://okohk.com/api';
20 | }
21 |
22 |
23 | let ContentType="application/json"
24 | //var instance = axios.create({
25 | // headers:{
26 | // //'Content-type': ContentType
27 | // },
28 | //});
29 |
30 |
31 |
32 | //http request 拦截器
33 | axios.interceptors.request.use(
34 | config => {
35 | // const token = getCookie('名称');注意使用的时候需要引入cookie方法,推荐js-cookie
36 | //config.data = JSON.stringify(config.data);
37 | //config.headers = {
38 | // 'Content-Type':'application/x-www-form-urlencoded'
39 | //}
40 | // if(token){
41 | // config.params = {'token':token}
42 | // }
43 | //stores.dispatch('showLoading')
44 | return config;
45 | },
46 | error => {
47 | return Promise.reject(err);
48 | }
49 | );
50 |
51 |
52 | //http response 拦截器
53 | axios.interceptors.response.use(
54 | response => {
55 |
56 | //if(response.data!=="" && response.data.data[1].isAutoLogin == "3"){
57 | // router.replace({
58 | // path: '/HelloWorld',
59 | // query: {redirect: router.currentRoute.fullPath}
60 | // })
61 | //
62 | //}
63 | //setTimeout(function(){
64 | // console.log(3);
65 | // stores.dispatch('hideLoading')
66 | // //return response;
67 | //},2000)
68 |
69 | setTimeout(function(){
70 | stores.dispatch('hideLoading')
71 | },300)
72 | return response;
73 | //stores.dispatch('hideLoading')
74 |
75 | },
76 | error => {
77 | stores.dispatch('hideLoading')
78 | stores.dispatch("showErrToast",error)
79 | return Promise.reject(error)
80 | }
81 | )
82 |
83 | //export {axios}
84 |
85 | /**
86 | * 封装get post方法
87 | * @param url
88 | * @param data
89 | * @returns {Promise}
90 | */
91 |
92 |
93 |
94 |
95 | export const $http = {
96 | _paramFormat:function(c){
97 | return{
98 | contentType:c && c.ContentType? c.ContentType : "application/json",
99 | loading:c && c.loading ? c.loading : "",
100 | showLoading:c ? (c.showLoading ? c.showLoading : false) : true,
101 | }
102 | },
103 | get: function(url,params={},config){
104 | const orm = this._paramFormat(config)
105 | if(orm.showLoading){
106 | stores.dispatch('showLoading',orm.loading)
107 | }
108 | return new Promise((resolve,reject) => {
109 | axios.get(url,{params:params},{ headers:{"Content-Type":orm.contentType}})
110 | .then(response => {
111 | resolve(response.data,response);
112 | })
113 | .catch(err => {
114 | reject(err)
115 | })
116 | })
117 | },
118 | post: function (url,data = {},config) {
119 | const orm = this._paramFormat(config)
120 | if(orm.showLoading){
121 | stores.dispatch('showLoading',orm.loading)
122 | }
123 | return new Promise((resolve, reject) => {
124 | axios.post(url, data,{ headers:{"Content-Type":orm.contentType}})
125 | //axios.post(url, data)
126 | .then(response => {
127 | setTimeout(function(){
128 | resolve(response);
129 | },300)
130 | }, error => {
131 | reject(error)
132 | })
133 | })
134 | },
135 |
136 | }
137 |
138 |
139 |
140 |
141 | export function fetch(url,params={}){
142 | return new Promise((resolve,reject) => {
143 | axios.get(url,{
144 | params:params
145 | })
146 | .then(response => {
147 | resolve(response.data);
148 | })
149 | .catch(err => {
150 | reject(err)
151 | })
152 | })
153 | }
154 |
155 |
156 | /**
157 | * 封装post请求
158 | * @param url
159 | * @param data
160 | * @returns {Promise}
161 | */
162 |
163 | export function post(url,data = {}){
164 | return new Promise((resolve,reject) => {
165 | axios.post(url,data)
166 | .then(response => {
167 | resolve(response.data);
168 | },err => {
169 | reject(err)
170 | })
171 | })
172 | }
173 |
174 | /**
175 | * 封装patch请求
176 | * @param url
177 | * @param data
178 | * @returns {Promise}
179 | */
180 |
181 | export function patch(url,data = {}){
182 | return new Promise((resolve,reject) => {
183 | axios.patch(url,data)
184 | .then(response => {
185 | resolve(response.data);
186 | },err => {
187 | reject(err)
188 | })
189 | })
190 | }
191 |
192 | /**
193 | * 封装put请求
194 | * @param url
195 | * @param data
196 | * @returns {Promise}
197 | */
198 |
199 | export function put(url,data = {}){
200 | return new Promise((resolve,reject) => {
201 | axios.put(url,data)
202 | .then(response => {
203 | resolve(response.data);
204 | },err => {
205 | reject(err)
206 | })
207 | })
208 | }
209 |
--------------------------------------------------------------------------------
/src/common/setCookie.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by Administrator on 2018/7/27.
3 | */
4 |
5 |
6 |
7 | const setCookie={
8 | getCookie:function(name) {
9 | var arr, reg = new RegExp("(^| )" + name + "=([^;]*)(;|$)");
10 | if (arr = document.cookie.match(reg))
11 | return (arr[2]);
12 | else
13 | return null;
14 | },
15 | setCookie:function(c_name, value, expiredays) {
16 | var exdate = new Date();
17 | exdate.setDate(exdate.getDate() + expiredays);
18 | document.cookie = c_name + "=" + escape(value) + ((expiredays == null) ? "" : ";expires=" + exdate.toGMTString());
19 | },
20 | delCookie:function (name) {
21 | var exp = new Date();
22 | exp.setTime(exp.getTime() - 1);
23 | var cval = this.setCookie(name);
24 | if (cval != null)
25 | document.cookie = name + "=" + cval + ";expires=" + exp.toGMTString();
26 | }
27 | }
28 |
29 | export default setCookie
30 |
31 |
32 | //获取cookie、
33 | //export function getCookie(name) {
34 | // var arr, reg = new RegExp("(^| )" + name + "=([^;]*)(;|$)");
35 | // if (arr = document.cookie.match(reg))
36 | // return (arr[2]);
37 | // else
38 | // return null;
39 | //}
40 | //
41 | ////设置cookie,增加到vue实例方便全局调用
42 | //export function addCookie (c_name, value, expiredays) {
43 | // var exdate = new Date();
44 | // exdate.setDate(exdate.getDate() + expiredays);
45 | // document.cookie = c_name + "=" + escape(value) + ((expiredays == null) ? "" : ";expires=" + exdate.toGMTString());
46 | //};
47 | //
48 | ////删除cookie
49 | //export function delCookie (name) {
50 | // var exp = new Date();
51 | // exp.setTime(exp.getTime() - 1);
52 | // var cval = getCookie(name);
53 | // if (cval != null)
54 | // document.cookie = name + "=" + cval + ";expires=" + exp.toGMTString();
55 | //};
56 |
--------------------------------------------------------------------------------
/src/common/util.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by Administrator on 2018/8/7.
3 | */
4 |
5 | import Vue from "vue"
6 |
7 | export function getScrollTop(){
8 | var scrollTop = 0, bodyScrollTop = 0, documentScrollTop = 0;
9 | if(document.body){
10 | bodyScrollTop = document.body.scrollTop;
11 | }
12 | if(document.documentElement){
13 | documentScrollTop = document.documentElement.scrollTop;
14 | }
15 | scrollTop = (bodyScrollTop - documentScrollTop > 0) ? bodyScrollTop : documentScrollTop;
16 | return scrollTop;
17 | }
18 |
19 | //文档的总高度
20 |
21 | export function getScrollHeight(){
22 | var scrollHeight = 0, bodyScrollHeight = 0, documentScrollHeight = 0;
23 | if(document.body){
24 | bodyScrollHeight = document.body.scrollHeight;
25 | }
26 | if(document.documentElement){
27 | documentScrollHeight = document.documentElement.scrollHeight;
28 | }
29 | scrollHeight = (bodyScrollHeight - documentScrollHeight > 0) ? bodyScrollHeight : documentScrollHeight;
30 | return scrollHeight;
31 | }
32 |
33 | //浏览器视口的高度
34 |
35 | export function getWindowHeight(){
36 | var windowHeight = 0;
37 | if(document.compatMode == "CSS1Compat"){
38 | windowHeight = document.documentElement.clientHeight;
39 | }else{
40 | windowHeight = document.body.clientHeight;
41 | }
42 | return windowHeight;
43 | }
44 |
45 |
46 | export const global_empname = window.localStorage.getItem("global_empname")
47 | export const global_empid = window.localStorage.getItem("global_empid")
48 | export const comp_code = window.localStorage.getItem("comp_code")
49 |
50 |
51 |
52 | export default new Vue({
53 |
54 | })
55 |
56 |
57 | //
58 | //window.onscroll = function(){
59 | //// if(getScrollTop() + getWindowHeight() == getScrollHeight()){
60 | //// if(getScrollTop() + getWindowHeight() == getScrollHeight()){
61 | //// console.log("已经到最底部了!!");
62 | //// }
63 | //};
64 |
--------------------------------------------------------------------------------
/src/components/common/TXhead.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 | {{titleText}}
4 |
5 |
6 |
7 |
21 |
22 |
27 |
--------------------------------------------------------------------------------
/src/components/common/tabs.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
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 |
64 |
65 |
66 |
155 |
--------------------------------------------------------------------------------
/src/components/controls/Checklist.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
43 |
44 |
45 |
48 |
--------------------------------------------------------------------------------
/src/components/controls/Datetime.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
12 |
13 |
14 |
15 |
16 |
17 |
51 |
52 |
53 |
56 |
--------------------------------------------------------------------------------
/src/components/controls/PopupRadio.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
43 |
44 |
45 |
48 |
--------------------------------------------------------------------------------
/src/components/controls/XInput.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
33 |
34 |
35 |
38 |
--------------------------------------------------------------------------------
/src/components/controls/XTextarea.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
33 |
34 |
35 |
38 |
--------------------------------------------------------------------------------
/src/components/controls/font.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
37 |
38 |
39 |
44 |
--------------------------------------------------------------------------------
/src/components/controls/radio.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
43 |
44 |
45 |
48 |
--------------------------------------------------------------------------------
/src/components/controls/upload.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
65 |
66 |
67 |
106 |
--------------------------------------------------------------------------------
/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 store from './store'
5 | import App from './App'
6 | import axios from 'axios'
7 | import router from './router'
8 | import {$http} from './common/http'
9 | import FastClick from 'fastclick'
10 | import "../static/common.css"
11 | import "@/common/fontSize"
12 | import BScroll from 'better-scroll'
13 |
14 | import vueg from 'vueg'
15 | import 'vueg/css/transition-min.css'
16 |
17 |
18 | const options={
19 | duration: '0.3', //转场动画时长,默认为0.3,单位秒
20 | firstEntryDisable: false, //值为true时禁用首次进入应用时的渐现动画,默认为false
21 | firstEntryDuration: '.6', //首次进入应用时的渐现动画时长,默认为.6
22 | forwardAnim: 'fadeInRight', //前进动画,默认为fadeInRight
23 | backAnim: 'fadeInLeft', //后退动画,默认为fedeInLeft
24 | sameDepthDisable: false, //url深度相同时禁用动画,默认为false
25 | tabs: [], //默认为[],'name'对应路由的name,以实现类似app中点击tab页面水平转场效果,如tabs[1]到tabs[0] ,会使用backAnim动画,tabs[1]到tabs[2],会使用forwardAnim动画
26 | tabsDisable: false, //值为true时,tabs间的转场没有动画,默认为false
27 | shadow:true, //值为false,转场时没有阴影的层次效果
28 | disable: false, //禁用转场动画,默认为false,嵌套路由默认为true
29 | nuxt: false //若使用后端渲染框架Nuxt,需要将此设为true,默认为false
30 | }
31 |
32 | Vue.use(vueg, router,options) //←注意这一句应该在router实例化之后
33 |
34 | //FastClick.attach(document.body);
35 |
36 | Vue.config.productionTip = false
37 |
38 |
39 |
40 | /* eslint-disable no-new */
41 |
42 |
43 | Vue.prototype.BScroll=BScroll
44 | Vue.prototype.$http=$http
45 |
46 | new Vue({
47 | el: '#app',
48 | data:{v:new Vue()},
49 | router,
50 | store,
51 | components: { App },
52 | template: ''
53 | })
54 |
55 |
56 | //
57 | //
58 | //v.$nextTick(()=>{
59 | //})
60 |
61 |
--------------------------------------------------------------------------------
/src/pages/HelloWorld/HelloWorld.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | 详情
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 | 渲染控件示列
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
120 |
121 |
122 |
137 |
--------------------------------------------------------------------------------
/src/pages/apply/announcement/AnnouncementDetails/AnnouncementDC.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
15 |
16 |
17 |
18 |
19 | |
20 |
21 |
22 |
加载完毕
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
154 |
155 |
156 |
181 |
--------------------------------------------------------------------------------
/src/pages/apply/announcement/AnnouncementDetails/AnnouncementDetails.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 | {{subject}}
10 |
11 |
发布时间:{{senddate}}
12 |
13 |
14 |
15 |
16 |
加载完毕
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
143 |
144 |
145 |
170 |
--------------------------------------------------------------------------------
/src/pages/apply/announcement/announcement.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
15 |
16 | ![]()
17 |
18 |
19 |
20 |
21 | |
22 |
23 |
24 |
加载完毕
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
158 |
159 |
160 |
191 |
--------------------------------------------------------------------------------
/src/pages/apply/inform/inform.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
15 |
16 |
17 |
18 | |
19 |
20 |
21 |
加载完毕
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
148 |
149 |
150 |
174 |
--------------------------------------------------------------------------------
/src/pages/apply/inform/informDetails/informContent.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
15 |
16 |
17 |
18 |
19 | |
20 |
21 |
22 |
加载完毕
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
154 |
155 |
156 |
181 |
--------------------------------------------------------------------------------
/src/pages/apply/inform/informDetails/informDetails.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
15 |
16 |
17 |
18 |
19 | |
20 |
21 |
22 |
加载完毕
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
155 |
156 |
157 |
182 |
--------------------------------------------------------------------------------
/src/pages/apply/jiaBan/jiaBanDetails/jiaBanDetails.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 | |
13 | |
14 | |
15 | |
16 | |
17 | |
18 | |
19 | |
20 |
21 |
22 |
23 |
24 |
25 |
26 | 以上第{{index+1}}项
27 |
28 |
29 |
加载完毕
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
156 |
157 |
158 |
180 |
--------------------------------------------------------------------------------
/src/pages/apply/jiaqi/jiaqi.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 | |
13 | |
14 | |
15 | |
16 | |
17 | |
18 | |
19 | 以上第{{index+1}}项
20 |
21 |
22 |
加载完毕
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
144 |
145 |
146 |
174 |
--------------------------------------------------------------------------------
/src/pages/apply/kaoQinErr/kaoQinErr.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 | |
10 | |
11 | |
12 | |
13 | 以上第{{index+1}}项
14 |
15 |
16 |
加载完毕
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
138 |
139 |
140 |
168 |
--------------------------------------------------------------------------------
/src/pages/apply/meLog/meLog.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
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 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
126 |
127 |
128 |
178 |
--------------------------------------------------------------------------------
/src/pages/apply/mePlan/mePlan.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
21 |
22 |
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 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
82 |
83 |
84 |
85 |
86 |
87 |
88 |
151 |
152 |
153 |
203 |
--------------------------------------------------------------------------------
/src/pages/apply/news/news.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
15 |
16 | ![]()
17 |
18 |
19 |
20 |
21 | |
22 |
23 |
24 |
加载完毕
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
156 |
157 |
158 |
186 |
--------------------------------------------------------------------------------
/src/pages/apply/news/newsDetails/newsContent.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
15 |
16 |
17 |
18 |
19 | |
20 |
21 |
22 |
加载完毕
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
154 |
155 |
156 |
181 |
--------------------------------------------------------------------------------
/src/pages/apply/news/newsDetails/newsDetails.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 | {{subject}}
10 |
11 |
发布时间:{{senddate}}
12 |
13 |
14 |
加载完毕
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
145 |
146 |
147 |
172 |
--------------------------------------------------------------------------------
/src/pages/apply/peiXun/peiXun.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
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 |
87 |
88 |
89 |
90 |
91 |
92 |
93 |
156 |
157 |
158 |
207 |
--------------------------------------------------------------------------------
/src/pages/apply/qianKa/qiankaDetail/qiankaDetail.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | |
8 | |
9 | |
10 | |
11 | |
12 | |
13 | |
14 |
15 |
16 |
17 |
18 |
19 |
20 | 以上第{{index+1}}项
21 |
22 |
23 |
加载完毕
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
130 |
131 |
132 |
154 |
--------------------------------------------------------------------------------
/src/pages/apply/salary/salary.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | 我的薪资
7 |
8 |
9 |
10 |
11 |
12 |
13 |
76 |
77 |
78 |
128 |
--------------------------------------------------------------------------------
/src/pages/apply/suggest/suggest.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
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 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
77 |
78 |
79 |
80 |
81 |
82 |
83 |
146 |
147 |
148 |
198 |
--------------------------------------------------------------------------------
/src/pages/apply/vacation/vacationDetails/vacationDetails.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 | |
13 | |
14 | |
15 | |
16 | |
17 | |
18 | |
19 |
20 |
21 |
22 |
23 |
24 |
25 | 以上第{{index+1}}项
26 |
27 |
28 |
加载完毕
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
172 |
173 |
174 |
196 |
--------------------------------------------------------------------------------
/src/pages/apply/workSum/workSum.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | |
8 |
9 |
10 | |
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 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
140 |
141 |
142 |
192 |
--------------------------------------------------------------------------------
/src/pages/daka/daka.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | 设置
6 |
7 |
8 |
9 |
10 |
11 |
12 |
![]()
13 |
14 |
15 |
王老五
16 | 班制:正常班
17 |
18 |
19 |
20 |
21 | 坚持是世上最难的事,也是最容易的事
22 |
23 |
24 |
25 |
打卡时间8:30 正常
26 |
27 |
28 | 地址:广东省东莞市旗峰路中侨大厦
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
72 |
73 |
74 |
131 |
--------------------------------------------------------------------------------
/src/pages/daka/setAccount/setAccount.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
55 |
56 |
57 |
63 |
--------------------------------------------------------------------------------
/src/pages/login/login.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
21 |
24 |
25 |
{{toastText}}
26 |
27 |
28 |
29 |
30 |
31 |
99 |
100 |
101 |
124 |
--------------------------------------------------------------------------------
/src/pages/manage/manage.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 | 我的团队
10 | 更多
11 |
12 |
13 |
14 |
15 |
16 | {{i.title}}
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 | 部门申请
28 | 更多
29 |
30 |
31 |
32 |
33 |
34 | {{i.title}}
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 | 数据分析
43 | 更多
44 |
45 |
46 |
47 |
48 |
49 | {{i.title}}
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
112 |
113 |
114 |
140 |
--------------------------------------------------------------------------------
/src/pages/manage/meDep/meDep.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
13 |
14 |
15 |
16 |
17 |
80 |
81 |
82 |
92 |
--------------------------------------------------------------------------------
/src/pages/personTask/personTask.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 | 代办
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 |
110 |
111 |
112 |
126 |
--------------------------------------------------------------------------------
/src/pages/personTask/taskFinished.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
已办数据已办数据已办数据已办数据已办数据已办数据已办数据已办数据已办数据已办数据已办数据已办数据已办数据已办数据已办数据已办数据已办数据已办数据已办数据已办数据已办数据已办数据
4 |
已办数据
5 |
已办数据
6 |
已办数据
7 |
8 |
9 |
10 |
11 |
12 |
13 |
27 |
28 |
29 |
32 |
--------------------------------------------------------------------------------
/src/pages/personTask/taskLaunch.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
我发起我发起我发起我发起我发起我发起我发起我发起我发起我发起我发起我发起我发起我发起我发起我发起我发起我发起我发起我发起我发起我发起我发起我发起我发起我发起我发起我发起我发起我发起我发起我发起我发起
4 |
我发起
5 |
我发起
6 |
我发起
7 |
我发起
8 |
我发起
9 |
我发起
10 |
我发起
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 |
77 |
78 |
79 |
82 |
--------------------------------------------------------------------------------
/src/pages/personTask/taskWait.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
代办数据
5 |
代办数据
6 |
代办数据
7 |
代办数据
8 |
代办数据
9 |
代办数据
10 |
代办数据
11 |
代办数据
12 |
代办数据
13 |
代办数据
14 |
代办数据
15 |
代办数据
16 |
代办数据
17 |
18 |
19 |
20 |
21 |
22 |
55 |
56 |
57 |
60 |
--------------------------------------------------------------------------------
/src/pages/renderControl.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
65 |
66 |
67 |
70 |
--------------------------------------------------------------------------------
/src/pages/run.vue:
--------------------------------------------------------------------------------
1 |
28 |
--------------------------------------------------------------------------------
/src/store/index.js:
--------------------------------------------------------------------------------
1 | import Vue from 'vue'
2 | import Vuex from 'vuex'
3 | import setCookie from "@/common/setCookie"
4 | import * as types from './type'
5 |
6 | Vue.use(Vuex)
7 |
8 |
9 | let cookie=setCookie.getCookie("isAutoLogin")
10 |
11 | const store = new Vuex.Store({
12 | state: {
13 | userInfo:{
14 | global_empname:""
15 | },
16 | showErrToast:false, //接口服务器错误
17 | showDataErrToast:false, //服务器返回成功但数据错误
18 | errMsgText:"",
19 | isLogin: cookie,
20 | loading:false,
21 | loadingText:"加载中...",
22 | },
23 | mutations: {
24 | isAutoLogin(state,data){
25 | setCookie.setCookie("isAutoLogin",data,3)
26 | state.isLogin = data;
27 | },
28 | userInfo(state,data){
29 | state.userInfo.global_empname=data
30 | },
31 |
32 | /*loading*/
33 | [types.HIDE_LOADING](state){
34 | state.loading=false;
35 | },
36 | [types.SHOW_LOADING](state,t){
37 | state.loadingText= t || "加载中..."
38 | state.loading=true;
39 | },
40 | [types.SHOW_ERR_TOAST](state,e){
41 | state.errMsgText= "【错误码:"+ e.response.status +"】"+ e.response.data.Message || "加载中..."
42 | state.showErrToast=true;
43 | },
44 |
45 | },
46 | getters: {
47 |
48 | },
49 | actions: {
50 | /*loading*/
51 | hideLoading:({commit})=>{
52 | commit(types.HIDE_LOADING)
53 | },
54 | showErrToast:({commit},e)=>{
55 | commit(types.SHOW_ERR_TOAST,e)
56 | },
57 | showLoading:({commit},t)=>{
58 | commit(types.SHOW_LOADING,t)
59 | },
60 | }
61 | })
62 | export default store
63 |
--------------------------------------------------------------------------------
/src/store/type.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by Administrator on 2018/8/6.
3 | */
4 |
5 |
6 | export const HIDE_LOADING='HIDE_LOADING';
7 | export const SHOW_LOADING='SHOW_LOADING';
8 | export const SHOW_LOADING_LOGIN='SHOW_LOADING_LOGIN';
9 | export const SHOW_ERR_TOAST='SHOW_ERR_TOAST';
10 |
--------------------------------------------------------------------------------
/static/.gitkeep:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wsklxts/vueapp/2b9dcbb5987c934f71b05e5ba67429bad77dab0b/static/.gitkeep
--------------------------------------------------------------------------------
/static/apply/applyFor/1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wsklxts/vueapp/2b9dcbb5987c934f71b05e5ba67429bad77dab0b/static/apply/applyFor/1.png
--------------------------------------------------------------------------------
/static/apply/applyFor/2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wsklxts/vueapp/2b9dcbb5987c934f71b05e5ba67429bad77dab0b/static/apply/applyFor/2.png
--------------------------------------------------------------------------------
/static/apply/applyFor/3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wsklxts/vueapp/2b9dcbb5987c934f71b05e5ba67429bad77dab0b/static/apply/applyFor/3.png
--------------------------------------------------------------------------------
/static/apply/applyFor/4.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wsklxts/vueapp/2b9dcbb5987c934f71b05e5ba67429bad77dab0b/static/apply/applyFor/4.png
--------------------------------------------------------------------------------
/static/apply/info/1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wsklxts/vueapp/2b9dcbb5987c934f71b05e5ba67429bad77dab0b/static/apply/info/1.png
--------------------------------------------------------------------------------
/static/apply/info/2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wsklxts/vueapp/2b9dcbb5987c934f71b05e5ba67429bad77dab0b/static/apply/info/2.png
--------------------------------------------------------------------------------
/static/apply/info/3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wsklxts/vueapp/2b9dcbb5987c934f71b05e5ba67429bad77dab0b/static/apply/info/3.png
--------------------------------------------------------------------------------
/static/apply/info/4.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wsklxts/vueapp/2b9dcbb5987c934f71b05e5ba67429bad77dab0b/static/apply/info/4.png
--------------------------------------------------------------------------------
/static/apply/query/1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wsklxts/vueapp/2b9dcbb5987c934f71b05e5ba67429bad77dab0b/static/apply/query/1.png
--------------------------------------------------------------------------------
/static/apply/query/2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wsklxts/vueapp/2b9dcbb5987c934f71b05e5ba67429bad77dab0b/static/apply/query/2.png
--------------------------------------------------------------------------------
/static/apply/query/3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wsklxts/vueapp/2b9dcbb5987c934f71b05e5ba67429bad77dab0b/static/apply/query/3.png
--------------------------------------------------------------------------------
/static/apply/query/4.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wsklxts/vueapp/2b9dcbb5987c934f71b05e5ba67429bad77dab0b/static/apply/query/4.png
--------------------------------------------------------------------------------
/static/apply/work/1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wsklxts/vueapp/2b9dcbb5987c934f71b05e5ba67429bad77dab0b/static/apply/work/1.png
--------------------------------------------------------------------------------
/static/apply/work/2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wsklxts/vueapp/2b9dcbb5987c934f71b05e5ba67429bad77dab0b/static/apply/work/2.png
--------------------------------------------------------------------------------
/static/apply/work/3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wsklxts/vueapp/2b9dcbb5987c934f71b05e5ba67429bad77dab0b/static/apply/work/3.png
--------------------------------------------------------------------------------
/static/apply/work/4.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wsklxts/vueapp/2b9dcbb5987c934f71b05e5ba67429bad77dab0b/static/apply/work/4.png
--------------------------------------------------------------------------------
/static/apply/work/5.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wsklxts/vueapp/2b9dcbb5987c934f71b05e5ba67429bad77dab0b/static/apply/work/5.png
--------------------------------------------------------------------------------
/static/apply/感谢.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wsklxts/vueapp/2b9dcbb5987c934f71b05e5ba67429bad77dab0b/static/apply/感谢.png
--------------------------------------------------------------------------------
/static/com/null_logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wsklxts/vueapp/2b9dcbb5987c934f71b05e5ba67429bad77dab0b/static/com/null_logo.png
--------------------------------------------------------------------------------
/static/common.css:
--------------------------------------------------------------------------------
1 | *{
2 | margin:0;
3 | padding:0;
4 | text-decoration: none;
5 | border:none;
6 | outline:none;
7 | }
8 | body{
9 | font-size:0.28rem;
10 | /*touch-action: none;*/
11 | }
12 | section> h3{
13 | font-size: 0.30rem !important;
14 | }
15 | ul,li{
16 | list-style:none;
17 | }
18 | img{
19 | width:100%
20 | }
21 | #app{
22 | /*margin-bottom: 0.95rem;*/
23 | /*overflow: hidden;*/
24 | height: 100%;
25 | position: absolute;
26 | width:100%;
27 |
28 | }
29 | .vux-header{
30 | position:fixed !important;
31 | width:100%;
32 | height: 0.95rem;
33 | padding:0 !important;
34 | z-index: 999;
35 | background: #3096fd !important;
36 | }
37 | .vux-header .vux-header-title{
38 | height:100% !important;
39 | line-height:0.95rem !important;
40 | font-size:0.38rem !important;
41 | }
42 | .apply,.manage,.personTask,.template{
43 | padding-top:1rem !important;
44 | }
45 | .weui-grid:after{
46 | display:none !important;
47 | }
48 |
49 | .weui-cells{
50 | margin:0 !important;
51 | }
52 | .title:before{
53 | display:none;
54 | }
55 | .fl{
56 | float:left;
57 | }
58 | .fr{
59 | float:right;
60 | }
61 |
62 | .weui-skin_android .weui-actionsheet .weui-actionsheet__menu{
63 | max-height: 360px !important;
64 | overflow: auto !important;
65 | }
66 | .weui-dialog__title {
67 | font-weight: 700 !important;
68 | font-size: 0.32rem !important;
69 | }
70 |
71 | .btnWrap{
72 | position: fixed;
73 | width: 100%;
74 | bottom:0;
75 | }
76 | button.weui-btn{
77 | border-radius:0 !important;
78 | }
79 |
80 | .weui-loadmore {
81 | margin:0 !important;
82 | width: 100% !important;
83 | padding:0.32rem auto !important;
84 | }
85 |
86 | .vux-slider > .vux-swiper {
87 | overflow-y: auto !important;
88 | position: relative;
89 | }
90 | .vux-slider {
91 | overflow-y: auto !important;
92 | position: relative;
93 | }
94 |
--------------------------------------------------------------------------------
/static/daka/head.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wsklxts/vueapp/2b9dcbb5987c934f71b05e5ba67429bad77dab0b/static/daka/head.jpg
--------------------------------------------------------------------------------
/static/login/1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wsklxts/vueapp/2b9dcbb5987c934f71b05e5ba67429bad77dab0b/static/login/1.png
--------------------------------------------------------------------------------
/static/login/2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wsklxts/vueapp/2b9dcbb5987c934f71b05e5ba67429bad77dab0b/static/login/2.png
--------------------------------------------------------------------------------
/static/login/3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wsklxts/vueapp/2b9dcbb5987c934f71b05e5ba67429bad77dab0b/static/login/3.png
--------------------------------------------------------------------------------
/static/login/4.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wsklxts/vueapp/2b9dcbb5987c934f71b05e5ba67429bad77dab0b/static/login/4.png
--------------------------------------------------------------------------------
/static/login/5.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wsklxts/vueapp/2b9dcbb5987c934f71b05e5ba67429bad77dab0b/static/login/5.png
--------------------------------------------------------------------------------
/static/login/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wsklxts/vueapp/2b9dcbb5987c934f71b05e5ba67429bad77dab0b/static/login/logo.png
--------------------------------------------------------------------------------
/static/manage/dataAnalysis/1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wsklxts/vueapp/2b9dcbb5987c934f71b05e5ba67429bad77dab0b/static/manage/dataAnalysis/1.png
--------------------------------------------------------------------------------
/static/manage/dataAnalysis/2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wsklxts/vueapp/2b9dcbb5987c934f71b05e5ba67429bad77dab0b/static/manage/dataAnalysis/2.png
--------------------------------------------------------------------------------
/static/manage/dataAnalysis/3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wsklxts/vueapp/2b9dcbb5987c934f71b05e5ba67429bad77dab0b/static/manage/dataAnalysis/3.png
--------------------------------------------------------------------------------
/static/manage/dataAnalysis/4.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wsklxts/vueapp/2b9dcbb5987c934f71b05e5ba67429bad77dab0b/static/manage/dataAnalysis/4.png
--------------------------------------------------------------------------------
/static/manage/dataAnalysis/5.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wsklxts/vueapp/2b9dcbb5987c934f71b05e5ba67429bad77dab0b/static/manage/dataAnalysis/5.png
--------------------------------------------------------------------------------
/static/manage/dataAnalysis/6.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wsklxts/vueapp/2b9dcbb5987c934f71b05e5ba67429bad77dab0b/static/manage/dataAnalysis/6.png
--------------------------------------------------------------------------------
/static/manage/dataAnalysis/7.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wsklxts/vueapp/2b9dcbb5987c934f71b05e5ba67429bad77dab0b/static/manage/dataAnalysis/7.png
--------------------------------------------------------------------------------
/static/manage/dataAnalysis/8.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wsklxts/vueapp/2b9dcbb5987c934f71b05e5ba67429bad77dab0b/static/manage/dataAnalysis/8.png
--------------------------------------------------------------------------------
/static/manage/department/1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wsklxts/vueapp/2b9dcbb5987c934f71b05e5ba67429bad77dab0b/static/manage/department/1.png
--------------------------------------------------------------------------------
/static/manage/department/2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wsklxts/vueapp/2b9dcbb5987c934f71b05e5ba67429bad77dab0b/static/manage/department/2.png
--------------------------------------------------------------------------------
/static/manage/department/3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wsklxts/vueapp/2b9dcbb5987c934f71b05e5ba67429bad77dab0b/static/manage/department/3.png
--------------------------------------------------------------------------------
/static/manage/department/4.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wsklxts/vueapp/2b9dcbb5987c934f71b05e5ba67429bad77dab0b/static/manage/department/4.png
--------------------------------------------------------------------------------
/static/manage/meTeam/1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wsklxts/vueapp/2b9dcbb5987c934f71b05e5ba67429bad77dab0b/static/manage/meTeam/1.png
--------------------------------------------------------------------------------
/static/manage/meTeam/2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wsklxts/vueapp/2b9dcbb5987c934f71b05e5ba67429bad77dab0b/static/manage/meTeam/2.png
--------------------------------------------------------------------------------
/static/tabImg/个人任务.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wsklxts/vueapp/2b9dcbb5987c934f71b05e5ba67429bad77dab0b/static/tabImg/个人任务.png
--------------------------------------------------------------------------------
/static/tabImg/个人任务1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wsklxts/vueapp/2b9dcbb5987c934f71b05e5ba67429bad77dab0b/static/tabImg/个人任务1.png
--------------------------------------------------------------------------------
/static/tabImg/应用中心.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wsklxts/vueapp/2b9dcbb5987c934f71b05e5ba67429bad77dab0b/static/tabImg/应用中心.png
--------------------------------------------------------------------------------
/static/tabImg/应用中心1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wsklxts/vueapp/2b9dcbb5987c934f71b05e5ba67429bad77dab0b/static/tabImg/应用中心1.png
--------------------------------------------------------------------------------
/static/tabImg/打卡.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wsklxts/vueapp/2b9dcbb5987c934f71b05e5ba67429bad77dab0b/static/tabImg/打卡.png
--------------------------------------------------------------------------------
/static/tabImg/打卡1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wsklxts/vueapp/2b9dcbb5987c934f71b05e5ba67429bad77dab0b/static/tabImg/打卡1.png
--------------------------------------------------------------------------------
/static/tabImg/管理中心.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wsklxts/vueapp/2b9dcbb5987c934f71b05e5ba67429bad77dab0b/static/tabImg/管理中心.png
--------------------------------------------------------------------------------
/static/tabImg/管理中心1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wsklxts/vueapp/2b9dcbb5987c934f71b05e5ba67429bad77dab0b/static/tabImg/管理中心1.png
--------------------------------------------------------------------------------
/static/theme.less:
--------------------------------------------------------------------------------
1 | @button-default-bg-color:#3096fd;
2 | @button-default-font-color:#fff;
3 | @button-default-active-bg-color:#087ff8;
4 | @button-default-active-font-color:#fff;
5 | @icon-success-color:#3096fd;
6 | @content-color:#5dacfd;
7 |
--------------------------------------------------------------------------------
/test/components.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | render
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
117 |
118 |
119 |
--------------------------------------------------------------------------------
/test/e2e/custom-assertions/elementCount.js:
--------------------------------------------------------------------------------
1 | // A custom Nightwatch assertion.
2 | // The assertion name is the filename.
3 | // Example usage:
4 | //
5 | // browser.assert.elementCount(selector, count)
6 | //
7 | // For more information on custom assertions see:
8 | // http://nightwatchjs.org/guide#writing-custom-assertions
9 |
10 | exports.assertion = function (selector, count) {
11 | this.message = 'Testing if element <' + selector + '> has count: ' + count
12 | this.expected = count
13 | this.pass = function (val) {
14 | return val === this.expected
15 | }
16 | this.value = function (res) {
17 | return res.value
18 | }
19 | this.command = function (cb) {
20 | var self = this
21 | return this.api.execute(function (selector) {
22 | return document.querySelectorAll(selector).length
23 | }, [selector], function (res) {
24 | cb.call(self, res)
25 | })
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/test/e2e/nightwatch.conf.js:
--------------------------------------------------------------------------------
1 | require('babel-register')
2 | var config = require('../../config')
3 |
4 | // http://nightwatchjs.org/gettingstarted#settings-file
5 | module.exports = {
6 | src_folders: ['test/e2e/specs'],
7 | output_folder: 'test/e2e/reports',
8 | custom_assertions_path: ['test/e2e/custom-assertions'],
9 |
10 | selenium: {
11 | start_process: true,
12 | server_path: require('selenium-server').path,
13 | host: '127.0.0.1',
14 | port: 4444,
15 | cli_args: {
16 | 'webdriver.chrome.driver': require('chromedriver').path
17 | }
18 | },
19 |
20 | test_settings: {
21 | default: {
22 | selenium_port: 4444,
23 | selenium_host: 'localhost',
24 | silent: true,
25 | globals: {
26 | devServerURL: 'http://localhost:' + (process.env.PORT || config.dev.port)
27 | }
28 | },
29 |
30 | chrome: {
31 | desiredCapabilities: {
32 | browserName: 'chrome',
33 | javascriptEnabled: true,
34 | acceptSslCerts: true
35 | }
36 | },
37 |
38 | firefox: {
39 | desiredCapabilities: {
40 | browserName: 'firefox',
41 | javascriptEnabled: true,
42 | acceptSslCerts: true
43 | }
44 | }
45 | }
46 | }
47 |
--------------------------------------------------------------------------------
/test/e2e/runner.js:
--------------------------------------------------------------------------------
1 | // 1. start the dev server using production config
2 | process.env.NODE_ENV = 'testing'
3 |
4 | const webpack = require('webpack')
5 | const DevServer = require('webpack-dev-server')
6 |
7 | const webpackConfig = require('../../build/webpack.prod.conf')
8 | const devConfigPromise = require('../../build/webpack.dev.conf')
9 |
10 | let server
11 |
12 | devConfigPromise.then(devConfig => {
13 | const devServerOptions = devConfig.devServer
14 | const compiler = webpack(webpackConfig)
15 | server = new DevServer(compiler, devServerOptions)
16 | const port = devServerOptions.port
17 | const host = devServerOptions.host
18 | return server.listen(port, host)
19 | })
20 | .then(() => {
21 | // 2. run the nightwatch test suite against it
22 | // to run in additional browsers:
23 | // 1. add an entry in test/e2e/nightwatch.conf.js under "test_settings"
24 | // 2. add it to the --env flag below
25 | // or override the environment flag, for example: `npm run e2e -- --env chrome,firefox`
26 | // For more information on Nightwatch's config file, see
27 | // http://nightwatchjs.org/guide#settings-file
28 | let opts = process.argv.slice(2)
29 | if (opts.indexOf('--config') === -1) {
30 | opts = opts.concat(['--config', 'test/e2e/nightwatch.conf.js'])
31 | }
32 | if (opts.indexOf('--env') === -1) {
33 | opts = opts.concat(['--env', 'chrome'])
34 | }
35 |
36 | const spawn = require('cross-spawn')
37 | const runner = spawn('./node_modules/.bin/nightwatch', opts, { stdio: 'inherit' })
38 |
39 | runner.on('exit', function (code) {
40 | server.close()
41 | process.exit(code)
42 | })
43 |
44 | runner.on('error', function (err) {
45 | server.close()
46 | throw err
47 | })
48 | })
49 |
--------------------------------------------------------------------------------
/test/e2e/specs/test.js:
--------------------------------------------------------------------------------
1 | // For authoring Nightwatch tests, see
2 | // http://nightwatchjs.org/guide#usage
3 |
4 | module.exports = {
5 | 'default e2e tests': function (browser) {
6 | // automatically uses dev Server port from /config.index.js
7 | // default: http://localhost:8080
8 | // see nightwatch.conf.js
9 | const devServer = browser.globals.devServerURL
10 |
11 | browser
12 | .url(devServer)
13 | .waitForElementVisible('#app', 5000)
14 | .assert.elementPresent('.hello')
15 | .assert.containsText('h1', 'Welcome to Your Vue.js App')
16 | .assert.elementCount('img', 1)
17 | .end()
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/test/t1.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Title
6 |
13 |
14 |
15 |
19 |
20 |
21 |
40 |
41 |
--------------------------------------------------------------------------------
/test/t2.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Title
6 |
7 |
8 |
9 |
17 |
18 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
91 |
92 |
93 |
--------------------------------------------------------------------------------
/test/watch.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Title
6 |
7 |
8 |
9 |
17 |
18 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
96 |
97 |
98 |
--------------------------------------------------------------------------------
/test/watch2.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Title
6 |
7 |
8 |
9 |
17 |
18 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
116 |
117 |
118 |
--------------------------------------------------------------------------------
/test/watch3.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Title
6 |
7 |
8 |
9 |
17 |
18 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
90 |
91 |
92 |
--------------------------------------------------------------------------------
/test/测试数组.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Title
6 |
7 |
8 |
9 |
17 |
18 |
22 |
23 |
24 |
25 |
26 | {{ae}}
27 |
28 |
29 |
30 |
91 |
92 |
93 |
--------------------------------------------------------------------------------
/theme.less:
--------------------------------------------------------------------------------
1 | @button-default-bg-color:red
2 |
--------------------------------------------------------------------------------