eoss-ui 0.5.43 → 0.5.44
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/README.md +18 -0
- package/lib/button-group.js +120 -69
- package/lib/button.js +133 -72
- package/lib/checkbox-group.js +116 -67
- package/lib/data-table-form.js +126 -74
- package/lib/data-table.js +210 -104
- package/lib/date-picker.js +116 -67
- package/lib/dialog.js +132 -71
- package/lib/eoss-ui.common.js +704 -411
- package/lib/flow-group.js +144 -74
- package/lib/flow-list.js +120 -69
- package/lib/flow.js +169 -99
- package/lib/form.js +125 -69
- package/lib/handle-user.js +127 -70
- package/lib/handler.js +145 -92
- package/lib/index.js +1 -1
- package/lib/input-number.js +116 -67
- package/lib/input.js +116 -67
- package/lib/login.js +149 -97
- package/lib/main.js +234 -152
- package/lib/nav.js +116 -67
- package/lib/page.js +116 -67
- package/lib/player.js +116 -67
- package/lib/qr-code.js +116 -67
- package/lib/radio-group.js +116 -67
- package/lib/retrial-auth.js +130 -71
- package/lib/select-ganged.js +116 -67
- package/lib/select.js +116 -67
- package/lib/selector-panel.js +131 -74
- package/lib/selector.js +116 -67
- package/lib/sizer.js +116 -67
- package/lib/steps.js +116 -67
- package/lib/switch.js +116 -67
- package/lib/table-form.js +123 -72
- package/lib/tabs.js +119 -69
- package/lib/theme-chalk/data-table.css +1 -1
- package/lib/theme-chalk/index.css +1 -1
- package/lib/tips.js +116 -67
- package/lib/tree-group.js +151 -71
- package/lib/tree.js +116 -67
- package/lib/upload.js +136 -78
- package/lib/utils/util.js +116 -67
- package/lib/wujie.js +116 -67
- package/lib/wxlogin.js +116 -67
- package/package.json +2 -2
- package/packages/button/src/main.vue +17 -5
- package/packages/button-group/src/main.vue +2 -0
- package/packages/data-table/src/column.vue +4 -0
- package/packages/data-table/src/main.vue +66 -26
- package/packages/data-table-form/src/tbody.vue +3 -0
- package/packages/dialog/src/main.vue +14 -2
- package/packages/flow/src/component/CustomPreset.vue +14 -7
- package/packages/flow/src/component/FileList.vue +4 -2
- package/packages/flow/src/component/Preset.vue +11 -13
- package/packages/flow/src/form.vue +5 -4
- package/packages/flow/src/main.vue +7 -7
- package/packages/flow/src/table.vue +8 -1
- package/packages/flow-group/src/main.vue +26 -5
- package/packages/form/src/main.vue +12 -0
- package/packages/form/src/table.vue +2 -0
- package/packages/handle-user/src/main.vue +9 -1
- package/packages/handler/src/main.vue +31 -27
- package/packages/login/src/main.vue +35 -31
- package/packages/main/src/async-component/index.vue +4 -2
- package/packages/main/src/main.vue +62 -30
- package/packages/main/src/userinfo.vue +29 -25
- package/packages/retrial-auth/src/main.vue +12 -2
- package/packages/selector-panel/src/selection.vue +6 -0
- package/packages/tabs/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 +1 -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 +1 -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/theme-chalk/src/data-table.scss +6 -0
- package/packages/tree-group/src/main.vue +36 -2
- package/packages/upload/src/main.vue +15 -6
- package/src/index.js +1 -1
- package/src/utils/util.js +132 -80
- package/packages/theme-chalk/gulpfile.js +0 -25
package/lib/login.js
CHANGED
|
@@ -257,7 +257,13 @@ var ajax = function ajax(_ref) {
|
|
|
257
257
|
if (response.status === 200) {
|
|
258
258
|
if (response.data.rCode === 64 || response.data.rCode === 65 || response.data.rCode === 67 || response.data.rCode === 69) {
|
|
259
259
|
removeStorage(['Authorization', 'token', 'ssId', 'userId', 'userName', 'deviceUnique', 'menus', 'menus', 'useCaseCodes', 'mainConfig', 'jump']);
|
|
260
|
-
|
|
260
|
+
var href = '';
|
|
261
|
+
try {
|
|
262
|
+
href = win.top.location.href;
|
|
263
|
+
} catch (error) {
|
|
264
|
+
href = win.location.href;
|
|
265
|
+
}
|
|
266
|
+
if (href.indexOf('#/login') === -1 && href.indexOf('/login.html') === -1) {
|
|
261
267
|
var remind = sessionStorage.getItem('remind');
|
|
262
268
|
if (!remind) {
|
|
263
269
|
clearTimeout(loginMsg);
|
|
@@ -273,33 +279,37 @@ var ajax = function ajax(_ref) {
|
|
|
273
279
|
closeOnClickModal: false,
|
|
274
280
|
type: 'warning'
|
|
275
281
|
}).then(function () {
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
pathname
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
282
|
+
try {
|
|
283
|
+
var loginPage = getStorage('login') || getStorage('loginPage');
|
|
284
|
+
if (loginPage) {
|
|
285
|
+
var src = void 0;
|
|
286
|
+
if (!startWith(loginPage, ['http', '/'], true)) {
|
|
287
|
+
var pathname = win.top.location.pathname;
|
|
288
|
+
if (pathname !== '/') {
|
|
289
|
+
pathname = pathname.split('/');
|
|
290
|
+
pathname.splice(pathname.length - 1);
|
|
291
|
+
pathname = pathname.join('/');
|
|
292
|
+
src = pathname + '/' + loginPage.replace('./', '');
|
|
293
|
+
} else {
|
|
294
|
+
src = pathname + loginPage.replace('./', '');
|
|
295
|
+
}
|
|
286
296
|
} else {
|
|
287
|
-
src =
|
|
297
|
+
src = loginPage;
|
|
288
298
|
}
|
|
299
|
+
win.top.location.href = src;
|
|
300
|
+
} else if (win.top.location.href.indexOf('main.html') > -1) {
|
|
301
|
+
win.top.location.href = './login.html';
|
|
289
302
|
} else {
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
if (hash) {
|
|
298
|
-
var len = win.top.location.href.indexOf(hash);
|
|
299
|
-
win.top.location.href = win.location.href.slice(0, len) + '#/login';
|
|
300
|
-
} else {
|
|
301
|
-
win.top.location.href = '/login.html';
|
|
303
|
+
var hash = win.top.location.hash;
|
|
304
|
+
if (hash) {
|
|
305
|
+
var len = win.top.location.href.indexOf(hash);
|
|
306
|
+
win.top.location.href = win.location.href.slice(0, len) + '#/login';
|
|
307
|
+
} else {
|
|
308
|
+
win.top.location.href = '/login.html';
|
|
309
|
+
}
|
|
302
310
|
}
|
|
311
|
+
} catch (error) {
|
|
312
|
+
win.postMessage({ type: 1 }, '*');
|
|
303
313
|
}
|
|
304
314
|
}).catch(function (e) {
|
|
305
315
|
sessionStorage.removeItem('remind');
|
|
@@ -737,7 +747,13 @@ var delUrlParam = function delUrlParam(_ref2) {
|
|
|
737
747
|
var url = _ref2.url,
|
|
738
748
|
key = _ref2.key;
|
|
739
749
|
|
|
740
|
-
var
|
|
750
|
+
var pUrl = '';
|
|
751
|
+
try {
|
|
752
|
+
pUrl = win.top.location.href;
|
|
753
|
+
} catch (error) {
|
|
754
|
+
pUrl = win.location.href;
|
|
755
|
+
}
|
|
756
|
+
var src = url ? decodeURI(url) : decodeURI(pUrl);
|
|
741
757
|
var param = getParams({ url: src });
|
|
742
758
|
if (param && key.length) {
|
|
743
759
|
if (Array.isArray(key)) {
|
|
@@ -1987,7 +2003,12 @@ var isLogined = function isLogined(_ref8) {
|
|
|
1987
2003
|
}).catch(function () {});
|
|
1988
2004
|
return;
|
|
1989
2005
|
}
|
|
1990
|
-
var pathname =
|
|
2006
|
+
var pathname = '';
|
|
2007
|
+
try {
|
|
2008
|
+
pathname = win.top.location.pathname;
|
|
2009
|
+
} catch (error) {
|
|
2010
|
+
pathname = win.location.pathname;
|
|
2011
|
+
}
|
|
1991
2012
|
if (loginPage) {
|
|
1992
2013
|
sessionStorage.setItem('loginPage', loginPage);
|
|
1993
2014
|
if (!startWith(loginPage, ['http', '/'], true)) {
|
|
@@ -2028,22 +2049,38 @@ var isLogined = function isLogined(_ref8) {
|
|
|
2028
2049
|
deviceUnique: results.deviceUnique
|
|
2029
2050
|
}
|
|
2030
2051
|
});
|
|
2031
|
-
|
|
2032
|
-
url
|
|
2033
|
-
|
|
2034
|
-
|
|
2035
|
-
|
|
2036
|
-
|
|
2037
|
-
|
|
2038
|
-
|
|
2052
|
+
try {
|
|
2053
|
+
var url = delUrlParam({
|
|
2054
|
+
url: win.top.location.href,
|
|
2055
|
+
key: ['serverId', 'authType', 'code', 'sessionId']
|
|
2056
|
+
});
|
|
2057
|
+
win.top.location.href = url;
|
|
2058
|
+
setTimeout(function () {
|
|
2059
|
+
win.top.location.reload();
|
|
2060
|
+
}, 200);
|
|
2061
|
+
} catch (error) {
|
|
2062
|
+
var _url2 = delUrlParam({
|
|
2063
|
+
url: win.location.href,
|
|
2064
|
+
key: ['serverId', 'authType', 'code', 'sessionId']
|
|
2065
|
+
});
|
|
2066
|
+
win.location.href = _url2;
|
|
2067
|
+
setTimeout(function () {
|
|
2068
|
+
win.location.reload();
|
|
2069
|
+
}, 200);
|
|
2070
|
+
}
|
|
2039
2071
|
break;
|
|
2040
2072
|
case 1:
|
|
2041
2073
|
break;
|
|
2042
2074
|
case 2:
|
|
2043
2075
|
break;
|
|
2044
2076
|
case 3:
|
|
2045
|
-
|
|
2046
|
-
|
|
2077
|
+
try {
|
|
2078
|
+
var href = results.authorizeUrl.replace('{redirectUri}', encodeURIComponent(win.top.location.href));
|
|
2079
|
+
win.top.location.href = href;
|
|
2080
|
+
} catch (error) {
|
|
2081
|
+
var _href = results.authorizeUrl.replace('{redirectUri}', encodeURIComponent(win.location.href));
|
|
2082
|
+
win.location.href = _href;
|
|
2083
|
+
}
|
|
2047
2084
|
break;
|
|
2048
2085
|
case 4:
|
|
2049
2086
|
eoss_element__WEBPACK_IMPORTED_MODULE_5__["MessageBox"].alert(results.msg ? results.msg : '账号未绑定,账号密码登录后自动绑定!', '提示', {
|
|
@@ -2051,14 +2088,18 @@ var isLogined = function isLogined(_ref8) {
|
|
|
2051
2088
|
type: 'error',
|
|
2052
2089
|
callback: function callback() {
|
|
2053
2090
|
sessionStorage.setItem('extUserBindHandleId', results.extUserBindHandleId);
|
|
2054
|
-
|
|
2055
|
-
|
|
2056
|
-
|
|
2057
|
-
|
|
2058
|
-
|
|
2059
|
-
win.top.location.href
|
|
2060
|
-
|
|
2061
|
-
|
|
2091
|
+
try {
|
|
2092
|
+
if (loginPage) {
|
|
2093
|
+
win.top.location.replace(loginPage);
|
|
2094
|
+
} else if (document.referrer) {
|
|
2095
|
+
win.top.location.replace(document.referrer);
|
|
2096
|
+
} else if (win.top.location.href.indexOf('main.html') > -1) {
|
|
2097
|
+
win.top.location.href = './login.html';
|
|
2098
|
+
} else {
|
|
2099
|
+
next('/login');
|
|
2100
|
+
}
|
|
2101
|
+
} catch (error) {
|
|
2102
|
+
win.postMessage({ type: 1 }, '*');
|
|
2062
2103
|
}
|
|
2063
2104
|
}
|
|
2064
2105
|
});
|
|
@@ -2070,14 +2111,18 @@ var isLogined = function isLogined(_ref8) {
|
|
|
2070
2111
|
confirmButtonText: '确定',
|
|
2071
2112
|
type: 'error',
|
|
2072
2113
|
callback: function callback() {
|
|
2073
|
-
|
|
2074
|
-
|
|
2075
|
-
|
|
2076
|
-
|
|
2077
|
-
|
|
2078
|
-
win.top.location.href
|
|
2079
|
-
|
|
2080
|
-
|
|
2114
|
+
try {
|
|
2115
|
+
if (loginPage) {
|
|
2116
|
+
win.top.location.replace(loginPage);
|
|
2117
|
+
} else if (document.referrer) {
|
|
2118
|
+
win.top.location.replace(document.referrer);
|
|
2119
|
+
} else if (win.top.location.href.indexOf('main.html') > -1) {
|
|
2120
|
+
win.top.location.href = './login.html';
|
|
2121
|
+
} else {
|
|
2122
|
+
next('/login');
|
|
2123
|
+
}
|
|
2124
|
+
} catch (error) {
|
|
2125
|
+
win.postMessage({ type: 1 }, '*');
|
|
2081
2126
|
}
|
|
2082
2127
|
}
|
|
2083
2128
|
});
|
|
@@ -2090,14 +2135,18 @@ var isLogined = function isLogined(_ref8) {
|
|
|
2090
2135
|
next();
|
|
2091
2136
|
}
|
|
2092
2137
|
} else {
|
|
2093
|
-
|
|
2094
|
-
|
|
2095
|
-
|
|
2096
|
-
|
|
2097
|
-
|
|
2098
|
-
win.top.location.href
|
|
2099
|
-
|
|
2100
|
-
|
|
2138
|
+
try {
|
|
2139
|
+
if (loginPage) {
|
|
2140
|
+
win.top.location.replace(loginPage);
|
|
2141
|
+
} else if (document.referrer) {
|
|
2142
|
+
win.top.location.replace(document.referrer);
|
|
2143
|
+
} else if (win.top.location.href.indexOf('main.html') > -1) {
|
|
2144
|
+
win.top.location.href = './login.html';
|
|
2145
|
+
} else {
|
|
2146
|
+
next('/login');
|
|
2147
|
+
}
|
|
2148
|
+
} catch (error) {
|
|
2149
|
+
win.postMessage({ type: 1 }, '*');
|
|
2101
2150
|
}
|
|
2102
2151
|
}
|
|
2103
2152
|
}
|
|
@@ -2527,30 +2576,30 @@ var setStorage = function setStorage(_ref14) {
|
|
|
2527
2576
|
if (value && (typeof value === 'undefined' ? 'undefined' : _typeof(value)) === 'object') {
|
|
2528
2577
|
value = JSON.stringify(value);
|
|
2529
2578
|
}
|
|
2530
|
-
if (type ===
|
|
2579
|
+
if (type === 'localStorage') {
|
|
2531
2580
|
if (typeof key === 'string') {
|
|
2532
|
-
|
|
2581
|
+
localStorage.setItem(key, value);
|
|
2533
2582
|
} else if (Array.isArray(key)) {
|
|
2534
2583
|
for (var i in key) {
|
|
2535
|
-
|
|
2584
|
+
localStorage.setItem(key[i], value);
|
|
2536
2585
|
}
|
|
2537
2586
|
} else {
|
|
2538
2587
|
for (var _i6 in key) {
|
|
2539
2588
|
var val = _typeof(key[_i6]) === 'object' ? JSON.stringify(key[_i6]) : key[_i6];
|
|
2540
|
-
|
|
2589
|
+
localStorage.setItem(_i6, val);
|
|
2541
2590
|
}
|
|
2542
2591
|
}
|
|
2543
2592
|
} else {
|
|
2544
2593
|
if (typeof key === 'string') {
|
|
2545
|
-
|
|
2594
|
+
sessionStorage.setItem(key, value);
|
|
2546
2595
|
} else if (Array.isArray(key)) {
|
|
2547
2596
|
for (var _i7 in key) {
|
|
2548
|
-
|
|
2597
|
+
sessionStorage.setItem(key[_i7], value);
|
|
2549
2598
|
}
|
|
2550
2599
|
} else {
|
|
2551
2600
|
for (var _i8 in key) {
|
|
2552
2601
|
var _val = _typeof(key[_i8]) === 'object' ? JSON.stringify(key[_i8]) : key[_i8];
|
|
2553
|
-
|
|
2602
|
+
sessionStorage.setItem(_i8, _val);
|
|
2554
2603
|
}
|
|
2555
2604
|
}
|
|
2556
2605
|
}
|
|
@@ -3715,7 +3764,7 @@ var bankCard = { pattern: new RegExp('^([1-9]{1})(\\d{14}|\\d{18})$'), message:
|
|
|
3715
3764
|
// ESM COMPAT FLAG
|
|
3716
3765
|
__webpack_require__.r(__webpack_exports__);
|
|
3717
3766
|
|
|
3718
|
-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/login/src/main.vue?vue&type=template&id=
|
|
3767
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/login/src/main.vue?vue&type=template&id=705a6762&
|
|
3719
3768
|
var render = function () {
|
|
3720
3769
|
var _vm = this
|
|
3721
3770
|
var _h = _vm.$createElement
|
|
@@ -4205,7 +4254,7 @@ var render = function () {
|
|
|
4205
4254
|
],
|
|
4206
4255
|
2
|
|
4207
4256
|
),
|
|
4208
|
-
_vm.active == 3
|
|
4257
|
+
_vm.active == 3 && _vm.identifyingId
|
|
4209
4258
|
? _c("es-qr-code", {
|
|
4210
4259
|
attrs: { content: _vm.identifyingId },
|
|
4211
4260
|
})
|
|
@@ -4599,7 +4648,7 @@ var staticRenderFns = []
|
|
|
4599
4648
|
render._withStripped = true
|
|
4600
4649
|
|
|
4601
4650
|
|
|
4602
|
-
// CONCATENATED MODULE: ./packages/login/src/main.vue?vue&type=template&id=
|
|
4651
|
+
// CONCATENATED MODULE: ./packages/login/src/main.vue?vue&type=template&id=705a6762&
|
|
4603
4652
|
|
|
4604
4653
|
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/login/src/resetPassword.vue?vue&type=template&id=28f463b9&
|
|
4605
4654
|
var resetPasswordvue_type_template_id_28f463b9_render = function () {
|
|
@@ -5906,8 +5955,10 @@ var mainvue_type_script_lang_js_extends = Object.assign || function (target) { f
|
|
|
5906
5955
|
doAssistance: null
|
|
5907
5956
|
};
|
|
5908
5957
|
},
|
|
5909
|
-
|
|
5958
|
+
beforeCreate: function beforeCreate() {
|
|
5910
5959
|
util["a" /* default */].removeStorage(['remind', 'ssId', 'token', 'Authorization', 'deviceUnique', 'userId', 'userName', 'useCaseCodes']);
|
|
5960
|
+
},
|
|
5961
|
+
created: function created() {
|
|
5911
5962
|
this.code = util["a" /* default */].getParams('code');
|
|
5912
5963
|
if (this.code) {
|
|
5913
5964
|
this.doWechatLogin(this.code);
|
|
@@ -6048,6 +6099,7 @@ var mainvue_type_script_lang_js_extends = Object.assign || function (target) { f
|
|
|
6048
6099
|
this.onDownLoadApp();
|
|
6049
6100
|
} else {
|
|
6050
6101
|
this.$emit('handleDownLoadApp');
|
|
6102
|
+
this.$emit('handle-down-load-app');
|
|
6051
6103
|
}
|
|
6052
6104
|
} else {
|
|
6053
6105
|
this.showDownLoadApp = true;
|
|
@@ -6069,36 +6121,34 @@ var mainvue_type_script_lang_js_extends = Object.assign || function (target) { f
|
|
|
6069
6121
|
getLogin: function getLogin() {
|
|
6070
6122
|
var _this3 = this;
|
|
6071
6123
|
|
|
6072
|
-
var config =
|
|
6124
|
+
var config = util["a" /* default */].getStorage('initLogin');
|
|
6073
6125
|
if (config) {
|
|
6074
6126
|
this.setConfig(config);
|
|
6075
|
-
} else {
|
|
6076
|
-
util["a" /* default */].ajax({ url: this.initLogin }).then(function (res) {
|
|
6077
|
-
if (res && res.rCode === 0) {
|
|
6078
|
-
store["a" /* default */].set('initLogin', res.results);
|
|
6079
|
-
util["a" /* default */].setStorage({
|
|
6080
|
-
type: _this3.storage,
|
|
6081
|
-
key: 'initLogin',
|
|
6082
|
-
value: JSON.stringify(res.results)
|
|
6083
|
-
});
|
|
6084
|
-
_this3.setConfig(res.results);
|
|
6085
|
-
} else {
|
|
6086
|
-
_this3.$message({
|
|
6087
|
-
message: res.msg || '系统错误,请联系管理员!',
|
|
6088
|
-
type: 'error',
|
|
6089
|
-
duration: 2000
|
|
6090
|
-
});
|
|
6091
|
-
}
|
|
6092
|
-
}).catch(function (err) {
|
|
6093
|
-
if (err.message && err.message !== 'canceled') {
|
|
6094
|
-
_this3.$message.error(err.message);
|
|
6095
|
-
}
|
|
6096
|
-
});
|
|
6097
6127
|
}
|
|
6128
|
+
util["a" /* default */].ajax({ url: this.initLogin }).then(function (res) {
|
|
6129
|
+
if (res && res.rCode === 0) {
|
|
6130
|
+
store["a" /* default */].set('initLogin', res.results);
|
|
6131
|
+
util["a" /* default */].setStorage({
|
|
6132
|
+
type: 'localStorage',
|
|
6133
|
+
key: 'initLogin',
|
|
6134
|
+
value: JSON.stringify(res.results)
|
|
6135
|
+
});
|
|
6136
|
+
_this3.setConfig(res.results);
|
|
6137
|
+
} else {
|
|
6138
|
+
_this3.$message({
|
|
6139
|
+
message: res.msg || '系统错误,请联系管理员!',
|
|
6140
|
+
type: 'error',
|
|
6141
|
+
duration: 2000
|
|
6142
|
+
});
|
|
6143
|
+
}
|
|
6144
|
+
}).catch(function (err) {
|
|
6145
|
+
if (err.message && err.message !== 'canceled') {
|
|
6146
|
+
_this3.$message.error(err.message);
|
|
6147
|
+
}
|
|
6148
|
+
});
|
|
6098
6149
|
},
|
|
6099
6150
|
setConfig: function setConfig(res) {
|
|
6100
|
-
|
|
6101
|
-
this.identifyingId = res.identifyingId;
|
|
6151
|
+
this.identifyingId = res.identifyingId || '';
|
|
6102
6152
|
this.getImgCode();
|
|
6103
6153
|
var downloads = {};
|
|
6104
6154
|
if (res.androidDownloadUrl) {
|
|
@@ -6126,9 +6176,11 @@ var mainvue_type_script_lang_js_extends = Object.assign || function (target) { f
|
|
|
6126
6176
|
this.loginModel = res.loginModel;
|
|
6127
6177
|
this.loginBackgroundImg = res.loginBackgroundUrl ? res.loginBackgroundUrl.split(',') : null;
|
|
6128
6178
|
this.loginLogoImg = res.loginLogoUrl ? res.loginLogoUrl : null;
|
|
6179
|
+
res.loginPage && sessionStorage.setItem('loginPage', res.loginPage);
|
|
6129
6180
|
if (res.subsystemExtend && Object.keys(res.subsystemExtend).length) {
|
|
6130
6181
|
this.icpInfo = res.subsystemExtend;
|
|
6131
6182
|
this.forgetUrl = res.subsystemExtend.look_pass_url;
|
|
6183
|
+
res.subsystemExtend.loginPage && sessionStorage.setItem('loginPage', res.subsystemExtend.loginPage);
|
|
6132
6184
|
if (res.subsystemExtend.login_url) {
|
|
6133
6185
|
this.actionUrl = res.subsystemExtend.login_url;
|
|
6134
6186
|
}
|
|
@@ -6318,7 +6370,7 @@ var mainvue_type_script_lang_js_extends = Object.assign || function (target) { f
|
|
|
6318
6370
|
}).then(function (res) {
|
|
6319
6371
|
_this6.submit = false;
|
|
6320
6372
|
if (res.rCode == 0) {
|
|
6321
|
-
|
|
6373
|
+
util["a" /* default */].removeStorage('extUserBindHandleId');
|
|
6322
6374
|
_this6.handleRemember();
|
|
6323
6375
|
var results = res.results;
|
|
6324
6376
|
_this6.handleResults(results);
|