eoss-ui 0.4.99 → 0.5.10
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/CHANGELOG.md +929 -0
- package/lib/button-group.js +100 -10
- package/lib/button.js +101 -11
- package/lib/checkbox-group.js +181 -79
- package/lib/data-table-form.js +100 -14
- package/lib/data-table.js +156 -58
- package/lib/date-picker.js +100 -10
- package/lib/dialog.js +110 -24
- package/lib/eoss-ui.common.js +945 -669
- package/lib/flow-group.js +100 -10
- package/lib/flow-list.js +119 -19
- package/lib/flow.js +105 -19
- package/lib/form.js +665 -417
- package/lib/handle-user.js +125 -35
- package/lib/handler.js +100 -10
- package/lib/icons.js +2 -2
- package/lib/index.js +1 -1
- package/lib/input-number.js +101 -11
- package/lib/input.js +103 -13
- package/lib/layout.js +2 -2
- package/lib/login.js +106 -19
- package/lib/main.js +201 -123
- package/lib/nav.js +100 -10
- package/lib/page.js +100 -10
- package/lib/player.js +102 -12
- package/lib/qr-code.js +100 -10
- package/lib/radio-group.js +129 -37
- package/lib/retrial-auth.js +100 -10
- package/lib/select-ganged.js +101 -11
- package/lib/select.js +125 -35
- package/lib/selector-panel.js +154 -57
- package/lib/selector.js +100 -10
- package/lib/sizer.js +103 -13
- package/lib/steps.js +100 -10
- package/lib/switch.js +101 -11
- package/lib/table-form.js +165 -59
- package/lib/tabs.js +100 -10
- package/lib/tips.js +100 -10
- package/lib/tree-group.js +100 -10
- package/lib/tree.js +100 -10
- package/lib/upload.js +189 -92
- package/lib/utils/util.js +80 -2
- package/lib/wujie.js +100 -10
- package/lib/wxlogin.js +100 -10
- package/package.json +1 -1
- package/packages/button/src/main.vue +1 -10
- package/packages/data-table/src/column.vue +6 -0
- package/packages/flow-list/src/main.vue +4 -3
- package/packages/form/src/main.vue +60 -1
- package/packages/form/src/table.vue +6 -0
- package/packages/login/src/main.vue +1 -0
- package/packages/main/src/main.vue +106 -97
- package/packages/radio-group/src/main.vue +1 -0
- package/packages/theme-chalk/lib/base.css +1 -0
- package/packages/theme-chalk/lib/button-group.css +1 -0
- package/packages/theme-chalk/lib/button.css +0 -0
- package/packages/theme-chalk/lib/card.css +1 -0
- package/packages/theme-chalk/lib/cascader.css +0 -0
- package/packages/theme-chalk/lib/checkbox-group.css +1 -0
- package/packages/theme-chalk/lib/clients.css +1 -0
- package/packages/theme-chalk/lib/data-table-form.css +1 -0
- package/packages/theme-chalk/lib/data-table.css +1 -0
- package/packages/theme-chalk/lib/date-picker.css +1 -0
- package/packages/theme-chalk/lib/dialog.css +1 -0
- package/packages/theme-chalk/lib/enterprise.css +1 -0
- package/packages/theme-chalk/lib/error-page.css +1 -0
- package/packages/theme-chalk/lib/flow-chart.css +0 -0
- package/packages/theme-chalk/lib/flow-group.css +1 -0
- package/packages/theme-chalk/lib/flow-list.css +1 -0
- package/packages/theme-chalk/lib/flow.css +1 -0
- package/packages/theme-chalk/lib/fonts/iconfont.ttf +0 -0
- package/packages/theme-chalk/lib/fonts/iconfont.woff +0 -0
- package/packages/theme-chalk/lib/form.css +1 -0
- package/packages/theme-chalk/lib/handle-user.css +1 -0
- package/packages/theme-chalk/lib/handler.css +1 -0
- package/packages/theme-chalk/lib/icon.css +1 -0
- package/packages/theme-chalk/lib/icons.css +1 -0
- package/packages/theme-chalk/lib/index.css +1 -0
- package/packages/theme-chalk/lib/input-number.css +0 -0
- package/packages/theme-chalk/lib/input.css +1 -0
- package/packages/theme-chalk/lib/label.css +1 -0
- package/packages/theme-chalk/lib/layout.css +1 -0
- package/packages/theme-chalk/lib/login.css +1 -0
- package/packages/theme-chalk/lib/main.css +1 -0
- package/packages/theme-chalk/lib/mainComp.css +0 -0
- package/packages/theme-chalk/lib/menu.css +1 -0
- package/packages/theme-chalk/lib/nav.css +1 -0
- package/packages/theme-chalk/lib/notify.css +0 -0
- package/packages/theme-chalk/lib/page.css +1 -0
- package/packages/theme-chalk/lib/pagination.css +1 -0
- package/packages/theme-chalk/lib/player.css +1 -0
- package/packages/theme-chalk/lib/qr-code.css +1 -0
- package/packages/theme-chalk/lib/radio-group.css +1 -0
- package/packages/theme-chalk/lib/retrial-auth.css +1 -0
- package/packages/theme-chalk/lib/select-ganged.css +1 -0
- package/packages/theme-chalk/lib/select.css +0 -0
- package/packages/theme-chalk/lib/selector-panel.css +1 -0
- package/packages/theme-chalk/lib/selector.css +1 -0
- package/packages/theme-chalk/lib/sizer.css +1 -0
- package/packages/theme-chalk/lib/steps.css +1 -0
- package/packages/theme-chalk/lib/switch.css +1 -0
- package/packages/theme-chalk/lib/table-form.css +0 -0
- package/packages/theme-chalk/lib/tabs-panel.css +0 -0
- package/packages/theme-chalk/lib/tabs.css +1 -0
- package/packages/theme-chalk/lib/tips.css +1 -0
- package/packages/theme-chalk/lib/toolbar.css +1 -0
- package/packages/theme-chalk/lib/tree-group.css +1 -0
- package/packages/theme-chalk/lib/tree.css +1 -0
- package/packages/theme-chalk/lib/upload.css +1 -0
- package/packages/theme-chalk/lib/wujie.css +0 -0
- package/packages/theme-chalk/lib/wxlogin.css +1 -0
- package/packages/upload/src/main.vue +0 -1
- package/src/index.js +1 -1
- package/src/utils/util.js +77 -3
- package/packages/theme-chalk/gulpfile.js +0 -25
package/lib/main.js
CHANGED
|
@@ -97,8 +97,14 @@ module.exports =
|
|
|
97
97
|
/* harmony import */ var qs__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(qs__WEBPACK_IMPORTED_MODULE_2__);
|
|
98
98
|
/* harmony import */ var json_bigint__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(6);
|
|
99
99
|
/* harmony import */ var json_bigint__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(json_bigint__WEBPACK_IMPORTED_MODULE_3__);
|
|
100
|
-
/* harmony import */ var
|
|
101
|
-
/* harmony import */ var
|
|
100
|
+
/* harmony import */ var sockjs_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(7);
|
|
101
|
+
/* harmony import */ var sockjs_client__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(sockjs_client__WEBPACK_IMPORTED_MODULE_4__);
|
|
102
|
+
/* harmony import */ var stompjs__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(8);
|
|
103
|
+
/* harmony import */ var stompjs__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(stompjs__WEBPACK_IMPORTED_MODULE_5__);
|
|
104
|
+
/* harmony import */ var eoss_element__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(2);
|
|
105
|
+
/* harmony import */ var eoss_element__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(eoss_element__WEBPACK_IMPORTED_MODULE_6__);
|
|
106
|
+
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
|
|
107
|
+
|
|
102
108
|
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
|
|
103
109
|
|
|
104
110
|
/**
|
|
@@ -109,7 +115,9 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
|
|
|
109
115
|
**/
|
|
110
116
|
|
|
111
117
|
/* eslint-disable indent */
|
|
112
|
-
var sm2 = __webpack_require__(
|
|
118
|
+
var sm2 = __webpack_require__(9).sm2;
|
|
119
|
+
|
|
120
|
+
|
|
113
121
|
|
|
114
122
|
|
|
115
123
|
|
|
@@ -256,7 +264,7 @@ var ajax = function ajax(_ref) {
|
|
|
256
264
|
clearTimeout(loginMsg);
|
|
257
265
|
loginMsg = setTimeout(function () {
|
|
258
266
|
sessionStorage.setItem('remind', 1);
|
|
259
|
-
|
|
267
|
+
eoss_element__WEBPACK_IMPORTED_MODULE_6__["MessageBox"].confirm(response.data.rCode === 69 ? '该账号在其他地方已登陆!' : '登录已过期,请重新登录!', '提示', response.data.rCode === 69 ? {
|
|
260
268
|
confirmButtonText: '确定',
|
|
261
269
|
closeOnClickModal: false,
|
|
262
270
|
type: 'warning'
|
|
@@ -303,7 +311,7 @@ var ajax = function ajax(_ref) {
|
|
|
303
311
|
} else if (response.data.rCode === 61) {
|
|
304
312
|
clearTimeout(initAuth);
|
|
305
313
|
initAuth = setTimeout(function () {
|
|
306
|
-
Object(
|
|
314
|
+
Object(eoss_element__WEBPACK_IMPORTED_MODULE_6__["MessageBox"])({
|
|
307
315
|
title: '请进行二次鉴权',
|
|
308
316
|
closeOnClickModal: false,
|
|
309
317
|
closeOnPressEscape: false,
|
|
@@ -1752,7 +1760,7 @@ var getWeekday = function getWeekday(date) {
|
|
|
1752
1760
|
* @param {String} [url] - url地址
|
|
1753
1761
|
**/
|
|
1754
1762
|
|
|
1755
|
-
var handlerUrl = function handlerUrl(url, before) {
|
|
1763
|
+
var handlerUrl = function handlerUrl(url, param, before) {
|
|
1756
1764
|
var arry = url.split('?');
|
|
1757
1765
|
if (arry.length > 2) {
|
|
1758
1766
|
var ary = arry.splice(1, arry.length);
|
|
@@ -1774,6 +1782,10 @@ var handlerUrl = function handlerUrl(url, before) {
|
|
|
1774
1782
|
} else {
|
|
1775
1783
|
url += '?_tt=' + new Date().getTime();
|
|
1776
1784
|
}
|
|
1785
|
+
if (param) {
|
|
1786
|
+
var str = queryParams(param);
|
|
1787
|
+
url += '&' + str;
|
|
1788
|
+
}
|
|
1777
1789
|
if (before && before === arry[0]) {
|
|
1778
1790
|
var pathname = win.location.pathname;
|
|
1779
1791
|
if (pathname === '/') {
|
|
@@ -2015,7 +2027,7 @@ var isLogined = function isLogined(_ref8) {
|
|
|
2015
2027
|
}
|
|
2016
2028
|
break;
|
|
2017
2029
|
case 4:
|
|
2018
|
-
|
|
2030
|
+
eoss_element__WEBPACK_IMPORTED_MODULE_6__["MessageBox"].alert(results.msg ? results.msg : '账号未绑定,账号密码登录后自动绑定!', '提示', {
|
|
2019
2031
|
confirmButtonText: '确定',
|
|
2020
2032
|
type: 'error',
|
|
2021
2033
|
callback: function callback() {
|
|
@@ -2035,7 +2047,7 @@ var isLogined = function isLogined(_ref8) {
|
|
|
2035
2047
|
default:
|
|
2036
2048
|
}
|
|
2037
2049
|
} else {
|
|
2038
|
-
|
|
2050
|
+
eoss_element__WEBPACK_IMPORTED_MODULE_6__["MessageBox"].alert(res.msg, '提示', {
|
|
2039
2051
|
confirmButtonText: '确定',
|
|
2040
2052
|
type: 'error',
|
|
2041
2053
|
callback: function callback() {
|
|
@@ -2166,7 +2178,7 @@ var loadJs = function loadJs(_ref10) {
|
|
|
2166
2178
|
**/
|
|
2167
2179
|
var loading = function loading($loading, res) {
|
|
2168
2180
|
if (!$loading) {
|
|
2169
|
-
$loading =
|
|
2181
|
+
$loading = eoss_element__WEBPACK_IMPORTED_MODULE_6__["Loading"].service;
|
|
2170
2182
|
}
|
|
2171
2183
|
if (isObject(res)) {
|
|
2172
2184
|
var config = extend({}, {
|
|
@@ -2525,6 +2537,70 @@ var setStorage = function setStorage(_ref14) {
|
|
|
2525
2537
|
}
|
|
2526
2538
|
};
|
|
2527
2539
|
|
|
2540
|
+
/**
|
|
2541
|
+
* socket
|
|
2542
|
+
* @desc:webSocket
|
|
2543
|
+
* @author huangbo
|
|
2544
|
+
* @date 2022年5月7日
|
|
2545
|
+
* @param {String} [url] - 连接地址
|
|
2546
|
+
* @param {String} [take] - 订阅地址
|
|
2547
|
+
* @param {String} [debug] - 调试
|
|
2548
|
+
* @param {String} [interval] - 重连间隔时间
|
|
2549
|
+
**/
|
|
2550
|
+
function socket(options) {
|
|
2551
|
+
var nextDate = 0;
|
|
2552
|
+
var connect = 1;
|
|
2553
|
+
return new Promise(function (resolve, reject) {
|
|
2554
|
+
var wshost = getStorage('wshost') || '';
|
|
2555
|
+
var option = {
|
|
2556
|
+
url: wshost + _config_api__WEBPACK_IMPORTED_MODULE_0__[/* wss */ "Zb"],
|
|
2557
|
+
take: _config_api__WEBPACK_IMPORTED_MODULE_0__[/* topic */ "Qb"],
|
|
2558
|
+
debug: true,
|
|
2559
|
+
interval: 20
|
|
2560
|
+
};
|
|
2561
|
+
var websocket = win.websocket || {};
|
|
2562
|
+
if (options && isObject(options)) {
|
|
2563
|
+
option = _extends({}, option, options);
|
|
2564
|
+
}
|
|
2565
|
+
var key = window.btoa(option.url);
|
|
2566
|
+
if (!websocket[key]) {
|
|
2567
|
+
websocket[key] = { socket: new sockjs_client__WEBPACK_IMPORTED_MODULE_4___default.a(option.url) };
|
|
2568
|
+
win.websocket = websocket;
|
|
2569
|
+
}
|
|
2570
|
+
|
|
2571
|
+
var client = websocket[key] ? websocket[key].client : null;
|
|
2572
|
+
if (!client) {
|
|
2573
|
+
client = websocket[key].client = stompjs__WEBPACK_IMPORTED_MODULE_5___default.a.over(websocket[key].socket);
|
|
2574
|
+
!option.debug && (client.debug = null);
|
|
2575
|
+
}
|
|
2576
|
+
client.connect({}, function () {
|
|
2577
|
+
client.subscribe(option.take, function (response) {
|
|
2578
|
+
var res = JSON.parse(response.body);
|
|
2579
|
+
resolve(res, function () {
|
|
2580
|
+
client.disconnect();
|
|
2581
|
+
win.top.websocket && win.top.websocket[key] && delete win.top.websocket[key];
|
|
2582
|
+
}, client, websocket[key]);
|
|
2583
|
+
});
|
|
2584
|
+
}, function (error) {
|
|
2585
|
+
var diffSecond = parseInt((new Date() - nextDate) / 1000, 10);
|
|
2586
|
+
if (connect > 5 && diffSecond < option.interval) {
|
|
2587
|
+
client.disconnect();
|
|
2588
|
+
if (win.top.websocket) {
|
|
2589
|
+
if (Object.keys(win.top.websocket).length > 1) {
|
|
2590
|
+
delete win.top.websocket[key];
|
|
2591
|
+
} else {
|
|
2592
|
+
delete win.top.websocket;
|
|
2593
|
+
}
|
|
2594
|
+
}
|
|
2595
|
+
} else {
|
|
2596
|
+
win.top.websocket && win.top.websocket[key] && setTimeout(function () {
|
|
2597
|
+
socket(options);
|
|
2598
|
+
}, 5000);
|
|
2599
|
+
}
|
|
2600
|
+
reject(error);
|
|
2601
|
+
});
|
|
2602
|
+
});
|
|
2603
|
+
}
|
|
2528
2604
|
/**
|
|
2529
2605
|
* sum
|
|
2530
2606
|
* @desc 求和
|
|
@@ -2777,7 +2853,6 @@ var urlJoinParams = function urlJoinParams(_ref15) {
|
|
|
2777
2853
|
params[items[0]] = items[1];
|
|
2778
2854
|
});
|
|
2779
2855
|
}
|
|
2780
|
-
'&_tt=' + new Date().getTime();
|
|
2781
2856
|
params = extend(true, params, param);
|
|
2782
2857
|
var str = queryParams(params);
|
|
2783
2858
|
if (str) {
|
|
@@ -2945,6 +3020,7 @@ var watermark = function watermark(option) {
|
|
|
2945
3020
|
sendMessage: sendMessage,
|
|
2946
3021
|
setFavicon: setFavicon,
|
|
2947
3022
|
setStorage: setStorage,
|
|
3023
|
+
socket: socket,
|
|
2948
3024
|
startWith: startWith,
|
|
2949
3025
|
sum: sum,
|
|
2950
3026
|
takeLeft: takeLeft,
|
|
@@ -3433,10 +3509,22 @@ module.exports = require("json-bigint");
|
|
|
3433
3509
|
/* 7 */
|
|
3434
3510
|
/***/ (function(module, exports) {
|
|
3435
3511
|
|
|
3436
|
-
module.exports = require("
|
|
3512
|
+
module.exports = require("sockjs-client");
|
|
3437
3513
|
|
|
3438
3514
|
/***/ }),
|
|
3439
3515
|
/* 8 */
|
|
3516
|
+
/***/ (function(module, exports) {
|
|
3517
|
+
|
|
3518
|
+
module.exports = require("stompjs");
|
|
3519
|
+
|
|
3520
|
+
/***/ }),
|
|
3521
|
+
/* 9 */
|
|
3522
|
+
/***/ (function(module, exports) {
|
|
3523
|
+
|
|
3524
|
+
module.exports = require("sm-crypto");
|
|
3525
|
+
|
|
3526
|
+
/***/ }),
|
|
3527
|
+
/* 10 */
|
|
3440
3528
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
3441
3529
|
|
|
3442
3530
|
"use strict";
|
|
@@ -3463,36 +3551,24 @@ window.__store = store;
|
|
|
3463
3551
|
/* harmony default export */ __webpack_exports__["a"] = (store);
|
|
3464
3552
|
|
|
3465
3553
|
/***/ }),
|
|
3466
|
-
/*
|
|
3554
|
+
/* 11 */
|
|
3467
3555
|
/***/ (function(module, exports) {
|
|
3468
3556
|
|
|
3469
3557
|
module.exports = require("babel-runtime/regenerator");
|
|
3470
3558
|
|
|
3471
3559
|
/***/ }),
|
|
3472
|
-
/* 10 */,
|
|
3473
|
-
/* 11 */,
|
|
3474
3560
|
/* 12 */,
|
|
3475
3561
|
/* 13 */,
|
|
3476
3562
|
/* 14 */,
|
|
3477
3563
|
/* 15 */,
|
|
3478
3564
|
/* 16 */,
|
|
3479
3565
|
/* 17 */,
|
|
3480
|
-
/* 18
|
|
3481
|
-
|
|
3482
|
-
|
|
3483
|
-
module.exports = require("runtime-import");
|
|
3484
|
-
|
|
3485
|
-
/***/ }),
|
|
3486
|
-
/* 19 */
|
|
3487
|
-
/***/ (function(module, exports) {
|
|
3488
|
-
|
|
3489
|
-
module.exports = require("sockjs-client");
|
|
3490
|
-
|
|
3491
|
-
/***/ }),
|
|
3566
|
+
/* 18 */,
|
|
3567
|
+
/* 19 */,
|
|
3492
3568
|
/* 20 */
|
|
3493
3569
|
/***/ (function(module, exports) {
|
|
3494
3570
|
|
|
3495
|
-
module.exports = require("
|
|
3571
|
+
module.exports = require("runtime-import");
|
|
3496
3572
|
|
|
3497
3573
|
/***/ }),
|
|
3498
3574
|
/* 21 */,
|
|
@@ -3510,7 +3586,7 @@ module.exports = require("stompjs");
|
|
|
3510
3586
|
// ESM COMPAT FLAG
|
|
3511
3587
|
__webpack_require__.r(__webpack_exports__);
|
|
3512
3588
|
|
|
3513
|
-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/main.vue?vue&type=template&id=
|
|
3589
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/main.vue?vue&type=template&id=cef5b378&
|
|
3514
3590
|
var render = function () {
|
|
3515
3591
|
var _vm = this
|
|
3516
3592
|
var _h = _vm.$createElement
|
|
@@ -3940,10 +4016,10 @@ var staticRenderFns = []
|
|
|
3940
4016
|
render._withStripped = true
|
|
3941
4017
|
|
|
3942
4018
|
|
|
3943
|
-
// CONCATENATED MODULE: ./packages/main/src/main.vue?vue&type=template&id=
|
|
4019
|
+
// CONCATENATED MODULE: ./packages/main/src/main.vue?vue&type=template&id=cef5b378&
|
|
3944
4020
|
|
|
3945
4021
|
// EXTERNAL MODULE: external "babel-runtime/regenerator"
|
|
3946
|
-
var regenerator_ = __webpack_require__(
|
|
4022
|
+
var regenerator_ = __webpack_require__(11);
|
|
3947
4023
|
var regenerator_default = /*#__PURE__*/__webpack_require__.n(regenerator_);
|
|
3948
4024
|
|
|
3949
4025
|
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/userinfo.vue?vue&type=template&id=799780ee&
|
|
@@ -3973,7 +4049,7 @@ userinfovue_type_template_id_799780ee_render._withStripped = true
|
|
|
3973
4049
|
var api = __webpack_require__(1);
|
|
3974
4050
|
|
|
3975
4051
|
// EXTERNAL MODULE: ./src/utils/store.js
|
|
3976
|
-
var store = __webpack_require__(
|
|
4052
|
+
var store = __webpack_require__(10);
|
|
3977
4053
|
|
|
3978
4054
|
// EXTERNAL MODULE: ./src/utils/util.js
|
|
3979
4055
|
var util = __webpack_require__(0);
|
|
@@ -5590,7 +5666,7 @@ async_componentvue_type_template_id_51f0233c_scoped_true_render._withStripped =
|
|
|
5590
5666
|
// CONCATENATED MODULE: ./packages/main/src/async-component/index.vue?vue&type=template&id=51f0233c&scoped=true&
|
|
5591
5667
|
|
|
5592
5668
|
// EXTERNAL MODULE: external "runtime-import"
|
|
5593
|
-
var external_runtime_import_ = __webpack_require__(
|
|
5669
|
+
var external_runtime_import_ = __webpack_require__(20);
|
|
5594
5670
|
|
|
5595
5671
|
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/async-component/index.vue?vue&type=script&lang=js&
|
|
5596
5672
|
|
|
@@ -5741,14 +5817,6 @@ var async_component_component = Object(componentNormalizer["a" /* default */])(
|
|
|
5741
5817
|
)
|
|
5742
5818
|
|
|
5743
5819
|
/* harmony default export */ var async_component = (async_component_component.exports);
|
|
5744
|
-
// EXTERNAL MODULE: external "sockjs-client"
|
|
5745
|
-
var external_sockjs_client_ = __webpack_require__(19);
|
|
5746
|
-
var external_sockjs_client_default = /*#__PURE__*/__webpack_require__.n(external_sockjs_client_);
|
|
5747
|
-
|
|
5748
|
-
// EXTERNAL MODULE: external "stompjs"
|
|
5749
|
-
var external_stompjs_ = __webpack_require__(20);
|
|
5750
|
-
var external_stompjs_default = /*#__PURE__*/__webpack_require__.n(external_stompjs_);
|
|
5751
|
-
|
|
5752
5820
|
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/main.vue?vue&type=script&lang=js&
|
|
5753
5821
|
|
|
5754
5822
|
|
|
@@ -6013,13 +6081,17 @@ function mainvue_type_script_lang_js_asyncToGenerator(fn) { return function () {
|
|
|
6013
6081
|
|
|
6014
6082
|
|
|
6015
6083
|
|
|
6016
|
-
|
|
6017
|
-
|
|
6018
6084
|
var isIE = navigator.userAgent.indexOf('MSIE') != -1;
|
|
6019
6085
|
var log = util["a" /* default */].getParams('console');
|
|
6020
6086
|
/* harmony default export */ var mainvue_type_script_lang_js_ = ({
|
|
6021
6087
|
name: 'EsMain',
|
|
6022
6088
|
inheritAttrs: false,
|
|
6089
|
+
provide: function provide() {
|
|
6090
|
+
return {
|
|
6091
|
+
esMain: this
|
|
6092
|
+
};
|
|
6093
|
+
},
|
|
6094
|
+
|
|
6023
6095
|
components: {
|
|
6024
6096
|
userinfo: userinfo,
|
|
6025
6097
|
settings: settings,
|
|
@@ -6282,8 +6354,7 @@ var log = util["a" /* default */].getParams('console');
|
|
|
6282
6354
|
copyright: { comp: '', data: {} }
|
|
6283
6355
|
},
|
|
6284
6356
|
pageLoading: false,
|
|
6285
|
-
|
|
6286
|
-
websocket: null,
|
|
6357
|
+
close: null,
|
|
6287
6358
|
connect: 0,
|
|
6288
6359
|
wjName: 'singlespa',
|
|
6289
6360
|
menus: '',
|
|
@@ -6366,9 +6437,6 @@ var log = util["a" /* default */].getParams('console');
|
|
|
6366
6437
|
},
|
|
6367
6438
|
created: function created() {
|
|
6368
6439
|
var params = util["a" /* default */].getParams() || {};
|
|
6369
|
-
if (Object.prototype.hasOwnProperty.call(params, 'history')) {
|
|
6370
|
-
this.history = params.history == true || params.history == 'true' || params.history == 1;
|
|
6371
|
-
}
|
|
6372
6440
|
this.homePage = typeof this.loadHomePage === 'string' ? this.loadHomePage : '';
|
|
6373
6441
|
this.isHeader = params.header;
|
|
6374
6442
|
var sysLogoIco = sessionStorage.getItem('sysLogoIco');
|
|
@@ -6635,7 +6703,7 @@ var log = util["a" /* default */].getParams('console');
|
|
|
6635
6703
|
this.navIds = ids;
|
|
6636
6704
|
this.setTitle(ids[0]);
|
|
6637
6705
|
}
|
|
6638
|
-
} else if (sessionStorage.getItem('jump') && this.
|
|
6706
|
+
} else if (sessionStorage.getItem('jump') && this.isHistory) {
|
|
6639
6707
|
var _ids = this.getId(this.menus, sessionStorage.getItem('jump'), true);
|
|
6640
6708
|
if (_ids) {
|
|
6641
6709
|
this.defaultActive = _ids;
|
|
@@ -6654,7 +6722,7 @@ var log = util["a" /* default */].getParams('console');
|
|
|
6654
6722
|
this.navIds = _ids2;
|
|
6655
6723
|
this.setTitle(_ids2[0]);
|
|
6656
6724
|
}
|
|
6657
|
-
} else if (sessionStorage.getItem('jump') && this.
|
|
6725
|
+
} else if (sessionStorage.getItem('jump') && this.isHistory) {
|
|
6658
6726
|
var _ids3 = this.getId(this.menus, sessionStorage.getItem('jump'), true);
|
|
6659
6727
|
if (_ids3) {
|
|
6660
6728
|
this.defaultActive = _ids3;
|
|
@@ -6729,18 +6797,28 @@ var log = util["a" /* default */].getParams('console');
|
|
|
6729
6797
|
this.results[i] = results[i].split(',');
|
|
6730
6798
|
}
|
|
6731
6799
|
if (i === 'indexUrl' && this.loadHomePage) {
|
|
6732
|
-
|
|
6733
|
-
|
|
6734
|
-
|
|
6735
|
-
|
|
6736
|
-
|
|
6737
|
-
|
|
6738
|
-
|
|
6739
|
-
|
|
6740
|
-
|
|
6800
|
+
var applicationid = util["a" /* default */].getParams('applicationid') || util["a" /* default */].getParams('applicationId');
|
|
6801
|
+
var hash = util["a" /* default */].win.location.hash;
|
|
6802
|
+
if (hash) {
|
|
6803
|
+
hash = hash.split('?')[0];
|
|
6804
|
+
}
|
|
6805
|
+
var jump = sessionStorage.getItem('jump');
|
|
6806
|
+
if (!applicationid && (!jump || !this.isHistory) && hash === '#/' && hash === '#/main') {
|
|
6807
|
+
this.homePage = typeof this.loadHomePage === 'string' ? this.loadHomePage : results[i];
|
|
6808
|
+
if (this.isHomePage && this.homePage) {
|
|
6809
|
+
if (this.menus && this.menus.length) {
|
|
6810
|
+
var ids = null;
|
|
6811
|
+
this.homePage && (ids = this.getId(this.menus, this.homePage));
|
|
6812
|
+
if (ids) {
|
|
6813
|
+
this.defaultActive = ids;
|
|
6814
|
+
} else if (this.homePage) {
|
|
6815
|
+
this.handleJump(this.homePage);
|
|
6816
|
+
}
|
|
6817
|
+
this.setMenu(this.menus);
|
|
6741
6818
|
}
|
|
6742
|
-
this.setMenu(this.menus);
|
|
6743
6819
|
}
|
|
6820
|
+
} else if (this.menus && this.menus.length) {
|
|
6821
|
+
this.setMenu(this.menus);
|
|
6744
6822
|
}
|
|
6745
6823
|
}
|
|
6746
6824
|
if (i === 'doorIndex' && results[i]) {
|
|
@@ -6825,22 +6903,26 @@ var log = util["a" /* default */].getParams('console');
|
|
|
6825
6903
|
}
|
|
6826
6904
|
});
|
|
6827
6905
|
},
|
|
6828
|
-
jumpMenu: function jumpMenu(res, flag) {
|
|
6906
|
+
jumpMenu: function jumpMenu(res, flag, param) {
|
|
6907
|
+
var option = { url: res, flag: flag, param: param };
|
|
6908
|
+
if (util["a" /* default */].isObject(res)) {
|
|
6909
|
+
option = _extends({}, option, res);
|
|
6910
|
+
}
|
|
6829
6911
|
var ids = void 0;
|
|
6830
|
-
if (typeof
|
|
6831
|
-
if (flag) {
|
|
6832
|
-
ids = this.getId(this.menus,
|
|
6912
|
+
if (typeof option.url === 'string') {
|
|
6913
|
+
if (option.flag) {
|
|
6914
|
+
ids = this.getId(this.menus, option.url, true);
|
|
6833
6915
|
if (!ids) {
|
|
6834
6916
|
this.$message.error('未在菜单栏中找到此地址');
|
|
6835
6917
|
return;
|
|
6836
6918
|
}
|
|
6837
6919
|
} else {
|
|
6838
|
-
ids =
|
|
6920
|
+
ids = option.url.split(',');
|
|
6839
6921
|
}
|
|
6840
6922
|
} else {
|
|
6841
|
-
ids =
|
|
6923
|
+
ids = option.url;
|
|
6842
6924
|
}
|
|
6843
|
-
this.setDefault(this.menus, ids);
|
|
6925
|
+
this.setDefault(this.menus, ids, option.param);
|
|
6844
6926
|
},
|
|
6845
6927
|
getId: function getId(arry, res, path) {
|
|
6846
6928
|
if (!res) {
|
|
@@ -6902,7 +6984,7 @@ var log = util["a" /* default */].getParams('console');
|
|
|
6902
6984
|
if (ids) {
|
|
6903
6985
|
_this6.defaultActive = ids;
|
|
6904
6986
|
}
|
|
6905
|
-
} else if (sessionStorage.getItem('jump') && _this6.
|
|
6987
|
+
} else if (sessionStorage.getItem('jump') && _this6.isHistory) {
|
|
6906
6988
|
var _ids4 = _this6.getId(_this6.menus, sessionStorage.getItem('jump'), true);
|
|
6907
6989
|
if (_ids4) {
|
|
6908
6990
|
_this6.defaultActive = _ids4;
|
|
@@ -6921,7 +7003,7 @@ var log = util["a" /* default */].getParams('console');
|
|
|
6921
7003
|
_this6.navIds = _ids5;
|
|
6922
7004
|
_this6.setTitle(_ids5[0]);
|
|
6923
7005
|
}
|
|
6924
|
-
} else if (sessionStorage.getItem('jump') && _this6.
|
|
7006
|
+
} else if (sessionStorage.getItem('jump') && _this6.isHistory) {
|
|
6925
7007
|
var _ids6 = _this6.getId(_this6.menus, sessionStorage.getItem('jump'), true);
|
|
6926
7008
|
if (_ids6) {
|
|
6927
7009
|
_this6.defaultActive = _ids6;
|
|
@@ -7107,12 +7189,12 @@ var log = util["a" /* default */].getParams('console');
|
|
|
7107
7189
|
},
|
|
7108
7190
|
|
|
7109
7191
|
//设置默认导航页面
|
|
7110
|
-
setDefault: function setDefault(res, active) {
|
|
7192
|
+
setDefault: function setDefault(res, active, param) {
|
|
7111
7193
|
this.navIds = JSON.parse(JSON.stringify(active));
|
|
7112
7194
|
this.sysId = '';
|
|
7113
7195
|
this.tabsId = '';
|
|
7114
7196
|
this.active = '';
|
|
7115
|
-
this.getUrl(res, active);
|
|
7197
|
+
this.getUrl(res, active, param);
|
|
7116
7198
|
if (this.layout === 'subsystem' || this.layout === 'subSystem' || this.layout === 'topnav' || this.layout === 'topNav' || this.layout === 'topside' || this.layout === 'topSide') {
|
|
7117
7199
|
if (this.layout === 'subsystem' || this.layout === 'subSystem') {
|
|
7118
7200
|
this.navs = [];
|
|
@@ -7161,18 +7243,18 @@ var log = util["a" /* default */].getParams('console');
|
|
|
7161
7243
|
},
|
|
7162
7244
|
|
|
7163
7245
|
//获取页面类型及地址
|
|
7164
|
-
getUrl: function getUrl(res, active, index) {
|
|
7246
|
+
getUrl: function getUrl(res, active, index, param) {
|
|
7165
7247
|
index = index === undefined ? 0 : index;
|
|
7166
7248
|
for (var i = 0; i < res.length; i++) {
|
|
7167
7249
|
var item = res[i];
|
|
7168
7250
|
if (item.id === active[index]) {
|
|
7169
7251
|
if (index === active.length - 1) {
|
|
7170
|
-
this.handleJump(item.url, item.urlopenmode, item);
|
|
7252
|
+
this.handleJump(item.url, item.urlopenmode, item, param);
|
|
7171
7253
|
return item.url;
|
|
7172
7254
|
} else {
|
|
7173
7255
|
if (item.children && item.children.length) {
|
|
7174
7256
|
index++;
|
|
7175
|
-
var _url4 = this.getUrl(item.children, active, index);
|
|
7257
|
+
var _url4 = this.getUrl(item.children, active, index, param);
|
|
7176
7258
|
if (_url4 && index === active.length - 1) {
|
|
7177
7259
|
this.tabs = '';
|
|
7178
7260
|
}
|
|
@@ -7180,7 +7262,7 @@ var log = util["a" /* default */].getParams('console');
|
|
|
7180
7262
|
}
|
|
7181
7263
|
if (item.fourthTabs && item.fourthTabs.length) {
|
|
7182
7264
|
index++;
|
|
7183
|
-
var _url5 = this.getUrl(item.fourthTabs, active, index);
|
|
7265
|
+
var _url5 = this.getUrl(item.fourthTabs, active, index, param);
|
|
7184
7266
|
if (_url5) {
|
|
7185
7267
|
this.$set(this, 'tabs', item.fourthTabs);
|
|
7186
7268
|
}
|
|
@@ -7188,7 +7270,7 @@ var log = util["a" /* default */].getParams('console');
|
|
|
7188
7270
|
}
|
|
7189
7271
|
}
|
|
7190
7272
|
} else if (item.children && item.children.length) {
|
|
7191
|
-
this.getUrl(item.children, active, index);
|
|
7273
|
+
this.getUrl(item.children, active, index, param);
|
|
7192
7274
|
}
|
|
7193
7275
|
}
|
|
7194
7276
|
return false;
|
|
@@ -7444,9 +7526,10 @@ var log = util["a" /* default */].getParams('console');
|
|
|
7444
7526
|
},
|
|
7445
7527
|
|
|
7446
7528
|
//跳转页面
|
|
7447
|
-
handleJump: function handleJump(page, type, res) {
|
|
7529
|
+
handleJump: function handleJump(page, type, res, param) {
|
|
7448
7530
|
var _this10 = this;
|
|
7449
7531
|
|
|
7532
|
+
console.log(page);
|
|
7450
7533
|
var prevPage = sessionStorage.getItem('jump');
|
|
7451
7534
|
sessionStorage.setItem('jump', page);
|
|
7452
7535
|
if (res) {
|
|
@@ -7467,7 +7550,7 @@ var log = util["a" /* default */].getParams('console');
|
|
|
7467
7550
|
} else if (type == 3) {
|
|
7468
7551
|
this.method = 'iframe';
|
|
7469
7552
|
this.refresh = false;
|
|
7470
|
-
this.page = util["a" /* default */].handlerUrl(page);
|
|
7553
|
+
this.page = util["a" /* default */].handlerUrl(page, param);
|
|
7471
7554
|
} else if (page) {
|
|
7472
7555
|
var urls = page.split('?');
|
|
7473
7556
|
if (urls[0].indexOf('.js') > 1) {
|
|
@@ -7480,12 +7563,12 @@ var log = util["a" /* default */].getParams('console');
|
|
|
7480
7563
|
} else if (urls[0].indexOf('.dhtml') > 0 || urls[0].indexOf('.html') > 0 && urls[0].indexOf('.html#') === -1) {
|
|
7481
7564
|
this.method = 'iframe';
|
|
7482
7565
|
this.refresh = false;
|
|
7483
|
-
this.page = util["a" /* default */].handlerUrl(page);
|
|
7566
|
+
this.page = util["a" /* default */].handlerUrl(page, param);
|
|
7484
7567
|
} else {
|
|
7485
7568
|
if (urls[0].indexOf('.html') === -1 && urls[0].indexOf('#/') === -1) {
|
|
7486
7569
|
this.method = 'iframe';
|
|
7487
7570
|
this.refresh = false;
|
|
7488
|
-
this.page = util["a" /* default */].handlerUrl(page);
|
|
7571
|
+
this.page = util["a" /* default */].handlerUrl(page, param);
|
|
7489
7572
|
} else {
|
|
7490
7573
|
this.method = 'router';
|
|
7491
7574
|
var routes = this.$router.options.routes;
|
|
@@ -7493,6 +7576,9 @@ var log = util["a" /* default */].getParams('console');
|
|
|
7493
7576
|
var path = this.hasRouter(routes, urls[0]);
|
|
7494
7577
|
if (path) {
|
|
7495
7578
|
var params = util["a" /* default */].getParams({ url: page });
|
|
7579
|
+
if (param) {
|
|
7580
|
+
params = _extends({}, params, param);
|
|
7581
|
+
}
|
|
7496
7582
|
if (res) {
|
|
7497
7583
|
this.routerKey = res.id;
|
|
7498
7584
|
if (Object.prototype.hasOwnProperty.call(res, 'keepAlive')) {
|
|
@@ -7514,7 +7600,7 @@ var log = util["a" /* default */].getParams('console');
|
|
|
7514
7600
|
if (this.loadWujie === false || this.downgrade && isIE || urlopenmode == 3) {
|
|
7515
7601
|
this.method = 'iframe';
|
|
7516
7602
|
this.refresh = false;
|
|
7517
|
-
this.page = util["a" /* default */].handlerUrl(page);
|
|
7603
|
+
this.page = util["a" /* default */].handlerUrl(page, param);
|
|
7518
7604
|
} else {
|
|
7519
7605
|
this.method = 'wujie';
|
|
7520
7606
|
this.wjName = res && res.appCode ? res.appCode : 'application';
|
|
@@ -7660,52 +7746,44 @@ var log = util["a" /* default */].getParams('console');
|
|
|
7660
7746
|
|
|
7661
7747
|
//开启weosocket
|
|
7662
7748
|
initWebSocket: function initWebSocket() {
|
|
7663
|
-
//初始化weosocket
|
|
7664
|
-
if (!this.websocket) {
|
|
7665
|
-
var _url6 = (util["a" /* default */].getStorage('wshost') || '') + api["Zb" /* wss */];
|
|
7666
|
-
this.websocket = new external_sockjs_client_default.a(_url6);
|
|
7667
|
-
}
|
|
7668
|
-
this.client = external_stompjs_default.a.over(this.websocket);
|
|
7669
|
-
if (!this.isConsole && this.client) {
|
|
7670
|
-
this.client.debug = null;
|
|
7671
|
-
}
|
|
7672
|
-
this.handleConnect(this.client);
|
|
7673
|
-
},
|
|
7674
|
-
handleConnect: function handleConnect(client) {
|
|
7675
7749
|
var _this12 = this;
|
|
7676
7750
|
|
|
7677
|
-
|
|
7678
|
-
|
|
7679
|
-
|
|
7680
|
-
|
|
7681
|
-
|
|
7682
|
-
|
|
7683
|
-
|
|
7684
|
-
|
|
7685
|
-
|
|
7686
|
-
|
|
7687
|
-
|
|
7688
|
-
|
|
7689
|
-
_this12.notice = data[i];
|
|
7690
|
-
if (_this12.showMsg) {
|
|
7691
|
-
_this12.$refs.message.getMsg(true);
|
|
7692
|
-
}
|
|
7693
|
-
}
|
|
7694
|
-
if (i === 'menuTipsMap') {
|
|
7695
|
-
_this12.menuTips = data[i];
|
|
7696
|
-
}
|
|
7697
|
-
if (i === 'sysMsgList') {
|
|
7698
|
-
_this12.sysMsg = data[i];
|
|
7699
|
-
}
|
|
7700
|
-
if (i === 'extraData') {
|
|
7701
|
-
_this12.extraData = data[i];
|
|
7751
|
+
util["a" /* default */].socket().then(function (res, close) {
|
|
7752
|
+
_this12.close = close;
|
|
7753
|
+
var data = res.data;
|
|
7754
|
+
for (var i in data) {
|
|
7755
|
+
if (data[i] !== null && data[i] !== undefined) {
|
|
7756
|
+
if (i === 'onlineUserNums' && data[i] > 0) {
|
|
7757
|
+
_this12.online = data[i];
|
|
7758
|
+
}
|
|
7759
|
+
if (i === 'sysMsgNums') {
|
|
7760
|
+
_this12.notice = data[i];
|
|
7761
|
+
if (_this12.showMsg) {
|
|
7762
|
+
_this12.$refs.message.getMsg(true);
|
|
7702
7763
|
}
|
|
7703
7764
|
}
|
|
7765
|
+
if (i === 'menuTipsMap') {
|
|
7766
|
+
_this12.menuTips = data[i];
|
|
7767
|
+
}
|
|
7768
|
+
if (i === 'sysMsgList') {
|
|
7769
|
+
_this12.sysMsg = data[i];
|
|
7770
|
+
}
|
|
7771
|
+
if (i === 'extraData') {
|
|
7772
|
+
_this12.extraData = data[i];
|
|
7773
|
+
}
|
|
7704
7774
|
}
|
|
7705
|
-
}
|
|
7706
|
-
|
|
7707
|
-
|
|
7708
|
-
|
|
7775
|
+
}
|
|
7776
|
+
if (_this12.$store) {
|
|
7777
|
+
_this12.$store.commit('websocket', data);
|
|
7778
|
+
}
|
|
7779
|
+
if (_this12.$eventBus) {
|
|
7780
|
+
_this12.$eventBus.$emit('websocket', data);
|
|
7781
|
+
}
|
|
7782
|
+
if (util["a" /* default */].win.eventBus) {
|
|
7783
|
+
util["a" /* default */].win.eventBus.$emit('websocket', data);
|
|
7784
|
+
}
|
|
7785
|
+
}).catch(function (err) {
|
|
7786
|
+
console.log(err);
|
|
7709
7787
|
});
|
|
7710
7788
|
},
|
|
7711
7789
|
handleOpened: function handleOpened(res) {
|
|
@@ -7825,8 +7903,8 @@ var log = util["a" /* default */].getParams('console');
|
|
|
7825
7903
|
},
|
|
7826
7904
|
beforeDestroy: function beforeDestroy() {
|
|
7827
7905
|
this.timer = null;
|
|
7828
|
-
if (this.
|
|
7829
|
-
this.
|
|
7906
|
+
if (this.close) {
|
|
7907
|
+
this.close();
|
|
7830
7908
|
}
|
|
7831
7909
|
}
|
|
7832
7910
|
});
|