eoss-ui 0.5.80 → 0.5.81-beta1
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 +229 -215
- package/lib/button.js +21 -19
- package/lib/calendar.js +2 -2
- package/lib/card.js +2 -2
- package/lib/cascader.js +2 -2
- package/lib/checkbox-group.js +21 -20
- package/lib/clients.js +2 -2
- package/lib/config/api.js +1 -0
- package/lib/data-table-form.js +19 -17
- package/lib/data-table.js +27 -25
- package/lib/date-picker.js +21 -19
- package/lib/dialog.js +21 -20
- package/lib/enterprise.js +2 -2
- package/lib/eoss-ui.common.js +6159 -1106
- package/lib/error-page.js +2 -2
- package/lib/flow-group.js +21 -19
- package/lib/flow-list.js +21 -19
- package/lib/flow.js +24 -22
- package/lib/form.js +21 -20
- package/lib/handle-user.js +21 -19
- package/lib/handler.js +25 -23
- package/lib/icon.js +3745 -13
- package/lib/icons.js +3 -3
- package/lib/index.js +1 -1
- package/lib/input-number.js +21 -19
- package/lib/input.js +21 -19
- package/lib/label.js +2 -2
- package/lib/layout.js +2 -2
- package/lib/login.js +98 -55
- package/lib/main.js +5822 -835
- package/lib/menu.js +2 -2
- package/lib/nav.js +21 -19
- package/lib/notify.js +18 -16
- package/lib/page.js +21 -19
- package/lib/pagination.js +2 -2
- package/lib/player.js +25 -23
- package/lib/qr-code.js +23 -21
- package/lib/radio-group.js +21 -19
- package/lib/retrial-auth.js +22 -20
- package/lib/select-ganged.js +21 -19
- package/lib/select.js +21 -19
- package/lib/selector-panel.js +24 -23
- package/lib/selector.js +30 -28
- package/lib/sizer.js +21 -19
- package/lib/steps.js +21 -19
- package/lib/switch.js +28 -26
- package/lib/table-form.js +21 -19
- package/lib/tabs-panel.js +2 -2
- package/lib/tabs.js +21 -19
- package/lib/theme-chalk/base.css +1 -1
- package/lib/theme-chalk/data-table.css +1 -1
- package/lib/theme-chalk/fonts/iconfont.ttf +0 -0
- package/lib/theme-chalk/fonts/iconfont.woff +0 -0
- package/lib/theme-chalk/icon.css +1 -1
- 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/menu.css +1 -1
- package/lib/theme-chalk/simplicity.css +1 -0
- package/lib/theme-chalk/sizer.css +1 -1
- package/lib/theme-chalk/upload.css +1 -1
- package/lib/tips.js +22 -20
- package/lib/toolbar.js +2 -2
- package/lib/tree-group.js +21 -19
- package/lib/tree.js +21 -19
- package/lib/upload.js +39 -38
- package/lib/utils/util.js +1 -1
- package/lib/wujie.js +21 -19
- package/lib/wxlogin.js +164 -162
- package/package.json +2 -2
- package/packages/data-table/src/main.vue +1 -0
- package/packages/handler/src/main.vue +3 -1
- package/packages/icon/src/main.vue +42 -11
- package/packages/icons/src/icon.json +1 -1
- package/packages/login/src/main.vue +14 -6
- package/packages/main/src/default/index.vue +2121 -0
- package/packages/main/src/main.vue +31 -2214
- package/packages/main/src/simplicity/apps.vue +338 -0
- package/packages/main/src/simplicity/avatar.vue +68 -0
- package/packages/main/src/simplicity/handler.vue +188 -0
- package/packages/main/src/simplicity/index.vue +1608 -0
- package/packages/main/src/simplicity/lists.vue +84 -0
- package/packages/main/src/simplicity/menu-list.vue +77 -0
- package/packages/main/src/simplicity/message.vue +237 -0
- package/packages/main/src/simplicity/notice.vue +145 -0
- package/packages/main/src/simplicity/settings.vue +119 -0
- package/packages/main/src/simplicity/sub-menu.vue +126 -0
- package/packages/main/src/simplicity/user.vue +243 -0
- package/packages/main/src/simplicity/userinfo.vue +302 -0
- package/packages/theme-chalk/lib/base.css +1 -1
- package/packages/theme-chalk/lib/data-table.css +1 -1
- 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/icon.css +1 -1
- 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/menu.css +1 -1
- package/packages/theme-chalk/lib/simplicity.css +1 -0
- package/packages/theme-chalk/lib/sizer.css +1 -1
- package/packages/theme-chalk/lib/upload.css +1 -1
- package/packages/theme-chalk/src/base.scss +1 -0
- package/packages/theme-chalk/src/common/var.scss +4 -0
- package/packages/theme-chalk/src/data-table.scss +0 -3
- package/packages/theme-chalk/src/fonts/iconfont.ttf +0 -0
- package/packages/theme-chalk/src/fonts/iconfont.woff +0 -0
- package/packages/theme-chalk/src/icon.scss +4 -4
- package/packages/theme-chalk/src/login.scss +644 -632
- package/packages/theme-chalk/src/main.scss +8 -4
- package/packages/theme-chalk/src/simplicity.scss +566 -0
- package/packages/upload/src/main.vue +15 -17
- package/src/config/api.js +1 -0
- package/src/index.js +1 -1
- package/src/utils/util.js +1 -1
- package/lib/theme-chalk/mainComp.css +0 -0
- package/packages/main/src/async-component/index.vue +0 -87
- package/packages/theme-chalk/lib/mainComp.css +0 -0
- package/packages/theme-chalk/src/mainComp.scss +0 -0
- /package/packages/main/src/{message.vue → default/message.vue} +0 -0
- /package/packages/main/src/{notice.vue → default/notice.vue} +0 -0
- /package/packages/main/src/{settings.vue → default/settings.vue} +0 -0
- /package/packages/main/src/{userinfo.vue → default/userinfo.vue} +0 -0
package/lib/wxlogin.js
CHANGED
|
@@ -82,7 +82,7 @@ module.exports =
|
|
|
82
82
|
/******/
|
|
83
83
|
/******/
|
|
84
84
|
/******/ // Load entry module and return exports
|
|
85
|
-
/******/ return __webpack_require__(__webpack_require__.s =
|
|
85
|
+
/******/ return __webpack_require__(__webpack_require__.s = 69);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
@@ -1387,7 +1387,7 @@ var getLightness = function getLightness($v, $i, $isLight) {
|
|
|
1387
1387
|
* @param {function} callback - 回调函数
|
|
1388
1388
|
**/
|
|
1389
1389
|
var getMainConfig = function getMainConfig(callback) {
|
|
1390
|
-
ajax({ url: _config_api__WEBPACK_IMPORTED_MODULE_0__[/* mainConfig */ "
|
|
1390
|
+
ajax({ url: _config_api__WEBPACK_IMPORTED_MODULE_0__[/* mainConfig */ "fb"] }).then(function (res) {
|
|
1391
1391
|
if (res && res.rCode === 0) {
|
|
1392
1392
|
callback(res.results);
|
|
1393
1393
|
}
|
|
@@ -2121,7 +2121,7 @@ var isLogined = function isLogined(_ref8) {
|
|
|
2121
2121
|
}
|
|
2122
2122
|
var quit = getParams('quit') || getParams('logout');
|
|
2123
2123
|
if (quit) {
|
|
2124
|
-
ajax({ method: 'post', url: _config_api__WEBPACK_IMPORTED_MODULE_0__[/* logout */ "
|
|
2124
|
+
ajax({ method: 'post', url: _config_api__WEBPACK_IMPORTED_MODULE_0__[/* logout */ "eb"] }).then(function (res) {
|
|
2125
2125
|
if (res.rCode === 0) {
|
|
2126
2126
|
removeStorage();
|
|
2127
2127
|
}
|
|
@@ -2560,7 +2560,7 @@ var replenish = function replenish(_ref12) {
|
|
|
2560
2560
|
while (res.length <= len + precision) {
|
|
2561
2561
|
res += '0';
|
|
2562
2562
|
}
|
|
2563
|
-
return
|
|
2563
|
+
return res;
|
|
2564
2564
|
}
|
|
2565
2565
|
return data;
|
|
2566
2566
|
};
|
|
@@ -3249,8 +3249,8 @@ var watermark = function watermark(option) {
|
|
|
3249
3249
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "l", function() { return doCaLogin; });
|
|
3250
3250
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "p", function() { return doUserLogin; });
|
|
3251
3251
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "n", function() { return doQrLogin; });
|
|
3252
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
3253
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
3252
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "eb", function() { return logout; });
|
|
3253
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "X", function() { return initLogin; });
|
|
3254
3254
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ub", function() { return switchUserTo; });
|
|
3255
3255
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return changeImg; });
|
|
3256
3256
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "F", function() { return getLoginCode; });
|
|
@@ -3258,19 +3258,19 @@ var watermark = function watermark(option) {
|
|
|
3258
3258
|
/* unused harmony export updateCode */
|
|
3259
3259
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "G", function() { return getModifyPassCode; });
|
|
3260
3260
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return codeModifyPass; });
|
|
3261
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
3261
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cb", function() { return loginModifyPassword; });
|
|
3262
3262
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return authCenter; });
|
|
3263
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
3263
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Y", function() { return initModifyPassword; });
|
|
3264
3264
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "q", function() { return doWechatQrLogin; });
|
|
3265
3265
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "R", function() { return getTwoFactorLoginCode; });
|
|
3266
3266
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "o", function() { return doTwoFactorLogin; });
|
|
3267
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
3267
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Z", function() { return initRetrialAuth; });
|
|
3268
3268
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "N", function() { return getRetrialAuthCode; });
|
|
3269
3269
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "pb", function() { return scanCodeRetrialAuth; });
|
|
3270
3270
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return codeRetrialAuth; });
|
|
3271
3271
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "k", function() { return doAssistanceQrLogin; });
|
|
3272
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
3273
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
3272
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fb", function() { return mainConfig; });
|
|
3273
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ab", function() { return initUserSet; });
|
|
3274
3274
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Xb", function() { return updateUserInfo; });
|
|
3275
3275
|
/* unused harmony export getUserImgUrl */
|
|
3276
3276
|
/* unused harmony export getDoorIndex */
|
|
@@ -3279,11 +3279,12 @@ var watermark = function watermark(option) {
|
|
|
3279
3279
|
/* unused harmony export getApplicationIdArray */
|
|
3280
3280
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "B", function() { return getComplexApplications; });
|
|
3281
3281
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "C", function() { return getComplexApplicationsNew; });
|
|
3282
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "S", function() { return getUserAppWithTag; });
|
|
3282
3283
|
/* unused harmony export getUserCustomInfo */
|
|
3283
3284
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Wb", function() { return updateUserCustomInfo; });
|
|
3284
3285
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "vb", function() { return sysMsgPage; });
|
|
3285
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
3286
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
3286
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "W", function() { return ignoreSysMsg; });
|
|
3287
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "V", function() { return ignoreAllSysMsg; });
|
|
3287
3288
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "A", function() { return getAdjunctProperties; });
|
|
3288
3289
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "bc", function() { return uploads; });
|
|
3289
3290
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Zb", function() { return uploadOnlyOne; });
|
|
@@ -3305,9 +3306,9 @@ var watermark = function watermark(option) {
|
|
|
3305
3306
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "v", function() { return findSysCode; });
|
|
3306
3307
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "D", function() { return getDictList; });
|
|
3307
3308
|
/* unused harmony export findUserBaseInfo */
|
|
3308
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
3309
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "T", function() { return gethelpdoc; });
|
|
3309
3310
|
/* unused harmony export getCurrentuser */
|
|
3310
|
-
/* harmony export
|
|
3311
|
+
/* unused harmony export mainDetail */
|
|
3311
3312
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ib", function() { return toStartFlow; });
|
|
3312
3313
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Fb", function() { return tempSave; });
|
|
3313
3314
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return commonOpion; });
|
|
@@ -3336,8 +3337,8 @@ var watermark = function watermark(option) {
|
|
|
3336
3337
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Hb", function() { return toSendMsg; });
|
|
3337
3338
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "tb", function() { return sendMsg; });
|
|
3338
3339
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "t", function() { return endFlowHtml; });
|
|
3339
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
3340
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
3340
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "U", function() { return handleInfo; });
|
|
3341
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "db", function() { return loginUserInfo; });
|
|
3341
3342
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cc", function() { return wss; });
|
|
3342
3343
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Tb", function() { return topic; });
|
|
3343
3344
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "K", function() { return getPresetCustomInfo; });
|
|
@@ -3350,7 +3351,7 @@ var watermark = function watermark(option) {
|
|
|
3350
3351
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hb", function() { return pendedhistoryListJson; });
|
|
3351
3352
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ib", function() { return pressListJson; });
|
|
3352
3353
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "i", function() { return deleteFlow; });
|
|
3353
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
3354
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "bb", function() { return isCanStartSubFlow; });
|
|
3354
3355
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Qb", function() { return toTaskUnionExamine; });
|
|
3355
3356
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Db", function() { return taskUnionExamine; });
|
|
3356
3357
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ob", function() { return toTaskTakeAdvice; });
|
|
@@ -3406,6 +3407,7 @@ var getQuickMenuIds = '/main2/main/getQuickMenuIds'; // 获取已绑定的快捷
|
|
|
3406
3407
|
var getApplicationIdArray = '/main2/main/getApplicationIdArray'; // 获取应用父id数组
|
|
3407
3408
|
var getComplexApplications = '/main2/menu/getComplexApplications'; // 获取当前用户菜单; 含页签菜单格式的数据
|
|
3408
3409
|
var getComplexApplicationsNew = '/main2/menu/getComplexApplicationsNew'; // 获取当前用户应用菜单; 含页签菜单格式的数据
|
|
3410
|
+
var getUserAppWithTag = '/sysv3/sysUucApp/getUserAppWithTag'; // 获取应用
|
|
3409
3411
|
var getUserCustomInfo = '/main2/main/getUserCustomInfo'; // 获取主题样式
|
|
3410
3412
|
var updateUserCustomInfo = '/main2/main/updateUserCustomInfo'; // 更新主题样式
|
|
3411
3413
|
// 框架 - 系统消息
|
|
@@ -3730,150 +3732,7 @@ module.exports = require("json-bigint");
|
|
|
3730
3732
|
|
|
3731
3733
|
/***/ }),
|
|
3732
3734
|
|
|
3733
|
-
/***/
|
|
3734
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
3735
|
-
|
|
3736
|
-
"use strict";
|
|
3737
|
-
/* harmony import */ var sockjs_client__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8);
|
|
3738
|
-
/* harmony import */ var sockjs_client__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(sockjs_client__WEBPACK_IMPORTED_MODULE_0__);
|
|
3739
|
-
/* harmony import */ var stompjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9);
|
|
3740
|
-
/* harmony import */ var stompjs__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(stompjs__WEBPACK_IMPORTED_MODULE_1__);
|
|
3741
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
3742
|
-
|
|
3743
|
-
|
|
3744
|
-
|
|
3745
|
-
|
|
3746
|
-
var WebSocket = function () {
|
|
3747
|
-
// 构造函数
|
|
3748
|
-
function WebSocket() {
|
|
3749
|
-
_classCallCheck(this, WebSocket);
|
|
3750
|
-
|
|
3751
|
-
this.host = sessionStorage.getItem('wshost') || '';
|
|
3752
|
-
this.tryTimes = 1; // 重连次数
|
|
3753
|
-
this.callback = null; // 回调函数
|
|
3754
|
-
this.client = null; // stomp对象
|
|
3755
|
-
this.reconTimeout = null; // 重连延时器
|
|
3756
|
-
this.debug = true; // 调试
|
|
3757
|
-
this.interval = 20; // 重连间隔时间
|
|
3758
|
-
this.vm = null;
|
|
3759
|
-
this.nextDate = 0;
|
|
3760
|
-
this.connects = 1;
|
|
3761
|
-
this.recon = false;
|
|
3762
|
-
this.sendTimeout = null;
|
|
3763
|
-
this.socket = null;
|
|
3764
|
-
this.subscription = null;
|
|
3765
|
-
}
|
|
3766
|
-
|
|
3767
|
-
/** socket连接 */
|
|
3768
|
-
|
|
3769
|
-
|
|
3770
|
-
WebSocket.prototype.connect = function connect() {
|
|
3771
|
-
var _this = this;
|
|
3772
|
-
|
|
3773
|
-
if (!this.client) {
|
|
3774
|
-
// 连接SockJS
|
|
3775
|
-
this.socket = new sockjs_client__WEBPACK_IMPORTED_MODULE_0___default.a(this.host + this.url, { timeout: 60000 });
|
|
3776
|
-
this.client = stompjs__WEBPACK_IMPORTED_MODULE_1___default.a.over(this.socket);
|
|
3777
|
-
}
|
|
3778
|
-
|
|
3779
|
-
// 日志不打印
|
|
3780
|
-
if (!this.debug) {
|
|
3781
|
-
this.client.debug = function () {};
|
|
3782
|
-
}
|
|
3783
|
-
|
|
3784
|
-
// 向服务器发起websocket连接
|
|
3785
|
-
this.client.connect({}, function () {
|
|
3786
|
-
_this.recon = true;
|
|
3787
|
-
// tryTimes定义重置
|
|
3788
|
-
_this.connects = 1;
|
|
3789
|
-
// 订阅消息
|
|
3790
|
-
_this.subscribe();
|
|
3791
|
-
}, function (error) {
|
|
3792
|
-
_this.unsubscribe();
|
|
3793
|
-
_this.client = null;
|
|
3794
|
-
var diffSecond = parseInt((new Date() - _this.nextDate) / 1000, 10);
|
|
3795
|
-
if (_this.connects > 5 && diffSecond < _this.interval) {
|
|
3796
|
-
_this.error && _this.error(error);
|
|
3797
|
-
} else {
|
|
3798
|
-
_this.reconTimeout = setTimeout(function () {
|
|
3799
|
-
_this.connect();
|
|
3800
|
-
_this.connects++;
|
|
3801
|
-
}, 5000);
|
|
3802
|
-
}
|
|
3803
|
-
});
|
|
3804
|
-
}; // 清除订阅
|
|
3805
|
-
|
|
3806
|
-
|
|
3807
|
-
WebSocket.prototype.unsubscribe = function unsubscribe() {
|
|
3808
|
-
if (this.subscription) {
|
|
3809
|
-
this.subscription.unsubscribe();
|
|
3810
|
-
this.subscription = null;
|
|
3811
|
-
}
|
|
3812
|
-
};
|
|
3813
|
-
/** 订阅服务端 */
|
|
3814
|
-
|
|
3815
|
-
|
|
3816
|
-
WebSocket.prototype.subscribe = function subscribe() {
|
|
3817
|
-
var _this2 = this;
|
|
3818
|
-
|
|
3819
|
-
// 订阅服务端提供的某个topic
|
|
3820
|
-
this.subscription = this.client.subscribe(this.take, function (response) {
|
|
3821
|
-
if (response && (_this2.callback || _this2.success)) {
|
|
3822
|
-
var callback = _this2.callback || _this2.success;
|
|
3823
|
-
callback(JSON.parse(response.body));
|
|
3824
|
-
}
|
|
3825
|
-
});
|
|
3826
|
-
};
|
|
3827
|
-
|
|
3828
|
-
/** 赋值、初始化socket */
|
|
3829
|
-
|
|
3830
|
-
|
|
3831
|
-
WebSocket.prototype.init = function init(option, vm) {
|
|
3832
|
-
for (var i in option) {
|
|
3833
|
-
this[i] = option[i];
|
|
3834
|
-
}
|
|
3835
|
-
this.vm = vm;
|
|
3836
|
-
// 初始化连接
|
|
3837
|
-
this.connect();
|
|
3838
|
-
};
|
|
3839
|
-
|
|
3840
|
-
/** 发送消息 */
|
|
3841
|
-
|
|
3842
|
-
|
|
3843
|
-
WebSocket.prototype.send = function send(data) {
|
|
3844
|
-
var _this3 = this;
|
|
3845
|
-
|
|
3846
|
-
if (this.recon) {
|
|
3847
|
-
clearTimeout(this.sendTimeout);
|
|
3848
|
-
this.client.send(this.take, {}, typeof data === 'string' ? data : JSON.stringify(data));
|
|
3849
|
-
} else {
|
|
3850
|
-
this.sendTimeout = setTimeout(function () {
|
|
3851
|
-
_this3.send(data);
|
|
3852
|
-
}, 1000);
|
|
3853
|
-
}
|
|
3854
|
-
};
|
|
3855
|
-
|
|
3856
|
-
/** 销毁 */
|
|
3857
|
-
|
|
3858
|
-
|
|
3859
|
-
WebSocket.prototype.destroy = function destroy() {
|
|
3860
|
-
// 断开连接,清除定时器
|
|
3861
|
-
this.unsubscribe();
|
|
3862
|
-
if (this.client) {
|
|
3863
|
-
this.client.disconnect();
|
|
3864
|
-
};
|
|
3865
|
-
this.reconTimeout && clearTimeout(this.reconTimeout);
|
|
3866
|
-
this.sendTimeout && clearTimeout(this.sendTimeout);
|
|
3867
|
-
};
|
|
3868
|
-
|
|
3869
|
-
return WebSocket;
|
|
3870
|
-
}();
|
|
3871
|
-
|
|
3872
|
-
/* harmony default export */ __webpack_exports__["a"] = (WebSocket);
|
|
3873
|
-
|
|
3874
|
-
/***/ }),
|
|
3875
|
-
|
|
3876
|
-
/***/ 70:
|
|
3735
|
+
/***/ 69:
|
|
3877
3736
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
3878
3737
|
|
|
3879
3738
|
"use strict";
|
|
@@ -4078,6 +3937,149 @@ main.install = function (Vue) {
|
|
|
4078
3937
|
|
|
4079
3938
|
/***/ }),
|
|
4080
3939
|
|
|
3940
|
+
/***/ 7:
|
|
3941
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
3942
|
+
|
|
3943
|
+
"use strict";
|
|
3944
|
+
/* harmony import */ var sockjs_client__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8);
|
|
3945
|
+
/* harmony import */ var sockjs_client__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(sockjs_client__WEBPACK_IMPORTED_MODULE_0__);
|
|
3946
|
+
/* harmony import */ var stompjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9);
|
|
3947
|
+
/* harmony import */ var stompjs__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(stompjs__WEBPACK_IMPORTED_MODULE_1__);
|
|
3948
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
3949
|
+
|
|
3950
|
+
|
|
3951
|
+
|
|
3952
|
+
|
|
3953
|
+
var WebSocket = function () {
|
|
3954
|
+
// 构造函数
|
|
3955
|
+
function WebSocket() {
|
|
3956
|
+
_classCallCheck(this, WebSocket);
|
|
3957
|
+
|
|
3958
|
+
this.host = sessionStorage.getItem('wshost') || '';
|
|
3959
|
+
this.tryTimes = 1; // 重连次数
|
|
3960
|
+
this.callback = null; // 回调函数
|
|
3961
|
+
this.client = null; // stomp对象
|
|
3962
|
+
this.reconTimeout = null; // 重连延时器
|
|
3963
|
+
this.debug = true; // 调试
|
|
3964
|
+
this.interval = 20; // 重连间隔时间
|
|
3965
|
+
this.vm = null;
|
|
3966
|
+
this.nextDate = 0;
|
|
3967
|
+
this.connects = 1;
|
|
3968
|
+
this.recon = false;
|
|
3969
|
+
this.sendTimeout = null;
|
|
3970
|
+
this.socket = null;
|
|
3971
|
+
this.subscription = null;
|
|
3972
|
+
}
|
|
3973
|
+
|
|
3974
|
+
/** socket连接 */
|
|
3975
|
+
|
|
3976
|
+
|
|
3977
|
+
WebSocket.prototype.connect = function connect() {
|
|
3978
|
+
var _this = this;
|
|
3979
|
+
|
|
3980
|
+
if (!this.client) {
|
|
3981
|
+
// 连接SockJS
|
|
3982
|
+
this.socket = new sockjs_client__WEBPACK_IMPORTED_MODULE_0___default.a(this.host + this.url, { timeout: 60000 });
|
|
3983
|
+
this.client = stompjs__WEBPACK_IMPORTED_MODULE_1___default.a.over(this.socket);
|
|
3984
|
+
}
|
|
3985
|
+
|
|
3986
|
+
// 日志不打印
|
|
3987
|
+
if (!this.debug) {
|
|
3988
|
+
this.client.debug = function () {};
|
|
3989
|
+
}
|
|
3990
|
+
|
|
3991
|
+
// 向服务器发起websocket连接
|
|
3992
|
+
this.client.connect({}, function () {
|
|
3993
|
+
_this.recon = true;
|
|
3994
|
+
// tryTimes定义重置
|
|
3995
|
+
_this.connects = 1;
|
|
3996
|
+
// 订阅消息
|
|
3997
|
+
_this.subscribe();
|
|
3998
|
+
}, function (error) {
|
|
3999
|
+
_this.unsubscribe();
|
|
4000
|
+
_this.client = null;
|
|
4001
|
+
var diffSecond = parseInt((new Date() - _this.nextDate) / 1000, 10);
|
|
4002
|
+
if (_this.connects > 5 && diffSecond < _this.interval) {
|
|
4003
|
+
_this.error && _this.error(error);
|
|
4004
|
+
} else {
|
|
4005
|
+
_this.reconTimeout = setTimeout(function () {
|
|
4006
|
+
_this.connect();
|
|
4007
|
+
_this.connects++;
|
|
4008
|
+
}, 5000);
|
|
4009
|
+
}
|
|
4010
|
+
});
|
|
4011
|
+
}; // 清除订阅
|
|
4012
|
+
|
|
4013
|
+
|
|
4014
|
+
WebSocket.prototype.unsubscribe = function unsubscribe() {
|
|
4015
|
+
if (this.subscription) {
|
|
4016
|
+
this.subscription.unsubscribe();
|
|
4017
|
+
this.subscription = null;
|
|
4018
|
+
}
|
|
4019
|
+
};
|
|
4020
|
+
/** 订阅服务端 */
|
|
4021
|
+
|
|
4022
|
+
|
|
4023
|
+
WebSocket.prototype.subscribe = function subscribe() {
|
|
4024
|
+
var _this2 = this;
|
|
4025
|
+
|
|
4026
|
+
// 订阅服务端提供的某个topic
|
|
4027
|
+
this.subscription = this.client.subscribe(this.take, function (response) {
|
|
4028
|
+
if (response && (_this2.callback || _this2.success)) {
|
|
4029
|
+
var callback = _this2.callback || _this2.success;
|
|
4030
|
+
callback(JSON.parse(response.body));
|
|
4031
|
+
}
|
|
4032
|
+
});
|
|
4033
|
+
};
|
|
4034
|
+
|
|
4035
|
+
/** 赋值、初始化socket */
|
|
4036
|
+
|
|
4037
|
+
|
|
4038
|
+
WebSocket.prototype.init = function init(option, vm) {
|
|
4039
|
+
for (var i in option) {
|
|
4040
|
+
this[i] = option[i];
|
|
4041
|
+
}
|
|
4042
|
+
this.vm = vm;
|
|
4043
|
+
// 初始化连接
|
|
4044
|
+
this.connect();
|
|
4045
|
+
};
|
|
4046
|
+
|
|
4047
|
+
/** 发送消息 */
|
|
4048
|
+
|
|
4049
|
+
|
|
4050
|
+
WebSocket.prototype.send = function send(data) {
|
|
4051
|
+
var _this3 = this;
|
|
4052
|
+
|
|
4053
|
+
if (this.recon) {
|
|
4054
|
+
clearTimeout(this.sendTimeout);
|
|
4055
|
+
this.client.send(this.take, {}, typeof data === 'string' ? data : JSON.stringify(data));
|
|
4056
|
+
} else {
|
|
4057
|
+
this.sendTimeout = setTimeout(function () {
|
|
4058
|
+
_this3.send(data);
|
|
4059
|
+
}, 1000);
|
|
4060
|
+
}
|
|
4061
|
+
};
|
|
4062
|
+
|
|
4063
|
+
/** 销毁 */
|
|
4064
|
+
|
|
4065
|
+
|
|
4066
|
+
WebSocket.prototype.destroy = function destroy() {
|
|
4067
|
+
// 断开连接,清除定时器
|
|
4068
|
+
this.unsubscribe();
|
|
4069
|
+
if (this.client) {
|
|
4070
|
+
this.client.disconnect();
|
|
4071
|
+
};
|
|
4072
|
+
this.reconTimeout && clearTimeout(this.reconTimeout);
|
|
4073
|
+
this.sendTimeout && clearTimeout(this.sendTimeout);
|
|
4074
|
+
};
|
|
4075
|
+
|
|
4076
|
+
return WebSocket;
|
|
4077
|
+
}();
|
|
4078
|
+
|
|
4079
|
+
/* harmony default export */ __webpack_exports__["a"] = (WebSocket);
|
|
4080
|
+
|
|
4081
|
+
/***/ }),
|
|
4082
|
+
|
|
4081
4083
|
/***/ 8:
|
|
4082
4084
|
/***/ (function(module, exports) {
|
|
4083
4085
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eoss-ui",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.81-beta1",
|
|
4
4
|
"description": "eoss内部业务组件",
|
|
5
5
|
"main": "lib/eoss-ui.common.js",
|
|
6
6
|
"files": [
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"js-base64": "^3.7.5",
|
|
60
60
|
"json-bigint": "^1.0.0",
|
|
61
61
|
"net": "^1.0.2",
|
|
62
|
-
"qrcode": "
|
|
62
|
+
"qrcode": "1.5.3",
|
|
63
63
|
"qs": "^6.11.2",
|
|
64
64
|
"runtime-import": "^2.2.1",
|
|
65
65
|
"slate": "^0.100.0",
|
|
@@ -1,16 +1,26 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<
|
|
3
|
-
:
|
|
2
|
+
<component
|
|
3
|
+
:is="tag"
|
|
4
|
+
:class="[
|
|
5
|
+
className,
|
|
6
|
+
{ 'es-pointer': Object.keys(event).length, 'es-icon_image': tag == 'img' }
|
|
7
|
+
]"
|
|
8
|
+
:src="tag == 'img' ? url : ''"
|
|
4
9
|
v-on="event"
|
|
5
10
|
v-html="code"
|
|
6
|
-
|
|
7
|
-
</i>
|
|
11
|
+
/>
|
|
8
12
|
</template>
|
|
9
13
|
<script>
|
|
14
|
+
import util from 'eoss-ui/src/utils/util';
|
|
15
|
+
import { previewAdjunct } from 'eoss-ui/src/config/api.js';
|
|
10
16
|
export default {
|
|
11
17
|
name: 'EsIcon',
|
|
12
18
|
inheritAttrs: false,
|
|
13
19
|
props: {
|
|
20
|
+
preview: {
|
|
21
|
+
type: String,
|
|
22
|
+
default: `${previewAdjunct}?adjunctId=`
|
|
23
|
+
},
|
|
14
24
|
contents: [Object, String]
|
|
15
25
|
},
|
|
16
26
|
watch: {
|
|
@@ -19,13 +29,32 @@ export default {
|
|
|
19
29
|
deep: true,
|
|
20
30
|
handler(val) {
|
|
21
31
|
if (val) {
|
|
22
|
-
if (typeof val == 'string') {
|
|
23
|
-
if (
|
|
24
|
-
|
|
25
|
-
|
|
32
|
+
if (typeof val == 'string' && val) {
|
|
33
|
+
if (
|
|
34
|
+
val.indexOf('.jpge') > 1 ||
|
|
35
|
+
val.indexOf('.jpg') > 1 ||
|
|
36
|
+
val.indexOf('.gif') > 1 ||
|
|
37
|
+
val.indexOf('.png') > 1 ||
|
|
38
|
+
val.indexOf('data:image/jpge;base64') > -1 ||
|
|
39
|
+
val.indexOf('data:image/jpg;base64') > -1 ||
|
|
40
|
+
val.indexOf('data:image/gif;base64') > -1 ||
|
|
41
|
+
val.indexOf('data:image/png;base64') > -1 ||
|
|
42
|
+
util.startWith(val, ['http', 'https', '/'])
|
|
43
|
+
) {
|
|
44
|
+
this.tag = 'img';
|
|
45
|
+
this.url = val;
|
|
26
46
|
} else {
|
|
27
|
-
this.
|
|
28
|
-
this.
|
|
47
|
+
this.tag = 'i';
|
|
48
|
+
if (this.unicode(val)) {
|
|
49
|
+
this.code = '';
|
|
50
|
+
this.className = val;
|
|
51
|
+
} else if (util.startWith(val, '&#')) {
|
|
52
|
+
this.code = val;
|
|
53
|
+
this.className = 'es-icon';
|
|
54
|
+
} else {
|
|
55
|
+
this.tag = 'img';
|
|
56
|
+
this.url = this.preview + val;
|
|
57
|
+
}
|
|
29
58
|
}
|
|
30
59
|
} else {
|
|
31
60
|
this.code = val.code;
|
|
@@ -38,6 +67,8 @@ export default {
|
|
|
38
67
|
},
|
|
39
68
|
data() {
|
|
40
69
|
return {
|
|
70
|
+
tag: 'i',
|
|
71
|
+
url: '',
|
|
41
72
|
code: '',
|
|
42
73
|
className: '',
|
|
43
74
|
event: {}
|
|
@@ -49,7 +80,7 @@ export default {
|
|
|
49
80
|
if (!res) {
|
|
50
81
|
return false;
|
|
51
82
|
}
|
|
52
|
-
var reg = new RegExp(/^es
|
|
83
|
+
var reg = new RegExp(/^[es-|el-]\S+/, 'g');
|
|
53
84
|
return res.match(reg) ? res.match(reg).length : 0;
|
|
54
85
|
}
|
|
55
86
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
["zuomian","monitor","maximize","pointer-up","pointer-left","pointer-down","tri-down","retrograde","rainfall","caveat","print","alarm","table","duigouquan","bumen","mm","accelerate","quanping","password","qing","kaifa","daoru","piaochongicon","instructions","notice","wifi","tishicuo","minganciguanli","switch-off","switch-on","narrow","yidongduan","web","upload","message","go-back","close","shujutongji","folder","edit","enter","dian","wendu","shangwu","shenbao","magnifier","project-add","xiexian","caidan","tupian","
|
|
1
|
+
["zuomian","monitor","maximize","pointer-up","pointer-left","pointer-down","tri-down","retrograde","rainfall","caveat","print","alarm","table","duigouquan","bumen","mm","accelerate","quanping","password","qing","kaifa","daoru","piaochongicon","instructions","notice","wifi","tishicuo","minganciguanli","switch-off","switch-on","narrow","yidongduan","web","upload","message","go-back","close","shujutongji","folder","edit","enter","dian","wendu","shangwu","shenbao","magnifier","project-add","xiexian","caidan","tupian","yinyu","wenhao","template","daiban","set","zhengwen","cuowu","chenggong","indent","increase","ziliaoku","tuichu","quit","leaf","refresh","statistic","gengduo","lvyou","mail","user","zhishi","weizhi","jinggao","zuzhijigou","xue","fenxiang","jinrong","shanchu","jianhao","jiahao","yinzhang","renyuanqiehuan","gouxuanzhong1","circle","fuxuankuang1","fangkuang","application","wenjianjia","jiaren","xiugai","duanxinguanli","workbench","rizhi","gongwen","qingshi","shiwu","official","baogao","document","wodeyouxiang","ziliaojiaohuan","denglu","podium","fangkuai","xuewei","duoyun","pm","xiajia","huanbao","dunpai","shu","gongzuozheng","more","fenlei","delete","fengsu","bar","yuanqu","duomeiti","youjian","qiye","zuixinzixun","biaoge","omit","diaotou","jiantou-left","jiantou-right","jiantou-up","roles","jiantou-next","chijiuhuacunchu","zhuanhuan","cloudy","form","wuye","tri-up","pointer-right","bianji","tri-right","tri-left","daimaguanli","jiankong","kaifazhong","fujian","bingtu","zhuzhuangtu","lose","rmb","move","xiazai","yiban","laoshi","clear","jinyong","yunxing","weihu","chakan","pifu","ren","gouwuche","loading2","yulan","ziliao","yidong","fenxiang11","kaoqin","change","shidu","portfolio","info","yanjing","laba","camera","xitongxiaoxi","xitongguanli","webduan","wagnz","group","shengqian","jiantou-prev","attention","look","guanzhu","daikuan","tubiao","duigou","star","dayin","xinzeng","reduce","goup","calendar","tree","yingyong","caution","zhuanfa","add","zongtiqixian","daochu","gongwu","ihouse","chilun","weixiu","chengguo","trophy","duiwu","qiehuanjiaose","door","shebei","fangjian","microscope","huaxue","shiyanshianquan","shiyan","qiyexinxi","yewuxinxi","lab","shiyanguanli","yuqing","big-screen","signal-search","database","star-mark","cng","professor","informatization","code","science","price","xunhuan","savings","administration","aid","biao","line","xietong","jingzheng","enterprise","datatable","toubiao","bingdu","keji2","qiyeku5","touzi5","zijinliu","zhishichanquan3","kejifuwu2","zhishichanquan2","zijinanquan","kejifuwu1","geju","yiqingfangkong","kejifuwu","anquanfangkong","shujufuwu","shujuceng","shujugongxiang","flows","setup","shujulian","caiwujianguan","caiwuliushui","mubiaogeju","juxing","fuwuqi","touzijigou","xiezilou","jianzhu","logo","touzhi","zijin","fintech","touzixiangmu","library","touziguanli","zhongda","ziyuan","shujutai","shujudongtai","bank","shujuzhongxin","zhongyaomubiao","touzishijian","caiwuguanli","mingzhong","touzishenpi","jingzhenggeju","property","keji","qiyeku","zhongyaojihui","touzilicai","zhishichanquan","touzi","tzz","menu","xiangmushu","pdf","jiazai","gongsi","rise","jbxx","zwxx","jypx","jcgl","ndkh","grjl","shgx","gou","shijian","fukuan","guoji","shoukuan","down","gongzuotai","gaigedongtai","xitongshezhi","relation","zuzhirenshi","kaohepingjia","caiwujiandu","sanzhongyida","mima","xianshi","zhanghao","bangongshi","checked","checke","help","kuoda","banli","xiaoxi","shouqicaidan","shouqicaidan-right","smile","tongzhi","guanji","shuaxin","guiji","tianjiawenjianjia","yunxiazai","del","touzifangan","zongheguanli","sanzhongyida_mian","gongwenguanli1","heguiguanli","jingyingfenxi","txl","diannao","renliziyuan","caiwuxitong","shiwuguanli","shouye","bangongyongpin","sidebar","zhidulashi","log","fawenguanli","huiyiguanli","zuzhishishi","gongwenqianshou","jinxiupeixun","gongwenbao","jiaohuan","daibanshixiang","richeng","tongxunlu","yongche","yanzheng","daibanxinxi","shuben","fanfu","guangbo","shuzhuangtu","bengqiye","tongguo","dengdai","cross","daichuli","zhenggai","shouli","shujuhecha","guanli","paper-file","wenjian","dakaiwenjian","yewu","jiance","jiheguanli","jinru","arrow-right","lingdao","rencai","prev","next","jianpan","qrcode","bohui","homepage","download","gantanhao","dingding","weixin","pad","ios","android","txt","doc","audioo","video","zip","shuru","duanxin","saoma","youxiang","word","excel","fileword","picture","ppt","ca","usb-key","wenjianjiadakai","yingyonglan","home"]
|
|
@@ -2,6 +2,11 @@
|
|
|
2
2
|
<div
|
|
3
3
|
v-if="!code"
|
|
4
4
|
class="es-login-screen"
|
|
5
|
+
:class="{
|
|
6
|
+
'es-login-medium': size == 'medium',
|
|
7
|
+
'es-login-small': size == 'small',
|
|
8
|
+
'es-login-mini': size == 'mini'
|
|
9
|
+
}"
|
|
5
10
|
:style="getBackground(loginBackgroundImg)"
|
|
6
11
|
>
|
|
7
12
|
<img v-if="loginLogoImg" class="es-login-logo" :src="loginLogoImg" />
|
|
@@ -393,6 +398,7 @@ export default {
|
|
|
393
398
|
type: String,
|
|
394
399
|
default: initLogin
|
|
395
400
|
},
|
|
401
|
+
size: String,
|
|
396
402
|
mode: {
|
|
397
403
|
type: String,
|
|
398
404
|
default: 'default'
|
|
@@ -987,12 +993,12 @@ export default {
|
|
|
987
993
|
isShow(res) {
|
|
988
994
|
return this.loginModel.indexOf(res) > -1;
|
|
989
995
|
},
|
|
990
|
-
getLogin() {
|
|
996
|
+
async getLogin() {
|
|
991
997
|
const config = util.getStorage('initLogin');
|
|
992
998
|
if (config) {
|
|
993
999
|
this.setConfig(config);
|
|
994
1000
|
}
|
|
995
|
-
util
|
|
1001
|
+
await util
|
|
996
1002
|
.ajax({ url: this.initLogin })
|
|
997
1003
|
.then((res) => {
|
|
998
1004
|
if (res && res.rCode === 0) {
|
|
@@ -1143,12 +1149,13 @@ export default {
|
|
|
1143
1149
|
}
|
|
1144
1150
|
let data = {};
|
|
1145
1151
|
let flag = false;
|
|
1152
|
+
let ref = 'login' + this.active;
|
|
1146
1153
|
if (this.active == 12) {
|
|
1147
1154
|
if (!this.formData.username) {
|
|
1148
|
-
this.$refs.
|
|
1155
|
+
this.$refs[ref].validateField('username');
|
|
1149
1156
|
return false;
|
|
1150
1157
|
}
|
|
1151
|
-
this.$refs.
|
|
1158
|
+
this.$refs[ref].validateField('username', (res) => {
|
|
1152
1159
|
flag = res != '';
|
|
1153
1160
|
});
|
|
1154
1161
|
if (flag) {
|
|
@@ -1161,10 +1168,10 @@ export default {
|
|
|
1161
1168
|
};
|
|
1162
1169
|
} else {
|
|
1163
1170
|
if (!this.formData.target) {
|
|
1164
|
-
this.$refs.
|
|
1171
|
+
this.$refs[ref].validateField('target');
|
|
1165
1172
|
return false;
|
|
1166
1173
|
}
|
|
1167
|
-
this.$refs.
|
|
1174
|
+
this.$refs[ref].validateField('target', (res) => {
|
|
1168
1175
|
flag = res != '';
|
|
1169
1176
|
});
|
|
1170
1177
|
if (flag) {
|
|
@@ -1442,6 +1449,7 @@ export default {
|
|
|
1442
1449
|
if (this.toUrl) {
|
|
1443
1450
|
window.location.href = this.toUrl;
|
|
1444
1451
|
} else if (results.doorIndex && this.doorIndex) {
|
|
1452
|
+
sessionStorage.setItem('doorIndex', results.doorIndex);
|
|
1445
1453
|
window.location.href = results.doorIndex;
|
|
1446
1454
|
} else {
|
|
1447
1455
|
if (window.location.href.indexOf('login.html') > -1) {
|