eoss-ui 0.4.61 → 0.4.63
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 +46 -44
- package/lib/button.js +46 -44
- package/lib/card.js +2 -2
- package/lib/cascader.js +2 -2
- package/lib/checkbox-group.js +61 -69
- package/lib/clients.js +2 -2
- package/lib/data-table-form.js +44 -42
- package/lib/data-table.js +107 -91
- package/lib/date-picker.js +53 -51
- package/lib/dialog.js +51 -50
- package/lib/editor.js +6 -6
- package/lib/enterprise.js +2 -2
- package/lib/eoss-ui.common.js +2408 -5194
- package/lib/error-page.js +2 -2
- package/lib/flow-group.js +127 -63
- package/lib/flow-list.js +1020 -323
- package/lib/flow.js +51 -50
- package/lib/form.js +231 -46
- package/lib/handle-user.js +46 -44
- package/lib/handler.js +49 -47
- package/lib/icons.js +4 -4
- package/lib/index.js +1 -1
- package/lib/input-number.js +46 -44
- package/lib/input.js +46 -44
- package/lib/label.js +2 -2
- package/lib/login.js +49 -47
- package/lib/main.js +289 -177
- package/lib/menu.js +7 -5
- package/lib/nav.js +48 -48
- package/lib/notify.js +2 -2
- package/lib/page.js +46 -44
- package/lib/pagination.js +2 -2
- package/lib/player.js +48 -46
- package/lib/qr-code.js +46 -44
- package/lib/radio-group.js +49 -47
- package/lib/retrial-auth.js +46 -44
- package/lib/select-ganged.js +46 -44
- package/lib/select.js +47 -45
- package/lib/selector-panel.js +46 -44
- package/lib/selector.js +63 -50
- package/lib/sizer.js +46 -44
- package/lib/steps.js +46 -44
- package/lib/switch.js +46 -44
- package/lib/table-form.js +46 -44
- package/lib/tabs-panel.js +2 -2
- package/lib/tabs.js +53 -51
- package/lib/theme-chalk/data-table.css +1 -1
- package/lib/theme-chalk/dialog.css +1 -1
- package/lib/theme-chalk/flow-list.css +1 -1
- package/lib/theme-chalk/index.css +1 -1
- package/lib/theme-chalk/menu.css +1 -1
- package/lib/tips.js +46 -44
- package/lib/toolbar.js +2 -2
- package/lib/tree-group.js +46 -44
- package/lib/tree.js +46 -44
- package/lib/upload.js +52 -50
- package/lib/utils/util.js +44 -42
- package/lib/wujie.js +46 -44
- package/lib/wxlogin.js +46 -44
- package/package.json +2 -2
- package/packages/checkbox-group/src/main.vue +16 -25
- package/packages/data-table/src/column.vue +15 -1
- package/packages/data-table/src/main.vue +58 -47
- package/packages/flow/src/component/taskUnionExamine.vue +0 -1
- package/packages/flow-group/src/main.vue +32 -14
- package/packages/flow-list/src/flow-table.vue +5 -1
- package/packages/flow-list/src/main.vue +780 -43
- package/packages/form/src/main.vue +63 -0
- package/packages/handler/src/main.vue +1 -1
- package/packages/login/src/main.vue +10 -1
- package/packages/main/src/main.vue +186 -63
- package/packages/main/src/userinfo.vue +3 -3
- package/packages/menu/src/main.vue +5 -3
- package/packages/nav/src/main.vue +0 -2
- package/packages/radio-group/src/main.vue +9 -5
- package/packages/select/src/main.vue +1 -1
- package/packages/selector/src/main.vue +12 -4
- package/packages/theme-chalk/lib/data-table.css +1 -1
- package/packages/theme-chalk/lib/dialog.css +1 -1
- package/packages/theme-chalk/lib/flow-list.css +1 -1
- package/packages/theme-chalk/lib/index.css +1 -1
- package/packages/theme-chalk/lib/menu.css +1 -1
- package/packages/theme-chalk/src/data-table.scss +10 -17
- package/packages/theme-chalk/src/dialog.scss +1 -1
- package/packages/theme-chalk/src/flow-list.scss +29 -34
- package/packages/theme-chalk/src/index.scss +0 -1
- package/packages/theme-chalk/src/menu.scss +3 -0
- package/packages/upload/src/main.vue +1 -1
- package/src/index.js +1 -4
- package/src/utils/util.js +58 -55
- package/lib/mainComp.js +0 -6817
- package/packages/mainComp/index.js +0 -5
- package/packages/mainComp/src/async-component/index.vue +0 -85
- package/packages/mainComp/src/main.vue +0 -1944
- package/packages/mainComp/src/message.vue +0 -239
- package/packages/mainComp/src/notice.vue +0 -152
- package/packages/mainComp/src/settings.vue +0 -105
- package/packages/mainComp/src/userinfo.vue +0 -430
package/lib/menu.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 = 73);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
@@ -192,7 +192,7 @@ function normalizeComponent(
|
|
|
192
192
|
|
|
193
193
|
/***/ }),
|
|
194
194
|
|
|
195
|
-
/***/
|
|
195
|
+
/***/ 73:
|
|
196
196
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
197
197
|
|
|
198
198
|
"use strict";
|
|
@@ -328,6 +328,7 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
|
|
|
328
328
|
key: key,
|
|
329
329
|
path: keyPath,
|
|
330
330
|
node: item.$attrs.data,
|
|
331
|
+
fourthTabs: item.$attrs.fourthTabs,
|
|
331
332
|
item: item,
|
|
332
333
|
mode: this.mode
|
|
333
334
|
});
|
|
@@ -352,7 +353,7 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
|
|
|
352
353
|
mode: this.mode
|
|
353
354
|
});
|
|
354
355
|
},
|
|
355
|
-
getSub: function getSub(item, h, popper) {
|
|
356
|
+
getSub: function getSub(item, h, popper, fourthTabs) {
|
|
356
357
|
var _this3 = this;
|
|
357
358
|
|
|
358
359
|
if (popper) {
|
|
@@ -403,7 +404,7 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
|
|
|
403
404
|
if (!ele) {
|
|
404
405
|
console.error('\u5BF9\u8C61\u5B50\u6570\u636E\u4E2D\u7B2C[' + index + ']\u6761\u6570\u636E\u9519\u8BEF', item);
|
|
405
406
|
} else {
|
|
406
|
-
return _this3.getSub(ele, h, popper);
|
|
407
|
+
return _this3.getSub(ele, h, popper, true);
|
|
407
408
|
}
|
|
408
409
|
}));
|
|
409
410
|
return [h('el-submenu', {
|
|
@@ -426,7 +427,8 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
|
|
|
426
427
|
attrs: {
|
|
427
428
|
data: item,
|
|
428
429
|
index: item.id,
|
|
429
|
-
key: item.id
|
|
430
|
+
key: item.id,
|
|
431
|
+
fourthTabs: fourthTabs
|
|
430
432
|
}
|
|
431
433
|
}, this.titleIcons ? title : [title[1]])];
|
|
432
434
|
}
|
package/lib/nav.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 = 48);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
@@ -248,52 +248,54 @@ var ajax = function ajax(_ref) {
|
|
|
248
248
|
if (response.data.rCode === 64 || response.data.rCode === 65 || response.data.rCode === 67 || response.data.rCode === 69) {
|
|
249
249
|
removeStorage(['Authorization', 'token', 'ssId', 'userId', 'userName', 'deviceUnique', 'menus', 'menus', 'useCaseCodes', 'mainConfig', 'jump']);
|
|
250
250
|
if (win.top.location.href.indexOf('#/login') === -1 && win.top.location.href.indexOf('/login.html') === -1) {
|
|
251
|
-
clearTimeout(loginMsg);
|
|
252
251
|
var remind = sessionStorage.getItem('remind');
|
|
253
|
-
!remind
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
var
|
|
268
|
-
if (
|
|
269
|
-
var
|
|
270
|
-
if (
|
|
271
|
-
pathname = pathname
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
252
|
+
if (!remind) {
|
|
253
|
+
clearTimeout(loginMsg);
|
|
254
|
+
loginMsg = setTimeout(function () {
|
|
255
|
+
sessionStorage.setItem('remind', 1);
|
|
256
|
+
eoss_element__WEBPACK_IMPORTED_MODULE_4__["MessageBox"].confirm(response.data.rCode === 69 ? '该账号在其他地方已登陆!' : '登录已过期,请重新登录!', '提示', response.data.rCode === 69 ? {
|
|
257
|
+
confirmButtonText: '确定',
|
|
258
|
+
closeOnClickModal: false,
|
|
259
|
+
type: 'warning'
|
|
260
|
+
} : {
|
|
261
|
+
confirmButtonText: '确定',
|
|
262
|
+
cancelButtonText: '取消',
|
|
263
|
+
closeOnClickModal: false,
|
|
264
|
+
type: 'warning'
|
|
265
|
+
}).then(function () {
|
|
266
|
+
var loginPage = getStorage('login') || getStorage('loginPage');
|
|
267
|
+
if (loginPage) {
|
|
268
|
+
var src = void 0;
|
|
269
|
+
if (!startWith(loginPage, ['http', '/'], true)) {
|
|
270
|
+
var pathname = win.top.location.pathname;
|
|
271
|
+
if (pathname !== '/') {
|
|
272
|
+
pathname = pathname.split('/');
|
|
273
|
+
pathname.splice(pathname.length - 1);
|
|
274
|
+
pathname = pathname.join('/');
|
|
275
|
+
src = pathname + '/' + loginPage.replace('./', '');
|
|
276
|
+
} else {
|
|
277
|
+
src = pathname + loginPage.replace('./', '');
|
|
278
|
+
}
|
|
275
279
|
} else {
|
|
276
|
-
src =
|
|
280
|
+
src = loginPage;
|
|
277
281
|
}
|
|
282
|
+
win.top.location.href = src;
|
|
283
|
+
} else if (win.top.location.href.indexOf('main.html') > -1) {
|
|
284
|
+
win.top.location.href = './login.html';
|
|
278
285
|
} else {
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
if (hash) {
|
|
287
|
-
var len = win.top.location.href.indexOf(hash);
|
|
288
|
-
win.top.location.href = win.location.href.slice(0, len) + '#/login';
|
|
289
|
-
} else {
|
|
290
|
-
win.top.location.href = '/login.html';
|
|
286
|
+
var hash = win.top.location.hash;
|
|
287
|
+
if (hash) {
|
|
288
|
+
var len = win.top.location.href.indexOf(hash);
|
|
289
|
+
win.top.location.href = win.location.href.slice(0, len) + '#/login';
|
|
290
|
+
} else {
|
|
291
|
+
win.top.location.href = '/login.html';
|
|
292
|
+
}
|
|
291
293
|
}
|
|
292
|
-
}
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
});
|
|
296
|
-
}
|
|
294
|
+
}).catch(function (e) {
|
|
295
|
+
sessionStorage.removeItem('remind');
|
|
296
|
+
});
|
|
297
|
+
}, 2000);
|
|
298
|
+
}
|
|
297
299
|
}
|
|
298
300
|
} else if (response.data.rCode === 61) {
|
|
299
301
|
clearTimeout(initAuth);
|
|
@@ -2082,7 +2084,7 @@ var setStorage = function setStorage(_ref14) {
|
|
|
2082
2084
|
* @param {boolean} [or] - 或者(等同于||)
|
|
2083
2085
|
**/
|
|
2084
2086
|
var startWith = function startWith(value, reg) {
|
|
2085
|
-
var or = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] :
|
|
2087
|
+
var or = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
|
|
2086
2088
|
|
|
2087
2089
|
if (Array.isArray(reg)) {
|
|
2088
2090
|
var flag = true;
|
|
@@ -2848,14 +2850,14 @@ module.exports = require("qs");
|
|
|
2848
2850
|
|
|
2849
2851
|
/***/ }),
|
|
2850
2852
|
|
|
2851
|
-
/***/
|
|
2853
|
+
/***/ 48:
|
|
2852
2854
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
2853
2855
|
|
|
2854
2856
|
"use strict";
|
|
2855
2857
|
// ESM COMPAT FLAG
|
|
2856
2858
|
__webpack_require__.r(__webpack_exports__);
|
|
2857
2859
|
|
|
2858
|
-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/nav/src/main.vue?vue&type=template&id=
|
|
2860
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/nav/src/main.vue?vue&type=template&id=fd9419ca&
|
|
2859
2861
|
var render = function () {
|
|
2860
2862
|
var _vm = this
|
|
2861
2863
|
var _h = _vm.$createElement
|
|
@@ -2998,7 +3000,7 @@ var staticRenderFns = []
|
|
|
2998
3000
|
render._withStripped = true
|
|
2999
3001
|
|
|
3000
3002
|
|
|
3001
|
-
// CONCATENATED MODULE: ./packages/nav/src/main.vue?vue&type=template&id=
|
|
3003
|
+
// CONCATENATED MODULE: ./packages/nav/src/main.vue?vue&type=template&id=fd9419ca&
|
|
3002
3004
|
|
|
3003
3005
|
// EXTERNAL MODULE: ./src/utils/util.js
|
|
3004
3006
|
var util = __webpack_require__(0);
|
|
@@ -3104,12 +3106,10 @@ var util = __webpack_require__(0);
|
|
|
3104
3106
|
},
|
|
3105
3107
|
subActive: function subActive() {
|
|
3106
3108
|
var active = this.biserial && Array.isArray(this.defaultActive) && this.defaultActive.length ? this.defaultActive[0] : undefined;
|
|
3107
|
-
console.log(active, 555);
|
|
3108
3109
|
return active;
|
|
3109
3110
|
},
|
|
3110
3111
|
menuActive: function menuActive() {
|
|
3111
3112
|
var active = this.defaultActive === 'string' ? this.defaultActive : this.defaultActive.length ? this.defaultActive[this.defaultActive.length - 1] : undefined;
|
|
3112
|
-
console.log(active, 444);
|
|
3113
3113
|
return active;
|
|
3114
3114
|
},
|
|
3115
3115
|
boxWidth: function boxWidth() {
|
package/lib/notify.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 = 49);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
@@ -532,7 +532,7 @@ function normalizeComponent(
|
|
|
532
532
|
|
|
533
533
|
/***/ }),
|
|
534
534
|
|
|
535
|
-
/***/
|
|
535
|
+
/***/ 49:
|
|
536
536
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
537
537
|
|
|
538
538
|
"use strict";
|
package/lib/page.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 = 51);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
@@ -248,52 +248,54 @@ var ajax = function ajax(_ref) {
|
|
|
248
248
|
if (response.data.rCode === 64 || response.data.rCode === 65 || response.data.rCode === 67 || response.data.rCode === 69) {
|
|
249
249
|
removeStorage(['Authorization', 'token', 'ssId', 'userId', 'userName', 'deviceUnique', 'menus', 'menus', 'useCaseCodes', 'mainConfig', 'jump']);
|
|
250
250
|
if (win.top.location.href.indexOf('#/login') === -1 && win.top.location.href.indexOf('/login.html') === -1) {
|
|
251
|
-
clearTimeout(loginMsg);
|
|
252
251
|
var remind = sessionStorage.getItem('remind');
|
|
253
|
-
!remind
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
var
|
|
268
|
-
if (
|
|
269
|
-
var
|
|
270
|
-
if (
|
|
271
|
-
pathname = pathname
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
252
|
+
if (!remind) {
|
|
253
|
+
clearTimeout(loginMsg);
|
|
254
|
+
loginMsg = setTimeout(function () {
|
|
255
|
+
sessionStorage.setItem('remind', 1);
|
|
256
|
+
eoss_element__WEBPACK_IMPORTED_MODULE_4__["MessageBox"].confirm(response.data.rCode === 69 ? '该账号在其他地方已登陆!' : '登录已过期,请重新登录!', '提示', response.data.rCode === 69 ? {
|
|
257
|
+
confirmButtonText: '确定',
|
|
258
|
+
closeOnClickModal: false,
|
|
259
|
+
type: 'warning'
|
|
260
|
+
} : {
|
|
261
|
+
confirmButtonText: '确定',
|
|
262
|
+
cancelButtonText: '取消',
|
|
263
|
+
closeOnClickModal: false,
|
|
264
|
+
type: 'warning'
|
|
265
|
+
}).then(function () {
|
|
266
|
+
var loginPage = getStorage('login') || getStorage('loginPage');
|
|
267
|
+
if (loginPage) {
|
|
268
|
+
var src = void 0;
|
|
269
|
+
if (!startWith(loginPage, ['http', '/'], true)) {
|
|
270
|
+
var pathname = win.top.location.pathname;
|
|
271
|
+
if (pathname !== '/') {
|
|
272
|
+
pathname = pathname.split('/');
|
|
273
|
+
pathname.splice(pathname.length - 1);
|
|
274
|
+
pathname = pathname.join('/');
|
|
275
|
+
src = pathname + '/' + loginPage.replace('./', '');
|
|
276
|
+
} else {
|
|
277
|
+
src = pathname + loginPage.replace('./', '');
|
|
278
|
+
}
|
|
275
279
|
} else {
|
|
276
|
-
src =
|
|
280
|
+
src = loginPage;
|
|
277
281
|
}
|
|
282
|
+
win.top.location.href = src;
|
|
283
|
+
} else if (win.top.location.href.indexOf('main.html') > -1) {
|
|
284
|
+
win.top.location.href = './login.html';
|
|
278
285
|
} else {
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
if (hash) {
|
|
287
|
-
var len = win.top.location.href.indexOf(hash);
|
|
288
|
-
win.top.location.href = win.location.href.slice(0, len) + '#/login';
|
|
289
|
-
} else {
|
|
290
|
-
win.top.location.href = '/login.html';
|
|
286
|
+
var hash = win.top.location.hash;
|
|
287
|
+
if (hash) {
|
|
288
|
+
var len = win.top.location.href.indexOf(hash);
|
|
289
|
+
win.top.location.href = win.location.href.slice(0, len) + '#/login';
|
|
290
|
+
} else {
|
|
291
|
+
win.top.location.href = '/login.html';
|
|
292
|
+
}
|
|
291
293
|
}
|
|
292
|
-
}
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
});
|
|
296
|
-
}
|
|
294
|
+
}).catch(function (e) {
|
|
295
|
+
sessionStorage.removeItem('remind');
|
|
296
|
+
});
|
|
297
|
+
}, 2000);
|
|
298
|
+
}
|
|
297
299
|
}
|
|
298
300
|
} else if (response.data.rCode === 61) {
|
|
299
301
|
clearTimeout(initAuth);
|
|
@@ -2082,7 +2084,7 @@ var setStorage = function setStorage(_ref14) {
|
|
|
2082
2084
|
* @param {boolean} [or] - 或者(等同于||)
|
|
2083
2085
|
**/
|
|
2084
2086
|
var startWith = function startWith(value, reg) {
|
|
2085
|
-
var or = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] :
|
|
2087
|
+
var or = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
|
|
2086
2088
|
|
|
2087
2089
|
if (Array.isArray(reg)) {
|
|
2088
2090
|
var flag = true;
|
|
@@ -2855,7 +2857,7 @@ module.exports = require("axios");
|
|
|
2855
2857
|
|
|
2856
2858
|
/***/ }),
|
|
2857
2859
|
|
|
2858
|
-
/***/
|
|
2860
|
+
/***/ 51:
|
|
2859
2861
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
2860
2862
|
|
|
2861
2863
|
"use strict";
|
package/lib/pagination.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 = 50);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
@@ -192,7 +192,7 @@ function normalizeComponent(
|
|
|
192
192
|
|
|
193
193
|
/***/ }),
|
|
194
194
|
|
|
195
|
-
/***/
|
|
195
|
+
/***/ 50:
|
|
196
196
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
197
197
|
|
|
198
198
|
"use strict";
|
package/lib/player.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 = 52);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
@@ -248,52 +248,54 @@ var ajax = function ajax(_ref) {
|
|
|
248
248
|
if (response.data.rCode === 64 || response.data.rCode === 65 || response.data.rCode === 67 || response.data.rCode === 69) {
|
|
249
249
|
removeStorage(['Authorization', 'token', 'ssId', 'userId', 'userName', 'deviceUnique', 'menus', 'menus', 'useCaseCodes', 'mainConfig', 'jump']);
|
|
250
250
|
if (win.top.location.href.indexOf('#/login') === -1 && win.top.location.href.indexOf('/login.html') === -1) {
|
|
251
|
-
clearTimeout(loginMsg);
|
|
252
251
|
var remind = sessionStorage.getItem('remind');
|
|
253
|
-
!remind
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
var
|
|
268
|
-
if (
|
|
269
|
-
var
|
|
270
|
-
if (
|
|
271
|
-
pathname = pathname
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
252
|
+
if (!remind) {
|
|
253
|
+
clearTimeout(loginMsg);
|
|
254
|
+
loginMsg = setTimeout(function () {
|
|
255
|
+
sessionStorage.setItem('remind', 1);
|
|
256
|
+
eoss_element__WEBPACK_IMPORTED_MODULE_4__["MessageBox"].confirm(response.data.rCode === 69 ? '该账号在其他地方已登陆!' : '登录已过期,请重新登录!', '提示', response.data.rCode === 69 ? {
|
|
257
|
+
confirmButtonText: '确定',
|
|
258
|
+
closeOnClickModal: false,
|
|
259
|
+
type: 'warning'
|
|
260
|
+
} : {
|
|
261
|
+
confirmButtonText: '确定',
|
|
262
|
+
cancelButtonText: '取消',
|
|
263
|
+
closeOnClickModal: false,
|
|
264
|
+
type: 'warning'
|
|
265
|
+
}).then(function () {
|
|
266
|
+
var loginPage = getStorage('login') || getStorage('loginPage');
|
|
267
|
+
if (loginPage) {
|
|
268
|
+
var src = void 0;
|
|
269
|
+
if (!startWith(loginPage, ['http', '/'], true)) {
|
|
270
|
+
var pathname = win.top.location.pathname;
|
|
271
|
+
if (pathname !== '/') {
|
|
272
|
+
pathname = pathname.split('/');
|
|
273
|
+
pathname.splice(pathname.length - 1);
|
|
274
|
+
pathname = pathname.join('/');
|
|
275
|
+
src = pathname + '/' + loginPage.replace('./', '');
|
|
276
|
+
} else {
|
|
277
|
+
src = pathname + loginPage.replace('./', '');
|
|
278
|
+
}
|
|
275
279
|
} else {
|
|
276
|
-
src =
|
|
280
|
+
src = loginPage;
|
|
277
281
|
}
|
|
282
|
+
win.top.location.href = src;
|
|
283
|
+
} else if (win.top.location.href.indexOf('main.html') > -1) {
|
|
284
|
+
win.top.location.href = './login.html';
|
|
278
285
|
} else {
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
if (hash) {
|
|
287
|
-
var len = win.top.location.href.indexOf(hash);
|
|
288
|
-
win.top.location.href = win.location.href.slice(0, len) + '#/login';
|
|
289
|
-
} else {
|
|
290
|
-
win.top.location.href = '/login.html';
|
|
286
|
+
var hash = win.top.location.hash;
|
|
287
|
+
if (hash) {
|
|
288
|
+
var len = win.top.location.href.indexOf(hash);
|
|
289
|
+
win.top.location.href = win.location.href.slice(0, len) + '#/login';
|
|
290
|
+
} else {
|
|
291
|
+
win.top.location.href = '/login.html';
|
|
292
|
+
}
|
|
291
293
|
}
|
|
292
|
-
}
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
});
|
|
296
|
-
}
|
|
294
|
+
}).catch(function (e) {
|
|
295
|
+
sessionStorage.removeItem('remind');
|
|
296
|
+
});
|
|
297
|
+
}, 2000);
|
|
298
|
+
}
|
|
297
299
|
}
|
|
298
300
|
} else if (response.data.rCode === 61) {
|
|
299
301
|
clearTimeout(initAuth);
|
|
@@ -2082,7 +2084,7 @@ var setStorage = function setStorage(_ref14) {
|
|
|
2082
2084
|
* @param {boolean} [or] - 或者(等同于||)
|
|
2083
2085
|
**/
|
|
2084
2086
|
var startWith = function startWith(value, reg) {
|
|
2085
|
-
var or = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] :
|
|
2087
|
+
var or = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
|
|
2086
2088
|
|
|
2087
2089
|
if (Array.isArray(reg)) {
|
|
2088
2090
|
var flag = true;
|
|
@@ -2729,7 +2731,7 @@ var formContents = '/config/admin/online/onlineForm/render';
|
|
|
2729
2731
|
|
|
2730
2732
|
/***/ }),
|
|
2731
2733
|
|
|
2732
|
-
/***/
|
|
2734
|
+
/***/ 14:
|
|
2733
2735
|
/***/ (function(module, exports) {
|
|
2734
2736
|
|
|
2735
2737
|
module.exports = require("video.js");
|
|
@@ -2876,7 +2878,7 @@ module.exports = require("axios");
|
|
|
2876
2878
|
|
|
2877
2879
|
/***/ }),
|
|
2878
2880
|
|
|
2879
|
-
/***/
|
|
2881
|
+
/***/ 52:
|
|
2880
2882
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
2881
2883
|
|
|
2882
2884
|
"use strict";
|
|
@@ -2904,7 +2906,7 @@ render._withStripped = true
|
|
|
2904
2906
|
// CONCATENATED MODULE: ./packages/player/src/main.vue?vue&type=template&id=29c1659e&
|
|
2905
2907
|
|
|
2906
2908
|
// EXTERNAL MODULE: external "video.js"
|
|
2907
|
-
var external_video_js_ = __webpack_require__(
|
|
2909
|
+
var external_video_js_ = __webpack_require__(14);
|
|
2908
2910
|
var external_video_js_default = /*#__PURE__*/__webpack_require__.n(external_video_js_);
|
|
2909
2911
|
|
|
2910
2912
|
// EXTERNAL MODULE: external "video.js/dist/lang/zh-CN.json"
|
package/lib/qr-code.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 = 53);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
@@ -248,52 +248,54 @@ var ajax = function ajax(_ref) {
|
|
|
248
248
|
if (response.data.rCode === 64 || response.data.rCode === 65 || response.data.rCode === 67 || response.data.rCode === 69) {
|
|
249
249
|
removeStorage(['Authorization', 'token', 'ssId', 'userId', 'userName', 'deviceUnique', 'menus', 'menus', 'useCaseCodes', 'mainConfig', 'jump']);
|
|
250
250
|
if (win.top.location.href.indexOf('#/login') === -1 && win.top.location.href.indexOf('/login.html') === -1) {
|
|
251
|
-
clearTimeout(loginMsg);
|
|
252
251
|
var remind = sessionStorage.getItem('remind');
|
|
253
|
-
!remind
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
var
|
|
268
|
-
if (
|
|
269
|
-
var
|
|
270
|
-
if (
|
|
271
|
-
pathname = pathname
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
252
|
+
if (!remind) {
|
|
253
|
+
clearTimeout(loginMsg);
|
|
254
|
+
loginMsg = setTimeout(function () {
|
|
255
|
+
sessionStorage.setItem('remind', 1);
|
|
256
|
+
eoss_element__WEBPACK_IMPORTED_MODULE_4__["MessageBox"].confirm(response.data.rCode === 69 ? '该账号在其他地方已登陆!' : '登录已过期,请重新登录!', '提示', response.data.rCode === 69 ? {
|
|
257
|
+
confirmButtonText: '确定',
|
|
258
|
+
closeOnClickModal: false,
|
|
259
|
+
type: 'warning'
|
|
260
|
+
} : {
|
|
261
|
+
confirmButtonText: '确定',
|
|
262
|
+
cancelButtonText: '取消',
|
|
263
|
+
closeOnClickModal: false,
|
|
264
|
+
type: 'warning'
|
|
265
|
+
}).then(function () {
|
|
266
|
+
var loginPage = getStorage('login') || getStorage('loginPage');
|
|
267
|
+
if (loginPage) {
|
|
268
|
+
var src = void 0;
|
|
269
|
+
if (!startWith(loginPage, ['http', '/'], true)) {
|
|
270
|
+
var pathname = win.top.location.pathname;
|
|
271
|
+
if (pathname !== '/') {
|
|
272
|
+
pathname = pathname.split('/');
|
|
273
|
+
pathname.splice(pathname.length - 1);
|
|
274
|
+
pathname = pathname.join('/');
|
|
275
|
+
src = pathname + '/' + loginPage.replace('./', '');
|
|
276
|
+
} else {
|
|
277
|
+
src = pathname + loginPage.replace('./', '');
|
|
278
|
+
}
|
|
275
279
|
} else {
|
|
276
|
-
src =
|
|
280
|
+
src = loginPage;
|
|
277
281
|
}
|
|
282
|
+
win.top.location.href = src;
|
|
283
|
+
} else if (win.top.location.href.indexOf('main.html') > -1) {
|
|
284
|
+
win.top.location.href = './login.html';
|
|
278
285
|
} else {
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
if (hash) {
|
|
287
|
-
var len = win.top.location.href.indexOf(hash);
|
|
288
|
-
win.top.location.href = win.location.href.slice(0, len) + '#/login';
|
|
289
|
-
} else {
|
|
290
|
-
win.top.location.href = '/login.html';
|
|
286
|
+
var hash = win.top.location.hash;
|
|
287
|
+
if (hash) {
|
|
288
|
+
var len = win.top.location.href.indexOf(hash);
|
|
289
|
+
win.top.location.href = win.location.href.slice(0, len) + '#/login';
|
|
290
|
+
} else {
|
|
291
|
+
win.top.location.href = '/login.html';
|
|
292
|
+
}
|
|
291
293
|
}
|
|
292
|
-
}
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
});
|
|
296
|
-
}
|
|
294
|
+
}).catch(function (e) {
|
|
295
|
+
sessionStorage.removeItem('remind');
|
|
296
|
+
});
|
|
297
|
+
}, 2000);
|
|
298
|
+
}
|
|
297
299
|
}
|
|
298
300
|
} else if (response.data.rCode === 61) {
|
|
299
301
|
clearTimeout(initAuth);
|
|
@@ -2082,7 +2084,7 @@ var setStorage = function setStorage(_ref14) {
|
|
|
2082
2084
|
* @param {boolean} [or] - 或者(等同于||)
|
|
2083
2085
|
**/
|
|
2084
2086
|
var startWith = function startWith(value, reg) {
|
|
2085
|
-
var or = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] :
|
|
2087
|
+
var or = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
|
|
2086
2088
|
|
|
2087
2089
|
if (Array.isArray(reg)) {
|
|
2088
2090
|
var flag = true;
|
|
@@ -2862,7 +2864,7 @@ module.exports = require("axios");
|
|
|
2862
2864
|
|
|
2863
2865
|
/***/ }),
|
|
2864
2866
|
|
|
2865
|
-
/***/
|
|
2867
|
+
/***/ 53:
|
|
2866
2868
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
2867
2869
|
|
|
2868
2870
|
"use strict";
|