소스 검색

搭的框架,可以实现登陆

master
chengxuke 4 년 전
부모
커밋
0321e4c1e9
100개의 변경된 파일12045개의 추가작업 그리고 2733개의 파일을 삭제
  1. 0
    5
      .babelrc
  2. 0
    9
      .editorconfig
  3. 0
    0
      .eslintignore
  4. 0
    21
      .eslintrc.js
  5. 2
    8
      .gitignore
  6. 0
    5
      .postcssrc.js
  7. 0
    5
      .travis.yml
  8. 0
    21
      LICENSE
  9. 15
    106
      README.md
  10. 3
    0
      babel.config.js
  11. 0
    3
      cypress.json
  12. 11838
    0
      package-lock.json
  13. 42
    61
      package.json
  14. BIN
      public/favicon.ico
  15. 3
    3
      public/index.html
  16. 2
    22
      src/App.vue
  17. 0
    51
      src/api/data.js
  18. 0
    26
      src/api/info.js
  19. 0
    11
      src/api/routers.js
  20. 10
    84
      src/api/user.js
  21. 0
    29
      src/assets/iconfont/iconfont.css
  22. BIN
      src/assets/iconfont/iconfont.eot
  23. 0
    35
      src/assets/iconfont/iconfont.svg
  24. BIN
      src/assets/iconfont/iconfont.ttf
  25. BIN
      src/assets/iconfont/iconfont.woff
  26. 0
    37
      src/assets/icons/iconfont.css
  27. BIN
      src/assets/icons/iconfont.eot
  28. 0
    56
      src/assets/icons/iconfont.svg
  29. BIN
      src/assets/icons/iconfont.ttf
  30. BIN
      src/assets/icons/iconfont.woff
  31. 0
    1
      src/assets/images/error-page/error-401.svg
  32. 0
    1
      src/assets/images/error-page/error-404.svg
  33. 0
    1
      src/assets/images/error-page/error-500.svg
  34. BIN
      src/assets/images/icon-qr-qq-wechat.png
  35. 0
    1
      src/assets/images/icon-social-bilibili.svg
  36. 0
    1
      src/assets/images/icon-social-juejin.svg
  37. 0
    1
      src/assets/images/icon-social-twitter.svg
  38. 0
    1
      src/assets/images/icon-social-zhihu.svg
  39. BIN
      src/assets/images/login-bg.jpg
  40. BIN
      src/assets/images/logo-min.jpg
  41. BIN
      src/assets/images/logo.jpg
  42. BIN
      src/assets/images/talkingdata.png
  43. BIN
      src/assets/img/bg.png
  44. BIN
      src/assets/img/gou.png
  45. BIN
      src/assets/img/key.png
  46. BIN
      src/assets/img/kuang.png
  47. BIN
      src/assets/img/list.png
  48. BIN
      src/assets/img/logo.png
  49. BIN
      src/assets/img/user.png
  50. BIN
      src/assets/img/user2.png
  51. BIN
      src/assets/img/video.png
  52. BIN
      src/assets/img/videoFace.jpg
  53. BIN
      src/assets/logo.png
  54. 130
    0
      src/components/HelloWorld.vue
  55. 0
    58
      src/components/charts/bar.vue
  56. 0
    3
      src/components/charts/index.js
  57. 0
    70
      src/components/charts/pie.vue
  58. 0
    491
      src/components/charts/theme.json
  59. 0
    42
      src/components/common-icon/common-icon.vue
  60. 0
    2
      src/components/common-icon/index.js
  61. 0
    8
      src/components/common/common.less
  62. 0
    3
      src/components/common/util.js
  63. 0
    174
      src/components/count-to/count-to.vue
  64. 0
    2
      src/components/count-to/index.js
  65. 0
    10
      src/components/count-to/index.less
  66. 0
    2
      src/components/cropper/index.js
  67. 0
    40
      src/components/cropper/index.less
  68. 0
    142
      src/components/cropper/index.vue
  69. 0
    18
      src/components/drag-drawer/drag-drawer-trigger.vue
  70. 0
    156
      src/components/drag-drawer/drag-drawer.vue
  71. 0
    2
      src/components/drag-drawer/index.js
  72. 0
    70
      src/components/drag-drawer/index.less
  73. 0
    7
      src/components/drag-drawer/mixin.js
  74. 0
    92
      src/components/drag-list/drag-list.vue
  75. 0
    2
      src/components/drag-list/index.js
  76. 0
    75
      src/components/editor/editor.vue
  77. 0
    2
      src/components/editor/index.js
  78. 0
    35
      src/components/icons/icons.vue
  79. 0
    2
      src/components/icons/index.js
  80. 0
    2
      src/components/info-card/index.js
  81. 0
    94
      src/components/info-card/infor-card.vue
  82. 0
    2
      src/components/login-form/index.js
  83. 0
    134
      src/components/login-form/login-form.vue
  84. 0
    2
      src/components/main/components/a-back-top/index.js
  85. 0
    90
      src/components/main/components/a-back-top/index.vue
  86. 0
    49
      src/components/main/components/error-store/error-store.vue
  87. 0
    2
      src/components/main/components/error-store/index.js
  88. 0
    84
      src/components/main/components/fullscreen/fullscreen.vue
  89. 0
    2
      src/components/main/components/fullscreen/index.js
  90. 0
    4
      src/components/main/components/header-bar/custom-bread-crumb/custom-bread-crumb.less
  91. 0
    47
      src/components/main/components/header-bar/custom-bread-crumb/custom-bread-crumb.vue
  92. 0
    2
      src/components/main/components/header-bar/custom-bread-crumb/index.js
  93. 0
    18
      src/components/main/components/header-bar/header-bar.less
  94. 0
    34
      src/components/main/components/header-bar/header-bar.vue
  95. 0
    2
      src/components/main/components/header-bar/index.js
  96. 0
    2
      src/components/main/components/header-bar/sider-trigger/index.js
  97. 0
    21
      src/components/main/components/header-bar/sider-trigger/sider-trigger.less
  98. 0
    27
      src/components/main/components/header-bar/sider-trigger/sider-trigger.vue
  99. 0
    2
      src/components/main/components/language/index.js
  100. 0
    0
      src/components/main/components/language/language.vue

+ 0
- 5
.babelrc 파일 보기

@@ -1,5 +0,0 @@
1
-{
2
-  "presets": [
3
-    "@vue/app"
4
-  ]
5
-}

+ 0
- 9
.editorconfig 파일 보기

@@ -1,9 +0,0 @@
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

+ 0
- 0
.eslintignore 파일 보기


+ 0
- 21
.eslintrc.js 파일 보기

@@ -1,21 +0,0 @@
1
-module.exports = {
2
-  root: true,
3
-  'extends': [
4
-    'plugin:vue/essential',
5
-    '@vue/standard'
6
-  ],
7
-  rules: {
8
-    // allow async-await
9
-    'generator-star-spacing': 'off',
10
-    // allow debugger during development
11
-    'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
12
-    'vue/no-parsing-error': [2, {
13
-      'x-invalid-end-tag': false
14
-    }],
15
-    'no-undef': 'off',
16
-    'camelcase': 'off'
17
-  },
18
-  parserOptions: {
19
-    parser: 'babel-eslint'
20
-  }
21
-}

+ 2
- 8
.gitignore 파일 보기

@@ -2,11 +2,6 @@
2 2
 node_modules
3 3
 /dist
4 4
 
5
-package-lock.json
6
-
7
-/tests/e2e/videos/
8
-/tests/e2e/screenshots/
9
-
10 5
 # local env files
11 6
 .env.local
12 7
 .env.*.local
@@ -15,6 +10,7 @@ package-lock.json
15 10
 npm-debug.log*
16 11
 yarn-debug.log*
17 12
 yarn-error.log*
13
+pnpm-debug.log*
18 14
 
19 15
 # Editor directories and files
20 16
 .idea
@@ -23,6 +19,4 @@ yarn-error.log*
23 19
 *.ntvs*
24 20
 *.njsproj
25 21
 *.sln
26
-*.sw*
27
-
28
-build/env.js
22
+*.sw?

+ 0
- 5
.postcssrc.js 파일 보기

@@ -1,5 +0,0 @@
1
-module.exports = {
2
-  plugins: {
3
-    autoprefixer: {}
4
-  }
5
-}

+ 0
- 5
.travis.yml 파일 보기

@@ -1,5 +0,0 @@
1
-language: node_js
2
-node_js: stable
3
-script: npm run lint
4
-notifications:
5
-  email: false

+ 0
- 21
LICENSE 파일 보기

@@ -1,21 +0,0 @@
1
-MIT License
2
-
3
-Copyright (c) 2017 iView
4
-
5
-Permission is hereby granted, free of charge, to any person obtaining a copy
6
-of this software and associated documentation files (the "Software"), to deal
7
-in the Software without restriction, including without limitation the rights
8
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
-copies of the Software, and to permit persons to whom the Software is
10
-furnished to do so, subject to the following conditions:
11
-
12
-The above copyright notice and this permission notice shall be included in all
13
-copies or substantial portions of the Software.
14
-
15
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
-SOFTWARE.

+ 15
- 106
README.md 파일 보기

@@ -1,115 +1,24 @@
1
-<p align="center">
2
-    <a href="https://www.iviewui.com">
3
-        <img width="200" src="https://file.iviewui.com/logo-new.svg">
4
-    </a>
5
-</p>
1
+# iviewdemo
6 2
 
