yanzb há 1 mês atrás
pai
commit
ffac887906
100 ficheiros alterados com 1200 adições e 74 exclusões
  1. 14 0
      .editorconfig
  2. 5 0
      .env.development
  3. 6 0
      .env.production
  4. 8 0
      .env.staging
  5. 4 0
      .eslintignore
  6. 199 0
      .eslintrc.js
  7. 15 0
      .gitignore
  8. 5 0
      .travis.yml
  9. 21 72
      LICENSE
  10. 98 2
      README.md
  11. 14 0
      babel.config.js
  12. 1 0
      bot-build
  13. 35 0
      build/index.js
  14. 3 0
      dist/config.js
  15. BIN
      dist/favicon.ico
  16. 0 0
      dist/index.html
  17. 0 0
      dist/static/css/app.ac83dafd.css
  18. 1 0
      dist/static/css/chunk-0398cdaf.aba2cada.css
  19. 1 0
      dist/static/css/chunk-043db502.57931124.css
  20. 0 0
      dist/static/css/chunk-159c7f2c.3c7f5ad9.css
  21. 0 0
      dist/static/css/chunk-1b1dc324.525858bf.css
  22. 1 0
      dist/static/css/chunk-1d1a3fb8.71314fc9.css
  23. 1 0
      dist/static/css/chunk-1d8f4b48.4b8bb68a.css
  24. 0 0
      dist/static/css/chunk-219108a3.8ece3d62.css
  25. 0 0
      dist/static/css/chunk-3b76b2b0.fdef63e8.css
  26. 1 0
      dist/static/css/chunk-3e7fb631.4b8bb68a.css
  27. 1 0
      dist/static/css/chunk-5060aa1f.7f837925.css
  28. 1 0
      dist/static/css/chunk-958f940c.584f058b.css
  29. 1 0
      dist/static/css/chunk-b79d5444.c6c83d01.css
  30. 1 0
      dist/static/css/chunk-ec49cb28.e4eb308f.css
  31. 0 0
      dist/static/css/chunk-elementUI.68c70ad5.css
  32. 0 0
      dist/static/css/chunk-libs.3dfb7769.css
  33. BIN
      dist/static/fonts/element-icons.535877f5.woff
  34. BIN
      dist/static/fonts/element-icons.732389de.ttf
  35. BIN
      dist/static/img/404.a57b6f31.png
  36. BIN
      dist/static/img/404_cloud.0f4bc32b.png
  37. 0 0
      dist/static/img/cursoredit.39ac81fd.svg
  38. 0 0
      dist/static/img/dblclick.238abc74.svg
  39. BIN
      dist/static/img/loading.315fa32e.gif
  40. BIN
      dist/static/img/login-container-bg.44657c80.png
  41. BIN
      dist/static/img/logo.55c9512c.webp
  42. 0 0
      dist/static/js/app.6090d4bc.js
  43. 0 0
      dist/static/js/chunk-0398cdaf.df5d555e.js
  44. 1 0
      dist/static/js/chunk-043db502.68b795ce.js
  45. 1 0
      dist/static/js/chunk-159c7f2c.697403e5.js
  46. 0 0
      dist/static/js/chunk-19ae7ca2.6297d3ec.js
  47. 0 0
      dist/static/js/chunk-1b1dc324.c55c0ce5.js
  48. 0 0
      dist/static/js/chunk-1d1a3fb8.e9eae9cc.js
  49. 0 0
      dist/static/js/chunk-1d8f4b48.e25b0a1c.js
  50. 0 0
      dist/static/js/chunk-1f4063e0.66e6a034.js
  51. 0 0
      dist/static/js/chunk-2065894b.373b0eda.js
  52. 0 0
      dist/static/js/chunk-219108a3.73418ec1.js
  53. 0 0
      dist/static/js/chunk-2a1640be.01e5d2ac.js
  54. 0 0
      dist/static/js/chunk-2d0a38bb.3b52add2.js
  55. 0 0
      dist/static/js/chunk-2d0ae9a2.4d3160f2.js
  56. 1 0
      dist/static/js/chunk-2d0afa56.e631486f.js
  57. 0 0
      dist/static/js/chunk-2d0b3299.b6a8789f.js
  58. 0 0
      dist/static/js/chunk-2d0c51f8.f5721aa3.js
  59. 0 0
      dist/static/js/chunk-2d0ccf79.3eab99fb.js
  60. 0 0
      dist/static/js/chunk-2d0ce753.8a6d5a5d.js
  61. 0 0
      dist/static/js/chunk-2d0cf866.61f1b082.js
  62. 0 0
      dist/static/js/chunk-2d0d0f87.cc65a5da.js
  63. 1 0
      dist/static/js/chunk-2d0d2c0c.6b8bd456.js
  64. 0 0
      dist/static/js/chunk-2d0e2665.f76a4d6a.js
  65. 1 0
      dist/static/js/chunk-2d0f04bf.db776d38.js
  66. 0 0
      dist/static/js/chunk-2d2167b4.71397ff8.js
  67. 0 0
      dist/static/js/chunk-2d21a994.c62ce796.js
  68. 0 0
      dist/static/js/chunk-2d2226a2.b097c6c5.js
  69. 0 0
      dist/static/js/chunk-2d238672.286b428e.js
  70. 0 0
      dist/static/js/chunk-3985bb13.e9df148b.js
  71. 0 0
      dist/static/js/chunk-3b76b2b0.38cc00c6.js
  72. 1 0
      dist/static/js/chunk-3e7fb631.07ab6843.js
  73. 0 0
      dist/static/js/chunk-5060aa1f.49095c03.js
  74. 0 0
      dist/static/js/chunk-57ce74a2.04f41b44.js
  75. 0 0
      dist/static/js/chunk-958f940c.8b6f559e.js
  76. 0 0
      dist/static/js/chunk-b64dd4b2.6e684466.js
  77. 0 0
      dist/static/js/chunk-b79d5444.ef460d9f.js
  78. 0 0
      dist/static/js/chunk-ec49cb28.b0b113da.js
  79. 0 0
      dist/static/js/chunk-elementUI.48582ac9.js
  80. 0 0
      dist/static/js/chunk-f9897958.ca38ddb6.js
  81. 0 0
      dist/static/js/chunk-fef8ce9c.f290cdf4.js
  82. 7 0
      dist/static/js/chunk-libs.9b031ee5.js
  83. BIN
      dist/static/media/masg.4b6e1513.mp3
  84. 24 0
      jest.config.js
  85. 9 0
      jsconfig.json
  86. 57 0
      mock/index.js
  87. 81 0
      mock/mock-server.js
  88. 29 0
      mock/table.js
  89. 84 0
      mock/user.js
  90. 25 0
      mock/utils.js
  91. 65 0
      package.json
  92. 8 0
      postcss.config.js
  93. 3 0
      public/config.js
  94. BIN
      public/favicon.ico
  95. 18 0
      public/index.html
  96. 29 0
      src/App.vue
  97. 275 0
      src/api/data.js
  98. 11 0
      src/api/upload.js
  99. 32 0
      src/api/user.js
  100. BIN
      src/assets/404_images/404.png

+ 14 - 0
.editorconfig

@@ -0,0 +1,14 @@
+# http://editorconfig.org
+root = true
+
+[*]
+charset = utf-8
+indent_style = space
+indent_size = 2
+end_of_line = lf
+insert_final_newline = true
+trim_trailing_whitespace = true
+
+[*.md]
+insert_final_newline = false
+trim_trailing_whitespace = false

+ 5 - 0
.env.development

@@ -0,0 +1,5 @@
+# just a flag
+ENV = 'development'
+
+# base api
+VUE_APP_BASE_API = '

+ 6 - 0
.env.production

@@ -0,0 +1,6 @@
+# just a flag
+ENV = 'production'
+
+# base api
+VUE_APP_BASE_API = ''
+

+ 8 - 0
.env.staging

@@ -0,0 +1,8 @@
+NODE_ENV = production
+
+# just a flag
+ENV = 'staging'
+
+# base api
+VUE_APP_BASE_API = '/stage-api'
+

+ 4 - 0
.eslintignore

