bi-element-ui 1.6.3-beta.5 → 1.6.3-beta.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) hide show
  1. package/lib/bi-element-ui-externals.common.js +1 -1
  2. package/lib/bi-element-ui-externals.common.js.gz +0 -0
  3. package/lib/bi-element-ui-externals.css +6 -6
  4. package/lib/bi-element-ui-externals.css.gz +0 -0
  5. package/lib/bi-element-ui-externals.umd.min.js +1 -1
  6. package/lib/bi-element-ui-externals.umd.min.js.gz +0 -0
  7. package/lib/bi-element-ui.common.js +1 -1
  8. package/lib/bi-element-ui.common.js.gz +0 -0
  9. package/lib/bi-element-ui.css +6 -6
  10. package/lib/bi-element-ui.css.gz +0 -0
  11. package/lib/bi-element-ui.esm.js +1 -1
  12. package/lib/bi-element-ui.esm.js.gz +0 -0
  13. package/lib/bi-element-ui.umd.min.js +1 -1
  14. package/lib/bi-element-ui.umd.min.js.gz +0 -0
  15. package/package.json +4 -1
  16. package/packages/AccessReport/index.js +227 -203
  17. package/packages/AccessReport/index.ts +3 -5
  18. package/packages/Avatar/index.js +3 -2
  19. package/packages/Block/index.js +2 -1
  20. package/packages/CustomColumn/index.js +2 -1
  21. package/packages/DatePicker/index.js +2 -1
  22. package/packages/DownloadCenter/index.js +3 -2
  23. package/packages/DownloadCenter/src/index.vue +2 -7
  24. package/packages/Fireworks/index.js +4 -0
  25. package/packages/Form/index.js +2 -1
  26. package/packages/FormItem/index.js +2 -1
  27. package/packages/HomeData/index.js +3 -2
  28. package/packages/Icon/index.js +3 -2
  29. package/packages/Log/index.js +3 -2
  30. package/packages/Log/src/index.vue +2 -2
  31. package/packages/LogButton/index.js +3 -2
  32. package/packages/LogDialog/index.js +3 -2
  33. package/packages/MoreButton/index.js +3 -2
  34. package/packages/NavbarTool/index.js +2 -1
  35. package/packages/NavbarTool/src/index.vue +21 -15
  36. package/packages/NoticeCenter/index.js +1 -1
  37. package/packages/NoticeCenter/src/index.vue +7 -11
  38. package/packages/Pagination/index.js +2 -1
  39. package/packages/SearchBlock/index.js +2 -1
  40. package/packages/SuperDate/index.js +2 -1
  41. package/packages/SystemLink/index.js +2 -1
  42. package/packages/SystemLink/src/index.vue +4 -8
  43. package/packages/Table/index.js +1 -1
  44. package/packages/TableHeaderPopper/index.js +2 -1
  45. package/packages/TaskCenter/Box.vue +3 -6
  46. package/packages/TextEditor/index.js +7 -0
  47. package/packages/TooltipIcon/index.js +1 -1
  48. package/packages/index.js +5 -3
  49. package/packages/utils/tools.js +18 -0
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bi-element-ui",
3
- "version": "1.6.3-beta.5",
3
+ "version": "1.6.3-beta.6",
4
4
  "private": false,
5
5
  "description": "基于 bi-eleme 编写的企业级 Vue 2 UI 组件库",
6
6
  "main": "lib/bi-element-ui-externals.common.js",
@@ -88,6 +88,7 @@
88
88
  "autoprefixer": "^10.4.14",
89
89
  "babel-eslint": "^10.1.0",
90
90
  "babel-loader": "^9.1.2",
91
+ "bi-eleme": "^2.4.5",
91
92
  "chai": "^4.3.7",
92
93
  "clean-webpack-plugin": "^4.0.0",
93
94
  "commitizen": "^4.3.0",
@@ -104,6 +105,7 @@
104
105
  "html-webpack-plugin": "^5.5.0",
105
106
  "image-webpack-loader": "^8.1.0",
106
107
  "mini-css-extract-plugin": "^2.7.5",
108
+ "moment": "^2.29.4",
107
109
  "node-gyp": "^6.1.0",
108
110
  "postcss": "^8.4.21",