7
-<h1>
8
-iView Admin
9
-    <h3>Vue.js 2.0 admin management system template based on iView.</h3>
10
-</h1>
11
-
12
-[![](https://img.shields.io/github/release/iview/iview-admin.svg)](https://github.com/iview/iview-admin/releases)
13
-[![](https://img.shields.io/travis/iview/iview-admin.svg?style=flat-square)](https://travis-ci.org/iview/iview-admin)
14
-[![vue](https://img.shields.io/badge/vue-2.5.17-brightgreen.svg?style=flat-square)](https://github.com/vuejs/vue)
15
-[![iview ui](https://img.shields.io/badge/iview-3.2.2-brightgreen.svg?style=flat-square)](https://github.com/iview/iview)
16
-[![npm](https://img.shields.io/npm/l/express.svg)]()
17
-
18
-<h2 align="center">Special Sponsors</h2>
19
-<table>
20
-      <tbody>
21
-        <tr>
22
-          <td align="center" valign="middle">
23
-            <a href="https://segmentfault.com/ls/1650000016424063" target="_blank">
24
-              <img width="300" src="https://file.iviewui.com/asd/asd-i-2.png">
25
-            </a>
26
-          </td>
27
-          <td align="center" valign="middle">
28
-            <a href="https://e.coding.net/?utm_source=iview" target="_blank">
29
-              <img width="300" src="https://file.iviewui.com/asd/asd-coding4.png">
30
-            </a>
31
-          </td>
32
-            <td align="center" valign="middle">
33
-            <a href="https://cn.udacity.com/fend/?utm_source=iviewui&utm_medium=banner&utm_campaign=fend" target="_blank">
34
-              <img width="300" src="https://file.iviewui.com/asd/asd-u-new-2.png">
35
-            </a>
36
-          </td>
37
-        </tr>
38
-      </tbody>
39
-</table>
40
-
41
-> If you'd like be a sponsor, to show your ads in GitHub and iView doc, please email admin@aresn.com to get more infomation.
42
-
43
-## Introduction
44
-
45
-iView Admin is a front-end management background integration solution. It based on [Vue.js](https://github.com/vuejs/vue) and use the UI Toolkit [iView](https://github.com/iview/iview).
46
-
47
-- [Document](https://lison16.github.io/iview-admin-doc/)
48
-- [Preview](https://admin.iviewui.com/)
49
-- [Base template recommends using](https://github.com/iview/iview-admin/tree/template)
50
-
51
-![image](https://file.iviewui.com/admin-dist/admin-preview.png)
52
-
53
-## Features
54
-
55
-- Login / Logout
56
-- Permission Authentication
57
-    - A list of filters
58
-    - Permission to switch
59
-- i18n
60
-- Components
61
-    - Rich Text Editor
62
-    - Markdown Editor
63
-    - City Cascader
64
-    - Photos preview and edit
65
-    - Draggable list
66
-    - File upload
67
-    - Digital gradient
68
-    - split-pane
69
-- Form
70
-    - The article published
71
-    - Workflow
72
-- Table
73
-    - Drag-and-drop sort
74
-    - Searchable form
75
-    - Table export data
76
-        - Export to Csv file
77
-        - Export to Xls file
78
-    - Table to picture
79
-- Error Page
80
-    - 403
81
-    - 404
82
-    - 500
83
-- Router
84
-    - Dynamic routing
85
-    - With reference page
86
-- Theme
87
-- Shrink the sidebar
88
-- Tag navigation
89
-- Breadcrumb navigation
90
-- Full screen / exit full screen
91
-- Lock screen
92
-- The message center
93
-- Personal center
94
-
95
-## Getting started
96
-```bush
97
-# clone the project
98
-git clone https://github.com/iview/iview-admin.git
99
-
100
-// install dependencies
3
+## Project setup
4
+```
101 5
 npm install
6
+```
102 7
 
103
-// develop
104
-npm run dev
8
+### Compiles and hot-reloads for development
9
+```
10
+npm run serve
105 11
 ```
106 12
 
107
-## Build
108
-```bush
13
+### Compiles and minifies for production
14
+```
109 15
 npm run build
110 16
 ```
111 17
 
112
-## License
113
-[MIT](http://opensource.org/licenses/MIT)
18
+### Lints and fixes files
19
+```
20
+npm run lint
21
+```
114 22
 
115
-Copyright (c) 2016-present, iView
23
+### Customize configuration
24
+See [Configuration Reference](https://cli.vuejs.org/config/).

+ 3
- 0
babel.config.js 파일 보기

@@ -0,0 +1,3 @@
1
+module.exports = {
2
+  presets: ["@vue/cli-plugin-babel/preset"]
3
+};

+ 0
- 3
cypress.json 파일 보기

@@ -1,3 +0,0 @@
1
-{
2
-  "pluginsFile": "tests/e2e/plugins/index.js"
3
-}

+ 11838
- 0
package-lock.json
파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
파일 보기


+ 42
- 61
package.json 파일 보기

@@ -1,73 +1,54 @@
1 1
 {
2
-  "name": "iview-admin",
3
-  "version": "2.0.0",
4
-  "author": "Lison<lison16new@163.com>",
5
-  "private": false,
2
+  "name": "iviewdemo",
3
+  "version": "0.1.0",
4
+  "private": true,
6 5
   "scripts": {
7
-    "dev": "vue-cli-service serve --open",
6
+    "serve": "vue-cli-service serve",
8 7
     "build": "vue-cli-service build",
9
-    "lint": "vue-cli-service lint",
10
-    "test:unit": "vue-cli-service test:unit",
11
-    "test:e2e": "vue-cli-service test:e2e"
8
+    "lint": "vue-cli-service lint"
12 9
   },
13 10
   "dependencies": {
14
-    "ali-oss": "^6.8.0",
15
-    "axios": "^0.18.0",
16
-    "clipboard": "^2.0.0",
17
-    "codemirror": "^5.38.0",
18
-    "countup": "^1.8.2",
19
-    "cropperjs": "^1.2.2",
20
-    "dayjs": "^1.7.7",
21
-    "echarts": "^4.7.0",
22
-    "html2canvas": "^1.0.0-alpha.12",
23
-    "iview": "^3.2.2",
24
-    "iview-area": "^1.5.17",
25
-    "js-cookie": "^2.2.0",
26
-    "qs": "^6.9.4",
27
-    "simplemde": "^1.11.2",
28
-    "sortablejs": "^1.7.0",
29
-    "tree-table-vue": "^1.1.0",
30
-    "v-org-tree": "^1.0.6",
31
-    "vue": "^2.5.10",
32
-    "vue-cropper": "^0.5.2",
33
-    "vue-i18n": "^7.8.0",
34
-    "vue-router": "^3.0.7",
35
-    "vuedraggable": "^2.16.0",
36
-    "vuex": "^3.0.1",
37
-    "wangeditor": "^3.1.1",
38
-    "xlsx": "^0.13.3"
11
+    "axios": "^0.19.2",
12
+    "core-js": "^3.6.5",
13
+    "js-cookie": "^2.2.1",
14
+    "nprogress": "^0.2.0",
15
+    "view-design": "^4.2.0",
16
+    "vue": "^2.6.11",
17
+    "vue-router": "^3.2.0",
18
+    "vuex": "^3.4.0"
39 19
   },
40 20
   "devDependencies": {
41
-    "@vue/cli-plugin-babel": "^3.0.1",
42
-    "@vue/cli-plugin-eslint": "^3.0.1",
43
-    "@vue/cli-plugin-unit-mocha": "^3.0.1",
44
-    "@vue/cli-service": "^3.0.1",
45
-    "@vue/eslint-config-standard": "^3.0.0-beta.10",
46
-    "@vue/test-utils": "^1.0.0-beta.10",
47
-    "chai": "^4.1.2",
48
-    "eslint-plugin-cypress": "^2.0.1",
49
-    "less": "^2.7.3",
50
-    "less-loader": "^4.0.5",
51
-    "lint-staged": "^6.0.0",
52
-    "mockjs": "^1.0.1-beta3",
53
-    "vue-template-compiler": "^2.5.13"
21
+    "@vue/cli-plugin-babel": "~4.4.0",
22
+    "@vue/cli-plugin-eslint": "~4.4.0",
23
+    "@vue/cli-plugin-router": "~4.4.0",
24
+    "@vue/cli-plugin-vuex": "~4.4.0",
25
+    "@vue/cli-service": "~4.4.0",
26
+    "@vue/eslint-config-prettier": "^6.0.0",
27
+    "babel-eslint": "^10.1.0",
28
+    "eslint": "^6.7.2",
29
+    "eslint-plugin-prettier": "^3.1.3",
30
+    "eslint-plugin-vue": "^6.2.2",
31
+    "prettier": "^1.19.1",
32
+    "vue-template-compiler": "^2.6.11"
33
+  },
34
+  "eslintConfig": {
35
+    "root": true,
36
+    "env": {
37
+      "node": true
38
+    },
39
+    "extends": [
40
+      "plugin:vue/essential",
41
+      "eslint:recommended",
42
+      "@vue/prettier"
43
+    ],
44
+    "parserOptions": {
45
+      "parser": "babel-eslint"
46
+    },
47
+    "rules": {}
54 48
   },
55 49
   "browserslist": [
56 50
     "> 1%",
57 51
     "last 2 versions",
58
-    "not ie <= 8"
59
-  ],
60
-  "gitHooks": {
61
-    "pre-commit": "lint-staged"
62
-  },
63
-  "lint-staged": {
64
-    "*.js": [
65
-      "vue-cli-service lint",
66
-      "git add"
67
-    ],
68
-    "*.vue": [
69
-      "vue-cli-service lint",
70
-      "git add"
71
-    ]
72
-  }
52
+    "not dead"
53
+  ]
73 54
 }

BIN
public/favicon.ico 파일 보기


+ 3
- 3
public/index.html 파일 보기

@@ -1,15 +1,15 @@
1 1
 <!DOCTYPE html>
2
-<html>
2
+<html lang="en">
3 3
   <head>
4 4
     <meta charset="utf-8">
5 5
     <meta http-equiv="X-UA-Compatible" content="IE=edge">
6 6
     <meta name="viewport" content="width=device-width,initial-scale=1.0">
7 7
     <link rel="icon" href="<%= BASE_URL %>favicon.ico">
8
-    <title></title>
8
+    <title><%= htmlWebpackPlugin.options.title %></title>
9 9
   </head>
10 10
   <body>
11 11
     <noscript>
12
-      <strong>We're sorry but iview-admin doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
12
+      <strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
13 13
     </noscript>
14 14
     <div id="app"></div>
15 15
     <!-- built files will be auto injected -->

+ 2
- 22
src/App.vue 파일 보기

@@ -1,27 +1,7 @@
1 1
 <template>
2 2
   <div id="app">
3
-    <router-view/>
3
+    <router-view></router-view>
4 4
   </div>
5 5
 </template>
6 6
 
7
-<script>
8
-export default {
9
-  name: 'App'
10
-}
11
-</script>
12
-
13
-<style lang="less">
14
-.size{
15
-  width: 100%;
16
-  height: 100%;
17
-}
18
-html,body{
19
-  .size;
20
-  overflow: hidden;
21
-  margin: 0;
22
-  padding: 0;
23
-}
24
-#app {
25
-  .size;
26
-}
27
-</style>
7
+<style></style>

+ 0
- 51
src/api/data.js 파일 보기

@@ -1,51 +0,0 @@
1
-import axios from '@/libs/api.request'
2
-
3
-export const getTableData = () => {
4
-  return axios.request({
5
-    url: 'get_table_data',
6
-    method: 'get'
7
-  })
8
-}
9
-
10
-export const getDragList = () => {
11
-  return axios.request({
12
-    url: 'get_drag_list',
13
-    method: 'get'
14
-  })
15
-}
16
-
17
-export const errorReq = () => {
18
-  return axios.request({
19
-    url: 'error_url',
20
-    method: 'post'
21
-  })
22
-}
23
-
24
-export const saveErrorLogger = info => {
25
-  return axios.request({
26
-    url: 'save_error_logger',
27
-    data: info,
28
-    method: 'post'
29
-  })
30
-}
31
-
32
-export const uploadImg = formData => {
33
-  return axios.request({
34
-    url: 'image/upload',
35
-    data: formData
36
-  })
37
-}
38
-
39
-export const getOrgData = () => {
40
-  return axios.request({
41
-    url: 'get_org_data',
42
-    method: 'get'
43
-  })
44
-}
45
-
46
-export const getTreeSelectData = () => {
47
-  return axios.request({
48
-    url: 'get_tree_select_data',
49
-    method: 'get'
50
-  })
51
-}

+ 0
- 26
src/api/info.js 파일 보기

@@ -1,26 +0,0 @@
1
-import axios from '@/libs/api.request'
2
-const qs = require('qs')
3
-
4
-// 添加
5
-export const addInfo = (data) => {
6
-  var form = qs.stringify({ ...data })
7
-  return axios.request({
8
-    url: 'https://aicpapitest.xhkjedu.com/news/add',
9
-    method: 'POST',
10
-    form
11
-  })
12
-}
13
-// 获取资讯分类列表
14
-export const classify = (data) => {
15
-  return axios.request({
16
-    url: 'https://aicpapitest.xhkjedu.com/newstype/list',
17
-    method: 'POST'
18
-  })
19
-}
20
-// 获取资讯标签列表
21
-export const tagList = (data) => {
22
-  return axios.request({
23
-    url: 'https://aicpapitest.xhkjedu.com/newstag/list',
24
-    method: 'POST'
25
-  })
26
-}

+ 0
- 11
src/api/routers.js 파일 보기

@@ -1,11 +0,0 @@
1
-import axios from '@/libs/api.request'
2
-
3
-export const getRouterReq = (access) => {
4
-  return axios.request({
5
-    url: 'get_router',
6
-    params: {
7
-      access
8
-    },
9
-    method: 'get'
10
-  })
11
-}

+ 10
- 84
src/api/user.js 파일 보기

@@ -1,87 +1,13 @@
1
-import axios from '@/libs/api.request'
2
-
3
-export const login = ({ loginname, loginpwd }) => {
4
-  // const data = {
5
-  //   loginname,
6
-  //   loginpwd
7
-  // }
8
-  return axios.request({
9
-    url: 'https://aicpapitest.xhkjedu.com/user/login',
10
-    method: 'POST',
11
-    params: {
1
+import request from "@/utils/httpRequest";
2
+// const Qs = require("qs");
3
+// 用户登录接口
4
+export const login = (loginname, loginpwd) =>
5
+  request({
6
+    url: "https://aicpapitest.xhkjedu.com/user/login",
7
+    method: "post",
8
+    data: {
12 9
       loginname,
13 10
       loginpwd
14 11
     }
15
-  })
16
-}
17
-
18
-// export const getUserInfo = (token) => {
19
-//   return axios.request({
20
-//     url: 'get_info',
21
-//     params: {
22
-//       token
23
-//     },
24
-//     method: 'get'
25
-//   })
26
-// }
27
-
28
-export const logout = (token) => {
29
-  return axios.request({
30
-    url: 'logout',
31
-    method: 'post'
32
-  })
33
-}
34
-
35
-// export const getUnreadCount = () => {
36
-//   return axios.request({
37
-//     url: 'message/count',
38
-//     method: 'get'
39
-//   })
40
-// }
41
-
42
-// export const getMessage = () => {
43
-//   return axios.request({
44
-//     url: 'message/init',
45
-//     method: 'get'
46
-//   })
47
-// }
48
-
49
-// export const getContentByMsgId = msg_id => {
50
-//   return axios.request({
51
-//     url: 'message/content',
52
-//     method: 'get',
53
-//     params: {
54
-//       msg_id
55
-//     }
56
-//   })
57
-// }
58
-
59
-// export const hasRead = msg_id => {
60
-//   return axios.request({
61
-//     url: 'message/has_read',
62
-//     method: 'post',
63
-//     data: {
64
-//       msg_id
65
-//     }
66
-//   })
67
-// }
68
-
69
-// export const removeReaded = msg_id => {
70
-//   return axios.request({
71
-//     url: 'message/remove_readed',
72
-//     method: 'post',
73
-//     data: {
74
-//       msg_id
75
-//     }
76
-//   })
77
-// }
78
-
79
-// export const restoreTrash = msg_id => {
80
-//   return axios.request({
81
-//     url: 'message/restore',
82
-//     method: 'post',
83
-//     data: {
84
-//       msg_id
85
-//     }
86
-//   })
87
-// }
12
+    // data: Qs.stringify(username, password)
13
+  });

+ 0
- 29
src/assets/iconfont/iconfont.css 파일 보기

@@ -1,29 +0,0 @@
1
-@font-face {font-family: "iconfont";
2
-  src: url('iconfont.eot?t=1590110891761'); /* IE9 */
3
-  src: url('iconfont.eot?t=1590110891761#iefix') format('embedded-opentype'), /* IE6-IE8 */
4
-  url('data:application/x-font-woff2;charset=utf-8;base64,d09GMgABAAAAAAMMAAsAAAAABwQAAALAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHEIGVgCDHAqBQIE2ATYCJAMQCwoABCAFhG0HRxsnBhEVlCNkPw9stykHEJhMnLQnvjtDLNBem1S478FTrX2+nundP8cAisPkwxJZ37GNTUXFsQtLIBm9V3O5/0USZguKQq5vC6jQB3YvF7rMZfPgisqxqlIVsrau4JAzDuiqqWf8rQYIIFB7cDn9lWWBzLMst7UnRWMCBpYGNtakyIokIW8Yu8AlHIcA4WRDJcjg8eUNOBRrnAByQqsQXM6LoizhEPyapYrcxsOZK+YVcCv8vvyhvuPA4FmsqbN8lEDvH37HXgru7fARfCDA1R5ggUoABTlSG90HFmEUS3hvpRnA4TAwV0e+EwSxHnbMsf/ywGIQEB8rPxKARhSz8D3X5aayMsiCge8t/BcoUgAcb5RTDdABFjkTrhYMJlL9yMizi1cfXn4UEXPtwaX7y3EQS6z2E4rv/di+vFUcu7JxafOw/2Tz2nZG6OnW1Y3m9/30VuyW8x95ShO/1qxk5re2dnTEZGSkpnDxBmIHW4Nl4OYvhEo70AZnwPo5e1keAthP5hoE2m1bgQACH569fL47pvO/i1AAPv2bWOgOVPrJ+Ee83ryfyevZoLrA0qmqQpdr2JXU0WEDhNsG+IVJiIdvcyiT7tMsuByPgSFEFlgchaiSKsEjgkbwcfRAOBUwsjqCBCtrjCwMYNsLABHrG4xoL8CK9YMq6Rc8yf7BF9sYhJtrbcsIxenZA0uhUILRCHVsKnYMMhsVXpFqi9BmBSH1jmyjA+g7XjFxQhXZOWY0fRWIMLI1JR6D06goDNbWZBSLk4rUPdflujc5sSlh1gCLhARJoMgI0mJGhf32Yrb0+StEaRVCtqWkxn6HWA3dPfI5vB7oibTqVXIvrzT6lIAQDDHLKKFjYCaFHTVQXT8oQ2LCkY4I13pc1Ir7Sp315eUH5LAKrH3GM2JFxSN0HVZpaBZDk5iW9KmUCk038AEA') format('woff2'),
5
-  url('iconfont.woff?t=1590110891761') format('woff'),
6
-  url('iconfont.ttf?t=1590110891761') format('truetype'), /* chrome, firefox, opera, Safari, Android, iOS 4.2+ */
7
-  url('iconfont.svg?t=1590110891761#iconfont') format('svg'); /* iOS 4.1- */
8
-}
9
-
10
-.iconfont {
11
-  font-family: "iconfont" !important;
12
-  font-size: 16px;
13
-  font-style: normal;
14
-  -webkit-font-smoothing: antialiased;
15
-  -moz-osx-font-smoothing: grayscale;
16
-}
17
-
18
-.icon-jianhao:before {
19
-  content: "\e637";
20
-}
21
-
22
-.icon-jiantoujinggao:before {
23
-  content: "\e629";
24
-}
25
-
26
-.icon-21:before {
27
-  content: "\e620";
28
-}
29
-

BIN
src/assets/iconfont/iconfont.eot 파일 보기


+ 0
- 35
src/assets/iconfont/iconfont.svg 파일 보기

@@ -1,35 +0,0 @@
1
-<?xml version="1.0" standalone="no"?>
2
-<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" >
3
-<!--
4
-2013-9-30: Created.
5
--->
6
-<svg>
7
-<metadata>
8
-Created by iconfont
9
-</metadata>
10
-<defs>
11
-
12
-<font id="iconfont" horiz-adv-x="1024" >
13
-  <font-face
14
-    font-family="iconfont"
15
-    font-weight="500"
16
-    font-stretch="normal"
17
-    units-per-em="1024"
18
-    ascent="896"
19
-    descent="-128"
20
-  />
21
-    <missing-glyph />
22
-    
23
-    <glyph glyph-name="jianhao" unicode="&#58935;" d="M877.4 367.79999999999995H148.7c-10.5 0-19.1 8.6-19.1 19.1s8.6 19.1 19.1 19.1h728.7c10.5 0 19.1-8.6 19.1-19.1s-8.5-19.1-19.1-19.1z"  horiz-adv-x="1024" />
24
-
25
-    
26
-    <glyph glyph-name="jiantoujinggao" unicode="&#58921;" d="M53.783273 358.842182H985.6v-46.545455H53.783273zM339.130182 20.689455L25.530182 334.289455 341.690182 650.472727l32.907636-32.907636L91.345455 334.289455l280.692363-280.692364z"  horiz-adv-x="1024" />
27
-
28
-    
29
-    <glyph glyph-name="21" unicode="&#58912;" d="M128 341.33333300000004h768a42.666667 42.666667 0 0 1 0 85.333334H128a42.666667 42.666667 0 0 1 0-85.333334zM469.333333 768v-768a42.666667 42.666667 0 0 1 85.333334 0V768a42.666667 42.666667 0 0 1-85.333334 0z"  horiz-adv-x="1024" />
30
-
31
-    
32
-
33
-
34
-  </font>
35
-</defs></svg>

BIN
src/assets/iconfont/iconfont.ttf 파일 보기


BIN
src/assets/iconfont/iconfont.woff 파일 보기


+ 0
- 37
src/assets/icons/iconfont.css 파일 보기

@@ -1,37 +0,0 @@
1
-
2
-@font-face {font-family: "iconfont";
3
-  src: url('iconfont.eot?t=1541579316141'); /* IE9*/
4
-  src: url('iconfont.eot?t=1541579316141#iefix') format('embedded-opentype'), /* IE6-IE8 */
5
-  url('data:application/x-font-woff;charset=utf-8;base64,d09GRgABAAAAAAiEAAsAAAAADmgAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAADMAAABCsP6z7U9TLzIAAAE8AAAARAAAAFY8eUnXY21hcAAAAYAAAACjAAACLi+YJuBnbHlmAAACJAAABAgAAAcg4dRWHmhlYWQAAAYsAAAAMQAAADYTL8piaGhlYQAABmAAAAAgAAAAJAfdA4xobXR4AAAGgAAAABQAAAAsLAD//2xvY2EAAAaUAAAAGAAAABgImgpGbWF4cAAABqwAAAAfAAAAIAEcAG5uYW1lAAAGzAAAAUUAAAJtPlT+fXBvc3QAAAgUAAAAbgAAAI54roygeJxjYGRgYOBikGPQYWB0cfMJYeBgYGGAAJAMY05meiJQDMoDyrGAaQ4gZoOIAgCKIwNPAHicY2BkYWCcwMDKwMHUyXSGgYGhH0IzvmYwYuRgYGBiYGVmwAoC0lxTGByeMTx/ytzwv4EhhrmBoRkozAiSAwDuUwzMeJzlkUEKwkAMRd/YabXFhQvxFF6qPYPrUujGY7jyIr1JoZNjtMnEhag3MOEN5MMk8D9QAoVyVSKEJwGrh6oh6wVN1iM3nc+cVImJVKdOehlklElmWdYVstp+ql8VdIv15a1NLW0zFXsO7Kjz3erH/3+rY37vr6kxnx1LKNWOJZlaxxJNnWOpSu+ot8jgqMvI6KjfyOSo88jsaAbI4tBsig89rQB4nLVUTWwbRRSeNzO767i2g7N/FP9s7MRrE5ON4/V6rSZyU0PiINSSNImES4IUoapWz6hEiqiMBDQqEojkAkiFStyKRC+9VSoFCeUEyqESVUAqEkcu3OAQb3hrJxAXwSGI3X0/szPz5vvm2x0i7O/vf8IJe5VkSJnUyUtklRBQJE1VIjRtUafkmk6pSu2ipleh4+xikkKxSksWTUeo8m8NoagpYtoslTmxrLl37z64e33esuJjU8P5Wd262LxoPVnPZ06Pxfe+C0YjkhSJygPhQCA8ABPOykwuN7NyuRvgUnAgLEnhATkaCQQiUe/7XKUyV6nQz+t2o7l66+rs7NVbq82GXTdrdjxjRGU5amTids2bUDMFtzCsqsMYMqr3IDY6OT05GjsI8Exv/6CSkOWEQigh+y3clxY5QVTcEZFIGtHLxDUJs6WsHR1y9SFKdr1HggCp3V1ICYL36OOpVmvKN9bC1u6R3vZ0qwWtVovgJfqOfUvfIYxIWL+fyETHNVJqSkIT1JTjW8ZWh3yDJDz0ctvsyt51etvrg9/QHhqGlzMM+vbmizPnDWPLMNbW19e7tffvsBzL99aWEfBRY46t+tbe3PypXv/IMDYN43WsQBe9HL2NC33RuxABrPsG+xH3o4bVRE2KgCRqulbWNf8W/UYVHM129aKra24VshZkq+CWD/Oy6Xt8cGYEthgHVlVliCfynAlqjo6oysTKlYUAD4docMI5/1ZioN+GwZNBcTwWUmTdBUqhTwX29QebXzF4An4JJMzwfMl+WQ01+IlQZVR4yhie53ycA16pOI/ODiYNGK4MChdCgXNnX5gIJXPCSYnf2OF850aQ+zJIyOs+u8+mMO8jQdwtg1TIWVRjKAnFcslMi8KfGUPoSUCergUyUk77dMyS69Ms6tijKZKYwUGKbpfdzu+iYeZYAHMFiOVi+MD7h9mb99qC0L7X8c+XatMfTj97KZ5IxJt/pd43tYYQKEjAnXMOB6kQEBrwg+LPjindAPOHNdC3q3ait0I3/ZIunZEARLNYNEUA6czSP3N/7j9wz6ZESdX0VNl1zGNS/szbQaQSIGk4DtVPcZf8AgXpf9A2OyTit5s2syZmand46bhEe2WtodLHkvaoqtTXuXN2/c42WADP9HGfbUcUW7JgqHss4xHtlMys679FqUomdP9VJBQBdnlPABBubpuNwqnmQj6/0HwNQzKxDUJFgKiXurBG6dqFjmeBzsvtRPJgGIZThYa5fdOvsReOticPh6JHHXxsv7ItJpOniYPYsmZ/x0QD/o5P105DeQwF6MH33ogoLi+KQp7zpY3HQV5bFMURzheXeds7gpP+jKNXljjHuYvXHke7cdCxLLZf6YX7B63UcCV4nGNgZGBgAOKAN2ZR8fw2Xxm4WRhA4AbHYRMY/f///1oWBuYGIJeDgQkkCgAvWgs2AAAAeJxjYGRgYG7438AQw8Lw/z8DAwsDA1AEBXADAHXiBHJ4nGNhYGBgYfj/nwVM48cATwECKwAAAAAAjAC6AOgBFAGAAf4CbgLqAzgDkHicY2BkYGDgZkhiYGcAASYg5gJCBob/YD4DABOmAYsAeJxlj01OwzAQhV/6B6QSqqhgh+QFYgEo/RGrblhUavdddN+mTpsqiSPHrdQDcB6OwAk4AtyAO/BIJ5s2lsffvHljTwDc4Acejt8t95E9XDI7cg0XuBeuU38QbpBfhJto41W4Rf1N2MczpsJtdGF5g9e4YvaEd2EPHXwI13CNT+E69S/hBvlbuIk7/Aq30PHqwj7mXle4jUcv9sdWL5xeqeVBxaHJIpM5v4KZXu+Sha3S6pxrW8QmU4OgX0lTnWlb3VPs10PnIhVZk6oJqzpJjMqt2erQBRvn8lGvF4kehCblWGP+tsYCjnEFhSUOjDFCGGSIyujoO1Vm9K+xQ8Jee1Y9zed0WxTU/3OFAQL0z1xTurLSeTpPgT1fG1J1dCtuy56UNJFezUkSskJe1rZUQuoBNmVXjhF6XNGJPyhnSP8ACVpuyAAAAHicbYhdDoIwEAb3a6k/YIIX8VArWewmdJFWJOnpJTG+OQ+TzJCjLy39p4ODR4OAA4444YwWHS7U3IVzn6Voldtb8ksHnvohrlqjjmw1rmzXsvdT7fEbblnCmOfNfJIYStJJfGIL27yb6AOCGR89AAA=') format('woff'),
6
-  url('iconfont.ttf?t=1541579316141') format('truetype'), /* chrome, firefox, opera, Safari, Android, iOS 4.2+*/
7
-  url('iconfont.svg?t=1541579316141#iconfont') format('svg'); /* iOS 4.1- */
8
-}
9
-
10
-.iconfont {
11
-  font-family:"iconfont" !important;
12
-  font-size:16px;
13
-  font-style:normal;
14
-  -webkit-font-smoothing: antialiased;
15
-  -moz-osx-font-smoothing: grayscale;
16
-}
17
-
18
-.icon-bear:before { content: "\e600"; }
19
-
20
-.icon-resize-vertical:before { content: "\e7c3"; }
21
-
22
-.icon-chuizhifanzhuan:before { content: "\e661"; }
23
-
24
-.icon-shuipingfanzhuan:before { content: "\e662"; }
25
-
26
-.icon-qq:before { content: "\e609"; }
27
-
28
-.icon-frown:before { content: "\e77e"; }
29
-
30
-.icon-meh:before { content: "\e780"; }
31
-
32
-.icon-smile:before { content: "\e783"; }
33
-
34
-.icon-man:before { content: "\e7e2"; }
35
-
36
-.icon-woman:before { content: "\e7e5"; }
37
-

BIN
src/assets/icons/iconfont.eot 파일 보기


+ 0
- 56
src/assets/icons/iconfont.svg 파일 보기

@@ -1,56 +0,0 @@
1
-<?xml version="1.0" standalone="no"?>
2
-<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" >
3
-<!--
4
-2013-9-30: Created.
5
--->
6
-<svg>
7
-<metadata>
8
-Created by iconfont
9
-</metadata>
10
-<defs>
11
-
12
-<font id="iconfont" horiz-adv-x="1024" >
13
-  <font-face
14
-    font-family="iconfont"
15
-    font-weight="500"
16
-    font-stretch="normal"
17
-    units-per-em="1024"
18
-    ascent="896"
19
-    descent="-128"
20
-  />
21
-    <missing-glyph />
22
-    
23
-    <glyph glyph-name="bear" unicode="&#58880;" d="M1024 683.008q0-70.656-46.08-121.856 46.08-89.088 46.08-193.536 0-96.256-39.936-181.248t-109.568-147.968-162.816-99.328-199.68-36.352-199.68 36.352-162.304 99.328-109.568 147.968-40.448 181.248q0 104.448 46.08 193.536-46.08 51.2-46.08 121.856 0 37.888 13.824 71.168t37.376 58.368 55.808 39.424 68.096 14.336q43.008 0 78.848-18.432t59.392-50.176q46.08 17.408 96.256 26.624t102.4 9.216 102.4-9.216 96.256-26.624q24.576 31.744 59.904 50.176t78.336 18.432q36.864 0 68.608-14.336t55.296-39.424 37.376-58.368 13.824-71.168zM205.824 268.288q10.24 0 18.944 10.24t15.36 28.672 10.24 42.496 3.584 51.712-3.584 51.712-10.24 41.984-15.36 28.16-18.944 10.24q-9.216 0-17.92-10.24t-15.36-28.16-10.752-41.984-4.096-51.712 4.096-51.712 10.752-42.496 15.36-28.672 17.92-10.24zM512-31.744000000000028q53.248 0 99.84 13.312t81.408 35.84 54.784 52.736 19.968 65.024q0 33.792-19.968 64t-54.784 52.736-81.408 35.84-99.84 13.312-99.84-13.312-81.408-35.84-54.784-52.736-19.968-64q0-34.816 19.968-65.024t54.784-52.736 81.408-35.84 99.84-13.312zM818.176 268.288q10.24 0 18.944 10.24t15.36 28.672 10.24 42.496 3.584 51.712-3.584 51.712-10.24 41.984-15.36 28.16-18.944 10.24q-9.216 0-17.92-10.24t-15.36-28.16-10.752-41.984-4.096-51.712 4.096-51.712 10.752-42.496 15.36-28.672 17.92-10.24zM512 235.51999999999998q39.936 0 68.096-9.728t28.16-24.064-28.16-24.064-68.096-9.728-68.096 9.728-28.16 24.064 28.16 24.064 68.096 9.728z"  horiz-adv-x="1024" />
24
-
25
-    
26
-    <glyph glyph-name="resize-vertical" unicode="&#59331;" d="M512 896C229.248 896 0 666.752 0 384s229.248-512 512-512 512 229.248 512 512S794.752 896 512 896zM576 192l64 0-128-128-128 128 64 0L448 576l-64 0 128 128 128-128-64 0L576 192z"  horiz-adv-x="1024" />
27
-
28
-    
29
-    <glyph glyph-name="chuizhifanzhuan" unicode="&#58977;" d="M286.01856 645.08416l472.4224 0 0-146.2784-472.4224 0 0 146.2784ZM87.19872 420.37248l885.80096 0 0-70.87104-885.80096 0 0 70.87104ZM773.55008 268.05248l0-31.0016L270.6688 237.05088l0 31.0016L773.55008 268.05248zM773.55008 121.4208l0-31.0016L270.6688 90.4192l0 31.0016L773.55008 121.4208zM742.54848 240.75776l31.0016 0 0-123.04896-31.0016 0L742.54848 240.75776zM270.70464 240.57856l31.0016 0 0-123.04896-31.0016 0L270.70464 240.57856z"  horiz-adv-x="1024" />
30
-
31
-    
32
-    <glyph glyph-name="shuipingfanzhuan" unicode="&#58978;" d="M252.76928 596.096l146.2784 0 0-472.42752-146.2784 0 0 472.42752ZM477.48096 810.65472l70.87104 0 0-885.80608-70.87104 0 0 885.80608ZM629.80096 611.2l31.0016 0 0-502.88128-31.0016 0L629.80096 611.2zM776.42752 611.2l31.0016 0 0-502.88128-31.0016 0L776.42752 611.2zM657.09056 580.1984l0 31.0016 123.04896 0 0-31.0016L657.09056 580.1984zM657.27488 108.35456l0 31.0016 123.04896 0 0-31.0016L657.27488 108.35456z"  horiz-adv-x="1024" />
33
-
34
-    
35
-    <glyph glyph-name="qq" unicode="&#58889;" d="M147.372058 491.394284c-5.28997-13.909921 2.431986-22.698872 0-75.732573-0.682996-14.25092-62.165649-78.762555-86.569511-145.791177-24.192863-66.517625-27.519845-135.978232 9.811944-163.285078 37.419789-27.305846 72.191593 90.879487 76.757567 73.685584 1.961989-7.509958 4.436975-15.317914 7.423958-23.338868a331.945126 331.945126 0 0 1 61.140655-101.162429c5.929967-6.783962-36.009797-19.199892-61.140655-61.99365-25.173858-42.751759 7.209959-120.49032 132.223254-120.49032 161.27909 0 197.288886 56.70368 200.574868 56.447681 12.031932-0.895995 12.841928 0 25.599855 0 15.572912 0 9.129948-1.279993 23.593867 0 7.807956 0.682996 86.186514-67.839617 194.686901-56.447681 184.873956 19.45589 156.586116 81.40754 142.079198 120.48932-15.103915 40.83277-68.692612 59.946662-66.303626 62.549647 44.28775 48.938724 51.285711 79.018554 66.346626 123.9463 6.143965 18.473896 49.066723-101.674426 82.089537-73.685584 13.781922 11.690934 41.301767 60.24566 13.781922 163.285078-27.519845 102.996419-80.767544 126.505286-79.615551 145.791177 2.389987 40.191773 1.023994 68.436614-1.023994 75.732573-9.812945 35.4128-30.378829 27.604844-30.378829 35.4128C858.450044 730.752933 705.10691 896 515.966978 896s-342.398067-165.289067-342.398068-369.192916c0-16.169909-14.378919-4.223976-26.154852-35.4128z"  horiz-adv-x="1024" />
36
-
37
-    
38
-    <glyph glyph-name="frown" unicode="&#59262;" d="M336 475m-48 0a48 48 0 1 1 96 0 48 48 0 1 1-96 0ZM688 475m-48 0a48 48 0 1 1 96 0 48 48 0 1 1-96 0ZM512 832C264.6 832 64 631.4 64 384s200.6-448 448-448 448 200.6 448 448S759.4 832 512 832z m263-711c-34.2-34.2-74-61-118.3-79.8C611 21.8 562.3 12 512 12c-50.3 0-99 9.8-144.8 29.2-44.3 18.7-84.1 45.6-118.3 79.8-34.2 34.2-61 74-79.8 118.3C149.8 285 140 333.7 140 384s9.8 99 29.2 144.8c18.7 44.3 45.6 84.1 79.8 118.3 34.2 34.2 74 61 118.3 79.8C413 746.2 461.7 756 512 756c50.3 0 99-9.8 144.8-29.2 44.3-18.7 84.1-45.6 118.3-79.8 34.2-34.2 61-74 79.8-118.3C874.2 483 884 434.3 884 384s-9.8-99-29.2-144.8c-18.7-44.3-45.6-84.1-79.8-118.2zM512 363c-85.5 0-155.6-67.3-160-151.6-0.2-4.6 3.4-8.4 8-8.4h48.1c4.2 0 7.8 3.2 8.1 7.4C420 259.9 461.5 299 512 299s92.1-39.1 95.8-88.6c0.3-4.2 3.9-7.4 8.1-7.4H664c4.6 0 8.2 3.8 8 8.4-4.4 84.3-74.5 151.6-160 151.6z"  horiz-adv-x="1024" />
39
-
40
-    
41
-    <glyph glyph-name="meh" unicode="&#59264;" d="M336 475m-48 0a48 48 0 1 1 96 0 48 48 0 1 1-96 0ZM688 475m-48 0a48 48 0 1 1 96 0 48 48 0 1 1-96 0ZM512 832C264.6 832 64 631.4 64 384s200.6-448 448-448 448 200.6 448 448S759.4 832 512 832z m263-711c-34.2-34.2-74-61-118.3-79.8C611 21.8 562.3 12 512 12c-50.3 0-99 9.8-144.8 29.2-44.3 18.7-84.1 45.6-118.3 79.8-34.2 34.2-61 74-79.8 118.3C149.8 285 140 333.7 140 384s9.8 99 29.2 144.8c18.7 44.3 45.6 84.1 79.8 118.3 34.2 34.2 74 61 118.3 79.8C413 746.2 461.7 756 512 756c50.3 0 99-9.8 144.8-29.2 44.3-18.7 84.1-45.6 118.3-79.8 34.2-34.2 61-74 79.8-118.3C874.2 483 884 434.3 884 384s-9.8-99-29.2-144.8c-18.7-44.3-45.6-84.1-79.8-118.2zM664 331H360c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h304c4.4 0 8 3.6 8 8v48c0 4.4-3.6 8-8 8z"  horiz-adv-x="1024" />
42
-
43
-    
44
-    <glyph glyph-name="smile" unicode="&#59267;" d="M336 475m-48 0a48 48 0 1 1 96 0 48 48 0 1 1-96 0ZM688 475m-48 0a48 48 0 1 1 96 0 48 48 0 1 1-96 0ZM512 832C264.6 832 64 631.4 64 384s200.6-448 448-448 448 200.6 448 448S759.4 832 512 832z m263-711c-34.2-34.2-74-61-118.3-79.8C611 21.8 562.3 12 512 12c-50.3 0-99 9.8-144.8 29.2-44.3 18.7-84.1 45.6-118.3 79.8-34.2 34.2-61 74-79.8 118.3C149.8 285 140 333.7 140 384s9.8 99 29.2 144.8c18.7 44.3 45.6 84.1 79.8 118.3 34.2 34.2 74 61 118.3 79.8C413 746.2 461.7 756 512 756c50.3 0 99-9.8 144.8-29.2 44.3-18.7 84.1-45.6 118.3-79.8 34.2-34.2 61-74 79.8-118.3C874.2 483 884 434.3 884 384s-9.8-99-29.2-144.8c-18.7-44.3-45.6-84.1-79.8-118.2zM664 363h-48.1c-4.2 0-7.8-3.2-8.1-7.4C604 306.1 562.5 267 512 267s-92.1 39.1-95.8 88.6c-0.3 4.2-3.9 7.4-8.1 7.4H360c-4.6 0-8.2-3.8-8-8.4 4.4-84.3 74.5-151.6 160-151.6s155.6 67.3 160 151.6c0.2 4.6-3.4 8.4-8 8.4z"  horiz-adv-x="1024" />
45
-
46
-    
47
-    <glyph glyph-name="man" unicode="&#59362;" d="M874 776H622c-3.3 0-6-2.7-6-6v-56c0-3.3 2.7-6 6-6h160.4L583.1 508.7c-50 38.5-111 59.3-175.1 59.3-76.9 0-149.3-30-203.6-84.4S120 356.9 120 280s30-149.3 84.4-203.6C258.7 22 331.1-8 408-8s149.3 30 203.6 84.4C666 130.7 696 203.1 696 280c0 64.1-20.8 124.9-59.2 174.9L836 654.1V494c0-3.3 2.7-6 6-6h56c3.3 0 6 2.7 6 6V746c0 16.5-13.5 30-30 30zM408 68c-116.9 0-212 95.1-212 212s95.1 212 212 212 212-95.1 212-212-95.1-212-212-212z"  horiz-adv-x="1024" />
48
-
49
-    
50
-    <glyph glyph-name="woman" unicode="&#59365;" d="M909.7 739.4l-42.2 42.2c-3.1 3.1-8.2 3.1-11.3 0L764 689.4l-84.2 84.2c-3.1 3.1-8.2 3.1-11.3 0l-42.1-42.1c-3.1-3.1-3.1-8.1 0-11.3l84.2-84.2-135.5-135.3c-50 38.5-111 59.3-175.1 59.3-76.9 0-149.3-30-203.6-84.4S112 348.9 112 272s30-149.3 84.4-203.6C250.7 14 323.1-16 400-16s149.3 30 203.6 84.4C658 122.7 688 195.1 688 272c0 64.2-20.9 125.1-59.3 175.1l135.4 135.4 84.2-84.2c3.1-3.1 8.2-3.1 11.3 0l42.1 42.1c3.1 3.1 3.1 8.1 0 11.3l-84.2 84.2 92.2 92.2c3.1 3.1 3.1 8.2 0 11.3zM400 60c-116.9 0-212 95.1-212 212s95.1 212 212 212 212-95.1 212-212-95.1-212-212-212z"  horiz-adv-x="1024" />
51
-
52
-    
53
-
54
-
55
-  </font>
56
-</defs></svg>

BIN
src/assets/icons/iconfont.ttf 파일 보기


BIN
src/assets/icons/iconfont.woff 파일 보기


+ 0
- 1
src/assets/images/error-page/error-401.svg
파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
파일 보기


+ 0
- 1
src/assets/images/error-page/error-404.svg
파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
파일 보기


+ 0
- 1
src/assets/images/error-page/error-500.svg
파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
파일 보기


BIN
src/assets/images/icon-qr-qq-wechat.png 파일 보기


+ 0
- 1
src/assets/images/icon-social-bilibili.svg
파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
파일 보기


+ 0
- 1
src/assets/images/icon-social-juejin.svg 파일 보기

@@ -1 +0,0 @@
1
-<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1547543883733" class="icon" style="" viewBox="0 0 1272 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="16831" xmlns:xlink="http://www.w3.org/1999/xlink" width="496.875" height="400"><defs><style type="text/css"></style></defs><path d="M729.64116345 165.27693991L634.32650881 90.125l-99.5625 78.52693991-5.17887981 4.16056009 104.74137981 83.50215546 105.09051682-83.50215546-9.77586218-7.53556009z m361.21228445 291.47198236l-456.78879245 360.19396555-456.49784537-359.99030128L110.125 511.12715547l523.93965546 413.11745671 524.23060335-413.35021555-67.44181091-54.14547436z m-456.78879245 29.21120673L385.4784479 290.00646554 318.06573237 344.12284454l315.96982771 249.16810336 316.28987101-249.40086136-67.41271555-54.14547436-248.84806008 196.21551682z" fill="#006cff" p-id="16832"></path></svg>

+ 0
- 1
src/assets/images/icon-social-twitter.svg 파일 보기

@@ -1 +0,0 @@
1
-<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1547543874130" class="icon" style="" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="16498" xmlns:xlink="http://www.w3.org/1999/xlink" width="400" height="400"><defs><style type="text/css"></style></defs><path d="M511.8 0.6C229.2 0.6 0.1 229.7 0.1 512.3S229.2 1024 511.8 1024s511.7-229.1 511.7-511.7S794.4 0.6 511.8 0.6z m264.9 375.3c-0.1 0.1-0.1 0.2-0.2 0.3h0.2c-9 14.3-21.2 28.8-34.2 39.2-5.2 4.2-10.5 8.3-15.7 12.5v0.5c0.3 22.9-0.3 44.9-4.7 64.2-25.2 113.1-91.9 189.9-197.4 222.8-37.9 11.8-99.1 16.7-142.6 5.9-21.5-5.4-41-11.4-59.3-19.3-10.2-4.5-19.6-9.3-28.5-14.7l-8.8-5.3h0.5l-0.5-0.3c9.8 0.2 21.3 2.9 32.2 1.2 9.8-1.6 19.6-1.2 28.7-3.2 22.7-5 43-11.6 60.4-21.8 8.3-4.8 20.9-10.6 27-17.6-11.2 0.2-21.4-2.4-29.7-5.4-32.6-11.5-51.6-32.7-63.9-64.4h0.1c0-0.1-0.1-0.2-0.1-0.3 9.7 1.1 37.3 3.5 44.6-1.7-12.3-0.8-24.1-7.9-32.5-13.2-26.2-16.4-47.6-43.9-47.4-86.2v-0.3c3.5 1.7 6.9 3.3 10.4 4.9 6.6 2.8 13.3 4.3 21.1 5.9 3.1 0.7 9.3 2.4 13.2 1.4-5.1-5.8-13.2-9.7-18.4-16-14.7-18.3-28.7-45.3-25.2-77.4 0.5-4.7 1.3-9.4 2.6-14.3 2.5-9.7 6.5-18.3 10.8-26.2 0.2 0.1 0.4 0.2 0.5 0.3 2 4.2 6.4 7.2 9.1 10.6 8.6 10.7 19.2 20.3 30 28.7 36.7 28.7 69.9 46.4 123.1 59.5 13.5 3.3 29 5.9 45.1 5.9-1.9-5.8-2.7-13-2.7-20.5 0-9.7 1.3-19.6 3.3-26.8 9-32.1 28.5-55.2 57-67.6 6.9-3 14.4-5.2 22.4-6.9 4.1-0.6 8.2-1.1 12.3-1.6 39-0.7 59.8 13.5 79.6 31.6 16.8-1.4 38.7-10.8 51.6-17.4l12.6-6.9c0 0.1-0.1 0.3-0.1 0.4l0.1-0.1c-7.3 19.9-17.4 35.5-32.7 47.3-3.1 2.4-6.3 5.6-10 7.4 21.5-0.4 39.3-10 56.1-15.4v0.3z" fill="#2EB1EB" p-id="16499"></path><path d="M719.7 391.1s0.1 0 0.1-0.1c0 0-0.1 0-0.1 0.1zM726.8 428.4v-0.5 0.5zM336.4 479.9c3.3 0.7 9.9 2.7 13.8 1.2h-0.5l-0.1-0.1c-3.9 1-10.1-0.7-13.2-1.4-7.8-1.6-14.5-3.1-21.1-5.9-3.5-1.6-6.9-3.2-10.4-4.9v0.3c3.4 1.6 6.9 3.2 10.4 4.9 6.6 2.8 13.3 4.3 21.1 5.9zM719.6 391.4v0.2c21.9-0.2 39.8-10.1 56.9-15.4 0.1-0.1 0.1-0.2 0.2-0.3v-0.3c-16.9 5.3-34.6 14.9-56.1 15.4-0.4 0.1-0.7 0.3-1 0.4zM584.8 337.5c6.9-3 14.4-5.1 22.4-6.9 4.1-0.6 8.2-1 12.3-1.6 39-0.7 59.8 13.5 79.6 31.6 16.8-1.4 38.7-10.8 51.6-17.4 4.2-2.3 8.3-4.5 12.5-6.8 0-0.1 0.1-0.3 0.1-0.4l-12.6 6.9c-12.9 6.6-34.8 16-51.6 17.4-19.8-18.1-40.6-32.3-79.6-31.6-4.1 0.5-8.2 1-12.3 1.6-8 1.7-15.5 3.9-22.4 6.9-28.5 12.4-48 35.5-57 67.6-2 7.2-3.4 17.2-3.3 26.8 0-9.6 1.3-19.4 3.3-26.5 9-32.1 28.5-55.2 57-67.6zM385.2 568.5h-0.4c-7.3 5.2-34.9 2.8-44.6 1.7 0 0.1 0.1 0.2 0.1 0.3 10 1.1 38.2 3.6 44.9-2zM319.4 347.4c0.1 0.1 0.3 0.1 0.5 0.3 2 4.1 6.3 7.1 9.1 10.6 8.6 10.6 19.2 20.2 30 28.7 36.8 28.7 69.9 46.4 123.1 59.5 13.5 3.3 29.1 5.9 45.2 5.9 0-0.1-0.1-0.2-0.1-0.3-16.1 0-31.6-2.6-45.1-5.9-53.2-13.1-86.4-30.8-123.1-59.5-10.8-8.4-21.4-18-30-28.7-2.7-3.4-7.1-6.4-9.1-10.6-0.1-0.1-0.3-0.2-0.5-0.3-4.3 7.9-8.3 16.5-10.8 26.2-1.3 4.9-2.1 9.6-2.6 14.3 0.5-4.6 1.3-9.2 2.6-14 2.5-9.7 6.5-18.3 10.8-26.2zM317.7 683.2c9.9-1.6 19.6-1.2 28.7-3.2 22.8-5 43-11.6 60.4-21.8 8.4-4.9 21.3-10.8 27.3-17.9h-0.3c-6.1 7-18.7 12.8-27 17.6-17.4 10.2-37.7 16.8-60.4 21.8-9.1 2-18.9 1.6-28.7 3.2-10.9 1.7-22.4-1-32.2-1.2l0.5 0.3c9.7 0.4 21 2.9 31.7 1.2z" fill="#FFFFFF" p-id="16500"></path></svg>

+ 0
- 1
src/assets/images/icon-social-zhihu.svg 파일 보기

@@ -1 +0,0 @@
1
-<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1547543863835" class="icon" style="" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="16165" xmlns:xlink="http://www.w3.org/1999/xlink" width="400" height="400"><defs><style type="text/css"></style></defs><path d="M512 1024C229.236364 1024 0 794.763636 0 512S229.236364 0 512 0s512 229.236364 512 512-229.236364 512-512 512z m-129.861818-756.48s-36.212364 2.094545-48.989091 24.482909c-12.8 22.365091-54.318545 137.378909-54.318546 137.378909s13.847273 6.376727 37.28291-10.658909c23.435636-17.035636 30.882909-46.848 30.882909-46.848l42.589091-2.117818 1.070545 121.390545s-73.495273-1.070545-88.413091 0c-14.894545 1.047273-23.412364 40.448-23.412364 40.448h111.825455s-9.588364 67.095273-38.353455 116.084364c-28.741818 48.989091-83.060364 87.319273-83.060363 87.319273s39.424 15.965091 77.730909-6.4c38.353455-22.341818 66.629818-120.692364 66.629818-120.692364l89.925818 110.056727s8.192-52.386909-1.466182-67.188363c-9.658182-14.778182-62.208-74.286545-62.208-74.286546l-22.946909 20.247273 16.337455-65.117091h97.954909s0-38.353455-19.153455-40.494545c-19.176727-2.094545-78.801455 0-78.801454 0V371.898182h88.389818s-1.070545-39.400727-18.106182-39.400727h-143.755636l22.341818-64.954182z m169.984 61.184v358.562909h36.002909l13.102545 45.009455 63.348364-45.009455h89.064727V328.704h-201.518545z" fill="#0f84fd" p-id="16166"></path><path d="M594.781091 368.64h117.899636v277.876364h-41.890909l-53.364363 40.261818-11.636364-40.261818h-11.008V368.64z" fill="#0f84fd" p-id="16167"></path></svg>

BIN
src/assets/images/login-bg.jpg 파일 보기


BIN
src/assets/images/logo-min.jpg 파일 보기


BIN
src/assets/images/logo.jpg 파일 보기


BIN
src/assets/images/talkingdata.png 파일 보기


BIN
src/assets/img/bg.png 파일 보기


BIN
src/assets/img/gou.png 파일 보기


BIN
src/assets/img/key.png 파일 보기


BIN
src/assets/img/kuang.png 파일 보기


BIN
src/assets/img/list.png 파일 보기


BIN
src/assets/img/logo.png 파일 보기


BIN
src/assets/img/user.png 파일 보기


BIN
src/assets/img/user2.png 파일 보기


BIN
src/assets/img/video.png 파일 보기


BIN
src/assets/img/videoFace.jpg 파일 보기


BIN
src/assets/logo.png 파일 보기


+ 130
- 0
src/components/HelloWorld.vue 파일 보기

@@ -0,0 +1,130 @@
1
+<template>
2
+  <div class="hello">
3
+    <h1>{{ msg }}</h1>
4
+    <p>
5
+      For a guide and recipes on how to configure / customize this project,<br />
6
+      check out the
7
+      <a href="https://cli.vuejs.org" target="_blank" rel="noopener"
8
+        >vue-cli documentation</a
9
+      >.
10
+    </p>
11
+    <h3>Installed CLI Plugins</h3>
12
+    <ul>
13
+      <li>
14
+        <a
15
+          href="https://github.com/vuejs/vue-cli/tree/dev/packages/%40vue/cli-plugin-babel"
16
+          target="_blank"
17
+          rel="noopener"
18
+          >babel</a
19
+        >
20
+      </li>
21
+      <li>
22
+        <a
23
+          href="https://github.com/vuejs/vue-cli/tree/dev/packages/%40vue/cli-plugin-eslint"
24
+          target="_blank"
25
+          rel="noopener"
26
+          >eslint</a
27
+        >
28
+      </li>
29
+      <li>
30
+        <a
31
+          href="https://github.com/vuejs/vue-cli/tree/dev/packages/%40vue/cli-plugin-router"
32
+          target="_blank"
33
+          rel="noopener"
34
+          >router</a
35
+        >
36
+      </li>
37
+      <li>
38
+        <a
39
+          href="https://github.com/vuejs/vue-cli/tree/dev/packages/%40vue/cli-plugin-vuex"
40
+          target="_blank"
41
+          rel="noopener"
42
+          >vuex</a
43
+        >
44
+      </li>
45
+    </ul>
46
+    <h3>Essential Links</h3>
47
+    <ul>
48
+      <li>
49
+        <a href="https://vuejs.org" target="_blank" rel="noopener">Core Docs</a>
50
+      </li>
51
+      <li>
52
+        <a href="https://forum.vuejs.org" target="_blank" rel="noopener"
53
+          >Forum</a
54
+        >
55
+      </li>
56
+      <li>
57
+        <a href="https://chat.vuejs.org" target="_blank" rel="noopener"
58
+          >Community Chat</a
59
+        >
60
+      </li>
61
+      <li>
62
+        <a href="https://twitter.com/vuejs" target="_blank" rel="noopener"
63
+          >Twitter</a
64
+        >
65
+      </li>
66
+      <li>
67
+        <a href="https://news.vuejs.org" target="_blank" rel="noopener">News</a>
68
+      </li>
69
+    </ul>
70
+    <h3>Ecosystem</h3>
71
+    <ul>
72
+      <li>
73
+        <a href="https://router.vuejs.org" target="_blank" rel="noopener"
74
+          >vue-router</a
75
+        >
76
+      </li>
77
+      <li>
78
+        <a href="https://vuex.vuejs.org" target="_blank" rel="noopener">vuex</a>
79
+      </li>
80
+      <li>
81
+        <a
82
+          href="https://github.com/vuejs/vue-devtools#vue-devtools"
83
+          target="_blank"
84
+          rel="noopener"
85
+          >vue-devtools</a
86
+        >
87
+      </li>
88
+      <li>
89
+        <a href="https://vue-loader.vuejs.org" target="_blank" rel="noopener"
90
+          >vue-loader</a
91
+        >
92
+      </li>
93
+      <li>
94
+        <a
95
+          href="https://github.com/vuejs/awesome-vue"
96
+          target="_blank"
97
+          rel="noopener"
98
+          >awesome-vue</a
99
+        >
100
+      </li>
101
+    </ul>
102
+  </div>
103
+</template>
104
+
105
+<script>
106
+export default {
107
+  name: "HelloWorld",
108
+  props: {
109
+    msg: String
110
+  }
111
+};
112
+</script>
113
+
114
+<!-- Add "scoped" attribute to limit CSS to this component only -->
115
+<style scoped>
116
+h3 {
117
+  margin: 40px 0 0;
118
+}
119
+ul {
120
+  list-style-type: none;
121
+  padding: 0;
122
+}
123
+li {
124
+  display: inline-block;
125
+  margin: 0 10px;
126
+}
127
+a {
128
+  color: #42b983;
129
+}
130
+</style>

+ 0
- 58
src/components/charts/bar.vue 파일 보기

@@ -1,58 +0,0 @@
1
-<template>
2
-  <div ref="dom" class="charts chart-bar"></div>
3
-</template>
4
-
5
-<script>
6
-import echarts from 'echarts'
7
-import tdTheme from './theme.json'
8
-import { on, off } from '@/libs/tools'
9
-echarts.registerTheme('tdTheme', tdTheme)
10
-export default {
11
-  name: 'ChartBar',
12
-  props: {
13
-    value: Object,
14
-    text: String,
15
-    subtext: String
16
-  },
17
-  data () {
18
-    return {
19
-      dom: null
20
-    }
21
-  },
22
-  methods: {
23
-    resize () {
24
-      this.dom.resize()
25
-    }
26
-  },
27
-  mounted () {
28
-    this.$nextTick(() => {
29
-      let xAxisData = Object.keys(this.value)
30
-      let seriesData = Object.values(this.value)
31
-      let option = {
32
-        title: {
33
-          text: this.text,
34
-          subtext: this.subtext,
35
-          x: 'center'
36
-        },
37
-        xAxis: {
38
-          type: 'category',
39
-          data: xAxisData
40
-        },
41
-        yAxis: {
42
-          type: 'value'
43
-        },
44
-        series: [{
45
-          data: seriesData,
46
-          type: 'bar'
47
-        }]
48
-      }
49
-      this.dom = echarts.init(this.$refs.dom, 'tdTheme')
50
-      this.dom.setOption(option)
51
-      on(window, 'resize', this.resize)
52
-    })
53
-  },
54
-  beforeDestroy () {
55
-    off(window, 'resize', this.resize)
56
-  }
57
-}
58
-</script>

+ 0
- 3
src/components/charts/index.js 파일 보기

@@ -1,3 +0,0 @@
1
-import ChartPie from './pie.vue'
2
-import ChartBar from './bar.vue'
3
-export { ChartPie, ChartBar }

+ 0
- 70
src/components/charts/pie.vue 파일 보기

@@ -1,70 +0,0 @@
1
-<template>
2
-  <div ref="dom" class="charts chart-pie"></div>
3
-</template>
4
-
5
-<script>
6
-import echarts from 'echarts'
7
-import tdTheme from './theme.json'
8
-import { on, off } from '@/libs/tools'
9
-echarts.registerTheme('tdTheme', tdTheme)
10
-export default {
11
-  name: 'ChartPie',
12
-  props: {
13
-    value: Array,
14
-    text: String,
15
-    subtext: String
16
-  },
17
-  data () {
18
-    return {
19
-      dom: null
20
-    }
21
-  },
22
-  methods: {
23
-    resize () {
24
-      this.dom.resize()
25
-    }
26
-  },
27
-  mounted () {
28
-    this.$nextTick(() => {
29
-      let legend = this.value.map(_ => _.name)
30
-      let option = {
31
-        title: {
32
-          text: this.text,
33
-          subtext: this.subtext,
34
-          x: 'center'
35
-        },
36
-        tooltip: {
37
-          trigger: 'item',
38
-          formatter: '{a} <br/>{b} : {c} ({d}%)'
39
-        },
40
-        legend: {
41
-          orient: 'vertical',
42
-          left: 'left',
43
-          data: legend
44
-        },
45
-        series: [
46
-          {
47
-            type: 'pie',
48
-            radius: '55%',
49
-            center: ['50%', '60%'],
50
-            data: this.value,
51
-            itemStyle: {
52
-              emphasis: {
53
-                shadowBlur: 10,
54
-                shadowOffsetX: 0,
55
-                shadowColor: 'rgba(0, 0, 0, 0.5)'
56
-              }
57
-            }
58
-          }
59
-        ]
60
-      }
61
-      this.dom = echarts.init(this.$refs.dom, 'tdTheme')
62
-      this.dom.setOption(option)
63
-      on(window, 'resize', this.resize)
64
-    })
65
-  },
66
-  beforeDestroy () {
67
-    off(window, 'resize', this.resize)
68
-  }
69
-}
70
-</script>

+ 0
- 491
src/components/charts/theme.json 파일 보기

@@ -1,491 +0,0 @@
1
-
2
-{
3
-    "color": [
4
-        "#2d8cf0",
5
-        "#19be6b",
6
-        "#ff9900",
7
-        "#E46CBB",
8
-        "#9A66E4",
9
-        "#ed3f14"
10
-    ],
11
-    "backgroundColor": "rgba(0,0,0,0)",
12
-    "textStyle": {},
13
-    "title": {
14
-        "textStyle": {
15
-            "color": "#516b91"
16
-        },
17
-        "subtextStyle": {
18
-            "color": "#93b7e3"
19
-        }
20
-    },
21
-    "line": {
22
-        "itemStyle": {
23
-            "normal": {
24
-                "borderWidth": "2"
25
-            }
26
-        },
27
-        "lineStyle": {
28
-            "normal": {
29
-                "width": "2"
30
-            }
31
-        },
32
-        "symbolSize": "6",
33
-        "symbol": "emptyCircle",
34
-        "smooth": true
35
-    },
36
-    "radar": {
37
-        "itemStyle": {
38
-            "normal": {
39
-                "borderWidth": "2"
40
-            }
41
-        },
42
-        "lineStyle": {
43
-            "normal": {
44
-                "width": "2"
45
-            }
46
-        },
47
-        "symbolSize": "6",
48
-        "symbol": "emptyCircle",
49
-        "smooth": true
50
-    },
51
-    "bar": {
52
-        "itemStyle": {
53
-            "normal": {
54
-                "barBorderWidth": 0,
55
-                "barBorderColor": "#ccc"
56
-            },
57
-            "emphasis": {
58
-                "barBorderWidth": 0,
59
-                "barBorderColor": "#ccc"
60
-            }
61
-        }
62
-    },
63
-    "pie": {
64
-        "itemStyle": {
65
-            "normal": {
66
-                "borderWidth": 0,
67
-                "borderColor": "#ccc"
68
-            },
69
-            "emphasis": {
70
-                "borderWidth": 0,
71
-                "borderColor": "#ccc"
72
-            }
73
-        }
74
-    },
75
-    "scatter": {
76
-        "itemStyle": {
77
-            "normal": {
78
-                "borderWidth": 0,
79
-                "borderColor": "#ccc"
80
-            },
81
-            "emphasis": {
82
-                "borderWidth": 0,
83
-                "borderColor": "#ccc"
84
-            }
85
-        }
86
-    },
87
-    "boxplot": {
88
-        "itemStyle": {
89
-            "normal": {
90
-                "borderWidth": 0,
91
-                "borderColor": "#ccc"
92
-            },
93
-            "emphasis": {
94
-                "borderWidth": 0,
95
-                "borderColor": "#ccc"
96
-            }
97
-        }
98
-    },
99
-    "parallel": {
100
-        "itemStyle": {
101
-            "normal": {
102
-                "borderWidth": 0,
103
-                "borderColor": "#ccc"
104
-            },
105
-            "emphasis": {
106
-                "borderWidth": 0,
107
-                "borderColor": "#ccc"
108
-            }
109
-        }
110
-    },
111
-    "sankey": {
112
-        "itemStyle": {
113
-            "normal": {
114
-                "borderWidth": 0,
115
-                "borderColor": "#ccc"
116
-            },
117
-            "emphasis": {
118
-                "borderWidth": 0,
119
-                "borderColor": "#ccc"
120
-            }
121
-        }
122
-    },
123
-    "funnel": {
124
-        "itemStyle": {
125
-            "normal": {
126
-                "borderWidth": 0,
127
-                "borderColor": "#ccc"
128
-            },
129
-            "emphasis": {
130
-                "borderWidth": 0,
131
-                "borderColor": "#ccc"
132
-            }
133
-        }
134
-    },
135
-    "gauge": {
136
-        "itemStyle": {
137
-            "normal": {
138
-                "borderWidth": 0,
139
-                "borderColor": "#ccc"
140
-            },
141
-            "emphasis": {
142
-                "borderWidth": 0,
143
-                "borderColor": "#ccc"
144
-            }
145
-        }
146
-    },
147
-    "candlestick": {
148
-        "itemStyle": {
149
-            "normal": {
150
-                "color": "#edafda",
151
-                "color0": "transparent",
152
-                "borderColor": "#d680bc",
153
-                "borderColor0": "#8fd3e8",
154
-                "borderWidth": "2"
155
-            }
156
-        }
157
-    },
158
-    "graph": {
159
-        "itemStyle": {
160
-            "normal": {
161
-                "borderWidth": 0,
162
-                "borderColor": "#ccc"
163
-            }
164
-        },
165
-        "lineStyle": {
166
-            "normal": {
167
-                "width": 1,
168
-                "color": "#aaa"
169
-            }
170
-        },
171
-        "symbolSize": "6",
172
-        "symbol": "emptyCircle",
173
-        "smooth": true,
174
-        "color": [
175
-            "#2d8cf0",
176
-            "#19be6b",
177
-            "#f5ae4a",
178
-            "#9189d5",
179
-            "#56cae2",
180
-            "#cbb0e3"
181
-        ],
182
-        "label": {
183
-            "normal": {
184
-                "textStyle": {
185
-                    "color": "#eee"
186
-                }
187
-            }
188
-        }
189
-    },
190
-    "map": {
191
-        "itemStyle": {
192
-            "normal": {
193
-                "areaColor": "#f3f3f3",
194
-                "borderColor": "#516b91",
195
-                "borderWidth": 0.5
196
-            },
197
-            "emphasis": {
198
-                "areaColor": "rgba(165,231,240,1)",
199
-                "borderColor": "#516b91",
200
-                "borderWidth": 1
201
-            }
202
-        },
203
-        "label": {
204
-            "normal": {
205
-                "textStyle": {
206
-                    "color": "#000"
207
-                }
208
-            },
209
-            "emphasis": {
210
-                "textStyle": {
211
-                    "color": "rgb(81,107,145)"
212
-                }
213
-            }
214
-        }
215
-    },
216
-    "geo": {
217
-        "itemStyle": {
218
-            "normal": {
219
-                "areaColor": "#f3f3f3",
220
-                "borderColor": "#516b91",
221
-                "borderWidth": 0.5
222
-            },
223
-            "emphasis": {
224
-                "areaColor": "rgba(165,231,240,1)",
225
-                "borderColor": "#516b91",
226
-                "borderWidth": 1
227
-            }
228
-        },
229
-        "label": {
230
-            "normal": {
231
-                "textStyle": {
232
-                    "color": "#000"
233
-                }
234
-            },
235
-            "emphasis": {
236
-                "textStyle": {
237
-                    "color": "rgb(81,107,145)"
238
-                }
239
-            }
240
-        }
241
-    },
242
-    "categoryAxis": {
243
-        "axisLine": {
244
-            "show": true,
245
-            "lineStyle": {
246
-                "color": "#cccccc"
247
-            }
248
-        },
249
-        "axisTick": {
250
-            "show": false,
251
-            "lineStyle": {
252
-                "color": "#333"
253
-            }
254
-        },
255
-        "axisLabel": {
256
-            "show": true,
257
-            "textStyle": {
258
-                "color": "#999999"
259
-            }
260
-        },
261
-        "splitLine": {
262
-            "show": true,
263
-            "lineStyle": {
264
-                "color": [
265
-                    "#eeeeee"
266
-                ]
267
-            }
268
-        },
269
-        "splitArea": {
270
-            "show": false,
271
-            "areaStyle": {
272
-                "color": [
273
-                    "rgba(250,250,250,0.05)",
274
-                    "rgba(200,200,200,0.02)"
275
-                ]
276
-            }
277
-        }
278
-    },
279
-    "valueAxis": {
280
-        "axisLine": {
281
-            "show": true,
282
-            "lineStyle": {
283
-                "color": "#cccccc"
284
-            }
285
-        },
286
-        "axisTick": {
287
-            "show": false,
288
-            "lineStyle": {
289
-                "color": "#333"
290
-            }
291
-        },
292
-        "axisLabel": {
293
-            "show": true,
294
-            "textStyle": {
295
-                "color": "#999999"
296
-            }
297
-        },
298
-        "splitLine": {
299
-            "show": true,
300
-            "lineStyle": {
301
-                "color": [
302
-                    "#eeeeee"
303
-                ]
304
-            }
305
-        },
306
-        "splitArea": {
307
-            "show": false,
308
-            "areaStyle": {
309
-                "color": [
310
-                    "rgba(250,250,250,0.05)",
311
-                    "rgba(200,200,200,0.02)"
312
-                ]
313
-            }
314
-        }
315
-    },
316
-    "logAxis": {
317
-        "axisLine": {
318
-            "show": true,
319
-            "lineStyle": {
320
-                "color": "#cccccc"
321
-            }
322
-        },
323
-        "axisTick": {
324
-            "show": false,
325
-            "lineStyle": {
326
-                "color": "#333"
327
-            }
328
-        },
329
-        "axisLabel": {
330
-            "show": true,
331
-            "textStyle": {
332
-                "color": "#999999"
333
-            }
334
-        },
335
-        "splitLine": {
336
-            "show": true,
337
-            "lineStyle": {
338
-                "color": [
339
-                    "#eeeeee"
340
-                ]
341
-            }
342
-        },
343
-        "splitArea": {
344
-            "show": false,
345
-            "areaStyle": {
346
-                "color": [
347
-                    "rgba(250,250,250,0.05)",
348
-                    "rgba(200,200,200,0.02)"
349
-                ]
350
-            }
351
-        }
352
-    },
353
-    "timeAxis": {
354
-        "axisLine": {
355
-            "show": true,
356
-            "lineStyle": {
357
-                "color": "#cccccc"
358
-            }
359
-        },
360
-        "axisTick": {
361
-            "show": false,
362
-            "lineStyle": {
363
-                "color": "#333"
364
-            }
365
-        },
366
-        "axisLabel": {
367
-            "show": true,
368
-            "textStyle": {
369
-                "color": "#999999"
370
-            }
371
-        },
372
-        "splitLine": {
373
-            "show": true,
374
-            "lineStyle": {
375
-                "color": [
376
-                    "#eeeeee"
377
-                ]
378
-            }
379
-        },
380
-        "splitArea": {
381
-            "show": false,
382
-            "areaStyle": {
383
-                "color": [
384
-                    "rgba(250,250,250,0.05)",
385
-                    "rgba(200,200,200,0.02)"
386
-                ]
387
-            }
388
-        }
389
-    },
390
-    "toolbox": {
391
-        "iconStyle": {
392
-            "normal": {
393
-                "borderColor": "#999"
394
-            },
395
-            "emphasis": {
396
-                "borderColor": "#666"
397
-            }
398
-        }
399
-    },
400
-    "legend": {
401
-        "textStyle": {
402
-            "color": "#999999"
403
-        }
404
-    },
405
-    "tooltip": {
406
-        "axisPointer": {
407
-            "lineStyle": {
408
-                "color": "#ccc",
409
-                "width": 1
410
-            },
411
-            "crossStyle": {
412
-                "color": "#ccc",
413
-                "width": 1
414
-            }
415
-        }
416
-    },
417
-    "timeline": {
418
-        "lineStyle": {
419
-            "color": "#8fd3e8",
420
-            "width": 1
421
-        },
422
-        "itemStyle": {
423
-            "normal": {
424
-                "color": "#8fd3e8",
425
-                "borderWidth": 1
426
-            },
427
-            "emphasis": {
428
-                "color": "#8fd3e8"
429
-            }
430
-        },
431
-        "controlStyle": {
432
-            "normal": {
433
-                "color": "#8fd3e8",
434
-                "borderColor": "#8fd3e8",
435
-                "borderWidth": 0.5
436
-            },
437
-            "emphasis": {
438
-                "color": "#8fd3e8",
439
-                "borderColor": "#8fd3e8",
440
-                "borderWidth": 0.5
441
-            }
442
-        },
443
-        "checkpointStyle": {
444
-            "color": "#8fd3e8",
445
-            "borderColor": "rgba(138,124,168,0.37)"
446
-        },
447
-        "label": {
448
-            "normal": {
449
-                "textStyle": {
450
-                    "color": "#8fd3e8"
451
-                }
452
-            },
453
-            "emphasis": {
454
-                "textStyle": {
455
-                    "color": "#8fd3e8"
456
-                }
457
-            }
458
-        }
459
-    },
460
-    "visualMap": {
461
-        "color": [
462
-            "#516b91",
463
-            "#59c4e6",
464
-            "#a5e7f0"
465
-        ]
466
-    },
467
-    "dataZoom": {
468
-        "backgroundColor": "rgba(0,0,0,0)",
469
-        "dataBackgroundColor": "rgba(255,255,255,0.3)",
470
-        "fillerColor": "rgba(167,183,204,0.4)",
471
-        "handleColor": "#a7b7cc",
472
-        "handleSize": "100%",
473
-        "textStyle": {
474
-            "color": "#333"
475
-        }
476
-    },
477
-    "markPoint": {
478
-        "label": {
479
-            "normal": {
480
-                "textStyle": {
481
-                    "color": "#eee"
482
-                }
483
-            },
484
-            "emphasis": {
485
-                "textStyle": {
486
-                    "color": "#eee"
487
-                }
488
-            }
489
-        }
490
-    }
491
-}

+ 0
- 42
src/components/common-icon/common-icon.vue 파일 보기

@@ -1,42 +0,0 @@
1
-<template>
2
-  <component :is="iconType" :type="iconName" :color="iconColor" :size="iconSize"/>
3
-</template>
4
-
5
-<script>
6
-import Icons from '_c/icons'
7
-export default {
8
-  name: 'CommonIcon',
9
-  components: { Icons },
10
-  props: {
11
-    type: {
12
-      type: String,
13
-      required: true
14
-    },
15
-    color: String,
16
-    size: Number
17
-  },
18
-  computed: {
19
-    iconType () {
20
-      return this.type.indexOf('_') === 0 ? 'Icons' : 'Icon'
21
-    },
22
-    iconName () {
23
-      return this.iconType === 'Icons' ? this.getCustomIconName(this.type) : this.type
24
-    },
25
-    iconSize () {
26
-      return this.size || (this.iconType === 'Icons' ? 12 : undefined)
27
-    },
28
-    iconColor () {
29
-      return this.color || ''
30
-    }
31
-  },
32
-  methods: {
33
-    getCustomIconName (iconName) {
34
-      return iconName.slice(1)
35
-    }
36
-  }
37
-}
38
-</script>
39
-
40
-<style>
41
-
42
-</style>

+ 0
- 2
src/components/common-icon/index.js 파일 보기

@@ -1,2 +0,0 @@
1
-import CommonIcon from './common-icon.vue'
2
-export default CommonIcon

+ 0
- 8
src/components/common/common.less 파일 보기

@@ -1,8 +0,0 @@
1
-.no-select{
2
-  -webkit-touch-callout: none;
3
-  -webkit-user-select: none;
4
-  -khtml-user-select: none;
5
-  -moz-user-select: none;
6
-  -ms-user-select: none;
7
-  user-select: none;
8
-}

+ 0
- 3
src/components/common/util.js 파일 보기

@@ -1,3 +0,0 @@
1
-export const showTitle = (item, vm) => {
2
-  return vm.$config.useI18n ? vm.$t(item.name) : ((item.meta && item.meta.title) || item.name)
3
-}

+ 0
- 174
src/components/count-to/count-to.vue 파일 보기

@@ -1,174 +0,0 @@
1
-<template>
2
-  <div class="count-to-wrapper">
3
-    <slot name="left"/>
4
-    <p class="content-outer"><span :class="['count-to-count-text', countClass]" :id="counterId">{{ init }}</span><i :class="['count-to-unit-text', unitClass]">{{ unitText }}</i></p>
5
-    <slot name="right"/>
6
-  </div>
7
-</template>
8
-
9
-<script>
10
-import CountUp from 'countup'
11
-import './index.less'
12
-export default {
13
-  name: 'CountTo',
14
-  props: {
15
-    init: {
16
-      type: Number,
17
-      default: 0
18
-    },
19
-    /**
20
-     * @description 起始值,即动画开始前显示的数值
21
-     */
22
-    startVal: {
23
-      type: Number,
24
-      default: 0
25
-    },
26
-    /**
27
-     * @description 结束值,即动画结束后显示的数值
28
-     */
29
-    end: {
30
-      type: Number,
31
-      required: true
32
-    },
33
-    /**
34
-     * @description 保留几位小数
35
-     */
36
-    decimals: {
37
-      type: Number,
38
-      default: 0
39
-    },
40
-    /**
41
-     * @description 分隔整数和小数的符号,默认是小数点
42
-     */
43
-    decimal: {
44
-      type: String,
45
-      default: '.'
46
-    },
47
-    /**
48
-     * @description 动画持续的时间,单位是秒
49
-     */
50
-    duration: {
51
-      type: Number,
52
-      default: 2
53
-    },
54
-    /**
55
-     * @description 动画延迟开始的时间,单位是秒
56
-     */
57
-    delay: {
58
-      type: Number,
59
-      default: 0
60
-    },
61
-    /**
62
-     * @description 是否禁用easing动画效果
63
-     */
64
-    uneasing: {
65
-      type: Boolean,
66
-      default: false
67
-    },
68
-    /**
69
-     * @description 是否使用分组,分组后每三位会用一个符号分隔
70
-     */
71
-    usegroup: {
72
-      type: Boolean,
73
-      default: false
74
-    },
75
-    /**
76
-     * @description 用于分组(usegroup)的符号
77
-     */
78
-    separator: {
79
-      type: String,
80
-      default: ','
81
-    },
82
-    /**
83
-     * @description 是否简化显示,设为true后会使用unit单位来做相关省略
84
-     */
85
-    simplify: {
86
-      type: Boolean,
87
-      default: false
88
-    },
89
-    /**
90
-     * @description 自定义单位,如[3, 'K+'], [6, 'M+']即大于3位数小于6位数的用k+来做省略
91
-     *              1000即显示为1K+
92
-     */
93
-    unit: {
94
-      type: Array,
95
-      default () {
96
-        return [[3, 'K+'], [6, 'M+'], [9, 'B+']]
97
-      }
98
-    },
99
-    countClass: {
100
-      type: String,
101
-      default: ''
102
-    },
103
-    unitClass: {
104
-      type: String,
105
-      default: ''
106
-    }
107
-  },
108
-  data () {
109
-    return {
110
-      counter: null,
111
-      unitText: ''
112
-    }
113
-  },
114
-  computed: {
115
-    counterId () {
116
-      return `count_to_${this._uid}`
117
-    }
118
-  },
119
-  methods: {
120
-    getHandleVal (val, len) {
121
-      return {
122
-        endVal: parseInt(val / Math.pow(10, this.unit[len - 1][0])),
123
-        unitText: this.unit[len - 1][1]
124
-      }
125
-    },
126
-    transformValue (val) {
127
-      let len = this.unit.length
128
-      let res = {
129
-        endVal: 0,
130
-        unitText: ''
131
-      }
132
-      if (val < Math.pow(10, this.unit[0][0])) res.endVal = val
133
-      else {
134
-        for (let i = 1; i < len; i++) {
135
-          if (val >= Math.pow(10, this.unit[i - 1][0]) && val < Math.pow(10, this.unit[i][0])) res = this.getHandleVal(val, i)
136
-        }
137
-      }
138
-      if (val > Math.pow(10, this.unit[len - 1][0])) res = this.getHandleVal(val, len)
139
-      return res
140
-    },
141
-    getValue (val) {
142
-      let res = 0
143
-      if (this.simplify) {
144
-        let { endVal, unitText } = this.transformValue(val)
145
-        this.unitText = unitText
146
-        res = endVal
147
-      } else {
148
-        res = val
149
-      }
150
-      return res
151
-    }
152
-  },
153
-  mounted () {
154
-    this.$nextTick(() => {
155
-      let endVal = this.getValue(this.end)
156
-      this.counter = new CountUp(this.counterId, this.startVal, endVal, this.decimals, this.duration, {
157
-        useEasing: !this.uneasing,
158
-        useGrouping: this.useGroup,
159
-        separator: this.separator,
160
-        decimal: this.decimal
161
-      })
162
-      setTimeout(() => {
163
-        if (!this.counter.error) this.counter.start()
164
-      }, this.delay)
165
-    })
166
-  },
167
-  watch: {
168
-    end (newVal) {
169
-      let endVal = this.getValue(newVal)
170
-      this.counter.update(endVal)
171
-    }
172
-  }
173
-}
174
-</script>

+ 0
- 2
src/components/count-to/index.js 파일 보기

@@ -1,2 +0,0 @@
1
-import countTo from './count-to.vue'
2
-export default countTo

+ 0
- 10
src/components/count-to/index.less 파일 보기

@@ -1,10 +0,0 @@
1
-@prefix: ~"count-to";
2
-
3
-.@{prefix}-wrapper{
4
-  .content-outer{
5
-    display: inline-block;
6
-    .@{prefix}-unit-text{
7
-      font-style: normal;
8
-    }
9
-  }
10
-}

+ 0
- 2
src/components/cropper/index.js 파일 보기

@@ -1,2 +0,0 @@
1
-import Cropper from './index.vue'
2
-export default Cropper

+ 0
- 40
src/components/cropper/index.less 파일 보기

@@ -1,40 +0,0 @@
1
-.bg{
2
-  // background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQAQMAAAAlPW0iAAAAA3NCSVQICAjb4U/gAAAABlBMVEXMzMz////TjRV2AAAACXBIWXMAAArrAAAK6wGCiw1aAAAAHHRFWHRTb2Z0d2FyZQBBZG9iZSBGaXJld29ya3MgQ1M26LyyjAAAABFJREFUCJlj+M/AgBVhF/0PAH6/D/HkDxOGAAAAAElFTkSuQmCC")
3
-}
4
-.cropper-wrapper{
5
-  width: 200px;
6
-  height: 200px;
7
-  .img-box{
8
-    height: 200px;
9
-    width: 200px;
10
-    background: white;
11
-    border: 1px solid #ebebeb;
12
-    display: inline-block;
13
-    .bg;
14
-    img{
15
-      max-width: 100%;
16
-      display: block;
17
-    }
18
-  }
19
-  .right-con{
20
-    display: inline-block;
21
-    width: 170px;
22
-    vertical-align: top;
23
-    box-sizing: border-box;
24
-    padding: 0 10px;
25
-    .preview-box{
26
-      height: 150px !important;
27
-      width: 100% !important;
28
-      overflow: hidden;
29
-      // border: 1px solid #ebebeb;
30
-      .bg;
31
-    }
32
-    .button-box{
33
-      padding: 10px 0 0;
34
-      .ivu-btn-default {
35
-        margin-top: -12px;
36
-        margin-left: -12px;
37
-      }
38
-    }
39
-  }
40
-}

+ 0
- 142
src/components/cropper/index.vue 파일 보기

@@ -1,142 +0,0 @@
1
-<template>
2
-  <div class="cropper-wrapper">
3
-    <div class="img-box">
4
-      <img class="cropper-image" :id="imgId" alt="">
5
-    </div>
6
-    <div class="right-con">
7
-      <!-- <div v-if="preview" class="preview-box" :id="previewId"></div> -->
8
-      <div class="button-box">
9
-        <slot>
10
-          <Upload action="image/upload" :before-upload="beforeUpload">
11
-            <Button icon="ivu-icon ivu-icon- iconfont icon-21"  style="width: 220px;height:220px" ></Button>
12
-          </Upload>
13
-        </slot>
14
-        <!-- <div v-show="insideSrc">
15
-          <Button type="primary" @click="rotate">
16
-            <Icon type="md-refresh" :size="18"/>
17
-          </Button>
18
-          <Button type="primary" @click="shrink">
19
-            <Icon type="md-remove" :size="18"/>
20
-          </Button>
21
-          <Button type="primary" @click="magnify">
22
-            <Icon type="md-add" :size="18"/>
23
-          </Button>
24
-          <Button type="primary" @click="scale('X')">
25
-            <Icon custom="iconfont icon-shuipingfanzhuan" :size="18"/>
26
-          </Button>
27
-          <Button type="primary" @click="scale('Y')">
28
-            <Icon custom="iconfont icon-chuizhifanzhuan" :size="18"/>
29
-          </Button>
30
-          <Button type="primary" @click="move(0, -moveStep)">
31
-            <Icon type="md-arrow-round-up" :size="18"/>
32
-          </Button>
33
-          <Button type="primary" @click="move(-moveStep, 0)">
34
-            <Icon type="md-arrow-round-back" :size="18"/>
35
-          </Button>
36
-          <Button type="primary" @click="move(0, moveStep)">
37
-            <Icon type="md-arrow-round-down" :size="18"/>
38
-          </Button>
39
-          <Button type="primary" @click="move(moveStep, 0)">
40
-            <Icon type="md-arrow-round-forward" :size="18"/>
41
-          </Button>
42
-          <Button style="width: 150px;margin-top: 10px;" type="primary" @click="crop">{{ cropButtonText }}</Button>
43
-        </div> -->
44
-      </div>
45
-    </div>
46
-  </div>
47
-</template>
48
-
49
-<script>
50
-import Cropper from 'cropperjs'
51
-import './index.less'
52
-import 'cropperjs/dist/cropper.min.css'
53
-export default {
54
-  name: 'Cropper',
55
-  props: {
56
-    src: {
57
-      type: String,
58
-      default: ''
59
-    },
60
-    preview: {
61
-      type: Boolean,
62
-      default: true
63
-    },
64
-    moveStep: {
65
-      type: Number,
66
-      default: 4
67
-    },
68
-    cropButtonText: {
69
-      type: String,
70
-      default: '裁剪'
71
-    }
72
-  },
73
-  data () {
74
-    return {
75
-      cropper: null,
76
-      insideSrc: '',
77
-      file: ''
78
-    }
79
-  },
80
-  computed: {
81
-    imgId () {
82
-      return `cropper${this._uid}`
83
-    },
84
-    previewId () {
85
-      return `cropper_preview${this._uid}`
86
-    }
87
-  },
88
-  watch: {
89
-    src (src) {
90
-      this.replace(src)
91
-    },
92
-    insideSrc (src) {
93
-      this.replace(src)
94
-    }
95
-  },
96
-  methods: {
97
-    beforeUpload (file) {
98
-      const reader = new FileReader()
99
-      reader.readAsDataURL(file)
100
-      console.log(file)
101
-      this.file = file
102
-      reader.onload = (event) => {
103
-        this.insideSrc = event.srcElement.result
104
-      }
105
-      return false
106
-    },
107
-    replace (src) {
108
-      this.cropper.replace(src)
109
-      this.insideSrc = src
110
-    },
111
-    rotate () {
112
-      this.cropper.rotate(90)
113
-    },
114
-    shrink () {
115
-      this.cropper.zoom(-0.1)
116
-    },
117
-    magnify () {
118
-      this.cropper.zoom(0.1)
119
-    },
120
-    scale (d) {
121
-      this.cropper[`scale${d}`](-this.cropper.getData()[`scale${d}`])
122
-    },
123
-    move (...argu) {
124
-      this.cropper.move(...argu)
125
-    },
126
-    crop () {
127
-      this.cropper.getCroppedCanvas().toBlob(blob => {
128
-        this.$emit('on-crop', blob)
129
-      })
130
-    }
131
-  },
132
-  mounted () {
133
-    this.$nextTick(() => {
134
-      let dom = document.getElementById(this.imgId)
135
-      this.cropper = new Cropper(dom, {
136
-        preview: `#${this.previewId}`,
137
-        checkCrossOrigin: true
138
-      })
139
-    })
140
-  }
141
-}
142
-</script>

+ 0
- 18
src/components/drag-drawer/drag-drawer-trigger.vue 파일 보기

@@ -1,18 +0,0 @@
1
-<template>
2
-  <div :class="`${prefix}-move-trigger`">
3
-    <div :class="`${prefix}-move-trigger-point`">
4
-      <i></i><i></i><i></i><i></i><i></i>
5
-    </div>
6
-  </div>
7
-</template>
8
-
9
-<script>
10
-import Mixin from './mixin'
11
-export default {
12
-  name: 'DragDrawerTrigger',
13
-  mixins: [Mixin]
14
-}
15
-</script>
16
-
17
-<style>
18
-</style>

+ 0
- 156
src/components/drag-drawer/drag-drawer.vue 파일 보기

@@ -1,156 +0,0 @@
1
-<template>
2
-  <Drawer ref="drawerWrapper"
3
-          :value="value"
4
-          @input="handleInput"
5
-          :width="width"
6
-          :class-name="outerClasses"
7
-          v-bind="$attrs"
8
-          v-on="$listeners">
9
-    <!-- 所有插槽内容显示在这里 ↓ -->
10
-
11
-    <template v-for="(slots, slotsName) in $slots">
12
-      <template v-if="slotsName !== 'default'">
13
-        <render-dom v-for="(render, index) in slots"
14
-                    :key="`b_drawer_${slotsName}_${index}`"
15
-                    :render="() => render"
16
-                    :slot="slotsName">
17
-        </render-dom>
18
-      </template>
19
-      <template v-else>
20
-        <div :class="`${prefix}-body-wrapper`"
21
-             :key="`b_drawer_${slotsName}`">
22
-          <render-dom v-for="(render, index) in slots"
23
-                      :key="`b_drawer_${slotsName}_${index}`"
24
-                      :render="() => render"
25
-                      :slot="slotsName">
26
-          </render-dom>
27
-        </div>
28
-      </template>
29
-    </template>
30
-    <!-- 所有插槽内容显示在这里 ↑ -->
31
-    <div v-if="draggable"
32
-         :style="triggerStyle"
33
-         :class="`${prefix}-trigger-wrapper`"
34
-         @mousedown="handleTriggerMousedown">
35
-      <slot name="trigger">
36
-        <drag-drawer-trigger></drag-drawer-trigger>
37
-      </slot>
38
-    </div>
39
-    <div v-if="$slots.footer"
40
-         :class="`${prefix}-footer`">
41
-      <slot name="footer"></slot>
42
-    </div>
43
-  </Drawer>
44
-</template>
45
-
46
-<script>
47
-import RenderDom from '@/libs/render-dom'
48
-import DragDrawerTrigger from './drag-drawer-trigger.vue'
49
-import Mixin from './mixin'
50
-import { on, off } from '@/libs/tools'
51
-import './index.less'
52
-export default {
53
-  name: 'BDrawer',
54
-  components: {
55
-    RenderDom,
56
-    DragDrawerTrigger
57
-  },
58
-  mixins: [Mixin],
59
-  props: {
60
-    value: {
61
-      type: Boolean,
62
-      default: false
63
-    },
64
-    width: {
65
-      type: [String, Number],
66
-      default: 256
67
-    },
68
-    // 是否可拖动修改宽度
69
-    draggable: {
70
-      type: Boolean,
71
-      default: false
72
-    },
73
-    // 最小拖动宽度
74
-    minWidth: {
75
-      type: [String, Number],
76
-      default: 256
77
-    }
78
-  },
79
-  data () {
80
-    return {
81
-      canMove: false,
82
-      wrapperWidth: 0,
83
-      wrapperLeft: 0
84
-    }
85
-  },
86
-  computed: {
87
-    outerClasses () {
88
-      const classesArray = [
89
-        `${this.prefix}-wrapper`,
90
-        this.canMove ? 'no-select pointer-events-none' : ''
91
-      ]
92
-      return classesArray.join(' ')
93
-    },
94
-    placement () {
95
-      return this.$attrs.placement
96
-    },
97
-    innerWidth () {
98
-      const width = this.width
99
-      return width <= 100 ? (this.wrapperWidth * width) / 100 : width
100
-    },
101
-    triggerStyle () {
102
-      return {
103
-        [this.placement]: `${this.innerWidth}px`,
104
-        position: this.$attrs.inner ? 'absolute' : 'fixed'
105
-      }
106
-    }
107
-  },
108
-  methods: {
109
-    handleInput (status) {
110
-      this.$emit('input', status)
111
-    },
112
-    handleTriggerMousedown (event) {
113
-      this.canMove = true
114
-      this.$emit('on-resize-start')
115
-      // 防止鼠标选中抽屉中文字,造成拖动trigger触发浏览器原生拖动行为
116
-      window.getSelection().removeAllRanges()
117
-    },
118
-    handleMousemove (event) {
119
-      if (!this.canMove) return
120
-      // 更新容器宽度和距离左侧页面距离,如果是window则距左侧距离为0
121
-      this.setWrapperWidth()
122
-      const left = event.pageX - this.wrapperLeft
123
-      // 如果抽屉方向为右边,宽度计算需用容器宽度减去left
124
-      let width = this.placement === 'right' ? this.wrapperWidth - left : left
125
-      // 限定做小宽度
126
-      width = Math.max(width, parseFloat(this.minWidth))
127
-      event.atMin = width === parseFloat(this.minWidth)
128
-      // 如果当前width不大于100,视为百分比
129
-      if (width <= 100) width = (width / this.wrapperWidth) * 100
130
-      this.$emit('update:width', parseInt(width))
131
-      this.$emit('on-resize', event)
132
-    },
133
-    handleMouseup (event) {
134
-      this.canMove = false
135
-      this.$emit('on-resize-end')
136
-    },
137
-    setWrapperWidth () {
138
-      const {
139
-        width,
140
-        left
141
-      } = this.$refs.drawerWrapper.$el.getBoundingClientRect()
142
-      this.wrapperWidth = width
143
-      this.wrapperLeft = left
144
-    }
145
-  },
146
-  mounted () {
147
-    on(document, 'mousemove', this.handleMousemove)
148
-    on(document, 'mouseup', this.handleMouseup)
149
-    this.setWrapperWidth()
150
-  },
151
-  beforeDestroy () {
152
-    off(document, 'mousemove', this.handleMousemove)
153
-    off(document, 'mouseup', this.handleMouseup)
154
-  }
155
-}
156
-</script>

+ 0
- 2
src/components/drag-drawer/index.js 파일 보기

@@ -1,2 +0,0 @@
1
-import DragDrawer from './drag-drawer.vue'
2
-export default DragDrawer

+ 0
- 70
src/components/drag-drawer/index.less 파일 보기

@@ -1,70 +0,0 @@
1
-@prefix: ~"drag-drawer";
2
-@drag-drawer-trigger-height: 100px;
3
-@drag-drawer-trigger-width: 8px;
4
-
5
-.@{prefix}-wrapper{
6
-  &.no-select{
7
-    user-select: none;
8
-  }
9
-  &.pointer-events-none{
10
-    pointer-events: none;
11
-    & .@{prefix}-trigger-wrapper{
12
-      pointer-events: all;
13
-    }
14
-  }
15
-  .ivu-drawer{
16
-    &-header{
17
-      overflow: hidden !important;
18
-      box-sizing: border-box;
19
-    }
20
-    &-body{
21
-      padding: 0;
22
-      overflow: visible;
23
-      position: static;
24
-      display: flex;
25
-      flex-direction: column;
26
-    }
27
-  }
28
-  .@{prefix}-body-wrapper{
29
-    width: 100%;
30
-    height: 100%;
31
-    padding: 16px;
32
-    overflow: auto;
33
-  }
34
-  .@{prefix}-trigger-wrapper{
35
-    top: 0;
36
-    height: 100%;
37
-    width: 0;
38
-    .@{prefix}-move-trigger{
39
-      position: absolute;
40
-      top: 50%;
41
-      height: @drag-drawer-trigger-height;
42
-      width: @drag-drawer-trigger-width;
43
-      background: rgb(243, 243, 243);
44
-      transform: translate(-50%, -50%);
45
-      border-radius: ~"4px / 6px";
46
-      box-shadow: 0 0 1px 1px rgba(0, 0, 0, .2);
47
-      line-height: @drag-drawer-trigger-height;
48
-      cursor: col-resize;
49
-      &-point{
50
-        display: inline-block;
51
-        width: 50%;
52
-        transform: translateX(50%);
53
-        i{
54
-          display: block;
55
-          border-bottom: 1px solid rgb(192, 192, 192);
56
-          padding-bottom: 2px;
57
-        }
58
-      }
59
-    }
60
-  }
61
-  .@{prefix}-footer{
62
-    flex-grow: 1;
63
-    width: 100%;
64
-    bottom: 0;
65
-    left: 0;
66
-    border-top: 1px solid #e8e8e8;
67
-    padding: 10px 16px;
68
-    background: #fff;
69
-  }
70
-}

+ 0
- 7
src/components/drag-drawer/mixin.js 파일 보기

@@ -1,7 +0,0 @@
1
-export default {
2
-  data () {
3
-    return {
4
-      prefix: 'drag-drawer'
5
-    }
6
-  }
7
-}

+ 0
- 92
src/components/drag-list/drag-list.vue 파일 보기

@@ -1,92 +0,0 @@
1
-<template>
2
-  <div class="drag-list-wrapper">
3
-    <div class="drag-list-con con1">
4
-      <slot name="left-title"></slot>
5
-      <draggable class="drop-box1" :class="dropConClass.left" :options="options" :value="list1" @input="handleListChange($event, 'left')" @end="handleEnd($event, 'left')">
6
-        <div class="drag-list-item" v-for="(itemLeft, index) in list1" :key="`drag_li1_${index}`">
7
-          <slot name="left" :itemLeft="itemLeft">{{ itemLeft }}</slot>
8
-        </div>
9
-      </draggable>
10
-    </div>
11
-    <div class="drag-list-con con2">
12
-      <slot name="right-title"></slot>
13
-      <draggable class="drop-box2" :class="dropConClass.right" :options="options" :value="list2" @input="handleListChange($event, 'right')" @end="handleEnd($event, 'right')">
14
-        <div class="drag-list-item" v-for="(itemRight, index) in list2" :key="`drag_li2_${index}`">
15
-          <slot name="right" :itemRight="itemRight">{{ itemRight }}</slot>
16
-        </div>
17
-      </draggable>
18
-    </div>
19
-  </div>
20
-</template>
21
-<script>
22
-import draggable from 'vuedraggable'
23
-export default {
24
-  name: 'DragList',
25
-  components: {
26
-    draggable
27
-  },
28
-  props: {
29
-    list1: {
30
-      type: Array,
31
-      required: true
32
-    },
33
-    list2: {
34
-      type: Array,
35
-      default: () => []
36
-    },
37
-    dropConClass: {
38
-      type: Object,
39
-      default: () => ({})
40
-    }
41
-  },
42
-  data () {
43
-    return {
44
-      options: { group: 'drag_list' }
45
-    }
46
-  },
47
-  methods: {
48
-    handleListChange (value, type) {
49
-      if (type === 'left') this.$emit('update:list1', value)
50
-      else this.$emit('update:list2', value)
51
-    },
52
-    handleEnd (event, type) {
53
-      const srcClassName = (event.srcElement || event.target).classList[0]
54
-      const targetClassName = event.to.classList[0]
55
-      let src = ''
56
-      let target = ''
57
-      if (srcClassName === targetClassName) {
58
-        if (type === 'left') {
59
-          src = 'left'
60
-          target = 'left'
61
-        } else {
62
-          src = 'right'
63
-          target = 'right'
64
-        }
65
-      } else {
66
-        if (type === 'left') {
67
-          src = 'left'
68
-          target = 'right'
69
-        } else {
70
-          src = 'right'
71
-          target = 'left'
72
-        }
73
-      }
74
-      this.$emit('on-change', {
75
-        src: src,
76
-        target: target,
77
-        oldIndex: event.oldIndex,
78
-        newIndex: event.newIndex
79
-      })
80
-    }
81
-  }
82
-}
83
-</script>
84
-<style lang="less">
85
-.drag-list-wrapper{
86
-  height: 100%;
87
-  .drag-list-con{
88
-    width: 50%;
89
-    float: left;
90
-  }
91
-}
92
-</style>

+ 0
- 2
src/components/drag-list/index.js 파일 보기

@@ -1,2 +0,0 @@
1
-import DragList from './drag-list.vue'
2
-export default DragList

+ 0
- 75
src/components/editor/editor.vue 파일 보기

@@ -1,75 +0,0 @@
1
-<template>
2
-  <div class="editor-wrapper">
3
-    <div :id="editorId"></div>
4
-  </div>
5
-</template>
6
-
7
-<script>
8
-import Editor from 'wangeditor'
9
-import 'wangeditor/release/wangEditor.min.css'
10
-import { oneOf } from '@/libs/tools'
11
-export default {
12
-  name: 'Editor',
13
-  props: {
14
-    value: {
15
-      type: String,
16
-      default: ''
17
-    },
18
-    /**
19
-     * 绑定的值的类型, enum: ['html', 'text']
20
-     */
21
-    valueType: {
22
-      type: String,
23
-      default: 'html',
24
-      validator: (val) => {
25
-        return oneOf(val, ['html', 'text'])
26
-      }
27
-    },
28
-    /**
29
-     * @description 设置change事件触发时间间隔
30
-     */
31
-    changeInterval: {
32
-      type: Number,
33
-      default: 200
34
-    },
35
-    /**
36
-     * @description 是否开启本地存储
37
-     */
38
-    cache: {
39
-      type: Boolean,
40
-      default: true
41
-    }
42
-  },
43
-  computed: {
44
-    editorId () {
45
-      return `editor${this._uid}`
46
-    }
47
-  },
48
-  methods: {
49
-    setHtml (val) {
50
-      this.editor.txt.html(val)
51
-    }
52
-  },
53
-  mounted () {
54
-    this.editor = new Editor(`#${this.editorId}`)
55
-    this.editor.customConfig.onchange = (html) => {
56
-      let text = this.editor.txt.text()
57
-      if (this.cache) localStorage.editorCache = html
58
-      this.$emit('input', this.valueType === 'html' ? html : text)
59
-      this.$emit('on-change', html, text)
60
-    }
61
-    this.editor.customConfig.onchangeTimeout = this.changeInterval
62
-    // create这个方法一定要在所有配置项之后调用
63
-    this.editor.create()
64
-    // 如果本地有存储加载本地存储内容
65
-    // let html = this.value || localStorage.editorCache
66
-    // if (html) this.editor.txt.html(html)
67
-  }
68
-}
69
-</script>
70
-
71
-<style lang="less">
72
-.editor-wrapper *{
73
-  z-index: 100 !important;
74
-}
75
-</style>

+ 0
- 2
src/components/editor/index.js 파일 보기

@@ -1,2 +0,0 @@
1
-import Editor from './editor.vue'
2
-export default Editor

+ 0
- 35
src/components/icons/icons.vue 파일 보기

@@ -1,35 +0,0 @@
1
-<template>
2
-  <i :class="`iconfont icon-${type}`" :style="styles"></i>
3
-</template>
4
-
5
-<script>
6
-export default {
7
-  name: 'Icons',
8
-  props: {
9
-    type: {
10
-      type: String,
11
-      required: true
12
-    },
13
-    color: {
14
-      type: String,
15
-      default: '#5c6b77'
16
-    },
17
-    size: {
18
-      type: Number,
19
-      default: 16
20
-    }
21
-  },
22
-  computed: {
23
-    styles () {
24
-      return {
25
-        fontSize: `${this.size}px`,
26
-        color: this.color
27
-      }
28
-    }
29
-  }
30
-}
31
-</script>
32
-
33
-<style>
34
-
35
-</style>

+ 0
- 2
src/components/icons/index.js 파일 보기

@@ -1,2 +0,0 @@
1
-import Icons from './icons.vue'
2
-export default Icons

+ 0
- 2
src/components/info-card/index.js 파일 보기

@@ -1,2 +0,0 @@
1
-import InforCard from './infor-card.vue'
2
-export default InforCard

+ 0
- 94
src/components/info-card/infor-card.vue 파일 보기

@@ -1,94 +0,0 @@
1
-<template>
2
-  <Card :shadow="shadow" class="info-card-wrapper" :padding="0">
3
-    <div class="content-con">
4
-      <div class="left-area" :style="{background: color, width: leftWidth}">
5
-        <common-icon class="icon" :type="icon" :size="iconSize" color="#fff"/>
6
-      </div>
7
-      <div class="right-area" :style="{width: rightWidth}">
8
-        <div>
9
-          <slot></slot>
10
-        </div>
11
-      </div>
12
-    </div>
13
-  </Card>
14
-</template>
15
-
16
-<script>
17
-import CommonIcon from '_c/common-icon'
18
-export default {
19
-  name: 'InforCard',
20
-  components: {
21
-    CommonIcon
22
-  },
23
-  props: {
24
-    left: {
25
-      type: Number,
26
-      default: 36
27
-    },
28
-    color: {
29
-      type: String,
30
-      default: '#2d8cf0'
31
-    },
32
-    icon: {
33
-      type: String,
34
-      default: ''
35
-    },
36
-    iconSize: {
37
-      type: Number,
38
-      default: 20
39
-    },
40
-    shadow: {
41
-      type: Boolean,
42
-      default: false
43
-    }
44
-  },
45
-  computed: {
46
-    leftWidth () {
47
-      return `${this.left}%`
48
-    },
49
-    rightWidth () {
50
-      return `${100 - this.left}%`
51
-    }
52
-  }
53
-}
54
-</script>
55
-
56
-<style lang="less">
57
-.common{
58
-  float: left;
59
-  height: 100%;
60
-  display: table;
61
-  text-align: center;
62
-}
63
-.size{
64
-  width: 100%;
65
-  height: 100%;
66
-}
67
-.middle-center{
68
-  display: table-cell;
69
-  vertical-align: middle;
70
-}
71
-.info-card-wrapper{
72
-  .size;
73
-  overflow: hidden;
74
-  .ivu-card-body{
75
-    .size;
76
-  }
77
-  .content-con{
78
-    .size;
79
-    position: relative;
80
-    .left-area{
81
-      .common;
82
-      & > .icon{
83
-        .middle-center;
84
-      }
85
-    }
86
-    .right-area{
87
-      .common;
88
-      & > div{
89
-        .middle-center;
90
-      }
91
-    }
92
-  }
93
-}
94
-</style>

+ 0
- 2
src/components/login-form/index.js 파일 보기

@@ -1,2 +0,0 @@
1
-import LoginForm from './login-form.vue'
2
-export default LoginForm

+ 0
- 134
src/components/login-form/login-form.vue 파일 보기

@@ -1,134 +0,0 @@
1
-<template>
2
-<div>
3
-  <div class="formLine">
4
-    <Form ref="loginForm" :model="form" :rules="rules">
5
-      <Form-item  class='formElement' prop='loginname'>
6
-        <!-- <img width="15px" src="../../assets/img/User.png" alt="" /> -->
7
-        <input style="padding-left:50px;" id="userName" type="text" v-model="form.loginname" placeholder="用户名" autocomplete="off" />
8
-      </Form-item>
9
-      <Form-item  class="formElement"  prop='loginpwd'>
10
-        <!-- <img src="../../assets/img/Key.png" alt="" /> -->
11
-        <input  style="padding-left:50px"  id="password" type="password" v-model="form.loginpwd" placeholder="密码" autocomplete="off">
12
-      </Form-item>
13
-      <div class="formOther">
14
-        <Checkbox v-model="single">记住密码</Checkbox>
15
-      </div>
16
-      <div class="formOther">
17
-       <Button @click="handleSubmit" type="primary" long>登录</Button>
18
-      </div>
19
-    </Form>
20
-  </div>
21
-   <div class="bottom">
22
-            <a>注册</a>
23
-            <a>忘记密码</a>
24
-    </div>
25
-  </div>
26
-</template>
27
-<script>
28
-export default {
29
-  name: 'LoginForm',
30
-  props: {
31
-    loginnameRules: {
32
-      type: Array,
33
-      default: () => {
34
-        return [
35
-          { required: true, message: '账号不能为空', trigger: 'blur' }
36
-        ]
37
-      }
38
-    },
39
-    loginpwdRules: {
40
-      type: Array,
41
-      default: () => {
42
-        return [
43
-          { required: true, message: '密码不能为空', trigger: 'blur' }
44
-        ]
45
-      }
46
-    }
47
-  },
48
-  data () {
49
-    return {
50
-      single: false,
51
-      form: {
52
-        loginname: '13140197098',
53
-        loginpwd: '123456'
54
-      }
55
-    }
56
-  },
57
-  computed: {
58
-    rules () {
59
-      return {
60
-        userName: this.userNameRules,
61
-        password: this.passwordRules
62
-      }
63
-    }
64
-  },
65
-  methods: {
66
-    handleSubmit () {
67
-      // console.log(this.$refs.loginForm)
68
-      // this.$router.push('home')
69
-      this.$refs.loginForm.validate((valid) => {
70
-        console.log(valid)
71
-        if (valid) {
72
-          this.$emit('on-success-valid', {
73
-            loginname: this.form.loginname,
74
-            loginpwd: this.form.loginpwd
75
-          })
76
-        }
77
-      })
78
-    }
79
-  }
80
-}
81
-</script>
82
-<style lang='less' scoped>
83
-// #userName>.ivu-form-item-content{
84
-//   width: 290px!important;
85
-// }
86
-#userName{
87
-  background: url(../../assets/img/user.png) no-repeat left center;
88
-  background-size: 20px 20px;
89
-  background-position: 15px;
90
-  height: 40px;
91
-  width: 295px;
92
-
93
-}
94
-#password{
95
-  background: url(../../assets/img/key.png) no-repeat left center;
96
-  background-size: 20px 20px;
97
-  background-position: 15px;
98
-  width: 295px;
99
-
100
-}
101
-.formLine{
102
-  .formElement{
103
-    // background:rgba(1,167,193,1);
104
-        border:0.5px solid #DFDFDF;
105
-    width: 295px;
106
-    height: 40px;
107
-    display: flex;
108
-    align-items: center;
109
-    margin-bottom: 22px;
110
-
111
-    input{
112
-      border:none;
113
-      width: 100%;
114
-      height: 40px;
115
-    }
116
-  }
117
-  .ivu-btn-primary{
118
-    height: 40px;
119
-    font-size:18px;
120
-    font-family:'Microsoft YaHei';
121
-    font-weight:400;
122
-    color:rgba(255,255,255,1);
123
-    line-height:13px;
124
-  }
125
-  .formOther{
126
-    margin-bottom: 15px;
127
-  }
128
-}
129
-
130
-.bottom {
131
-          display: flex;
132
-          justify-content: space-between;
133
-        }
134
-</style>>

+ 0
- 2
src/components/main/components/a-back-top/index.js 파일 보기

@@ -1,2 +0,0 @@
1
-import ABackTop from './index.vue'
2
-export default ABackTop

+ 0
- 90
src/components/main/components/a-back-top/index.vue 파일 보기

@@ -1,90 +0,0 @@
1
-<template>
2
-    <div :class="classes" :style="styles" @click="back">
3
-        <slot>
4
-            <div :class="innerClasses">
5
-                <i class="ivu-icon ivu-icon-ios-arrow-up"></i>
6
-            </div>
7
-        </slot>
8
-    </div>
9
-</template>
10
-<script>
11
-import { scrollTop } from '@/libs/util'
12
-import { on, off } from '@/libs/tools'
13
-const prefixCls = 'ivu-back-top'
14
-
15
-export default {
16
-  name: 'ABackTop',
17
-  props: {
18
-    height: {
19
-      type: Number,
20
-      default: 400
21
-    },
22
-    bottom: {
23
-      type: Number,
24
-      default: 30
25
-    },
26
-    right: {
27
-      type: Number,
28
-      default: 30
29
-    },
30
-    duration: {
31
-      type: Number,
32
-      default: 1000
33
-    },
34
-    container: {
35
-      type: null,
36
-      default: window
37
-    }
38
-  },
39
-  data () {
40
-    return {
41
-      backTop: false
42
-    }
43
-  },
44
-  mounted () {
45
-    // window.addEventListener('scroll', this.handleScroll, false)
46
-    // window.addEventListener('resize', this.handleScroll, false)
47
-    on(this.containerEle, 'scroll', this.handleScroll)
48
-    on(this.containerEle, 'resize', this.handleScroll)
49
-  },
50
-  beforeDestroy () {
51
-    // window.removeEventListener('scroll', this.handleScroll, false)
52
-    // window.removeEventListener('resize', this.handleScroll, false)
53
-    off(this.containerEle, 'scroll', this.handleScroll)
54
-    off(this.containerEle, 'resize', this.handleScroll)
55
-  },
56
-  computed: {
57
-    classes () {
58
-      return [
59
-        `${prefixCls}`,
60
-        {
61
-          [`${prefixCls}-show`]: this.backTop
62
-        }
63
-      ]
64
-    },
65
-    styles () {
66
-      return {
67
-        bottom: `${this.bottom}px`,
68
-        right: `${this.right}px`
69
-      }
70
-    },
71
-    innerClasses () {
72
-      return `${prefixCls}-inner`
73
-    },
74
-    containerEle () {
75
-      return this.container === window ? window : document.querySelector(this.container)
76
-    }
77
-  },
78
-  methods: {
79
-    handleScroll () {
80
-      this.backTop = this.containerEle.scrollTop >= this.height
81
-    },
82
-    back () {
83
-      let target = typeof this.container === 'string' ? this.containerEle : (document.documentElement || document.body)
84
-      const sTop = target.scrollTop
85
-      scrollTop(this.containerEle, sTop, 0, this.duration)
86
-      this.$emit('on-click')
87
-    }
88
-  }
89
-}
90
-</script>

+ 0
- 49
src/components/main/components/error-store/error-store.vue 파일 보기

@@ -1,49 +0,0 @@
1
-<template>
2
-  <div class="error-store">
3
-    <Badge dot :count="countComputed">
4
-      <Button type="text" @click="openErrorLoggerPage">
5
-        <Icon :size="20" type="ios-bug"/>
6
-      </Button>
7
-    </Badge>
8
-  </div>
9
-</template>
10
-
11
-<script>
12
-export default {
13
-  name: 'ErrorStore',
14
-  props: {
15
-    count: {
16
-      type: Number,
17
-      default: 0
18
-    },
19
-    hasRead: {
20
-      type: Boolean,
21
-      default: false
22
-    }
23
-  },
24
-  computed: {
25
-    countComputed () {
26
-      return this.hasRead ? 0 : this.count
27
-    }
28
-  },
29
-  methods: {
30
-    openErrorLoggerPage () {
31
-      this.$router.push({
32
-        name: 'error_logger_page'
33
-      })
34
-    }
35
-  }
36
-}
37
-</script>
38
-
39
-<style lang="less">
40
-.error-store{
41
-  margin-right: 12px;
42
-  .ivu-badge-dot{
43
-    top: 20px;
44
-  }
45
-  .ivu-btn.ivu-btn-text{
46
-    padding: 5px 1px 6px;
47
-  }
48
-}
49
-</style>

+ 0
- 2
src/components/main/components/error-store/index.js 파일 보기

@@ -1,2 +0,0 @@
1
-import ErrorStore from './error-store.vue'
2
-export default ErrorStore

+ 0
- 84
src/components/main/components/fullscreen/fullscreen.vue 파일 보기

@@ -1,84 +0,0 @@
1
-<template>
2
-  <div v-if="showFullScreenBtn" class="full-screen-btn-con">
3
-    <Tooltip :content="value ? '退出全屏' : '全屏'" placement="bottom">
4
-      <Icon @click.native="handleChange" :type="value ? 'md-contract' : 'md-expand'" :size="23"></Icon>
5
-    </Tooltip>
6
-  </div>
7
-</template>
8
-
9
-<script>
10
-export default {
11
-  name: 'Fullscreen',
12
-  computed: {
13
-    showFullScreenBtn () {
14
-      return window.navigator.userAgent.indexOf('MSIE') < 0
15
-    }
16
-  },
17
-  props: {
18
-    value: {
19
-      type: Boolean,
20
-      default: false
21
-    }
22
-  },
23
-  methods: {
24
-    handleFullscreen () {
25
-      let main = document.body
26
-      if (this.value) {
27
-        if (document.exitFullscreen) {
28
-          document.exitFullscreen()
29
-        } else if (document.mozCancelFullScreen) {
30
-          document.mozCancelFullScreen()
31
-        } else if (document.webkitCancelFullScreen) {
32
-          document.webkitCancelFullScreen()
33
-        } else if (document.msExitFullscreen) {
34
-          document.msExitFullscreen()
35
-        }
36
-      } else {
37
-        if (main.requestFullscreen) {
38
-          main.requestFullscreen()
39
-        } else if (main.mozRequestFullScreen) {
40
-          main.mozRequestFullScreen()
41
-        } else if (main.webkitRequestFullScreen) {
42
-          main.webkitRequestFullScreen()
43
-        } else if (main.msRequestFullscreen) {
44
-          main.msRequestFullscreen()
45
-        }
46
-      }
47
-    },
48
-    handleChange () {
49
-      this.handleFullscreen()
50
-    }
51
-  },
52
-  mounted () {
53
-    let isFullscreen = document.fullscreenElement || document.mozFullScreenElement || document.webkitFullscreenElement || document.fullScreen || document.mozFullScreen || document.webkitIsFullScreen
54
-    isFullscreen = !!isFullscreen
55
-    document.addEventListener('fullscreenchange', () => {
56
-      this.$emit('input', !this.value)
57
-      this.$emit('on-change', !this.value)
58
-    })
59
-    document.addEventListener('mozfullscreenchange', () => {
60
-      this.$emit('input', !this.value)
61
-      this.$emit('on-change', !this.value)
62
-    })
63
-    document.addEventListener('webkitfullscreenchange', () => {
64
-      this.$emit('input', !this.value)
65
-      this.$emit('on-change', !this.value)
66
-    })
67
-    document.addEventListener('msfullscreenchange', () => {
68
-      this.$emit('input', !this.value)
69
-      this.$emit('on-change', !this.value)
70
-    })
71
-    this.$emit('input', isFullscreen)
72
-  }
73
-}
74
-</script>
75
-
76
-<style lang="less">
77
-.full-screen-btn-con .ivu-tooltip-rel{
78
-  height: 64px;
79
-  line-height: 56px;
80
-  i{
81
-    cursor: pointer;
82
-  }
83
-}
84
-</style>

+ 0
- 2
src/components/main/components/fullscreen/index.js 파일 보기

@@ -1,2 +0,0 @@
1
-import Fullscreen from './fullscreen.vue'
2
-export default Fullscreen

+ 0
- 4
src/components/main/components/header-bar/custom-bread-crumb/custom-bread-crumb.less 파일 보기

@@ -1,4 +0,0 @@
1
-.custom-bread-crumb{
2
-  display: inline-block;
3
-  vertical-align: top;
4
-}

+ 0
- 47
src/components/main/components/header-bar/custom-bread-crumb/custom-bread-crumb.vue 파일 보기

@@ -1,47 +0,0 @@
1
-<template>
2
-  <div class="custom-bread-crumb">
3
-    <Breadcrumb :style="{fontSize: `${fontSize}px`}" separator='>'>
4
-     <span style="margin-right: 4px;">青鸽管家</span><span style="margin-right: 4px;">></span>
5
-      <BreadcrumbItem v-for="item in list" :to="item.to" :key="`bread-crumb-${item.name}`">
6
-       <common-icon style="margin-right: 4px;"  type='' />
7
-        {{ showTitle(item) }}
8
-      </BreadcrumbItem>
9
-    </Breadcrumb>
10
-  </div>
11
-</template>
12
-<script>
13
-import { showTitle } from '@/libs/util'
14
-import CommonIcon from '_c/common-icon'
15
-import './custom-bread-crumb.less'
16
-export default {
17
-  name: 'customBreadCrumb',
18
-  components: {
19
-    CommonIcon
20
-  },
21
-  props: {
22
-    list: {
23
-      type: Array,
24
-      default: () => []
25
-    },
26
-    fontSize: {
27
-      type: Number,
28
-      default: 14
29
-    },
30
-    showIcon: {
31
-      type: Boolean,
32
-      default: false
33
-    }
34
-  },
35
-  methods: {
36
-    showTitle (item) {
37
-      return showTitle(item, this)
38
-    },
39
-    isCustomIcon (iconName) {
40
-      return iconName.indexOf('_') === 0
41
-    },
42
-    getCustomIconName (iconName) {
43
-      return iconName.slice(1)
44
-    }
45
-  }
46
-}
47
-</script>

+ 0
- 2
src/components/main/components/header-bar/custom-bread-crumb/index.js 파일 보기

@@ -1,2 +0,0 @@
1
-import customBreadCrumb from './custom-bread-crumb.vue'
2
-export default customBreadCrumb

+ 0
- 18
src/components/main/components/header-bar/header-bar.less 파일 보기

@@ -1,18 +0,0 @@
1
-.header-bar{
2
-  width: 100%;
3
-  height: 100%;
4
-  position: relative;
5
-  .ivu-breadcrumb{
6
-    height: 50px;
7
-    line-height: 50px;
8
-  }
9
-  .custom-content-con{
10
-    float: right;
11
-    height: 50px;
12
-    padding-right: 20px;
13
-    line-height: 50px;
14
-    & > *{
15
-      float: right;
16
-    }
17
-  }
18
-}

+ 0
- 34
src/components/main/components/header-bar/header-bar.vue 파일 보기

@@ -1,34 +0,0 @@
1
-<template>
2
-  <div class="header-bar">
3
-    <!-- <sider-trigger :collapsed="collapsed" icon="md-menu" @on-change="handleCollpasedChange"></sider-trigger> -->
4
-    <custom-bread-crumb show-icon  :list="breadCrumbList"></custom-bread-crumb>
5
-    <div class="custom-content-con">
6
-      <slot></slot>
7
-    </div>
8
-  </div>
9
-</template>
10
-<script>
11
-import siderTrigger from './sider-trigger'
12
-import customBreadCrumb from './custom-bread-crumb'
13
-import './header-bar.less'
14
-export default {
15
-  name: 'HeaderBar',
16
-  components: {
17
-    siderTrigger,
18
-    customBreadCrumb
19
-  },
20
-  props: {
21
-    collapsed: Boolean
22
-  },
23
-  computed: {
24
-    breadCrumbList () {
25
-      return this.$store.state.app.breadCrumbList
26
-    }
27
-  },
28
-  methods: {
29
-    handleCollpasedChange (state) {
30
-      this.$emit('on-coll-change', state)
31
-    }
32
-  }
33
-}
34
-</script>

+ 0
- 2
src/components/main/components/header-bar/index.js 파일 보기

@@ -1,2 +0,0 @@
1
-import HeaderBar from './header-bar'
2
-export default HeaderBar

+ 0
- 2
src/components/main/components/header-bar/sider-trigger/index.js 파일 보기

@@ -1,2 +0,0 @@
1
-import siderTrigger from './sider-trigger.vue'
2
-export default siderTrigger

+ 0
- 21
src/components/main/components/header-bar/sider-trigger/sider-trigger.less 파일 보기

@@ -1,21 +0,0 @@
1
-.trans{
2
-  transition: transform .2s ease;
3
-}
4
-@size: 40px;
5
-.sider-trigger-a{
6
-  padding: 6px;
7
-  width: @size;
8
-  height: @size;
9
-  display: inline-block;
10
-  text-align: center;
11
-  color: #5c6b77;
12
-  margin-top: 12px;
13
-  i{
14
-    .trans;
15
-    vertical-align: top;
16
-  }
17
-  &.collapsed i{
18
-    transform: rotateZ(90deg);
19
-    .trans;
20
-  }
21
-}

+ 0
- 27
src/components/main/components/header-bar/sider-trigger/sider-trigger.vue 파일 보기

@@ -1,27 +0,0 @@
1
-<template>
2
-  <a @click="handleChange" type="text" :class="['sider-trigger-a', collapsed ? 'collapsed' : '']"><Icon :type="icon" :size="size" /></a>
3
-</template>
4
-<script>
5
-export default {
6
-  name: 'siderTrigger',
7
-  props: {
8
-    collapsed: Boolean,
9
-    icon: {
10
-      type: String,
11
-      default: 'navicon-round'
12
-    },
13
-    size: {
14
-      type: Number,
15
-      default: 26
16
-    }
17
-  },
18
-  methods: {
19
-    handleChange () {
20
-      this.$emit('on-change', !this.collapsed)
21
-    }
22
-  }
23
-}
24
-</script>
25
-<style lang="less">
26
-@import './sider-trigger.less';
27
-</style>

+ 0
- 2
src/components/main/components/language/index.js 파일 보기

@@ -1,2 +0,0 @@
1
-import Language from './language.vue'
2
-export default Language

+ 0
- 0
src/components/main/components/language/language.vue 파일 보기


이 변경점에서 너무 많은 파일들이 변경되어 몇몇 파일들은 표시되지 않았습니다.

Loading…
취소
저장