@@ -0,0 +1,4 @@
+build/*.js
+src/assets
+public
+dist

+ 199 - 0
.eslintrc.js

@@ -0,0 +1,199 @@
+module.exports = {
+  root: true,
+  parserOptions: {
+    parser: 'babel-eslint',
+    sourceType: 'module'
+  },
+  env: {
+    browser: true,
+    node: true,
+    es6: true,
+  },
+  extends: ['plugin:vue/recommended', 'eslint:recommended'],
+
+  // add your custom rules here
+  //it is base on https://github.com/vuejs/eslint-config-vue
+  rules: {
+    "vue/max-attributes-per-line": [2, {
+      "singleline": 10,
+      "multiline": {
+        "max": 1,
+        "allowFirstLine": false
+      }
+    }],
+    "vue/singleline-html-element-content-newline": "off",
+    "vue/multiline-html-element-content-newline": "off",
+    "vue/name-property-casing": ["error", "PascalCase"],
+    "vue/no-v-html": "off",
+    'accessor-pairs': 2,
+    'arrow-spacing': [2, {
+      'before': true,
+      'after': true
+    }],
+    'block-spacing': [2, 'always'],
+    'brace-style': [2, '1tbs', {
+      'allowSingleLine': true
+    }],
+    'camelcase': [0, {
+      'properties': 'always'
+    }],
+    'comma-dangle': [2, 'never'],
+    'comma-spacing': [2, {
+      'before': false,
+      'after': true
+    }],
+    'comma-style': [2, 'last'],
+    'constructor-super': 2,
+    'curly': [2, 'multi-line'],
+    'dot-location': [2, 'property'],
+    'eol-last': 2,
+    'eqeqeq': ["error", "always", {"null": "ignore"}],
+    'generator-star-spacing': [2, {
+      'before': true,
+      'after': true
+    }],
+    'handle-callback-err': [2, '^(err|error)$'],
+    'indent': [2, 2, {
+      'SwitchCase': 1
+    }],
+    'jsx-quotes': [2, 'prefer-single'],
+    'key-spacing': [2, {
+      'beforeColon': false,
+      'afterColon': true
+    }],
+    'keyword-spacing': [2, {
+      'before': true,
+      'after': true
+    }],
+    'new-cap': [2, {
+      'newIsCap': true,
+      'capIsNew': false
+    }],
+    'new-parens': 2,
+    'no-array-constructor': 2,
+    'no-caller': 2,
+    'no-console': 'off',
+    'no-class-assign': 2,
+    'no-cond-assign': 2,
+    'no-const-assign': 2,
+    'no-control-regex': 0,
+    'no-delete-var': 2,
+    'no-dupe-args': 2,
+    'no-dupe-class-members': 2,
+    'no-dupe-keys': 2,
+    'no-duplicate-case': 2,
+    'no-empty-character-class': 2,
+    'no-empty-pattern': 2,
+    'no-eval': 2,
+    'no-ex-assign': 2,
+    'no-extend-native': 2,
+    'no-extra-bind': 2,
+    'no-extra-boolean-cast': 2,
+    'no-extra-parens': [2, 'functions'],
+    'no-fallthrough': 2,
+    'no-floating-decimal': 2,
+    'no-func-assign': 2,
+    'no-implied-eval': 2,
+    'no-inner-declarations': [2, 'functions'],
+    'no-invalid-regexp': 2,
+    'no-irregular-whitespace': 2,
+    'no-iterator': 2,
+    'no-label-var': 2,
+    'no-labels': [2, {
+      'allowLoop': false,
+      'allowSwitch': false
+    }],
+    'no-lone-blocks': 2,
+    'no-mixed-spaces-and-tabs': 2,
+    'no-multi-spaces': 2,
+    'no-multi-str': 2,
+    'no-multiple-empty-lines': [2, {
+      'max': 1
+    }],
+    'no-native-reassign': 2,
+    'no-negated-in-lhs': 2,
+    'no-new-object': 2,
+    'no-new-require': 2,
+    'no-new-symbol': 2,
+    'no-new-wrappers': 2,
+    'no-obj-calls': 2,
+    'no-octal': 2,
+    'no-octal-escape': 2,
+    'no-path-concat': 2,
+    'no-proto': 2,
+    'no-redeclare': 2,
+    'no-regex-spaces': 2,
+    'no-return-assign': [2, 'except-parens'],
+    'no-self-assign': 2,
+    'no-self-compare': 2,
+    'no-sequences': 2,
+    'no-shadow-restricted-names': 2,
+    'no-spaced-func': 2,
+    'no-sparse-arrays': 2,
+    'no-this-before-super': 2,
+    'no-throw-literal': 2,
+    'no-trailing-spaces': 2,
+    'no-undef': 2,
+    'no-undef-init': 2,
+    'no-unexpected-multiline': 2,
+    'no-unmodified-loop-condition': 2,
+    'no-unneeded-ternary': [2, {
+      'defaultAssignment': false
+    }],
+    'no-unreachable': 2,
+    'no-unsafe-finally': 2,
+    'no-unused-vars': [2, {
+      'vars': 'all',
+      'args': 'none'
+    }],
+    'no-useless-call': 2,
+    'no-useless-computed-key': 2,
+    'no-useless-constructor': 2,
+    'no-useless-escape': 0,
+    'no-whitespace-before-property': 2,
+    'no-with': 2,
+    'one-var': [2, {
+      'initialized': 'never'
+    }],
+    'operator-linebreak': [2, 'after', {
+      'overrides': {
+        '?': 'before',
+        ':': 'before'
+      }
+    }],
+    'padded-blocks': [2, 'never'],
+    'quotes': [2, 'single', {
+      'avoidEscape': true,
+      'allowTemplateLiterals': true
+    }],
+    'semi': [2, 'never'],
+    'semi-spacing': [2, {
+      'before': false,
+      'after': true
+    }],
+    'space-before-blocks': [2, 'always'],
+    'space-before-function-paren': [2, 'never'],
+    'space-in-parens': [2, 'never'],
+    'space-infix-ops': 2,
+    'space-unary-ops': [2, {
+      'words': true,
+      'nonwords': false
+    }],
+    'spaced-comment': [2, 'always', {
+      'markers': ['global', 'globals', 'eslint', 'eslint-disable', '*package', '!', ',']
+    }],
+    'template-curly-spacing': [2, 'never'],
+    'use-isnan': 2,
+    'valid-typeof': 2,
+    'wrap-iife': [2, 'any'],
+    'yield-star-spacing': [2, 'both'],
+    'yoda': [2, 'never'],
+    'prefer-const': 2,
+    'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0,
+    'object-curly-spacing': [2, 'always', {
+      objectsInObjects: false
+    }],
+    'array-bracket-spacing': [2, 'never'],
+    "vue/prop-name-casing": "off"
+  }
+}

+ 15 - 0
.gitignore

@@ -0,0 +1,15 @@
+.DS_Store
+node_modules/
+npm-debug.log*
+yarn-debug.log*
+yarn-error.log*
+package-lock.json
+tests/**/coverage/
+
+# Editor directories and files
+.idea
+.vscode
+*.suo
+*.ntvs*
+*.njsproj
+*.sln

+ 5 - 0
.travis.yml

@@ -0,0 +1,5 @@
+language: node_js
+node_js: 10
+script: npm run test
+notifications:
+  email: false

+ 21 - 72
LICENSE