109
111
  "postcss-loader": "^7.1.0",
@@ -112,6 +114,7 @@
112
114
  "style-loader": "^3.3.2",
113
115
  "terser-webpack-plugin": "^5.3.7",
114
116
  "url-loader": "^4.1.1",
117
+ "vue": "^2.7.14",
115
118
  "vue-loader": "^15.10.1",
116
119
  "vue-router": "^3.6.5",
117
120
  "vue-style-loader": "^4.1.3",
@@ -1,205 +1,229 @@
1
- 'use strict'
2
- exports.__esModule = true
3
- var accessReport_1 = require('../utils/request/accessReport')
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ var accessReport_1 = require("../utils/request/accessReport");
4
+ var tools_1 = require("../utils/tools");
4
5
  var AccessReport = /** @class */ (function () {
5
- function AccessReport(_a) {
6
- var _b = _a.system
7
- var system = _b === void 0 ? '' : _b
8
- var _c = _a.authorization
9
- var authorization = _c === void 0 ? '' : _c
10
- var _d = _a.env
11
- var env = _d === void 0 ? 'production' : _d
12
- this.systemName = ''
13
- this.authorization = ''
14
- this.baseUrl = 'https://zq.wozhangwan.com/api'
15
- this.systemName = system
16
- this.authorization = authorization
17
- if (env === 'development') {
18
- this.baseUrl = '/zhangquan-dev'
6
+ function AccessReport(_a) {
7
+ var _b = _a.system, system = _b === void 0 ? '' : _b, _c = _a.authorization, authorization = _c === void 0 ? '' : _c, _d = _a.env, env = _d === void 0 ? 'production' : _d;
8
+ this.systemName = '';
9
+ this.authorization = '';
10
+ this.baseUrl = 'https://zq.wozhangwan.com/api';
11
+ this.systemName = system;
12
+ this.authorization = authorization;
13
+ if (env === 'development') {
14
+ this.baseUrl = '/zhangquan-dev';
15
+ }
16
+ if (env === 'staging') {
17
+ this.baseUrl = 'https://zq.zwwlkj03.top/api';
18
+ }
19
19
  }
20
- if (env === 'staging') {
21
- this.baseUrl = 'https://zq.zwwlkj03.top/api'
22
- }
23
- }
24
- AccessReport.prototype.report = function (router, page) {
25
- var params = {
26
- system: this.systemName,
27
- authorization: this.authorization,
28
- login_device: this.browserType(),
29
- router: this.systemName + '-' + router,
30
- page: page
31
- }
32
- this.accessReportSavev(params).then(function (res) {
33
- return console.log(res)
34
- })
35
- }
36
- AccessReport.prototype.setToken = function (authorization) {
37
- this.authorization = authorization
38
- }
39
- AccessReport.prototype.loginReport = function () {}
40
- AccessReport.prototype.accessReportSavev = function (data) {
41
- return accessReport_1['default']({
42
- url: this.baseUrl + '/data/users/accessLog',
43
- method: 'post',
44
- headers: {
45
- authorization: this.authorization,
46
- 'Login-Device': JSON.stringify(this.browserType())
47
- },
48
- data: data
49
- })
50
- }
51
- AccessReport.prototype.browserType = function () {
52
- // 权重:系统 + 系统版本 > 平台 > 内核 + 载体 + 内核版本 + 载体版本 > 外壳 + 外壳版本
53
- var ua = navigator.userAgent.toLowerCase()
54
- var testUa = function (regexp) {
55
- return regexp.test(ua)
56
- }
57
- var testVs = function (regexp) {
58
- var res = ua.match(regexp) || ''
59
- return res
60
- .toString()
61
- .replace(/[^0-9|_.]/g, '')
62
- .replace(/_/g, '.')
63
- }
64
- // 系统
65
- var system = 'other'
66
- if (testUa(/windows|win32|win64|wow32|wow64/g)) {
67
- system = 'windows' // windows系统
68
- } else if (testUa(/macintosh|macintel/g)) {
69
- system = 'macos' // macos系统
70
- } else if (testUa(/x11/g)) {
71
- system = 'linux' // linux系统
72
- } else if (testUa(/android|adr/g)) {
73
- system = 'android' // android系统
74
- } else if (testUa(/ios|iphone|ipad|ipod|iwatch/g)) {
75
- system = 'ios' // ios系统
76
- }
77
- // 系统版本
78
- var systemVs = 'unknow'
79
- if (system === 'windows') {
80
- if (testUa(/windows nt 5.0|windows 2000/g)) {
81
- systemVs = '2000'
82
- } else if (testUa(/windows nt 5.1|windows xp/g)) {
83
- systemVs = 'xp'
84
- } else if (testUa(/windows nt 5.2|windows 2003/g)) {
85
- systemVs = '2003'
86
- } else if (testUa(/windows nt 6.0|windows vista/g)) {
87
- systemVs = 'vista'
88
- } else if (testUa(/windows nt 6.1|windows 7/g)) {
89
- systemVs = '7'
90
- } else if (testUa(/windows nt 6.2|windows 8/g)) {
91
- systemVs = '8'
92
- } else if (testUa(/windows nt 6.3|windows 8.1/g)) {
93
- systemVs = '8.1'
94
- } else if (testUa(/windows nt 10.0|windows 10/g)) {
95
- systemVs = '10'
96
- }
97
- } else if (system === 'macos') {
98
- systemVs = testVs(/os x [\d._]+/g)
99
- } else if (system === 'android') {
100
- systemVs = testVs(/android [\d._]+/g)
101
- } else if (system === 'ios') {
102
- systemVs = testVs(/os [\d._]+/g)
103
- }
104
- // 平台
105
- var platform = 'unknow'
106
- if (system === 'windows' || system === 'macos' || system === 'linux') {
107
- platform = 'desktop' // 桌面端
108
- } else if (system === 'android' || system === 'ios' || testUa(/mobile/g)) {
109
- platform = 'mobile' // 移动端
110
- }
111
- // 内核和载体
112
- var engine = 'unknow'
113
- var supporter = 'unknow'
114
- if (testUa(/applewebkit/g)) {
115
- engine = 'webkit' // webkit内核
116
- if (testUa(/edge/g)) {
117
- supporter = 'edge' // edge浏览器
118
- } else if (testUa(/opr/g)) {
119
- supporter = 'opera' // opera浏览器
120
- } else if (testUa(/chrome/g)) {
121
- supporter = 'chrome' // chrome浏览器
122
- } else if (testUa(/safari/g)) {
123
- supporter = 'safari' // safari浏览器
124
- } else if (testUa(/dingtalk/g)) {
125
- supporter = 'dingtalk' // 钉钉浏览器
126
- }
127
- } else if (testUa(/gecko/g) && testUa(/firefox/g)) {
128
- engine = 'gecko' // gecko内核
129
- supporter = 'firefox' // firefox浏览器
130
- } else if (testUa(/presto/g)) {
131
- engine = 'presto' // presto内核
132
- supporter = 'opera' // opera浏览器
133
- } else if (testUa(/trident|compatible|msie/g)) {
134
- engine = 'trident' // trident内核
135
- supporter = 'iexplore' // iexplore浏览器
136
- }
137
- // 内核版本
138
- var engineVs = 'unknow'
139
- if (engine === 'webkit') {
140
- engineVs = testVs(/applewebkit\/[\d._]+/g)
141
- } else if (engine === 'gecko') {
142
- engineVs = testVs(/gecko\/[\d._]+/g)
143
- } else if (engine === 'presto') {
144
- engineVs = testVs(/presto\/[\d._]+/g)
145
- } else if (engine === 'trident') {
146
- engineVs = testVs(/trident\/[\d._]+/g)
147
- }
148
- // 载体版本
149
- var supporterVs = 'unknow'
150
- if (supporter === 'chrome') {
151
- supporterVs = testVs(/chrome\/[\d._]+/g)
152
- } else if (supporter === 'safari') {
153
- supporterVs = testVs(/version\/[\d._]+/g)
154
- } else if (supporter === 'firefox') {
155
- supporterVs = testVs(/firefox\/[\d._]+/g)
156
- } else if (supporter === 'opera') {
157
- supporterVs = testVs(/opr\/[\d._]+/g)
158
- } else if (supporter === 'iexplore') {
159
- supporterVs = testVs(/(msie [\d._]+)|(rv:[\d._]+)/g)
160
- } else if (supporter === 'edge') {
161
- supporterVs = testVs(/edge\/[\d._]+/g)
162
- } else if (supporter === 'dingtalk') {
163
- supporterVs = testVs(/dingtalk\/[\d._]+/)
164
- }
165
- // 外壳和外壳版本
166
- var shell = 'none'
167
- var shellVs = 'unknow'
168
- if (testUa(/micromessenger/g)) {
169
- shell = 'wechat' // 微信浏览器
170
- shellVs = testVs(/micromessenger\/[\d._]+/g)
171
- } else if (testUa(/qqbrowser/g)) {
172
- shell = 'qq' // QQ浏览器
173
- shellVs = testVs(/qqbrowser\/[\d._]+/g)
174
- } else if (testUa(/ucbrowser/g)) {
175
- shell = 'uc' // UC浏览器
176
- shellVs = testVs(/ucbrowser\/[\d._]+/g)
177
- } else if (testUa(/qihu 360se/g)) {
178
- shell = '360' // 360浏览器(无版本)
179
- } else if (testUa(/2345explorer/g)) {
180
- shell = '2345' // 2345浏览器
181
- shellVs = testVs(/2345explorer\/[\d._]+/g)
182
- } else if (testUa(/metasr/g)) {
183
- shell = 'sougou' // 搜狗浏览器(无版本)
184
- } else if (testUa(/lbbrowser/g)) {
185
- shell = 'liebao' // 猎豹浏览器(无版本)
186
- } else if (testUa(/maxthon/g)) {
187
- shell = 'maxthon' // 遨游浏览器
188
- shellVs = testVs(/maxthon\/[\d._]+/g)
189
- }
190
- return Object.assign(
191
- {
192
- engine: engine,
193
- engineVs: engineVs,
194
- platform: platform,
195
- supporter: supporter,
196
- supporterVs: supporterVs,
197
- system: system,
198
- systemVs: systemVs
199
- },
200
- shell === 'none' ? {} : { shell: shell, shellVs: shellVs }
201
- )
202
- }
203
- return AccessReport
204
- })()
205
- exports['default'] = AccessReport
20
+ AccessReport.prototype.report = function (router, page) {
21
+ var params = {
22
+ system: this.systemName,
23
+ authorization: (0, tools_1.getToken)(),
24
+ login_device: this.browserType(),
25
+ router: this.systemName + '-' + router,
26
+ page: page
27
+ };
28
+ this.accessReportSavev(params).then(function (res) { return console.log(res); });
29
+ };
30
+ AccessReport.prototype.loginReport = function () { };
31
+ AccessReport.prototype.accessReportSavev = function (data) {
32
+ return (0, accessReport_1.default)({
33
+ url: this.baseUrl + '/data/users/accessLog',
34
+ method: 'post',
35
+ headers: {
36
+ authorization: (0, tools_1.getToken)(),
37
+ 'Login-Device': JSON.stringify(this.browserType())
38
+ },
39
+ data: data
40
+ });
41
+ };
42
+ AccessReport.prototype.browserType = function () {
43
+ // 权重:系统 + 系统版本 > 平台 > 内核 + 载体 + 内核版本 + 载体版本 > 外壳 + 外壳版本
44
+ var ua = navigator.userAgent.toLowerCase();
45
+ var testUa = function (regexp) { return regexp.test(ua); };
46
+ var testVs = function (regexp) {
47
+ var res = ua.match(regexp) || '';
48
+ return res
49
+ .toString()
50
+ .replace(/[^0-9|_.]/g, '')
51
+ .replace(/_/g, '.');
52
+ };
53
+ // 系统
54
+ var system = 'other';
55
+ if (testUa(/windows|win32|win64|wow32|wow64/g)) {
56
+ system = 'windows'; // windows系统
57
+ }
58
+ else if (testUa(/macintosh|macintel/g)) {
59
+ system = 'macos'; // macos系统
60
+ }
61
+ else if (testUa(/x11/g)) {
62
+ system = 'linux'; // linux系统
63
+ }
64
+ else if (testUa(/android|adr/g)) {
65
+ system = 'android'; // android系统
66
+ }
67
+ else if (testUa(/ios|iphone|ipad|ipod|iwatch/g)) {
68
+ system = 'ios'; // ios系统
69
+ }
70
+ // 系统版本
71
+ var systemVs = 'unknow';
72
+ if (system === 'windows') {
73
+ if (testUa(/windows nt 5.0|windows 2000/g)) {
74
+ systemVs = '2000';
75
+ }
76
+ else if (testUa(/windows nt 5.1|windows xp/g)) {
77
+ systemVs = 'xp';
78
+ }
79
+ else if (testUa(/windows nt 5.2|windows 2003/g)) {
80
+ systemVs = '2003';
81
+ }
82
+ else if (testUa(/windows nt 6.0|windows vista/g)) {
83
+ systemVs = 'vista';
84
+ }
85
+ else if (testUa(/windows nt 6.1|windows 7/g)) {
86
+ systemVs = '7';
87
+ }
88
+ else if (testUa(/windows nt 6.2|windows 8/g)) {
89
+ systemVs = '8';
90
+ }
91
+ else if (testUa(/windows nt 6.3|windows 8.1/g)) {
92
+ systemVs = '8.1';
93
+ }
94
+ else if (testUa(/windows nt 10.0|windows 10/g)) {
95
+ systemVs = '10';
96
+ }
97
+ }
98
+ else if (system === 'macos') {
99
+ systemVs = testVs(/os x [\d._]+/g);
100
+ }
101
+ else if (system === 'android') {
102
+ systemVs = testVs(/android [\d._]+/g);
103
+ }
104
+ else if (system === 'ios') {
105
+ systemVs = testVs(/os [\d._]+/g);
106
+ }
107
+ // 平台
108
+ var platform = 'unknow';
109
+ if (system === 'windows' || system === 'macos' || system === 'linux') {
110
+ platform = 'desktop'; // 桌面端
111
+ }
112
+ else if (system === 'android' || system === 'ios' || testUa(/mobile/g)) {
113
+ platform = 'mobile'; // 移动端
114
+ }
115
+ // 内核和载体
116
+ var engine = 'unknow';
117
+ var supporter = 'unknow';
118
+ if (testUa(/applewebkit/g)) {
119
+ engine = 'webkit'; // webkit内核
120
+ if (testUa(/edge/g)) {
121
+ supporter = 'edge'; // edge浏览器
122
+ }
123
+ else if (testUa(/opr/g)) {
124
+ supporter = 'opera'; // opera浏览器
125
+ }
126
+ else if (testUa(/chrome/g)) {
127
+ supporter = 'chrome'; // chrome浏览器
128
+ }
129
+ else if (testUa(/safari/g)) {
130
+ supporter = 'safari'; // safari浏览器
131
+ }
132
+ else if (testUa(/dingtalk/g)) {
133
+ supporter = 'dingtalk'; // 钉钉浏览器
134
+ }
135
+ }
136
+ else if (testUa(/gecko/g) && testUa(/firefox/g)) {
137
+ engine = 'gecko'; // gecko内核
138
+ supporter = 'firefox'; // firefox浏览器
139
+ }
140
+ else if (testUa(/presto/g)) {
141
+ engine = 'presto'; // presto内核
142
+ supporter = 'opera'; // opera浏览器
143
+ }
144
+ else if (testUa(/trident|compatible|msie/g)) {
145
+ engine = 'trident'; // trident内核
146
+ supporter = 'iexplore'; // iexplore浏览器
147
+ }
148
+ // 内核版本
149
+ var engineVs = 'unknow';
150
+ if (engine === 'webkit') {
151
+ engineVs = testVs(/applewebkit\/[\d._]+/g);
152
+ }
153
+ else if (engine === 'gecko') {
154
+ engineVs = testVs(/gecko\/[\d._]+/g);
155
+ }
156
+ else if (engine === 'presto') {
157
+ engineVs = testVs(/presto\/[\d._]+/g);
158
+ }
159
+ else if (engine === 'trident') {
160
+ engineVs = testVs(/trident\/[\d._]+/g);
161
+ }
162
+ // 载体版本
163
+ var supporterVs = 'unknow';
164
+ if (supporter === 'chrome') {
165
+ supporterVs = testVs(/chrome\/[\d._]+/g);
166
+ }
167
+ else if (supporter === 'safari') {
168
+ supporterVs = testVs(/version\/[\d._]+/g);
169
+ }
170
+ else if (supporter === 'firefox') {
171
+ supporterVs = testVs(/firefox\/[\d._]+/g);
172
+ }
173
+ else if (supporter === 'opera') {
174
+ supporterVs = testVs(/opr\/[\d._]+/g);
175
+ }
176
+ else if (supporter === 'iexplore') {
177
+ supporterVs = testVs(/(msie [\d._]+)|(rv:[\d._]+)/g);
178
+ }
179
+ else if (supporter === 'edge') {
180
+ supporterVs = testVs(/edge\/[\d._]+/g);
181
+ }
182
+ else if (supporter === 'dingtalk') {
183
+ supporterVs = testVs(/dingtalk\/[\d._]+/);
184
+ }
185
+ // 外壳和外壳版本
186
+ var shell = 'none';
187
+ var shellVs = 'unknow';
188
+ if (testUa(/micromessenger/g)) {
189
+ shell = 'wechat'; // 微信浏览器
190
+ shellVs = testVs(/micromessenger\/[\d._]+/g);
191
+ }
192
+ else if (testUa(/qqbrowser/g)) {
193
+ shell = 'qq'; // QQ浏览器
194
+ shellVs = testVs(/qqbrowser\/[\d._]+/g);
195
+ }
196
+ else if (testUa(/ucbrowser/g)) {
197
+ shell = 'uc'; // UC浏览器
198
+ shellVs = testVs(/ucbrowser\/[\d._]+/g);
199
+ }
200
+ else if (testUa(/qihu 360se/g)) {
201
+ shell = '360'; // 360浏览器(无版本)
202
+ }
203
+ else if (testUa(/2345explorer/g)) {
204
+ shell = '2345'; // 2345浏览器
205
+ shellVs = testVs(/2345explorer\/[\d._]+/g);
206
+ }
207
+ else if (testUa(/metasr/g)) {
208
+ shell = 'sougou'; // 搜狗浏览器(无版本)
209
+ }
210
+ else if (testUa(/lbbrowser/g)) {
211
+ shell = 'liebao'; // 猎豹浏览器(无版本)
212
+ }
213
+ else if (testUa(/maxthon/g)) {
214
+ shell = 'maxthon'; // 遨游浏览器
215
+ shellVs = testVs(/maxthon\/[\d._]+/g);
216
+ }
217
+ return Object.assign({
218
+ engine: engine, // webkit gecko presto trident
219
+ engineVs: engineVs,
220
+ platform: platform, // desktop mobile
221
+ supporter: supporter, // chrome safari firefox opera iexplore edge
222
+ supporterVs: supporterVs,
223
+ system: system, // windows macos linux android ios
224
+ systemVs: systemVs
225
+ }, shell === 'none' ? {} : { shell: shell, shellVs: shellVs });
226
+ };
227
+ return AccessReport;
228
+ }());
229
+ exports.default = AccessReport;
@@ -1,4 +1,5 @@
1
1
  import request from '../utils/request/accessReport'
