eoss-ui 0.7.75 → 0.7.76
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.
- package/lib/button-group.js +68 -36
- package/lib/button.js +68 -36
- package/lib/calogin.js +301 -269
- package/lib/checkbox-group.js +68 -36
- package/lib/data-table-form.js +68 -36
- package/lib/data-table.js +68 -36
- package/lib/date-picker.js +68 -36
- package/lib/dialog.js +68 -36
- package/lib/eoss-ui.common.js +463 -349
- package/lib/flow-group.js +68 -36
- package/lib/flow-list.js +68 -36
- package/lib/flow.js +68 -36
- package/lib/form.js +68 -36
- package/lib/handle-user.js +68 -36
- package/lib/handler.js +68 -36
- package/lib/icon.js +68 -36
- package/lib/index.js +1 -1
- package/lib/input-number.js +68 -36
- package/lib/input.js +68 -36
- package/lib/login.js +68 -36
- package/lib/main.js +211 -97
- package/lib/nav.js +68 -36
- package/lib/page.js +68 -36
- package/lib/pagination.js +68 -36
- package/lib/player.js +68 -36
- package/lib/qr-code.js +81 -49
- package/lib/radio-group.js +68 -36
- package/lib/retrial-auth.js +68 -36
- package/lib/select-ganged.js +68 -36
- package/lib/select.js +68 -36
- package/lib/selector-panel.js +68 -36
- package/lib/selector.js +68 -36
- package/lib/sizer.js +68 -36
- package/lib/steps.js +68 -36
- package/lib/switch.js +68 -36
- package/lib/table-form.js +68 -36
- package/lib/tabs.js +68 -36
- package/lib/theme-chalk/index.css +1 -1
- package/lib/theme-chalk/login.css +1 -1
- package/lib/theme-chalk/main.css +1 -1
- package/lib/theme-chalk/simplicity-top.css +1 -1
- package/lib/tips.js +68 -36
- package/lib/tree-group.js +68 -36
- package/lib/tree.js +68 -36
- package/lib/upload.js +68 -36
- package/lib/utils/util.js +68 -36
- package/lib/wujie.js +68 -36
- package/lib/wxlogin.js +68 -36
- package/package.json +1 -1
- package/packages/button/index.js +5 -5
- package/packages/button/src/main.vue +418 -418
- package/packages/button-group/index.js +5 -5
- package/packages/calendar/index.js +5 -5
- package/packages/calogin/index.js +5 -5
- package/packages/calogin/src/plugin.js +915 -915
- package/packages/card/index.js +5 -5
- package/packages/card/src/main.vue +156 -156
- package/packages/cascader/index.js +5 -5
- package/packages/cascader/src/main.vue +168 -168
- package/packages/checkbox-group/index.js +5 -5
- package/packages/checkbox-group/src/main.vue +333 -333
- package/packages/clients/index.js +5 -5
- package/packages/data-table/index.js +5 -5
- package/packages/data-table/src/children.vue +39 -39
- package/packages/data-table/src/sizer.vue +195 -195
- package/packages/data-table-form/index.js +5 -5
- package/packages/data-table-form/src/checkbox.vue +101 -101
- package/packages/data-table-form/src/colgroup.vue +17 -17
- package/packages/data-table-form/src/main.vue +181 -181
- package/packages/data-table-form/src/radio.vue +65 -65
- package/packages/data-table-form/src/table.vue +233 -233
- package/packages/data-table-form/src/tbody.vue +336 -336
- package/packages/data-table-form/src/thead.vue +68 -68
- package/packages/date-picker/index.js +5 -5
- package/packages/date-picker/src/main.vue +236 -236
- package/packages/dialog/index.js +5 -5
- package/packages/enable-drag/index.js +5 -5
- package/packages/enterprise/index.js +5 -5
- package/packages/enterprise/src/main.vue +66 -66
- package/packages/error-page/index.js +5 -5
- package/packages/error-page/src/main.vue +44 -44
- package/packages/flow/index.js +5 -5
- package/packages/flow/src/component/TimeLimit.vue +190 -190
- package/packages/flow/src/table.vue +58 -58
- package/packages/flow-group/index.js +5 -5
- package/packages/flow-list/index.js +5 -5
- package/packages/form/index.js +5 -5
- package/packages/handle-user/index.js +5 -5
- package/packages/handler/index.js +5 -5
- package/packages/icon/index.js +5 -5
- package/packages/icons/index.js +5 -5
- package/packages/icons/src/main.vue +81 -81
- package/packages/input/index.js +5 -5
- package/packages/input/src/main.vue +356 -356
- package/packages/input-number/index.js +5 -5
- package/packages/input-number/src/main.vue +106 -106
- package/packages/label/index.js +5 -5
- package/packages/label/src/main.vue +457 -457
- package/packages/layout/index.js +5 -5
- package/packages/layout/src/item.vue +152 -152
- package/packages/layout/src/main.vue +31 -31
- package/packages/login/index.js +5 -5
- package/packages/main/index.js +5 -5
- package/packages/main/src/default/message.vue +249 -249
- package/packages/main/src/default/notice.vue +157 -157
- package/packages/main/src/main.vue +27 -15
- package/packages/main/src/simplicity/index.vue +6 -0
- package/packages/main/src/simplicity/lists.vue +84 -84
- package/packages/main/src/simplicity/router-page.vue +45 -45
- package/packages/main/src/simplicityTop/handler.vue +6 -0
- package/packages/main/src/simplicityTop/index.vue +62 -9
- package/packages/menu/index.js +5 -5
- package/packages/nav/index.js +5 -5
- package/packages/notify/index.js +5 -5
- package/packages/notify/src/main.vue +538 -538
- package/packages/page/index.js +5 -5
- package/packages/page/src/main.vue +167 -167
- package/packages/pagination/index.js +5 -5
- package/packages/pagination/src/main.vue +96 -96
- package/packages/player/index.js +5 -5
- package/packages/player/src/main.vue +194 -194
- package/packages/qr-code/index.js +5 -5
- package/packages/qr-code/src/main.vue +170 -170
- package/packages/radio-group/index.js +6 -6
- package/packages/radio-group/src/main.vue +319 -319
- package/packages/retrial-auth/index.js +5 -5
- package/packages/retrial-auth/src/main.vue +280 -280
- package/packages/select/index.js +5 -5
- package/packages/select-ganged/index.js +5 -5
- package/packages/select-ganged/src/main.vue +724 -724
- package/packages/selector/index.js +5 -5
- package/packages/selector-panel/index.js +5 -5
- package/packages/selector-panel/src/tree.vue +129 -129
- package/packages/sizer/index.js +5 -5
- package/packages/sizer/src/main.vue +254 -254
- package/packages/steps/index.js +5 -5
- package/packages/steps/src/main.vue +181 -181
- package/packages/switch/index.js +5 -5
- package/packages/table-form/index.js +5 -5
- package/packages/tabs/index.js +5 -5
- package/packages/tabs/src/main.vue +788 -788
- package/packages/tabs-panel/index.js +5 -5
- package/packages/tabs-panel/src/main.vue +29 -29
- package/packages/theme-chalk/lib/index.css +1 -1
- package/packages/theme-chalk/lib/login.css +1 -1
- package/packages/theme-chalk/lib/main.css +1 -1
- package/packages/theme-chalk/lib/simplicity-top.css +1 -1
- package/packages/theme-chalk/src/base.scss +261 -261
- package/packages/theme-chalk/src/button-group.scss +176 -176
- package/packages/theme-chalk/src/button.scss +24 -24
- package/packages/theme-chalk/src/calendar.scss +113 -113
- package/packages/theme-chalk/src/card.scss +99 -99
- package/packages/theme-chalk/src/checkbox-group.scss +8 -8
- package/packages/theme-chalk/src/clients.scss +87 -87
- package/packages/theme-chalk/src/data-table-form.scss +67 -67
- package/packages/theme-chalk/src/date-picker.scss +7 -7
- package/packages/theme-chalk/src/dialog.scss +77 -77
- package/packages/theme-chalk/src/enable-drag.scss +181 -181
- package/packages/theme-chalk/src/enterprise.scss +5 -5
- package/packages/theme-chalk/src/error-page.scss +18 -18
- package/packages/theme-chalk/src/flow-group.scss +110 -110
- package/packages/theme-chalk/src/flow-list.scss +39 -39
- package/packages/theme-chalk/src/handle-user.scss +40 -40
- package/packages/theme-chalk/src/icons.scss +99 -99
- package/packages/theme-chalk/src/input.scss +9 -9
- package/packages/theme-chalk/src/label.scss +24 -24
- package/packages/theme-chalk/src/layout.scss +46 -46
- package/packages/theme-chalk/src/mixins/color.scss +117 -117
- package/packages/theme-chalk/src/nav.scss +111 -111
- package/packages/theme-chalk/src/page.scss +3 -3
- package/packages/theme-chalk/src/pagination.scss +29 -29
- package/packages/theme-chalk/src/player.scss +9 -9
- package/packages/theme-chalk/src/qr-code.scss +17 -17
- package/packages/theme-chalk/src/radio-group.scss +9 -9
- package/packages/theme-chalk/src/retrial-auth.scss +38 -38
- package/packages/theme-chalk/src/select-ganged.scss +8 -8
- package/packages/theme-chalk/src/select.scss +8 -8
- package/packages/theme-chalk/src/selector-panel.scss +204 -204
- package/packages/theme-chalk/src/simplicity-top.scss +13 -0
- package/packages/theme-chalk/src/sizer.scss +36 -36
- package/packages/theme-chalk/src/steps.scss +88 -88
- package/packages/theme-chalk/src/switch.scss +3 -3
- package/packages/theme-chalk/src/table-form.scss +1 -1
- package/packages/theme-chalk/src/tabs.scss +87 -87
- package/packages/theme-chalk/src/tips.scss +7 -7
- package/packages/theme-chalk/src/toolbar.scss +179 -179
- package/packages/theme-chalk/src/tree-group.scss +72 -72
- package/packages/theme-chalk/src/wxlogin.scss +3 -3
- package/packages/tips/index.js +5 -5
- package/packages/toolbar/index.js +5 -5
- package/packages/tree/index.js +5 -5
- package/packages/tree-group/index.js +5 -5
- package/packages/upload/index.js +5 -5
- package/packages/upload/src/picture.js +15 -15
- package/packages/wujie/index.js +5 -5
- package/packages/wujie/src/main.vue +145 -145
- package/packages/wxlogin/index.js +5 -5
- package/packages/wxlogin/src/main.vue +128 -128
- package/src/config/image.js +2 -2
- package/src/index.js +1 -1
- package/src/utils/bus.js +3 -3
- package/src/utils/date-util.js +312 -312
- package/src/utils/http.js +50 -50
- package/src/utils/store.js +21 -21
- package/src/utils/util.js +172 -105
- package/src/utils/webSocket.js +107 -107
package/lib/player.js
CHANGED
|
@@ -400,7 +400,6 @@ var util_ajax = function ajax(_ref) {
|
|
|
400
400
|
loading && loading.close();
|
|
401
401
|
if (response.headers.authorization) {
|
|
402
402
|
response.headers.authorization !== getStorage('token') && setStorage({
|
|
403
|
-
|
|
404
403
|
key: ['token', 'Authorization'],
|
|
405
404
|
value: response.headers.authorization
|
|
406
405
|
});
|
|
@@ -737,7 +736,11 @@ var ajaxStream = function ajaxStream(_ref2) {
|
|
|
737
736
|
} else if (error.response) {
|
|
738
737
|
errorMessage = '\u670D\u52A1\u5668\u9519\u8BEF (' + error.response.status + '): ' + (error.response.data || '未知错误');
|
|
739
738
|
}
|
|
740
|
-
fail && fail({
|
|
739
|
+
fail && fail({
|
|
740
|
+
status: 0,
|
|
741
|
+
message: { role: 'assistant', content: errorMessage },
|
|
742
|
+
controller: controller
|
|
743
|
+
});
|
|
741
744
|
} finally {
|
|
742
745
|
final && final({ status: -1, message: null, controller: controller });
|
|
743
746
|
}
|
|
@@ -1503,7 +1506,7 @@ var formatDate = function formatDate(date, fmt) {
|
|
|
1503
1506
|
'm+': obj.getMinutes(), // 分钟 (0-59)
|
|
1504
1507
|
's+': obj.getSeconds(), // 秒 (0-59)
|
|
1505
1508
|
'q+': quarter[Math.floor(monthNum / 3)], // 季度 (一~四)
|
|
1506
|
-
|
|
1509
|
+
S: obj.getMilliseconds() // 毫秒 (0-999)
|
|
1507
1510
|
};
|
|
1508
1511
|
|
|
1509
1512
|
// 4. 处理年份
|
|
@@ -2162,26 +2165,51 @@ var getZoom = function getZoom() {
|
|
|
2162
2165
|
|
|
2163
2166
|
var handlerUrl = function handlerUrl(url, param, before) {
|
|
2164
2167
|
var arry = url.split('?');
|
|
2165
|
-
|
|
2166
|
-
|
|
2167
|
-
arry.
|
|
2168
|
-
|
|
2169
|
-
|
|
2170
|
-
|
|
2171
|
-
|
|
2172
|
-
|
|
2173
|
-
|
|
2174
|
-
|
|
2168
|
+
// /archives-ui/webpack/index.html?cookie=1#/fullTextSearch
|
|
2169
|
+
if (arry.length > 1 && arry[1].indexOf('#/') > -1) {
|
|
2170
|
+
// 分割成 arry[0] = /archives-ui/webpack/index.html 和 arry[1] = cookie=1#/fullTextSearch
|
|
2171
|
+
var hashs = arry[1].split('#/'); // 分割成 hashs[0] = cookie=1 和 hashs[1] = fullTextSearch
|
|
2172
|
+
if (hashs[1].indexOf('?') === -1) {
|
|
2173
|
+
hashs[1] += '?_tt=' + new Date().getTime();
|
|
2174
|
+
} else {
|
|
2175
|
+
if (hashs[1].indexOf('_tt') === -1) {
|
|
2176
|
+
hashs[1] += '&_tt=' + new Date().getTime();
|
|
2177
|
+
} else {
|
|
2178
|
+
var search = hashs[1].split('&');
|
|
2179
|
+
for (var i in search) {
|
|
2180
|
+
if (search[i].indexOf('_tt') > -1) {
|
|
2181
|
+
search[i] = '_tt=' + new Date().getTime();
|
|
2182
|
+
}
|
|
2175
2183
|
}
|
|
2184
|
+
hashs[1] = search.join('&');
|
|
2176
2185
|
}
|
|
2177
|
-
arry[1] = search.join('&');
|
|
2178
|
-
} else {
|
|
2179
|
-
arry[1] += '&_tt=' + new Date().getTime();
|
|
2180
2186
|
}
|
|
2181
|
-
|
|
2187
|
+
// /archives-ui/webpack/index.html?cookie=1#/fullTextSearch&_tt=1764839214926&false
|
|
2188
|
+
// 会不会存在 参数中也有#/
|
|
2189
|
+
url = arry[0] + '?' + hashs.join('#/');
|
|
2182
2190
|
} else {
|
|
2183
|
-
|
|
2191
|
+
if (arry.length > 2) {
|
|
2192
|
+
var ary = arry.splice(1, arry.length);
|
|
2193
|
+
arry.push(ary.join('?'));
|
|
2194
|
+
}
|
|
2195
|
+
if (arry.length > 1) {
|
|
2196
|
+
if (arry[1].indexOf('_tt') > -1) {
|
|
2197
|
+
var _search = arry[1].split('&');
|
|
2198
|
+
for (var _i7 in _search) {
|
|
2199
|
+
if (_search[_i7].indexOf('_tt') > -1) {
|
|
2200
|
+
_search[_i7] = '_tt=' + new Date().getTime();
|
|
2201
|
+
}
|
|
2202
|
+
}
|
|
2203
|
+
arry[1] = _search.join('&');
|
|
2204
|
+
} else {
|
|
2205
|
+
arry[1] += '&_tt=' + new Date().getTime();
|
|
2206
|
+
}
|
|
2207
|
+
url = arry.join('?');
|
|
2208
|
+
} else {
|
|
2209
|
+
url += '?_tt=' + new Date().getTime();
|
|
2210
|
+
}
|
|
2184
2211
|
}
|
|
2212
|
+
|
|
2185
2213
|
if (param) {
|
|
2186
2214
|
var str = queryParams(param);
|
|
2187
2215
|
url += '&' + str;
|
|
@@ -2477,7 +2505,11 @@ var isLogined = function () {
|
|
|
2477
2505
|
break;
|
|
2478
2506
|
}
|
|
2479
2507
|
|
|
2480
|
-
loadingInstance = external_eoss_element_["Loading"].service({
|
|
2508
|
+
loadingInstance = external_eoss_element_["Loading"].service({
|
|
2509
|
+
text: '页面加载中',
|
|
2510
|
+
spinner: 'el-icon-loading',
|
|
2511
|
+
background: 'rgba(0, 0, 0, 0.65)'
|
|
2512
|
+
});
|
|
2481
2513
|
_context.next = 17;
|
|
2482
2514
|
return util_ajax({
|
|
2483
2515
|
method: 'post',
|
|
@@ -3575,10 +3607,10 @@ var setStorage = function setStorage(_ref18) {
|
|
|
3575
3607
|
}
|
|
3576
3608
|
}
|
|
3577
3609
|
} else {
|
|
3578
|
-
for (var
|
|
3579
|
-
var val = _typeof(key[
|
|
3580
|
-
localStorage.setItem(
|
|
3581
|
-
if (
|
|
3610
|
+
for (var _i8 in key) {
|
|
3611
|
+
var val = _typeof(key[_i8]) === 'object' ? JSON.stringify(key[_i8]) : key[_i8];
|
|
3612
|
+
localStorage.setItem(_i8, val);
|
|
3613
|
+
if (_i8 === 'token') {
|
|
3582
3614
|
setCookie('token', val);
|
|
3583
3615
|
}
|
|
3584
3616
|
}
|
|
@@ -3590,17 +3622,17 @@ var setStorage = function setStorage(_ref18) {
|
|
|
3590
3622
|
setCookie('token', value);
|
|
3591
3623
|
}
|
|
3592
3624
|
} else if (Array.isArray(key)) {
|
|
3593
|
-
for (var
|
|
3594
|
-
sessionStorage.setItem(key[
|
|
3595
|
-
if (key[
|
|
3625
|
+
for (var _i9 in key) {
|
|
3626
|
+
sessionStorage.setItem(key[_i9], value);
|
|
3627
|
+
if (key[_i9] === 'token') {
|
|
3596
3628
|
setCookie('token', value);
|
|
3597
3629
|
}
|
|
3598
3630
|
}
|
|
3599
3631
|
} else {
|
|
3600
|
-
for (var
|
|
3601
|
-
var _val = _typeof(key[
|
|
3602
|
-
sessionStorage.setItem(
|
|
3603
|
-
if (
|
|
3632
|
+
for (var _i10 in key) {
|
|
3633
|
+
var _val = _typeof(key[_i10]) === 'object' ? JSON.stringify(key[_i10]) : key[_i10];
|
|
3634
|
+
sessionStorage.setItem(_i10, _val);
|
|
3635
|
+
if (_i10 === 'token') {
|
|
3604
3636
|
setCookie('token', _val);
|
|
3605
3637
|
}
|
|
3606
3638
|
}
|
|
@@ -3728,16 +3760,16 @@ var setCookie = function setCookie(name, value) {
|
|
|
3728
3760
|
**/
|
|
3729
3761
|
var getCookie = function getCookie(name) {
|
|
3730
3762
|
var cookies = document.cookie.split(';');
|
|
3731
|
-
for (var _iterator = cookies, _isArray = Array.isArray(_iterator),
|
|
3763
|
+
for (var _iterator = cookies, _isArray = Array.isArray(_iterator), _i11 = 0, _iterator = _isArray ? _iterator : _iterator[Symbol.iterator]();;) {
|
|
3732
3764
|
var _ref19;
|
|
3733
3765
|
|
|
3734
3766
|
if (_isArray) {
|
|
3735
|
-
if (
|
|
3736
|
-
_ref19 = _iterator[
|
|
3767
|
+
if (_i11 >= _iterator.length) break;
|
|
3768
|
+
_ref19 = _iterator[_i11++];
|
|
3737
3769
|
} else {
|
|
3738
|
-
|
|
3739
|
-
if (
|
|
3740
|
-
_ref19 =
|
|
3770
|
+
_i11 = _iterator.next();
|
|
3771
|
+
if (_i11.done) break;
|
|
3772
|
+
_ref19 = _i11.value;
|
|
3741
3773
|
}
|
|
3742
3774
|
|
|
3743
3775
|
var cookie = _ref19;
|
package/lib/qr-code.js
CHANGED
|
@@ -400,7 +400,6 @@ var util_ajax = function ajax(_ref) {
|
|
|
400
400
|
loading && loading.close();
|
|
401
401
|
if (response.headers.authorization) {
|
|
402
402
|
response.headers.authorization !== getStorage('token') && setStorage({
|
|
403
|
-
|
|
404
403
|
key: ['token', 'Authorization'],
|
|
405
404
|
value: response.headers.authorization
|
|
406
405
|
});
|
|
@@ -737,7 +736,11 @@ var ajaxStream = function ajaxStream(_ref2) {
|
|
|
737
736
|
} else if (error.response) {
|
|
738
737
|
errorMessage = '\u670D\u52A1\u5668\u9519\u8BEF (' + error.response.status + '): ' + (error.response.data || '未知错误');
|
|
739
738
|
}
|
|
740
|
-
fail && fail({
|
|
739
|
+
fail && fail({
|
|
740
|
+
status: 0,
|
|
741
|
+
message: { role: 'assistant', content: errorMessage },
|
|
742
|
+
controller: controller
|
|
743
|
+
});
|
|
741
744
|
} finally {
|
|
742
745
|
final && final({ status: -1, message: null, controller: controller });
|
|
743
746
|
}
|
|
@@ -1503,7 +1506,7 @@ var formatDate = function formatDate(date, fmt) {
|
|
|
1503
1506
|
'm+': obj.getMinutes(), // 分钟 (0-59)
|
|
1504
1507
|
's+': obj.getSeconds(), // 秒 (0-59)
|
|
1505
1508
|
'q+': quarter[Math.floor(monthNum / 3)], // 季度 (一~四)
|
|
1506
|
-
|
|
1509
|
+
S: obj.getMilliseconds() // 毫秒 (0-999)
|
|
1507
1510
|
};
|
|
1508
1511
|
|
|
1509
1512
|
// 4. 处理年份
|
|
@@ -2162,26 +2165,51 @@ var getZoom = function getZoom() {
|
|
|
2162
2165
|
|
|
2163
2166
|
var handlerUrl = function handlerUrl(url, param, before) {
|
|
2164
2167
|
var arry = url.split('?');
|
|
2165
|
-
|
|
2166
|
-
|
|
2167
|
-
arry.
|
|
2168
|
-
|
|
2169
|
-
|
|
2170
|
-
|
|
2171
|
-
|
|
2172
|
-
|
|
2173
|
-
|
|
2174
|
-
|
|
2168
|
+
// /archives-ui/webpack/index.html?cookie=1#/fullTextSearch
|
|
2169
|
+
if (arry.length > 1 && arry[1].indexOf('#/') > -1) {
|
|
2170
|
+
// 分割成 arry[0] = /archives-ui/webpack/index.html 和 arry[1] = cookie=1#/fullTextSearch
|
|
2171
|
+
var hashs = arry[1].split('#/'); // 分割成 hashs[0] = cookie=1 和 hashs[1] = fullTextSearch
|
|
2172
|
+
if (hashs[1].indexOf('?') === -1) {
|
|
2173
|
+
hashs[1] += '?_tt=' + new Date().getTime();
|
|
2174
|
+
} else {
|
|
2175
|
+
if (hashs[1].indexOf('_tt') === -1) {
|
|
2176
|
+
hashs[1] += '&_tt=' + new Date().getTime();
|
|
2177
|
+
} else {
|
|
2178
|
+
var search = hashs[1].split('&');
|
|
2179
|
+
for (var i in search) {
|
|
2180
|
+
if (search[i].indexOf('_tt') > -1) {
|
|
2181
|
+
search[i] = '_tt=' + new Date().getTime();
|
|
2182
|
+
}
|
|
2175
2183
|
}
|
|
2184
|
+
hashs[1] = search.join('&');
|
|
2176
2185
|
}
|
|
2177
|
-
arry[1] = search.join('&');
|
|
2178
|
-
} else {
|
|
2179
|
-
arry[1] += '&_tt=' + new Date().getTime();
|
|
2180
2186
|
}
|
|
2181
|
-
|
|
2187
|
+
// /archives-ui/webpack/index.html?cookie=1#/fullTextSearch&_tt=1764839214926&false
|
|
2188
|
+
// 会不会存在 参数中也有#/
|
|
2189
|
+
url = arry[0] + '?' + hashs.join('#/');
|
|
2182
2190
|
} else {
|
|
2183
|
-
|
|
2191
|
+
if (arry.length > 2) {
|
|
2192
|
+
var ary = arry.splice(1, arry.length);
|
|
2193
|
+
arry.push(ary.join('?'));
|
|
2194
|
+
}
|
|
2195
|
+
if (arry.length > 1) {
|
|
2196
|
+
if (arry[1].indexOf('_tt') > -1) {
|
|
2197
|
+
var _search = arry[1].split('&');
|
|
2198
|
+
for (var _i7 in _search) {
|
|
2199
|
+
if (_search[_i7].indexOf('_tt') > -1) {
|
|
2200
|
+
_search[_i7] = '_tt=' + new Date().getTime();
|
|
2201
|
+
}
|
|
2202
|
+
}
|
|
2203
|
+
arry[1] = _search.join('&');
|
|
2204
|
+
} else {
|
|
2205
|
+
arry[1] += '&_tt=' + new Date().getTime();
|
|
2206
|
+
}
|
|
2207
|
+
url = arry.join('?');
|
|
2208
|
+
} else {
|
|
2209
|
+
url += '?_tt=' + new Date().getTime();
|
|
2210
|
+
}
|
|
2184
2211
|
}
|
|
2212
|
+
|
|
2185
2213
|
if (param) {
|
|
2186
2214
|
var str = queryParams(param);
|
|
2187
2215
|
url += '&' + str;
|
|
@@ -2477,7 +2505,11 @@ var isLogined = function () {
|
|
|
2477
2505
|
break;
|
|
2478
2506
|
}
|
|
2479
2507
|
|
|
2480
|
-
loadingInstance = external_eoss_element_["Loading"].service({
|
|
2508
|
+
loadingInstance = external_eoss_element_["Loading"].service({
|
|
2509
|
+
text: '页面加载中',
|
|
2510
|
+
spinner: 'el-icon-loading',
|
|
2511
|
+
background: 'rgba(0, 0, 0, 0.65)'
|
|
2512
|
+
});
|
|
2481
2513
|
_context.next = 17;
|
|
2482
2514
|
return util_ajax({
|
|
2483
2515
|
method: 'post',
|
|
@@ -3575,10 +3607,10 @@ var setStorage = function setStorage(_ref18) {
|
|
|
3575
3607
|
}
|
|
3576
3608
|
}
|
|
3577
3609
|
} else {
|
|
3578
|
-
for (var
|
|
3579
|
-
var val = _typeof(key[
|
|
3580
|
-
localStorage.setItem(
|
|
3581
|
-
if (
|
|
3610
|
+
for (var _i8 in key) {
|
|
3611
|
+
var val = _typeof(key[_i8]) === 'object' ? JSON.stringify(key[_i8]) : key[_i8];
|
|
3612
|
+
localStorage.setItem(_i8, val);
|
|
3613
|
+
if (_i8 === 'token') {
|
|
3582
3614
|
setCookie('token', val);
|
|
3583
3615
|
}
|
|
3584
3616
|
}
|
|
@@ -3590,17 +3622,17 @@ var setStorage = function setStorage(_ref18) {
|
|
|
3590
3622
|
setCookie('token', value);
|
|
3591
3623
|
}
|
|
3592
3624
|
} else if (Array.isArray(key)) {
|
|
3593
|
-
for (var
|
|
3594
|
-
sessionStorage.setItem(key[
|
|
3595
|
-
if (key[
|
|
3625
|
+
for (var _i9 in key) {
|
|
3626
|
+
sessionStorage.setItem(key[_i9], value);
|
|
3627
|
+
if (key[_i9] === 'token') {
|
|
3596
3628
|
setCookie('token', value);
|
|
3597
3629
|
}
|
|
3598
3630
|
}
|
|
3599
3631
|
} else {
|
|
3600
|
-
for (var
|
|
3601
|
-
var _val = _typeof(key[
|
|
3602
|
-
sessionStorage.setItem(
|
|
3603
|
-
if (
|
|
3632
|
+
for (var _i10 in key) {
|
|
3633
|
+
var _val = _typeof(key[_i10]) === 'object' ? JSON.stringify(key[_i10]) : key[_i10];
|
|
3634
|
+
sessionStorage.setItem(_i10, _val);
|
|
3635
|
+
if (_i10 === 'token') {
|
|
3604
3636
|
setCookie('token', _val);
|
|
3605
3637
|
}
|
|
3606
3638
|
}
|
|
@@ -3728,16 +3760,16 @@ var setCookie = function setCookie(name, value) {
|
|
|
3728
3760
|
**/
|
|
3729
3761
|
var getCookie = function getCookie(name) {
|
|
3730
3762
|
var cookies = document.cookie.split(';');
|
|
3731
|
-
for (var _iterator = cookies, _isArray = Array.isArray(_iterator),
|
|
3763
|
+
for (var _iterator = cookies, _isArray = Array.isArray(_iterator), _i11 = 0, _iterator = _isArray ? _iterator : _iterator[Symbol.iterator]();;) {
|
|
3732
3764
|
var _ref19;
|
|
3733
3765
|
|
|
3734
3766
|
if (_isArray) {
|
|
3735
|
-
if (
|
|
3736
|
-
_ref19 = _iterator[
|
|
3767
|
+
if (_i11 >= _iterator.length) break;
|
|
3768
|
+
_ref19 = _iterator[_i11++];
|
|
3737
3769
|
} else {
|
|
3738
|
-
|
|
3739
|
-
if (
|
|
3740
|
-
_ref19 =
|
|
3770
|
+
_i11 = _iterator.next();
|
|
3771
|
+
if (_i11.done) break;
|
|
3772
|
+
_ref19 = _i11.value;
|
|
3741
3773
|
}
|
|
3742
3774
|
|
|
3743
3775
|
var cookie = _ref19;
|
|
@@ -4672,19 +4704,19 @@ var QRCode = __webpack_require__(33);
|
|
|
4672
4704
|
//设置logo大小
|
|
4673
4705
|
var logoPosition = (_this3.mwidth - 46) / 2; //logo相对于canvas居中定位
|
|
4674
4706
|
//设置获取的logo将其变为圆角以及添加白色背景
|
|
4675
|
-
/* ctx.fillStyle = "#fff";
|
|
4676
|
-
ctx.beginPath();
|
|
4677
|
-
let h = 46; //圆角高 10为基数(logo四周白色背景为10/2)
|
|
4678
|
-
let w = 46; //圆角宽
|
|
4679
|
-
let x = logoPosition - 5;
|
|
4680
|
-
let y = logoPosition - 5;
|
|
4681
|
-
let r = 5; //圆角半径
|
|
4682
|
-
ctx.moveTo(x + r, y);
|
|
4683
|
-
ctx.arcTo(x + w, y, x + w, y + h, r);
|
|
4684
|
-
ctx.arcTo(x + w, y + h, x, y + h, r);
|
|
4685
|
-
ctx.arcTo(x, y + h, x, y, r);
|
|
4686
|
-
ctx.arcTo(x, y, x + w, y, r);
|
|
4687
|
-
ctx.closePath();
|
|
4707
|
+
/* ctx.fillStyle = "#fff";
|
|
4708
|
+
ctx.beginPath();
|
|
4709
|
+
let h = 46; //圆角高 10为基数(logo四周白色背景为10/2)
|
|
4710
|
+
let w = 46; //圆角宽
|
|
4711
|
+
let x = logoPosition - 5;
|
|
4712
|
+
let y = logoPosition - 5;
|
|
4713
|
+
let r = 5; //圆角半径
|
|
4714
|
+
ctx.moveTo(x + r, y);
|
|
4715
|
+
ctx.arcTo(x + w, y, x + w, y + h, r);
|
|
4716
|
+
ctx.arcTo(x + w, y + h, x, y + h, r);
|
|
4717
|
+
ctx.arcTo(x, y + h, x, y, r);
|
|
4718
|
+
ctx.arcTo(x, y, x + w, y, r);
|
|
4719
|
+
ctx.closePath();
|
|
4688
4720
|
ctx.fill(); */
|
|
4689
4721
|
logo.onload = function () {
|
|
4690
4722
|
ctx.drawImage(logo, logoPosition, logoPosition, 46, 46);
|
package/lib/radio-group.js
CHANGED
|
@@ -400,7 +400,6 @@ var util_ajax = function ajax(_ref) {
|
|
|
400
400
|
loading && loading.close();
|
|
401
401
|
if (response.headers.authorization) {
|
|
402
402
|
response.headers.authorization !== getStorage('token') && setStorage({
|
|
403
|
-
|
|
404
403
|
key: ['token', 'Authorization'],
|
|
405
404
|
value: response.headers.authorization
|
|
406
405
|
});
|
|
@@ -737,7 +736,11 @@ var ajaxStream = function ajaxStream(_ref2) {
|
|
|
737
736
|
} else if (error.response) {
|
|
738
737
|
errorMessage = '\u670D\u52A1\u5668\u9519\u8BEF (' + error.response.status + '): ' + (error.response.data || '未知错误');
|
|
739
738
|
}
|
|
740
|
-
fail && fail({
|
|
739
|
+
fail && fail({
|
|
740
|
+
status: 0,
|
|
741
|
+
message: { role: 'assistant', content: errorMessage },
|
|
742
|
+
controller: controller
|
|
743
|
+
});
|
|
741
744
|
} finally {
|
|
742
745
|
final && final({ status: -1, message: null, controller: controller });
|
|
743
746
|
}
|
|
@@ -1503,7 +1506,7 @@ var formatDate = function formatDate(date, fmt) {
|
|
|
1503
1506
|
'm+': obj.getMinutes(), // 分钟 (0-59)
|
|
1504
1507
|
's+': obj.getSeconds(), // 秒 (0-59)
|
|
1505
1508
|
'q+': quarter[Math.floor(monthNum / 3)], // 季度 (一~四)
|
|
1506
|
-
|
|
1509
|
+
S: obj.getMilliseconds() // 毫秒 (0-999)
|
|
1507
1510
|
};
|
|
1508
1511
|
|
|
1509
1512
|
// 4. 处理年份
|
|
@@ -2162,26 +2165,51 @@ var getZoom = function getZoom() {
|
|
|
2162
2165
|
|
|
2163
2166
|
var handlerUrl = function handlerUrl(url, param, before) {
|
|
2164
2167
|
var arry = url.split('?');
|
|
2165
|
-
|
|
2166
|
-
|
|
2167
|
-
arry.
|
|
2168
|
-
|
|
2169
|
-
|
|
2170
|
-
|
|
2171
|
-
|
|
2172
|
-
|
|
2173
|
-
|
|
2174
|
-
|
|
2168
|
+
// /archives-ui/webpack/index.html?cookie=1#/fullTextSearch
|
|
2169
|
+
if (arry.length > 1 && arry[1].indexOf('#/') > -1) {
|
|
2170
|
+
// 分割成 arry[0] = /archives-ui/webpack/index.html 和 arry[1] = cookie=1#/fullTextSearch
|
|
2171
|
+
var hashs = arry[1].split('#/'); // 分割成 hashs[0] = cookie=1 和 hashs[1] = fullTextSearch
|
|
2172
|
+
if (hashs[1].indexOf('?') === -1) {
|
|
2173
|
+
hashs[1] += '?_tt=' + new Date().getTime();
|
|
2174
|
+
} else {
|
|
2175
|
+
if (hashs[1].indexOf('_tt') === -1) {
|
|
2176
|
+
hashs[1] += '&_tt=' + new Date().getTime();
|
|
2177
|
+
} else {
|
|
2178
|
+
var search = hashs[1].split('&');
|
|
2179
|
+
for (var i in search) {
|
|
2180
|
+
if (search[i].indexOf('_tt') > -1) {
|
|
2181
|
+
search[i] = '_tt=' + new Date().getTime();
|
|
2182
|
+
}
|
|
2175
2183
|
}
|
|
2184
|
+
hashs[1] = search.join('&');
|
|
2176
2185
|
}
|
|
2177
|
-
arry[1] = search.join('&');
|
|
2178
|
-
} else {
|
|
2179
|
-
arry[1] += '&_tt=' + new Date().getTime();
|
|
2180
2186
|
}
|
|
2181
|
-
|
|
2187
|
+
// /archives-ui/webpack/index.html?cookie=1#/fullTextSearch&_tt=1764839214926&false
|
|
2188
|
+
// 会不会存在 参数中也有#/
|
|
2189
|
+
url = arry[0] + '?' + hashs.join('#/');
|
|
2182
2190
|
} else {
|
|
2183
|
-
|
|
2191
|
+
if (arry.length > 2) {
|
|
2192
|
+
var ary = arry.splice(1, arry.length);
|
|
2193
|
+
arry.push(ary.join('?'));
|
|
2194
|
+
}
|
|
2195
|
+
if (arry.length > 1) {
|
|
2196
|
+
if (arry[1].indexOf('_tt') > -1) {
|
|
2197
|
+
var _search = arry[1].split('&');
|
|
2198
|
+
for (var _i7 in _search) {
|
|
2199
|
+
if (_search[_i7].indexOf('_tt') > -1) {
|
|
2200
|
+
_search[_i7] = '_tt=' + new Date().getTime();
|
|
2201
|
+
}
|
|
2202
|
+
}
|
|
2203
|
+
arry[1] = _search.join('&');
|
|
2204
|
+
} else {
|
|
2205
|
+
arry[1] += '&_tt=' + new Date().getTime();
|
|
2206
|
+
}
|
|
2207
|
+
url = arry.join('?');
|
|
2208
|
+
} else {
|
|
2209
|
+
url += '?_tt=' + new Date().getTime();
|
|
2210
|
+
}
|
|
2184
2211
|
}
|
|
2212
|
+
|
|
2185
2213
|
if (param) {
|
|
2186
2214
|
var str = queryParams(param);
|
|
2187
2215
|
url += '&' + str;
|
|
@@ -2477,7 +2505,11 @@ var isLogined = function () {
|
|
|
2477
2505
|
break;
|
|
2478
2506
|
}
|
|
2479
2507
|
|
|
2480
|
-
loadingInstance = external_eoss_element_["Loading"].service({
|
|
2508
|
+
loadingInstance = external_eoss_element_["Loading"].service({
|
|
2509
|
+
text: '页面加载中',
|
|
2510
|
+
spinner: 'el-icon-loading',
|
|
2511
|
+
background: 'rgba(0, 0, 0, 0.65)'
|
|
2512
|
+
});
|
|
2481
2513
|
_context.next = 17;
|
|
2482
2514
|
return util_ajax({
|
|
2483
2515
|
method: 'post',
|
|
@@ -3575,10 +3607,10 @@ var setStorage = function setStorage(_ref18) {
|
|
|
3575
3607
|
}
|
|
3576
3608
|
}
|
|
3577
3609
|
} else {
|
|
3578
|
-
for (var
|
|
3579
|
-
var val = _typeof(key[
|
|
3580
|
-
localStorage.setItem(
|
|
3581
|
-
if (
|
|
3610
|
+
for (var _i8 in key) {
|
|
3611
|
+
var val = _typeof(key[_i8]) === 'object' ? JSON.stringify(key[_i8]) : key[_i8];
|
|
3612
|
+
localStorage.setItem(_i8, val);
|
|
3613
|
+
if (_i8 === 'token') {
|
|
3582
3614
|
setCookie('token', val);
|
|
3583
3615
|
}
|
|
3584
3616
|
}
|
|
@@ -3590,17 +3622,17 @@ var setStorage = function setStorage(_ref18) {
|
|
|
3590
3622
|
setCookie('token', value);
|
|
3591
3623
|
}
|
|
3592
3624
|
} else if (Array.isArray(key)) {
|
|
3593
|
-
for (var
|
|
3594
|
-
sessionStorage.setItem(key[
|
|
3595
|
-
if (key[
|
|
3625
|
+
for (var _i9 in key) {
|
|
3626
|
+
sessionStorage.setItem(key[_i9], value);
|
|
3627
|
+
if (key[_i9] === 'token') {
|
|
3596
3628
|
setCookie('token', value);
|
|
3597
3629
|
}
|
|
3598
3630
|
}
|
|
3599
3631
|
} else {
|
|
3600
|
-
for (var
|
|
3601
|
-
var _val = _typeof(key[
|
|
3602
|
-
sessionStorage.setItem(
|
|
3603
|
-
if (
|
|
3632
|
+
for (var _i10 in key) {
|
|
3633
|
+
var _val = _typeof(key[_i10]) === 'object' ? JSON.stringify(key[_i10]) : key[_i10];
|
|
3634
|
+
sessionStorage.setItem(_i10, _val);
|
|
3635
|
+
if (_i10 === 'token') {
|
|
3604
3636
|
setCookie('token', _val);
|
|
3605
3637
|
}
|
|
3606
3638
|
}
|
|
@@ -3728,16 +3760,16 @@ var setCookie = function setCookie(name, value) {
|
|
|
3728
3760
|
**/
|
|
3729
3761
|
var getCookie = function getCookie(name) {
|
|
3730
3762
|
var cookies = document.cookie.split(';');
|
|
3731
|
-
for (var _iterator = cookies, _isArray = Array.isArray(_iterator),
|
|
3763
|
+
for (var _iterator = cookies, _isArray = Array.isArray(_iterator), _i11 = 0, _iterator = _isArray ? _iterator : _iterator[Symbol.iterator]();;) {
|
|
3732
3764
|
var _ref19;
|
|
3733
3765
|
|
|
3734
3766
|
if (_isArray) {
|
|
3735
|
-
if (
|
|
3736
|
-
_ref19 = _iterator[
|
|
3767
|
+
if (_i11 >= _iterator.length) break;
|
|
3768
|
+
_ref19 = _iterator[_i11++];
|
|
3737
3769
|
} else {
|
|
3738
|
-
|
|
3739
|
-
if (
|
|
3740
|
-
_ref19 =
|
|
3770
|
+
_i11 = _iterator.next();
|
|
3771
|
+
if (_i11.done) break;
|
|
3772
|
+
_ref19 = _i11.value;
|
|
3741
3773
|
}
|
|
3742
3774
|
|
|
3743
3775
|
var cookie = _ref19;
|