@@ -1,72 +1,21 @@
-Apache License 
-Version 2.0, January 2004 
-http://www.apache.org/licenses/
-TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
-
-1. Definitions.
-
-"License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.
-
-"Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License.
-
-"Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.
-
-"You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License.
-
-"Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.
-
-"Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.
-
-"Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below).
-
-"Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof.
-
-"Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution."
-
-"Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work.
-
-2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.
-
-3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed.
-
-4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:
-
-(a) You must give any other recipients of the Work or Derivative Works a copy of this License; and
-
-(b) You must cause any modified files to carry prominent notices stating that You changed the files; and
-
-(c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and
-
-(d) If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License.
-
-You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License.
-
-5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions.
-
-6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.
-
-7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.
-
-8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.
-
-9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.
-
-END OF TERMS AND CONDITIONS
-
-APPENDIX: How to apply the Apache License to your work.
-
-To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives.
-
-Copyright [yyyy] [name of copyright owner]
-
-Licensed under the Apache License, Version 2.0 (the "License"); 
-you may not use this file except in compliance with the License. 
-You may obtain a copy of the License at
-
-http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software 
-distributed under the License is distributed on an "AS IS" BASIS, 
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 
-See the License for the specific language governing permissions and 
-limitations under the License.
+MIT License
+
+Copyright (c) 2017-present PanJiaChen
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.

+ 98 - 2
README.md

@@ -1,3 +1,99 @@
-# backend-page
+# vue-admin-template
 
-机器人28 后台前端页面
+English | [简体中文](./README-zh.md)
+
+> A minimal vue admin template with Element UI & axios & iconfont & permission control & lint
+
+**Live demo:** http://panjiachen.github.io/vue-admin-template
+
+
+**The current version is `v4.0+` build on `vue-cli`. If you want to use the old version , you can switch branch to [tag/3.11.0](https://github.com/PanJiaChen/vue-admin-template/tree/tag/3.11.0), it does not rely on `vue-cli`**
+
+<p align="center">
+  <b>SPONSORED BY</b>
+</p>
+<p align="center">
+   <a href="https://finclip.com?from=vue_element" title="FinClip" target="_blank">
+      <img height="200px" src="https://gitee.com/panjiachen/gitee-cdn/raw/master/vue%E8%B5%9E%E5%8A%A9.png" title="FinClip">
+   </a>
+</p>
+
+## Build Setup
+
+```bash
+# clone the project
+git clone https://github.com/PanJiaChen/vue-admin-template.git
+
+# enter the project directory
+cd vue-admin-template
+
+# install dependency
+npm install
+
+# develop
+npm run dev
+```
+
+This will automatically open http://localhost:9528
+
+## Build
+
+```bash
+# build for test environment
+npm run build:stage
+
+# build for production environment
+npm run build:prod
+```
+
+## Advanced
+
+```bash
+# preview the release environment effect
+npm run preview
+
+# preview the release environment effect + static resource analysis
+npm run preview -- --report
+
+# code format check
+npm run lint
+
+# code format check and auto fix
+npm run lint -- --fix
+```
+
+Refer to [Documentation](https://panjiachen.github.io/vue-element-admin-site/guide/essentials/deploy.html) for more information
+
+## Demo
+
+![demo](https://github.com/PanJiaChen/PanJiaChen.github.io/blob/master/images/demo.gif)
+
+## Extra
+
+If you want router permission && generate menu by user roles , you can use this branch [permission-control](https://github.com/PanJiaChen/vue-admin-template/tree/permission-control)
+
+For `typescript` version, you can use [vue-typescript-admin-template](https://github.com/Armour/vue-typescript-admin-template) (Credits: [@Armour](https://github.com/Armour))
+
+## Related Project
+
+- [vue-element-admin](https://github.com/PanJiaChen/vue-element-admin)
+
+- [electron-vue-admin](https://github.com/PanJiaChen/electron-vue-admin)
+
+- [vue-typescript-admin-template](https://github.com/Armour/vue-typescript-admin-template)
+
+- [awesome-project](https://github.com/PanJiaChen/vue-element-admin/issues/2312)
+
+## Browsers support
+
+Modern browsers and Internet Explorer 10+.
+
+| [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/edge/edge_48x48.png" alt="IE / Edge" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br>IE / Edge | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/firefox/firefox_48x48.png" alt="Firefox" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br>Firefox | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/chrome/chrome_48x48.png" alt="Chrome" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br>Chrome | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/safari/safari_48x48.png" alt="Safari" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br>Safari |
+| --------- | --------- | --------- | --------- |
+| IE10, IE11, Edge| last 2 versions| last 2 versions| last 2 versions
+
+## License
+
+[MIT](https://github.com/PanJiaChen/vue-admin-template/blob/master/LICENSE) license.
+
+Copyright (c) 2017-present PanJiaChen

+ 14 - 0
babel.config.js

@@ -0,0 +1,14 @@
+module.exports = {
+  presets: [
+    // https://github.com/vuejs/vue-cli/tree/master/packages/@vue/babel-preset-app
+    '@vue/cli-plugin-babel/preset'
+  ],
+  'env': {
+    'development': {
+      // babel-plugin-dynamic-import-node plugin only does one thing by converting all import() to require().
+      // This plugin can significantly increase the speed of hot updates, when you have a large number of pages.
+      // https://panjiachen.github.io/vue-element-admin-site/guide/advanced/lazy-loading.html
+      'plugins': ['dynamic-import-node']
+    }
+  }
+}

+ 1 - 0
bot-build

@@ -0,0 +1 @@
+Subproject commit 664b1ba3e71f514efbc8dea785899cd5a39b2028

+ 35 - 0
build/index.js

@@ -0,0 +1,35 @@
+const { run } = require('runjs')
+const chalk = require('chalk')
+const config = require('../vue.config.js')
+const rawArgv = process.argv.slice(2)
+const args = rawArgv.join(' ')
+
+if (process.env.npm_config_preview || rawArgv.includes('--preview')) {
+  const report = rawArgv.includes('--report')
+
+  run(`vue-cli-service build ${args}`)
+
+  const port = 9526
+  const publicPath = config.publicPath
+
+  var connect = require('connect')
+  var serveStatic = require('serve-static')
+  const app = connect()
+
+  app.use(
+    publicPath,
+    serveStatic('./dist', {
+      index: ['index.html', '/']
+    })
+  )
+
+  app.listen(port, function () {
+    console.log(chalk.green(`> Preview at  http://localhost:${port}${publicPath}`))
+    if (report) {
+      console.log(chalk.green(`> Report at  http://localhost:${port}${publicPath}report.html`))
+    }
+
+  })
+} else {
+  run(`vue-cli-service build ${args}`)
+}

+ 3 - 0
dist/config.js

@@ -0,0 +1,3 @@
+window.global = {
+  baseURL: 'https://botpc28.testx2.cc/admin/'
+}

BIN
dist/favicon.ico


Diff do ficheiro suprimidas por serem muito extensas
+ 0 - 0
dist/index.html


Diff do ficheiro suprimidas por serem muito extensas
+ 0 - 0
dist/static/css/app.ac83dafd.css


+ 1 - 0
dist/static/css/chunk-0398cdaf.aba2cada.css

@@ -0,0 +1 @@
+.el-upload--picture-card{background-color:#fbfdff;border:1px dashed #c0ccda;border-radius:6px;-webkit-box-sizing:border-box;box-sizing:border-box;width:148px;height:148px;cursor:pointer;line-height:146px;vertical-align:top}.el-upload-dragger{width:148px;height:148px;margin:-1px}.el-upload-list--picture-card .el-upload-list__item{width:148px;height:148px;-webkit-transition:none!important;transition:none!important}.hide .el-upload--picture-card{display:none!important}

+ 1 - 0
dist/static/css/chunk-043db502.57931124.css

@@ -0,0 +1 @@
+.ym-upload-file .el-upload{width:100%}.ym-upload-file .el-upload-dragger{width:auto;height:auto}

Diff do ficheiro suprimidas por serem muito extensas
+ 0 - 0
dist/static/css/chunk-159c7f2c.3c7f5ad9.css


Diff do ficheiro suprimidas por serem muito extensas
+ 0 - 0
dist/static/css/chunk-1b1dc324.525858bf.css


+ 1 - 0
dist/static/css/chunk-1d1a3fb8.71314fc9.css

@@ -0,0 +1 @@
+.avatar-uploader .el-upload[data-v-1349ebe6]{border:1px dashed #d9d9d9;border-radius:6px;cursor:pointer;position:relative;overflow:hidden}.avatar-uploader .el-upload[data-v-1349ebe6]:hover{border-color:#409eff}.avatar-uploader-icon[data-v-1349ebe6]{font-size:28px;color:#8c939d;width:180px!important;height:180px;line-height:180px;text-align:center}.avatar[data-v-1349ebe6],.video[data-v-1349ebe6]{z-index:1;width:180px!important;height:180px!important;display:block!important;border-radius:16px}.el-icon-delete[data-v-1349ebe6]{position:absolute;z-index:10;left:0;top:0;color:#fff}.el-icon-delete[data-v-1349ebe6]:hover{color:#409eff}.avatar-uploader-icon[data-v-1349ebe6]{border:1px solid #ccc;border-radius:16px}.buttom-r[data-v-71d03d53]{width:100%;height:32px;line-height:32px;font-size:14px;text-align:center;color:#252c25;border-radius:16px;background-color:rgba(137,192,137,.2)}.video[data-v-71d03d53]{z-index:1;width:100%!important;max-height:500px!important;display:block!important;border-radius:16px}

+ 1 - 0
dist/static/css/chunk-1d8f4b48.4b8bb68a.css

@@ -0,0 +1 @@
+.avatar-uploader .el-upload[data-v-1349ebe6]{border:1px dashed #d9d9d9;border-radius:6px;cursor:pointer;position:relative;overflow:hidden}.avatar-uploader .el-upload[data-v-1349ebe6]:hover{border-color:#409eff}.avatar-uploader-icon[data-v-1349ebe6]{font-size:28px;color:#8c939d;width:180px!important;height:180px;line-height:180px;text-align:center}.avatar[data-v-1349ebe6],.video[data-v-1349ebe6]{z-index:1;width:180px!important;height:180px!important;display:block!important;border-radius:16px}.el-icon-delete[data-v-1349ebe6]{position:absolute;z-index:10;left:0;top:0;color:#fff}.el-icon-delete[data-v-1349ebe6]:hover{color:#409eff}.avatar-uploader-icon[data-v-1349ebe6]{border:1px solid #ccc;border-radius:16px}

Diff do ficheiro suprimidas por serem muito extensas
+ 0 - 0
dist/static/css/chunk-219108a3.8ece3d62.css


Diff do ficheiro suprimidas por serem muito extensas
+ 0 - 0
dist/static/css/chunk-3b76b2b0.fdef63e8.css


+ 1 - 0
dist/static/css/chunk-3e7fb631.4b8bb68a.css

@@ -0,0 +1 @@
+.avatar-uploader .el-upload[data-v-1349ebe6]{border:1px dashed #d9d9d9;border-radius:6px;cursor:pointer;position:relative;overflow:hidden}.avatar-uploader .el-upload[data-v-1349ebe6]:hover{border-color:#409eff}.avatar-uploader-icon[data-v-1349ebe6]{font-size:28px;color:#8c939d;width:180px!important;height:180px;line-height:180px;text-align:center}.avatar[data-v-1349ebe6],.video[data-v-1349ebe6]{z-index:1;width:180px!important;height:180px!important;display:block!important;border-radius:16px}.el-icon-delete[data-v-1349ebe6]{position:absolute;z-index:10;left:0;top:0;color:#fff}.el-icon-delete[data-v-1349ebe6]:hover{color:#409eff}.avatar-uploader-icon[data-v-1349ebe6]{border:1px solid #ccc;border-radius:16px}

+ 1 - 0
dist/static/css/chunk-5060aa1f.7f837925.css

@@ -0,0 +1 @@
+[data-v-4a596f50] .el-page-header{line-height:20px}[data-v-4a596f50] .el-page-header__content{font-size:14px!important}[data-v-4a596f50] .sub-drawer .el-drawer__header{padding:8px 20px;-webkit-box-shadow:inset 0 1px 0 0 #e4e7ed;box-shadow:inset 0 1px 0 0 #e4e7ed;font-size:14px;line-height:20px}[data-v-4a596f50] .el-drawer__body{background-color:#f0f2f5}

+ 1 - 0
dist/static/css/chunk-958f940c.584f058b.css

@@ -0,0 +1 @@
+.compact-sum[data-v-7475a53c]{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex}.compact-sum[data-v-7475a53c],.input-group[data-v-7475a53c]{-webkit-box-align:center;-ms-flex-align:center;align-items:center}.input-group[data-v-7475a53c]{display:-webkit-box;display:-ms-flexbox;display:flex;gap:4px;background:#f8f9fa;padding:8px 12px;border-radius:6px;border:1px solid #ebeef5}.sum-input[data-v-7475a53c]{width:60px}.plus[data-v-7475a53c]{color:#909399;font-weight:500;padding:0 4px}.sum-tag[data-v-7475a53c]{font-size:14px;min-width:80px;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}

+ 1 - 0
dist/static/css/chunk-b79d5444.c6c83d01.css

@@ -0,0 +1 @@
+.text-ya-ma[data-v-3e705023]{height:50px;color:#666;font-size:18px}

+ 1 - 0
dist/static/css/chunk-ec49cb28.e4eb308f.css

@@ -0,0 +1 @@
+.el-drawer__header{margin-bottom:0;padding:16px 24px;color:#303133;-webkit-box-shadow:inset 0 -1px 0 0 #f0f0f0;box-shadow:inset 0 -1px 0 0 #f0f0f0;font-size:16px}.el-drawer__body{overflow-y:auto;padding:20px}.detail-block{margin-bottom:16px}.detail-block--header{position:relative;height:42px;padding-left:15px;color:#333;font-size:16px;line-height:42px}.detail-block--header:after{position:absolute;top:14px;left:0;width:3px;height:14px;content:"";background-color:#409eff}.detail-block--item{display:-webkit-box;display:-ms-flexbox;display:flex;margin:8px 0;padding:5px 0}.detail-block--item .el-col{font-size:14px;line-height:22px}.detail-block--item-title{position:relative;-ms-flex-negative:0;flex-shrink:0;width:96px;color:#606266}.detail-block--item-title[required]{padding-left:10px}.detail-block--item-title[required]:after{position:absolute;top:5px;left:0;content:"*";color:#f56c6c;font-size:20px}.detail-block--item-content{-webkit-box-flex:1;-ms-flex:1;flex:1;width:calc(100% - 96px);color:#303133}.detail-block--item-content pre{overflow-y:auto;margin-top:0;padding:10px;border-radius:10px;background-color:#f0f8ff}.common-content{display:inline-block;width:100%;white-space:wrap}

Diff do ficheiro suprimidas por serem muito extensas
+ 0 - 0
dist/static/css/chunk-elementUI.68c70ad5.css


Diff do ficheiro suprimidas por serem muito extensas
+ 0 - 0
dist/static/css/chunk-libs.3dfb7769.css


BIN
dist/static/fonts/element-icons.535877f5.woff


BIN
dist/static/fonts/element-icons.732389de.ttf


BIN
dist/static/img/404.a57b6f31.png


BIN
dist/static/img/404_cloud.0f4bc32b.png


Diff do ficheiro suprimidas por serem muito extensas
+ 0 - 0
dist/static/img/cursoredit.39ac81fd.svg


Diff do ficheiro suprimidas por serem muito extensas
+ 0 - 0
dist/static/img/dblclick.238abc74.svg


BIN
dist/static/img/loading.315fa32e.gif


BIN
dist/static/img/login-container-bg.44657c80.png


BIN
dist/static/img/logo.55c9512c.webp


Diff do ficheiro suprimidas por serem muito extensas
+ 0 - 0
dist/static/js/app.6090d4bc.js


Diff do ficheiro suprimidas por serem muito extensas
+ 0 - 0
dist/static/js/chunk-0398cdaf.df5d555e.js


+ 1 - 0
dist/static/js/chunk-043db502.68b795ce.js

@@ -0,0 +1 @@
+(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-043db502"],{"17f4":function(t,e,a){},a1d9:function(t,e,a){"use strict";a("17f4")},b418:function(t,e,a){"use strict";a.r(e);var s=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-upload",t._g(t._b({staticClass:"ym-upload-file",attrs:{drag:"",headers:t.headers,action:t.api+"upload","on-success":t.handleSuccess}},"el-upload",t.$attrs,!1),t.$listeners),[a("i",{staticClass:"el-icon-upload"}),a("div",{staticClass:"el-upload__text"},[t._v("将文件拖到此处,或"),a("em",[t._v("点击上传")])]),a("div",{staticClass:"el-upload__tip",attrs:{slot:"tip"},slot:"tip"},[t._v(t._s(t.tip))])])},l=[],n=a("5f87"),i={name:"UploadImage",model:{prop:"value",event:"update"},props:{value:{type:[Array,String],default:function(){return[]}},tip:{type:String,default:""},api:{type:String,default:window.global.baseURL}},data:function(){return{headers:{Authorization:Object(n["a"])()}}},methods:{handleSuccess:function(t,e){console.table("🚀  文件上传成功:",t,e);var a=t.data,s=t.code;0===s&&this.$emit("update",a.url)}}},u=i,o=(a("a1d9"),a("2877")),d=Object(o["a"])(u,s,l,!1,null,null,null);e["default"]=d.exports}}]);

+ 1 - 0
dist/static/js/chunk-159c7f2c.697403e5.js

@@ -0,0 +1 @@
+(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-159c7f2c"],{"26fc":function(t,s,a){t.exports=a.p+"static/img/404_cloud.0f4bc32b.png"},"8cdb":function(t,s,a){"use strict";a.r(s);var c=function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("div",{staticClass:"wscn-http404-container"},[a("div",{staticClass:"wscn-http404"},[t._m(0),a("div",{staticClass:"bullshit"},[a("div",{staticClass:"bullshit__oops"},[t._v("OOPS!")]),t._m(1),a("div",{staticClass:"bullshit__headline"},[t._v(t._s(t.message))]),a("div",{staticClass:"bullshit__info"},[t._v("Please check that the URL you entered is correct, or click the button below to return to the homepage.")]),a("a",{staticClass:"bullshit__return-home",attrs:{href:""}},[t._v("Back to home")])])])])},e=[function(){var t=this,s=t.$createElement,c=t._self._c||s;return c("div",{staticClass:"pic-404"},[c("img",{staticClass:"pic-404__parent",attrs:{src:a("a36b"),alt:"404"}}),c("img",{staticClass:"pic-404__child left",attrs:{src:a("26fc"),alt:"404"}}),c("img",{staticClass:"pic-404__child mid",attrs:{src:a("26fc"),alt:"404"}}),c("img",{staticClass:"pic-404__child right",attrs:{src:a("26fc"),alt:"404"}})])},function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("div",{staticClass:"bullshit__info"},[t._v("All rights reserved "),a("a",{staticStyle:{color:"#20a0ff"},attrs:{href:"https://wallstreetcn.com",target:"_blank"}},[t._v("wallstreetcn")])])}],i={name:"Page404",computed:{message:function(){return"The webmaster said that you can not enter this page..."}}},l=i,n=(a("dd53"),a("2877")),r=Object(n["a"])(l,c,e,!1,null,"c095f994",null);s["default"]=r.exports},a36b:function(t,s,a){t.exports=a.p+"static/img/404.a57b6f31.png"},b0a8:function(t,s,a){},dd53:function(t,s,a){"use strict";a("b0a8")}}]);

Diff do ficheiro suprimidas por serem muito extensas
+ 0 - 0
dist/static/js/chunk-19ae7ca2.6297d3ec.js


Diff do ficheiro suprimidas por serem muito extensas
+ 0 - 0
dist/static/js/chunk-1b1dc324.c55c0ce5.js


Diff do ficheiro suprimidas por serem muito extensas
+ 0 - 0
dist/static/js/chunk-1d1a3fb8.e9eae9cc.js


Diff do ficheiro suprimidas por serem muito extensas
+ 0 - 0
dist/static/js/chunk-1d8f4b48.e25b0a1c.js


Diff do ficheiro suprimidas por serem muito extensas
+ 0 - 0
dist/static/js/chunk-1f4063e0.66e6a034.js


Diff do ficheiro suprimidas por serem muito extensas
+ 0 - 0
dist/static/js/chunk-2065894b.373b0eda.js


Diff do ficheiro suprimidas por serem muito extensas
+ 0 - 0
dist/static/js/chunk-219108a3.73418ec1.js


Diff do ficheiro suprimidas por serem muito extensas
+ 0 - 0
dist/static/js/chunk-2a1640be.01e5d2ac.js


Diff do ficheiro suprimidas por serem muito extensas
+ 0 - 0
dist/static/js/chunk-2d0a38bb.3b52add2.js


Diff do ficheiro suprimidas por serem muito extensas
+ 0 - 0
dist/static/js/chunk-2d0ae9a2.4d3160f2.js


+ 1 - 0
dist/static/js/chunk-2d0afa56.e631486f.js

@@ -0,0 +1 @@
+(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0afa56"],{"0ee0":function(t,e,i){"use strict";i.r(e);var l=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",["drawer"===t.cType?i("el-drawer",t._g(t._b({attrs:{direction:"rtl",size:"500"}},"el-drawer",t.$attrs,!1),t.$listeners),[i("template",{slot:"title"},[i("div",[i("span",[t._v(t._s(t.title))])])]),t._t(t.cType)],2):t._e(),i("transition",["dialog"===t.cType?i("el-dialog",t._g(t._b({attrs:{"close-on-click-modal":!1,width:t.width}},"el-dialog",t.$attrs,!1),t.$listeners),[i("template",{slot:"title"},[i("div",{staticStyle:{"text-align":"center",color:"#3E7BFA","font-size":"20px"}},[i("span",[t._v(t._s(t.title))])])]),t._t(t.cType)],2):t._e()],1)],1)},n=[],a={name:"EditorContainer",props:{popupType:{type:String,default:"dialog"},title:{type:String,default:""},width:{type:String,default:""}},computed:{cType:function(){return this.popupType}},created:function(){},methods:{handleSwitch:function(){"drawer"===this.cType?this.$emit("switch","dialog"):this.$emit("switch","drawer")}}},r=a,s=i("2877"),o=Object(s["a"])(r,l,n,!1,null,null,null);e["default"]=o.exports}}]);

Diff do ficheiro suprimidas por serem muito extensas
+ 0 - 0
dist/static/js/chunk-2d0b3299.b6a8789f.js


Diff do ficheiro suprimidas por serem muito extensas
+ 0 - 0
dist/static/js/chunk-2d0c51f8.f5721aa3.js


Diff do ficheiro suprimidas por serem muito extensas
+ 0 - 0
dist/static/js/chunk-2d0ccf79.3eab99fb.js


Diff do ficheiro suprimidas por serem muito extensas
+ 0 - 0
dist/static/js/chunk-2d0ce753.8a6d5a5d.js


Diff do ficheiro suprimidas por serem muito extensas
+ 0 - 0
dist/static/js/chunk-2d0cf866.61f1b082.js


Diff do ficheiro suprimidas por serem muito extensas
+ 0 - 0
dist/static/js/chunk-2d0d0f87.cc65a5da.js


+ 1 - 0
dist/static/js/chunk-2d0d2c0c.6b8bd456.js

@@ -0,0 +1 @@
+(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0d2c0c"],{"5a9c":function(t,e,n){"use strict";n.r(e);var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"new-app-container layout-vertical"},[n("YMTable",{ref:"table",attrs:{"table-key":1,index:!0,selection:!1,"table-options":t.tableOptions,"edit-form":t.editForm,"edit-config":t.editConfig,columns:t.columns,"rows-actions":t.rowsActions,"show-summary":!1,apis:t.apis,"is-page":!1,"custom-style":{height:"calc(100vh - 100px)"}}}),n("Dialog",{ref:"dialog"},[n("template",{slot:"content"})],2)],1)},i=[],o=n("9039"),s=n("7e1e"),c={components:{Dialog:o["a"]},data:function(){var t=this;return{loading:!1,visibleBasicDrawer:!1,renderContent:"",searchForm:[],columns:[{label:"模式",method:function(t){return 0===t.val?"PC28":"极速28"}}],rowsActions:[{key:"witch",label:"快速切换",type:"primary",method:function(e){Object(s["u"])({val:1===e.val?0:1}).then((function(e){0===e.code&&(t.$message.success("设置成功"),t.onSubmit())})).catch((function(){t.$message.error("设置失败")}))}},{}],apis:{list:{url:"config/pcConfig",dataParam:"data.data",resultParam:"data",init:!1}},tableOptions:{},editForm:[],editConfig:{addTip:"注:备注",editTip:"注:备注"}}},created:function(){},mounted:function(){this.onSubmit()},methods:{handleSubmit:function(t){console.log("提交数据:",t)},handleClickDrawer:function(t){},onValueChange:function(t){},onSubmit:function(t){this.$refs.table.getList(t)}}},l=c,r=n("2877"),u=Object(r["a"])(l,a,i,!1,null,null,null);e["default"]=u.exports}}]);

Diff do ficheiro suprimidas por serem muito extensas
+ 0 - 0
dist/static/js/chunk-2d0e2665.f76a4d6a.js


+ 1 - 0
dist/static/js/chunk-2d0f04bf.db776d38.js

@@ -0,0 +1 @@
+(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0f04bf"],{"9c87":function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"new-app-container layout-vertical"},[i("YMTable",{ref:"table",attrs:{"table-key":1,index:!0,selection:!1,"table-options":e.tableOptions,"edit-form":e.editForm,"edit-config":e.editConfig,columns:e.columns,"rows-actions":e.rowsActions,"show-summary":!1,apis:e.apis,"custom-style":{height:"calc(100vh - 80px)"}}}),i("Dialog",{ref:"dialog"},[i("template",{slot:"content"})],2)],1)},l=[],n=i("9039"),o={components:{Dialog:n["a"]},data:function(){return{loading:!1,visibleBasicDrawer:!1,renderContent:"",columns:[{label:"字段",prop:"field"},{label:"名称",prop:"remark"},{label:"内容",prop:"val"}],rowsActions:[{key:"edit",label:"编辑"},{key:"delete",label:"删除",vIF:function(e){return 1!==e.group_id}}],apis:{list:{url:"config",dataParam:"data.data",resultParam:"data",init:!1},add:{url:"config/submit"},edit:{url:"config/submit"},delete:{url:"config/delete",method:"post"}},tableOptions:{add:{show:!0}},editForm:[{body:[{label:"字段",type:"input",prop:"field",rules:[{required:!0,message:"请输入字段",trigger:"blur"}]},{label:"名称",type:"input",prop:"remark",rules:[{required:!0,message:"请输入字段",trigger:"blur"}]},{label:"内容",type:"textarea",prop:"val",rules:[{required:!0,message:"请输入内容",trigger:"blur"}]}]}],editConfig:{}}},created:function(){},mounted:function(){this.onSubmit()},methods:{handleSubmit:function(e){console.log("提交数据:",e)},handleClickDrawer:function(e){},onValueChange:function(e){},onSubmit:function(e){this.$refs.table.getList(e)}}},r=o,s=i("2877"),u=Object(s["a"])(r,a,l,!1,null,null,null);t["default"]=u.exports}}]);

Diff do ficheiro suprimidas por serem muito extensas
+ 0 - 0
dist/static/js/chunk-2d2167b4.71397ff8.js


Diff do ficheiro suprimidas por serem muito extensas
+ 0 - 0
dist/static/js/chunk-2d21a994.c62ce796.js


Diff do ficheiro suprimidas por serem muito extensas
+ 0 - 0
dist/static/js/chunk-2d2226a2.b097c6c5.js


Diff do ficheiro suprimidas por serem muito extensas
+ 0 - 0
dist/static/js/chunk-2d238672.286b428e.js


Diff do ficheiro suprimidas por serem muito extensas
+ 0 - 0
dist/static/js/chunk-3985bb13.e9df148b.js


Diff do ficheiro suprimidas por serem muito extensas
+ 0 - 0
dist/static/js/chunk-3b76b2b0.38cc00c6.js


+ 1 - 0
dist/static/js/chunk-3e7fb631.07ab6843.js

@@ -0,0 +1 @@
+(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-3e7fb631"],{"25e5":function(e,a,t){"use strict";t("b9a5")},b9a5:function(e,a,t){},d6fd:function(e,a,t){"use strict";t.r(a);var i=function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}]},[t("el-upload",{staticClass:"avatar-uploader",attrs:{action:e.uploadUrl,headers:e.headers,data:e.params,name:e.name,"show-file-list":!1,"on-success":e.handleAvatarSuccess,"before-upload":e.beforeAvatarUpload,"on-remove":e.handleRemove,limit:1}},[e.fellUrl?[e.isVideo?t("video",{staticClass:"video",attrs:{src:e.fellUrl,controls:""}},[t("source",{attrs:{src:e.fellUrl,type:"video/mp4"}})]):t("img",{staticClass:"avatar",attrs:{src:e.fellUrl}})]:t("i",{staticClass:"el-icon-plus avatar-uploader-icon"}),e.fellUrl?t("i",{staticClass:"el-icon-delete avatar-uploader-icon",on:{click:function(a){return a.stopPropagation(),e.handleRemove(a)}}}):e._e()],2)],1)},l=[],s=(t("ac1f"),t("00b4"),t("5f87")),o={name:"Index",props:{value:{type:String,default:""},name:{type:String,default:"file"}},data:function(){return{loading:!1,params:{},labelWidth:"120px",isVideo:!1,uploadUrl:window.global.baseURL+"upload/uploadVideo",headers:{Authorization:Object(s["a"])()},fellUrl:this.value}},watch:{value:function(e){this.fellUrl=Array.isArray(e)?e[0]:e,this.isVideo=this.isVideoLink(e)}},methods:{isVideoLink:function(e){var a=/\.(mp4|m4v|webm|mov|avi|wmv)$/i;return a.test(e)},handleRemove:function(e,a){this.fellUrl="",this.$emit("input","")},handleAvatarSuccess:function(e,a){0===e.code?(this.fellUrl=e.data.path,this.$emit("input",e.data.path)):this.$message.error(e.msg),this.loading=!1},beforeAvatarUpload:function(e){this.loading=!0}}},n=o,r=(t("25e5"),t("2877")),d=Object(r["a"])(n,i,l,!1,null,"1349ebe6",null);a["default"]=d.exports}}]);

Diff do ficheiro suprimidas por serem muito extensas
+ 0 - 0
dist/static/js/chunk-5060aa1f.49095c03.js


Diff do ficheiro suprimidas por serem muito extensas
+ 0 - 0
dist/static/js/chunk-57ce74a2.04f41b44.js


Diff do ficheiro suprimidas por serem muito extensas
+ 0 - 0
dist/static/js/chunk-958f940c.8b6f559e.js


Diff do ficheiro suprimidas por serem muito extensas
+ 0 - 0
dist/static/js/chunk-b64dd4b2.6e684466.js


Diff do ficheiro suprimidas por serem muito extensas
+ 0 - 0
dist/static/js/chunk-b79d5444.ef460d9f.js


Diff do ficheiro suprimidas por serem muito extensas
+ 0 - 0
dist/static/js/chunk-ec49cb28.b0b113da.js


Diff do ficheiro suprimidas por serem muito extensas
+ 0 - 0
dist/static/js/chunk-elementUI.48582ac9.js


Diff do ficheiro suprimidas por serem muito extensas
+ 0 - 0
dist/static/js/chunk-f9897958.ca38ddb6.js


Diff do ficheiro suprimidas por serem muito extensas
+ 0 - 0
dist/static/js/chunk-fef8ce9c.f290cdf4.js


Diff do ficheiro suprimidas por serem muito extensas
+ 7 - 0
dist/static/js/chunk-libs.9b031ee5.js


BIN
dist/static/media/masg.4b6e1513.mp3


+ 24 - 0
jest.config.js

@@ -0,0 +1,24 @@
+module.exports = {
+  moduleFileExtensions: ['js', 'jsx', 'json', 'vue'],
+  transform: {
+    '^.+\\.vue$': 'vue-jest',
+    '.+\\.(css|styl|less|sass|scss|svg|png|jpg|ttf|woff|woff2)$':
+      'jest-transform-stub',
+    '^.+\\.jsx?$': 'babel-jest'
+  },
+  moduleNameMapper: {
+    '^@/(.*)$': '<rootDir>/src/$1'
+  },
+  snapshotSerializers: ['jest-serializer-vue'],
+  testMatch: [
+    '**/tests/unit/**/*.spec.(js|jsx|ts|tsx)|**/__tests__/*.(js|jsx|ts|tsx)'
+  ],
+  collectCoverageFrom: ['src/utils/**/*.{js,vue}', '!src/utils/auth.js', '!src/utils/request.js', 'src/components/**/*.{js,vue}'],
+  coverageDirectory: '<rootDir>/tests/unit/coverage',
+  // 'collectCoverage': true,
+  'coverageReporters': [
+    'lcov',
+    'text-summary'
+  ],
+  testURL: 'http://localhost/'
+}

+ 9 - 0
jsconfig.json

@@ -0,0 +1,9 @@
+{
+  "compilerOptions": {
+    "baseUrl": "./",
+    "paths": {
+        "@/*": ["src/*"]
+    }
+  },
+  "exclude": ["node_modules", "dist"]
+}

+ 57 - 0
mock/index.js

@@ -0,0 +1,57 @@
+const Mock = require('mockjs')
+const { param2Obj } = require('./utils')
+
+const user = require('./user')
+const table = require('./table')
+
+const mocks = [
+  ...user,
+  ...table
+]
+
+// for front mock
+// please use it cautiously, it will redefine XMLHttpRequest,
+// which will cause many of your third-party libraries to be invalidated(like progress event).
+function mockXHR() {
+  // mock patch
+  // https://github.com/nuysoft/Mock/issues/300
+  Mock.XHR.prototype.proxy_send = Mock.XHR.prototype.send
+  Mock.XHR.prototype.send = function() {
+    if (this.custom.xhr) {
+      this.custom.xhr.withCredentials = this.withCredentials || false
+
+      if (this.responseType) {
+        this.custom.xhr.responseType = this.responseType
+      }
+    }
+    this.proxy_send(...arguments)
+  }
+
+  function XHR2ExpressReqWrap(respond) {
+    return function(options) {
+      let result = null
+      if (respond instanceof Function) {
+        const { body, type, url } = options
+        // https://expressjs.com/en/4x/api.html#req
+        result = respond({
+          method: type,
+          body: JSON.parse(body),
+          query: param2Obj(url)
+        })
+      } else {
+        result = respond
+      }
+      return Mock.mock(result)
+    }
+  }
+
+  for (const i of mocks) {
+    Mock.mock(new RegExp(i.url), i.type || 'get', XHR2ExpressReqWrap(i.response))
+  }
+}
+
+module.exports = {
+  mocks,
+  mockXHR
+}
+

+ 81 - 0
mock/mock-server.js

@@ -0,0 +1,81 @@
+const chokidar = require('chokidar')
+const bodyParser = require('body-parser')
+const chalk = require('chalk')
+const path = require('path')
+const Mock = require('mockjs')
+
+const mockDir = path.join(process.cwd(), 'mock')
+
+function registerRoutes(app) {
+  let mockLastIndex
+  const { mocks } = require('./index.js')
+  const mocksForServer = mocks.map(route => {
+    return responseFake(route.url, route.type, route.response)
+  })
+  for (const mock of mocksForServer) {
+    app[mock.type](mock.url, mock.response)
+    mockLastIndex = app._router.stack.length
+  }
+  const mockRoutesLength = Object.keys(mocksForServer).length
+  return {
+    mockRoutesLength: mockRoutesLength,
+    mockStartIndex: mockLastIndex - mockRoutesLength
+  }
+}
+
+function unregisterRoutes() {
+  Object.keys(require.cache).forEach(i => {
+    if (i.includes(mockDir)) {
+      delete require.cache[require.resolve(i)]
+    }
+  })
+}
+
+// for mock server
+const responseFake = (url, type, respond) => {
+  return {
+    url: new RegExp(`${window.global.baseURL}${url}`),
+    type: type || 'get',
+    response(req, res) {
+      console.log('request invoke:' + req.path)
+      res.json(Mock.mock(respond instanceof Function ? respond(req, res) : respond))
+    }
+  }
+}
+
+module.exports = app => {
+  // parse app.body
+  // https://expressjs.com/en/4x/api.html#req.body
+  app.use(bodyParser.json())
+  app.use(bodyParser.urlencoded({
+    extended: true
+  }))
+
+  const mockRoutes = registerRoutes(app)
+  var mockRoutesLength = mockRoutes.mockRoutesLength
+  var mockStartIndex = mockRoutes.mockStartIndex
+
+  // watch files, hot reload mock server
+  chokidar.watch(mockDir, {
+    ignored: /mock-server/,
+    ignoreInitial: true
+  }).on('all', (event, path) => {
+    if (event === 'change' || event === 'add') {
+      try {
+        // remove mock routes stack
+        app._router.stack.splice(mockStartIndex, mockRoutesLength)
+
+        // clear routes cache
+        unregisterRoutes()
+
+        const mockRoutes = registerRoutes(app)
+        mockRoutesLength = mockRoutes.mockRoutesLength
+        mockStartIndex = mockRoutes.mockStartIndex
+
+        console.log(chalk.magentaBright(`\n > Mock Server hot reload success! changed  ${path}`))
+      } catch (error) {
+        console.log(chalk.redBright(error))
+      }
+    }
+  })
+}

+ 29 - 0
mock/table.js

@@ -0,0 +1,29 @@
+const Mock = require('mockjs')
+
+const data = Mock.mock({
+  'items|30': [{
+    id: '@id',
+    title: '@sentence(10, 20)',
+    'status|1': ['published', 'draft', 'deleted'],
+    author: 'name',
+    display_time: '@datetime',
+    pageviews: '@integer(300, 5000)'
+  }]
+})
+
+module.exports = [
+  {
+    url: '/vue-admin-template/table/list',
+    type: 'get',
+    response: config => {
+      const items = data.items
+      return {
+        code: 20000,
+        data: {
+          total: items.length,
+          items: items
+        }
+      }
+    }
+  }
+]

+ 84 - 0
mock/user.js

@@ -0,0 +1,84 @@
+
+const tokens = {
+  admin: {
+    token: 'admin-token'
+  },
+  editor: {
+    token: 'editor-token'
+  }
+}
+
+const users = {
+  'admin-token': {
+    roles: ['admin'],
+    introduction: 'I am a super administrator',
+    avatar: 'https://wpimg.wallstcn.com/f778738c-e4f8-4870-b634-56703b4acafe.gif',
+    name: 'Super Admin'
+  },
+  'editor-token': {
+    roles: ['editor'],
+    introduction: 'I am an editor',
+    avatar: 'https://wpimg.wallstcn.com/f778738c-e4f8-4870-b634-56703b4acafe.gif',
+    name: 'Normal Editor'
+  }
+}
+
+module.exports = [
+  // user login
+  {
+    url: '/vue-admin-template/user/login',
+    type: 'post',
+    response: config => {
+      const { username } = config.body
+      const token = tokens[username]
+
+      // mock error
+      if (!token) {
+        return {
+          code: 60204,
+          message: 'Account and password are incorrect.'
+        }
+      }
+
+      return {
+        code: 20000,
+        data: token
+      }
+    }
+  },
+
+  // get user info
+  {
+    url: '/vue-admin-template/user/info\.*',
+    type: 'get',
+    response: config => {
+      const { token } = config.query
+      const info = users[token]
+
+      // mock error
+      if (!info) {
+        return {
+          code: 50008,
+          message: 'Login failed, unable to get user details.'
+        }
+      }
+
+      return {
+        code: 20000,
+        data: info
+      }
+    }
+  },
+
+  // user logout
+  {
+    url: '/vue-admin-template/user/logout',
+    type: 'post',
+    response: _ => {
+      return {
+        code: 20000,
+        data: 'success'
+      }
+    }
+  }
+]

+ 25 - 0
mock/utils.js

@@ -0,0 +1,25 @@
+/**
+ * @param {string} url
+ * @returns {Object}
+ */
+function param2Obj(url) {
+  const search = decodeURIComponent(url.split('?')[1]).replace(/\+/g, ' ')
+  if (!search) {
+    return {}
+  }
+  const obj = {}
+  const searchArr = search.split('&')
+  searchArr.forEach(v => {
+    const index = v.indexOf('=')
+    if (index !== -1) {
+      const name = v.substring(0, index)
+      const val = v.substring(index + 1, v.length)
+      obj[name] = val
+    }
+  })
+  return obj
+}
+
+module.exports = {
+  param2Obj
+}

+ 65 - 0
package.json

@@ -0,0 +1,65 @@
+{
+  "name": "vue-admin-template",
+  "version": "4.4.0",
+  "description": "A vue admin template with Element UI & axios & iconfont & permission control & lint",
+  "author": "Pan <panfree23@gmail.com>",
+  "scripts": {
+    "dev": "vue-cli-service serve",
+    "build:prod": "vue-cli-service build",
+    "build:stage": "vue-cli-service build --mode staging",
+    "preview": "node build/index.js --preview",
+    "svgo": "svgo -f src/icons/svg --config=src/icons/svgo.yml",
+    "lint": "eslint --ext .js,.vue src",
+    "test:unit": "jest --clearCache && vue-cli-service test:unit",
+    "test:ci": "npm run lint && npm run test:unit"
+  },
+  "dependencies": {
+    "@wangeditor/editor": "^5.1.23",
+    "@wangeditor/editor-for-vue": "^1.0.2",
+    "axios": "0.18.1",
+    "core-js": "3.6.5",
+    "echarts": "^5.6.0",
+    "element-ui": "2.13.2",
+    "js-cookie": "2.2.0",
+    "normalize.css": "7.0.0",
+    "nprogress": "0.2.0",
+    "path-to-regexp": "2.4.0",
+    "vue": "2.6.10",
+    "vue-router": "3.0.6",
+    "vuex": "3.1.0"
+  },
+  "devDependencies": {
+    "@vue/cli-plugin-babel": "4.4.4",
+    "@vue/cli-plugin-eslint": "4.4.4",
+    "@vue/cli-plugin-unit-jest": "4.4.4",
+    "@vue/cli-service": "4.4.4",
+    "@vue/test-utils": "1.0.0-beta.29",
+    "autoprefixer": "9.5.1",
+    "babel-eslint": "10.1.0",
+    "babel-jest": "23.6.0",
+    "babel-plugin-dynamic-import-node": "2.3.3",
+    "chalk": "2.4.2",
+    "connect": "3.6.6",
+    "eslint": "6.7.2",
+    "eslint-plugin-vue": "6.2.2",
+    "html-webpack-plugin": "3.2.0",
+    "mockjs": "1.0.1-beta3",
+    "runjs": "4.3.2",
+    "sass": "1.26.8",
+    "sass-loader": "8.0.2",
+    "script-ext-html-webpack-plugin": "2.1.3",
+    "serve-static": "1.13.2",
+    "svg-sprite-loader": "4.1.3",
+    "svgo": "1.2.2",
+    "vue-template-compiler": "2.6.10"
+  },
+  "browserslist": [
+    "> 1%",
+    "last 2 versions"
+  ],
+  "engines": {
+    "node": ">=8.9",
+    "npm": ">= 3.0.0"
+  },
+  "license": "MIT"
+}

+ 8 - 0
postcss.config.js

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

+ 3 - 0
public/config.js

@@ -0,0 +1,3 @@
+window.global = {
+  baseURL: 'https://botpc28.testx2.cc/admin/'
+}

BIN
public/favicon.ico


+ 18 - 0
public/index.html

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

+ 29 - 0
src/App.vue

@@ -0,0 +1,29 @@
+<template>
+  <div id="app">
+    <router-view />
+  </div>
+</template>
+<script>
+import { home } from '@/api/data'
+export default {
+  name: 'App',
+}
+</script>
+<style>
+body{
+}
+  .body_box{
+    margin: 16px;
+    padding: 12px 20px;
+    border-radius: 10px;
+    height: calc(100vh - 310px);
+  }
+  .flex_row{
+    display: flex;
+    flex-direction: row;
+  }
+  .flex_column{
+    display: flex;
+    flex-direction: column;
+  }
+</style>

+ 275 - 0
src/api/data.js

@@ -0,0 +1,275 @@
+import request from '@/utils/request'
+
+export function home(data) {
+  return request({
+    url: 'home',
+    method: 'get',
+   params: data
+  })
+}
+export function withdraw(data) {
+  return request({
+    url: 'wallet/topUp',
+    method: 'post',
+    data
+  })
+}
+export function walletdebiting(data) {
+  return request({
+    url: 'wallet/debiting',
+    method: 'post',
+    data
+  })
+}
+
+export function roomcompleted(params) {
+  return request({
+    url: 'room/completed',
+    method: 'post',
+    data: params
+  })
+}
+
+export function roomsetScore(params) {
+  return request({
+    url: 'room/setScore',
+    method: 'post',
+    data: params
+  })
+}
+
+export function withdrawStatus(params) {
+  return request({
+    url: 'withdraw/setStatus',
+    method: 'post',
+    data: params
+  })
+}
+
+export function verifyRecharge(params) {
+  return request({
+    url: 'wallet/verifyRecharge',
+    method: 'post',
+    data: params
+  })
+}
+
+export function setPassword(params) {
+  return request({
+    url: 'setPassword',
+    method: 'post',
+    data: params
+  })
+}
+export function configset(params) {
+  return request({
+    url: 'config/set',
+    method: 'post',
+    data: params
+  })
+}
+export function sendChannelMessage(params) {
+  return request({
+    url: 'config/sendChannelMessage',
+    method: 'post',
+    data: params
+  })
+}
+export function menucheck(uri) {
+  return request({
+    url: 'menu/check',
+    method: 'post',
+    data: {uri}
+  })
+}
+
+export function configgetAll(params) {
+  return request({
+    url: 'config/getAll',
+    method: 'get',
+    params
+  })
+}
+export function configget(params) {
+  return request({
+    url: '/config/get',
+    method: 'get',
+    params
+  })
+}
+export function mineMenu(params) {
+  return request({
+    url: 'menu/mineMenu',
+    method: 'get',
+    params
+  })
+}
+export function menutree(params) {
+  return request({
+    url: 'menu/tree',
+    method: 'get',
+    params
+  })
+}
+export function roleall(params) {
+  return request({
+    url: 'role/all',
+    method: 'get',
+    params
+  })
+}
+export function getPendingTasks(params) {
+  return request({
+    url: 'wallet/getPendingTasks',
+    method: 'get',
+    params
+  })
+}
+export function issuebetting(params) {
+  return request({
+    url: 'issue/betting',
+    method: 'post',
+    data: params
+  })
+}
+export function issueclose(params) {
+  return request({
+    url: 'issue/close',
+    method: 'post',
+    data: params
+  })
+}
+export function issuelotteryDraw(params) {
+  return request({
+    url: 'issue/lotteryDraw',
+    method: 'post',
+    data: params
+  })
+}
+export function pcIssuepreDraw(params) {
+  return request({
+    url: 'pcIssue/preDraw',
+    method: 'post',
+    data: params
+  })
+}
+export function rebatesubmit(params) {
+  return request({
+    url: 'rebate/submit',
+    method: 'post',
+    data: params
+  })
+}
+export function pc28Switch(params) {
+  return request({
+    url: 'config/pc28Switch',
+    method: 'post',
+    data: params
+  })
+}
+export function usermerge(params) {
+  return request({
+    url: '/user/merge',
+    method: 'post',
+    data: params
+  })
+}
+export function issuefailure(params) {
+  return request({
+    url: 'issue/failure',
+    method: 'post',
+    data: params
+  })
+}
+export function useraddress(params) {
+  return request({
+    url: 'user/address',
+    method: 'get',
+    params: params
+  })
+}
+export function paymentOrder(params) {
+  return request({
+    url: 'paymentOrder/check',
+    method: 'get',
+    params: params
+  })
+}
+
+export function audit(params) {
+  return request({
+    url: 'paymentOrder/audit',
+    method: 'post',
+    data: params
+  })
+}
+export function withdrawsetNote(params) {
+  return request({
+    url: 'withdraw/setNote',
+    method: 'post',
+    data: params
+  })
+}
+export function usersetNote(params) {
+  return request({
+    url: 'user/setNote',
+    method: 'post',
+    data: params
+  })
+}
+export function userbanned(params) {
+  return request({
+    url: 'user/banned',
+    method: 'post',
+    data: params
+  })
+}
+export function withdrawssetRmbNote(params) {
+  return request({
+    url: 'withdraw/setRmbNote',
+    method: 'post',
+    data: params
+  })
+}
+export function finish(params) {
+  return request({
+    url: 'ActivityUser/finish',
+    method: 'post',
+    data: params
+  })
+}
+export function gift(params) {
+  return request({
+    url: 'ActivityUser/gift',
+    method: 'post',
+    data: params
+  })
+}
+export function menusubmit(params) {
+  return request({
+    url: 'menu/submit',
+    method: 'post',
+    data: params
+  })
+}
+export function backflowgrant(params) {
+  return request({
+    url: 'backflow/grant',
+    method: 'post',
+    data: params
+  })
+}
+export function menuall(params) {
+  return request({
+    url: 'menu/all',
+    method: 'get',
+    params: params
+  })
+}
+export function getChangeTypes(params) {
+  return request({
+    url: 'wallet/getChangeTypes',
+    method: 'get',
+    params: params
+  })
+}

+ 11 - 0
src/api/upload.js

@@ -0,0 +1,11 @@
+import request from '@/utils/request'
+
+// 数据审核配置查看
+export function uploadFile(data) {
+  return request({
+    url: '/lv/uploadFile',
+    method: 'post',
+    data: data
+  })
+}
+

+ 32 - 0
src/api/user.js

@@ -0,0 +1,32 @@
+import request from '@/utils/request'
+
+export function login(data) {
+  return request({
+    url: '/login',
+    method: 'post',
+    data
+  })
+}
+
+export function register(data) {
+  return request({
+    url: '/register',
+    method: 'post',
+    data
+  })
+}
+
+export function code(data) {
+  return request({
+    url: '/code',
+    method: 'post',
+    data
+  })
+}
+
+export function logout() {
+  return request({
+    url: 'logout',
+    method: 'get'
+  })
+}

BIN
src/assets/404_images/404.png


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