2
+ import { getToken } from '../utils/tools'
2
3
  class AccessReport {
3
4
  systemName = ''
4
5
  authorization = ''
@@ -17,16 +18,13 @@ class AccessReport {
17
18
  report(router, page) {
18
19
  const params = {
19
20
  system: this.systemName,
20
- authorization: this.authorization,
21
+ authorization: getToken(),
21
22
  login_device: this.browserType(),
22
23
  router: this.systemName + '-' + router,
23
24
  page
24
25
  }
25
26
  this.accessReportSavev(params).then((res) => console.log(res))
26
27
  }
27
- setToken(authorization) {
28
- this.authorization = authorization
29
- }
30
28
  loginReport() {}
31
29
 
32
30
  accessReportSavev(data) {
@@ -34,7 +32,7 @@ class AccessReport {
34
32
  url: this.baseUrl + '/data/users/accessLog',
35
33
  method: 'post',
36
34
  headers: {
37
- authorization: this.authorization,
35
+ authorization: getToken(),
38
36
  'Login-Device': JSON.stringify(this.browserType())
39
37
  },
40
38
  data
@@ -1,6 +1,7 @@
1
- import component from './src'
1
+ import component from './src/index.vue'
2
2
 
3
- component.install = function(Vue) {
3
+ component.install = function (Vue) {
4
4
  Vue.component(component.name, component)
5
5
  }
6
+
6
7
  export default component
@@ -1,6 +1,7 @@
1
- import component from './src'
1
+ import component from './src/index.vue'
2
2
 
3
3
  component.install = function (Vue) {
4
4
  Vue.component(component.name, component)
5
5
  }
6
+
6
7
  export default component
@@ -1,6 +1,7 @@
1
- import BiCustomColumn from './src'
1
+ import BiCustomColumn from './src/index.vue'
2
2
 
3
3
  BiCustomColumn.install = function (Vue) {
4
4
  Vue.component(BiCustomColumn.name, BiCustomColumn)
5
5
  }
6
+
6
7
  export default BiCustomColumn
@@ -1,6 +1,7 @@
1
- import BiDatePicker from './src'
1
+ import BiDatePicker from './src/index.vue'
2
2
 
3
3
  BiDatePicker.install = function (Vue) {
4
4
  Vue.component(BiDatePicker.name, BiDatePicker)
5
5
  }
6
+
6
7
  export default BiDatePicker
@@ -1,6 +1,7 @@
1
- import component from './src'
1
+ import component from './src/index.vue'
2
2
 
3
- component.install = function(Vue) {
3
+ component.install = function (Vue) {
4
4
  Vue.component(component.name, component)
5
5
  }
6
+
6
7
  export default component
@@ -63,13 +63,11 @@
63
63
  v-show="tabsName==='DownloadCenter'"
64
64
  :header-height="headerHeight"
65
65
  :handle-table-list="getExportList"
66
- :token="token"
67
66
  @setRead="handleSetRead"
68
67
  />
69
68
 
70
69
  <TaskCenterBox
71
70
  v-if="tabsName==='TaskCenter'"
72
- :token="token"
73
71
  :user-id="userId"
74
72
  />
75
73
 
@@ -82,6 +80,7 @@ import request from '../../utils/request/exportDownload'
82
80
  import { getCurrentEnvURL } from '../../config/index'
83
81
  import Box from './Box'
84
82
  import TaskCenterBox from '../../TaskCenter/Box.vue'
83
+ import { getToken } from '../../utils/tools'
85
84
  export default {
86
85
  name: 'BiDownloadCenter',
87
86
  components: { Box, TaskCenterBox },
@@ -98,10 +97,6 @@ export default {
98
97
  type: String,
99
98
  default: ''
100
99
  },
101
- token: {
102
- type: String,
103
- default: ''
104
- },
105
100
  system: {
106
101
  type: String,
107
102
  default: ''
@@ -134,7 +129,7 @@ export default {
134
129
  return request({
135
130
  url: this.baseUrl + '/task/index',
136
131
  method: 'post',
137
- headers: { token: this.token },
132
+ headers: { token: getToken() },
138
133
  data: Object.assign({ origin_system: this.system }, params)
139
134
  })
140
135
  },
@@ -1,3 +1,7 @@
1
1
  import Fireworks from './index.vue'
2
2
 
3
+ Fireworks.install = function (Vue) {
4
+ Vue.component(Fireworks.name, Fireworks)
5
+ }
6
+
3
7
  export default Fireworks
@@ -1,6 +1,7 @@
1
- import component from './src'
1
+ import component from './src/index.vue'
2
2
 
3
3
  component.install = function (Vue) {
4
4
  Vue.component(component.name, component)
5
5
  }
6
+
6
7
  export default component
@@ -1,6 +1,7 @@
1
- import component from './src'
1
+ import component from './src/index.vue'
2
2
 
3
3
  component.install = function (Vue) {
4
4
  Vue.component(component.name, component)
5
5
  }
6
+
6
7
  export default component
@@ -1,6 +1,7 @@
1
- import component from './src'
1
+ import component from './src/index.vue'
2
2
 
3
- component.install = function(Vue) {
3
+ component.install = function (Vue) {
4
4
  Vue.component(component.name, component)
5
5
  }
6
+
6
7
  export default component