eoss-ui 0.5.43 → 0.5.45
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 +136 -69
- package/lib/button.js +146 -72
- package/lib/checkbox-group.js +132 -67
- package/lib/data-table-form.js +142 -74
- package/lib/data-table.js +225 -104
- package/lib/date-picker.js +132 -67
- package/lib/dialog.js +145 -71
- package/lib/eoss-ui.common.js +717 -414
- package/lib/flow-group.js +157 -74
- package/lib/flow-list.js +136 -69
- package/lib/flow.js +185 -99
- package/lib/form.js +141 -69
- package/lib/handle-user.js +142 -70
- package/lib/handler.js +165 -93
- package/lib/index.js +1 -1
- package/lib/input-number.js +132 -67
- package/lib/input.js +132 -67
- package/lib/login.js +165 -97
- package/lib/main.js +258 -153
- package/lib/nav.js +132 -67
- package/lib/page.js +132 -67
- package/lib/player.js +132 -67
- package/lib/qr-code.js +132 -67
- package/lib/radio-group.js +132 -67
- package/lib/retrial-auth.js +144 -71
- package/lib/select-ganged.js +132 -67
- package/lib/select.js +132 -67
- package/lib/selector-panel.js +147 -74
- package/lib/selector.js +132 -67
- package/lib/sizer.js +132 -67
- package/lib/steps.js +132 -67
- package/lib/switch.js +132 -67
- package/lib/table-form.js +139 -72
- package/lib/tabs.js +135 -69
- package/lib/theme-chalk/data-table.css +1 -1
- package/lib/theme-chalk/index.css +1 -1
- package/lib/theme-chalk/toolbar.css +1 -1
- package/lib/tips.js +132 -67
- package/lib/toolbar.js +7 -1
- package/lib/tree-group.js +167 -71
- package/lib/tree.js +132 -67
- package/lib/upload.js +143 -78
- package/lib/utils/util.js +132 -67
- package/lib/wujie.js +132 -67
- package/lib/wxlogin.js +132 -67
- package/package.json +2 -2
- package/packages/button/src/main.vue +14 -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 +65 -26
- package/packages/data-table-form/src/tbody.vue +3 -0
- package/packages/dialog/src/main.vue +11 -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 +23 -5
- package/packages/form/src/main.vue +12 -0
- package/packages/form/src/table.vue +2 -0
- package/packages/handle-user/src/main.vue +8 -1
- package/packages/handler/src/main.vue +35 -28
- package/packages/login/src/main.vue +35 -31
- package/packages/main/src/async-component/index.vue +4 -2
- package/packages/main/src/main.vue +70 -31
- package/packages/main/src/userinfo.vue +29 -25
- package/packages/retrial-auth/src/main.vue +10 -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/theme-chalk/src/toolbar.scss +3 -0
- package/packages/toolbar/src/main.vue +10 -1
- package/packages/tree-group/src/main.vue +36 -2
- package/packages/upload/src/main.vue +6 -6
- package/src/index.js +1 -1
- package/src/utils/util.js +148 -80
- package/packages/theme-chalk/gulpfile.js +0 -25
package/lib/main.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)) {
|
|
@@ -1233,6 +1249,21 @@ var getHour = function getHour(datetime) {
|
|
|
1233
1249
|
return datetimeObj.getHours();
|
|
1234
1250
|
};
|
|
1235
1251
|
|
|
1252
|
+
/**
|
|
1253
|
+
* getMyWinTop
|
|
1254
|
+
* @desc 获取同域的top窗口
|
|
1255
|
+
* @param {object} wind - window对象
|
|
1256
|
+
**/
|
|
1257
|
+
var getMyWinTop = function getMyWinTop(wind) {
|
|
1258
|
+
wind = wind ? wind : win;
|
|
1259
|
+
try {
|
|
1260
|
+
wind.parent.document;
|
|
1261
|
+
return getMyWinTop(wind.parent);
|
|
1262
|
+
} catch (error) {
|
|
1263
|
+
return wind;
|
|
1264
|
+
}
|
|
1265
|
+
};
|
|
1266
|
+
|
|
1236
1267
|
/**
|
|
1237
1268
|
* getWeekNumber
|
|
1238
1269
|
* @desc 当年第几周
|
|
@@ -1987,7 +2018,12 @@ var isLogined = function isLogined(_ref8) {
|
|
|
1987
2018
|
}).catch(function () {});
|
|
1988
2019
|
return;
|
|
1989
2020
|
}
|
|
1990
|
-
var pathname =
|
|
2021
|
+
var pathname = '';
|
|
2022
|
+
try {
|
|
2023
|
+
pathname = win.top.location.pathname;
|
|
2024
|
+
} catch (error) {
|
|
2025
|
+
pathname = win.location.pathname;
|
|
2026
|
+
}
|
|
1991
2027
|
if (loginPage) {
|
|
1992
2028
|
sessionStorage.setItem('loginPage', loginPage);
|
|
1993
2029
|
if (!startWith(loginPage, ['http', '/'], true)) {
|
|
@@ -2028,22 +2064,38 @@ var isLogined = function isLogined(_ref8) {
|
|
|
2028
2064
|
deviceUnique: results.deviceUnique
|
|
2029
2065
|
}
|
|
2030
2066
|
});
|
|
2031
|
-
|
|
2032
|
-
url
|
|
2033
|
-
|
|
2034
|
-
|
|
2035
|
-
|
|
2036
|
-
|
|
2037
|
-
|
|
2038
|
-
|
|
2067
|
+
try {
|
|
2068
|
+
var url = delUrlParam({
|
|
2069
|
+
url: win.top.location.href,
|
|
2070
|
+
key: ['serverId', 'authType', 'code', 'sessionId']
|
|
2071
|
+
});
|
|
2072
|
+
win.top.location.href = url;
|
|
2073
|
+
setTimeout(function () {
|
|
2074
|
+
win.top.location.reload();
|
|
2075
|
+
}, 200);
|
|
2076
|
+
} catch (error) {
|
|
2077
|
+
var _url2 = delUrlParam({
|
|
2078
|
+
url: win.location.href,
|
|
2079
|
+
key: ['serverId', 'authType', 'code', 'sessionId']
|
|
2080
|
+
});
|
|
2081
|
+
win.location.href = _url2;
|
|
2082
|
+
setTimeout(function () {
|
|
2083
|
+
win.location.reload();
|
|
2084
|
+
}, 200);
|
|
2085
|
+
}
|
|
2039
2086
|
break;
|
|
2040
2087
|
case 1:
|
|
2041
2088
|
break;
|
|
2042
2089
|
case 2:
|
|
2043
2090
|
break;
|
|
2044
2091
|
case 3:
|
|
2045
|
-
|
|
2046
|
-
|
|
2092
|
+
try {
|
|
2093
|
+
var href = results.authorizeUrl.replace('{redirectUri}', encodeURIComponent(win.top.location.href));
|
|
2094
|
+
win.top.location.href = href;
|
|
2095
|
+
} catch (error) {
|
|
2096
|
+
var _href = results.authorizeUrl.replace('{redirectUri}', encodeURIComponent(win.location.href));
|
|
2097
|
+
win.location.href = _href;
|
|
2098
|
+
}
|
|
2047
2099
|
break;
|
|
2048
2100
|
case 4:
|
|
2049
2101
|
eoss_element__WEBPACK_IMPORTED_MODULE_5__["MessageBox"].alert(results.msg ? results.msg : '账号未绑定,账号密码登录后自动绑定!', '提示', {
|
|
@@ -2051,14 +2103,18 @@ var isLogined = function isLogined(_ref8) {
|
|
|
2051
2103
|
type: 'error',
|
|
2052
2104
|
callback: function callback() {
|
|
2053
2105
|
sessionStorage.setItem('extUserBindHandleId', results.extUserBindHandleId);
|
|
2054
|
-
|
|
2055
|
-
|
|
2056
|
-
|
|
2057
|
-
|
|
2058
|
-
|
|
2059
|
-
win.top.location.href
|
|
2060
|
-
|
|
2061
|
-
|
|
2106
|
+
try {
|
|
2107
|
+
if (loginPage) {
|
|
2108
|
+
win.top.location.replace(loginPage);
|
|
2109
|
+
} else if (document.referrer) {
|
|
2110
|
+
win.top.location.replace(document.referrer);
|
|
2111
|
+
} else if (win.top.location.href.indexOf('main.html') > -1) {
|
|
2112
|
+
win.top.location.href = './login.html';
|
|
2113
|
+
} else {
|
|
2114
|
+
next('/login');
|
|
2115
|
+
}
|
|
2116
|
+
} catch (error) {
|
|
2117
|
+
win.postMessage({ type: 1 }, '*');
|
|
2062
2118
|
}
|
|
2063
2119
|
}
|
|
2064
2120
|
});
|
|
@@ -2070,14 +2126,18 @@ var isLogined = function isLogined(_ref8) {
|
|
|
2070
2126
|
confirmButtonText: '确定',
|
|
2071
2127
|
type: 'error',
|
|
2072
2128
|
callback: function callback() {
|
|
2073
|
-
|
|
2074
|
-
|
|
2075
|
-
|
|
2076
|
-
|
|
2077
|
-
|
|
2078
|
-
win.top.location.href
|
|
2079
|
-
|
|
2080
|
-
|
|
2129
|
+
try {
|
|
2130
|
+
if (loginPage) {
|
|
2131
|
+
win.top.location.replace(loginPage);
|
|
2132
|
+
} else if (document.referrer) {
|
|
2133
|
+
win.top.location.replace(document.referrer);
|
|
2134
|
+
} else if (win.top.location.href.indexOf('main.html') > -1) {
|
|
2135
|
+
win.top.location.href = './login.html';
|
|
2136
|
+
} else {
|
|
2137
|
+
next('/login');
|
|
2138
|
+
}
|
|
2139
|
+
} catch (error) {
|
|
2140
|
+
win.postMessage({ type: 1 }, '*');
|
|
2081
2141
|
}
|
|
2082
2142
|
}
|
|
2083
2143
|
});
|
|
@@ -2090,14 +2150,18 @@ var isLogined = function isLogined(_ref8) {
|
|
|
2090
2150
|
next();
|
|
2091
2151
|
}
|
|
2092
2152
|
} else {
|
|
2093
|
-
|
|
2094
|
-
|
|
2095
|
-
|
|
2096
|
-
|
|
2097
|
-
|
|
2098
|
-
win.top.location.href
|
|
2099
|
-
|
|
2100
|
-
|
|
2153
|
+
try {
|
|
2154
|
+
if (loginPage) {
|
|
2155
|
+
win.top.location.replace(loginPage);
|
|
2156
|
+
} else if (document.referrer) {
|
|
2157
|
+
win.top.location.replace(document.referrer);
|
|
2158
|
+
} else if (win.top.location.href.indexOf('main.html') > -1) {
|
|
2159
|
+
win.top.location.href = './login.html';
|
|
2160
|
+
} else {
|
|
2161
|
+
next('/login');
|
|
2162
|
+
}
|
|
2163
|
+
} catch (error) {
|
|
2164
|
+
win.postMessage({ type: 1 }, '*');
|
|
2101
2165
|
}
|
|
2102
2166
|
}
|
|
2103
2167
|
}
|
|
@@ -2527,30 +2591,30 @@ var setStorage = function setStorage(_ref14) {
|
|
|
2527
2591
|
if (value && (typeof value === 'undefined' ? 'undefined' : _typeof(value)) === 'object') {
|
|
2528
2592
|
value = JSON.stringify(value);
|
|
2529
2593
|
}
|
|
2530
|
-
if (type ===
|
|
2594
|
+
if (type === 'localStorage') {
|
|
2531
2595
|
if (typeof key === 'string') {
|
|
2532
|
-
|
|
2596
|
+
localStorage.setItem(key, value);
|
|
2533
2597
|
} else if (Array.isArray(key)) {
|
|
2534
2598
|
for (var i in key) {
|
|
2535
|
-
|
|
2599
|
+
localStorage.setItem(key[i], value);
|
|
2536
2600
|
}
|
|
2537
2601
|
} else {
|
|
2538
2602
|
for (var _i6 in key) {
|
|
2539
2603
|
var val = _typeof(key[_i6]) === 'object' ? JSON.stringify(key[_i6]) : key[_i6];
|
|
2540
|
-
|
|
2604
|
+
localStorage.setItem(_i6, val);
|
|
2541
2605
|
}
|
|
2542
2606
|
}
|
|
2543
2607
|
} else {
|
|
2544
2608
|
if (typeof key === 'string') {
|
|
2545
|
-
|
|
2609
|
+
sessionStorage.setItem(key, value);
|
|
2546
2610
|
} else if (Array.isArray(key)) {
|
|
2547
2611
|
for (var _i7 in key) {
|
|
2548
|
-
|
|
2612
|
+
sessionStorage.setItem(key[_i7], value);
|
|
2549
2613
|
}
|
|
2550
2614
|
} else {
|
|
2551
2615
|
for (var _i8 in key) {
|
|
2552
2616
|
var _val = _typeof(key[_i8]) === 'object' ? JSON.stringify(key[_i8]) : key[_i8];
|
|
2553
|
-
|
|
2617
|
+
sessionStorage.setItem(_i8, _val);
|
|
2554
2618
|
}
|
|
2555
2619
|
}
|
|
2556
2620
|
}
|
|
@@ -2953,6 +3017,7 @@ var watermark = function watermark(option) {
|
|
|
2953
3017
|
getCurrentDate: getCurrentDate,
|
|
2954
3018
|
getCurrentDateTime: getCurrentDateTime,
|
|
2955
3019
|
getHour: getHour,
|
|
3020
|
+
getMyWinTop: getMyWinTop,
|
|
2956
3021
|
getWeekNumber: getWeekNumber,
|
|
2957
3022
|
getLength: getLength,
|
|
2958
3023
|
getMainConfig: getMainConfig,
|
|
@@ -3698,7 +3763,7 @@ module.exports = require("runtime-import");
|
|
|
3698
3763
|
// ESM COMPAT FLAG
|
|
3699
3764
|
__webpack_require__.r(__webpack_exports__);
|
|
3700
3765
|
|
|
3701
|
-
// 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=
|
|
3766
|
+
// 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=679ec798&
|
|
3702
3767
|
var render = function () {
|
|
3703
3768
|
var _vm = this
|
|
3704
3769
|
var _h = _vm.$createElement
|
|
@@ -3810,7 +3875,7 @@ var render = function () {
|
|
|
3810
3875
|
storage: _vm.storage,
|
|
3811
3876
|
notice: _vm.notice,
|
|
3812
3877
|
data: _vm.handleData,
|
|
3813
|
-
"max-height": _vm.
|
|
3878
|
+
"max-height": _vm._maxHeight,
|
|
3814
3879
|
},
|
|
3815
3880
|
on: {
|
|
3816
3881
|
select: function (res) {
|
|
@@ -4129,10 +4194,10 @@ var staticRenderFns = []
|
|
|
4129
4194
|
render._withStripped = true
|
|
4130
4195
|
|
|
4131
4196
|
|
|
4132
|
-
// CONCATENATED MODULE: ./packages/main/src/main.vue?vue&type=template&id=
|
|
4197
|
+
// CONCATENATED MODULE: ./packages/main/src/main.vue?vue&type=template&id=679ec798&
|
|
4133
4198
|
|
|
4134
|
-
// 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=
|
|
4135
|
-
var
|
|
4199
|
+
// 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=e93353b8&
|
|
4200
|
+
var userinfovue_type_template_id_e93353b8_render = function () {
|
|
4136
4201
|
var _vm = this
|
|
4137
4202
|
var _h = _vm.$createElement
|
|
4138
4203
|
var _c = _vm._self._c || _h
|
|
@@ -4148,11 +4213,11 @@ var userinfovue_type_template_id_137dd243_render = function () {
|
|
|
4148
4213
|
2
|
|
4149
4214
|
)
|
|
4150
4215
|
}
|
|
4151
|
-
var
|
|
4152
|
-
|
|
4216
|
+
var userinfovue_type_template_id_e93353b8_staticRenderFns = []
|
|
4217
|
+
userinfovue_type_template_id_e93353b8_render._withStripped = true
|
|
4153
4218
|
|
|
4154
4219
|
|
|
4155
|
-
// CONCATENATED MODULE: ./packages/main/src/userinfo.vue?vue&type=template&id=
|
|
4220
|
+
// CONCATENATED MODULE: ./packages/main/src/userinfo.vue?vue&type=template&id=e93353b8&
|
|
4156
4221
|
|
|
4157
4222
|
// EXTERNAL MODULE: ./src/config/api.js
|
|
4158
4223
|
var api = __webpack_require__(1);
|
|
@@ -4496,32 +4561,36 @@ var util = __webpack_require__(0);
|
|
|
4496
4561
|
type: 'warning'
|
|
4497
4562
|
}).then(function () {
|
|
4498
4563
|
var loginPage = util["a" /* default */].getStorage('login') || util["a" /* default */].getStorage('loginPage');
|
|
4499
|
-
|
|
4500
|
-
|
|
4501
|
-
|
|
4502
|
-
|
|
4503
|
-
|
|
4504
|
-
pathname
|
|
4505
|
-
|
|
4506
|
-
|
|
4507
|
-
|
|
4564
|
+
try {
|
|
4565
|
+
if (loginPage) {
|
|
4566
|
+
var src = void 0;
|
|
4567
|
+
if (!util["a" /* default */].startWith(loginPage, ['http', '/'], true)) {
|
|
4568
|
+
var pathname = util["a" /* default */].win.top.location.pathname;
|
|
4569
|
+
if (pathname !== '/') {
|
|
4570
|
+
pathname = pathname.split('/');
|
|
4571
|
+
pathname.splice(pathname.length - 1);
|
|
4572
|
+
pathname = pathname.join('/');
|
|
4573
|
+
src = pathname + '/' + loginPage.replace('./', '');
|
|
4574
|
+
} else {
|
|
4575
|
+
src = pathname + loginPage.replace('./', '');
|
|
4576
|
+
}
|
|
4508
4577
|
} else {
|
|
4509
|
-
src =
|
|
4578
|
+
src = loginPage;
|
|
4510
4579
|
}
|
|
4580
|
+
util["a" /* default */].win.top.location.href = src;
|
|
4581
|
+
} else if (util["a" /* default */].win.top.location.href.indexOf('main.html') > -1) {
|
|
4582
|
+
util["a" /* default */].win.top.location.href = './login.html';
|
|
4511
4583
|
} else {
|
|
4512
|
-
|
|
4513
|
-
|
|
4514
|
-
|
|
4515
|
-
|
|
4516
|
-
|
|
4517
|
-
|
|
4518
|
-
|
|
4519
|
-
if (hash) {
|
|
4520
|
-
var len = util["a" /* default */].win.top.location.href.indexOf(hash);
|
|
4521
|
-
util["a" /* default */].win.top.location.href = util["a" /* default */].win.location.href.slice(0, len) + '#/login';
|
|
4522
|
-
} else {
|
|
4523
|
-
util["a" /* default */].win.top.location.href = '/login.html';
|
|
4584
|
+
var hash = util["a" /* default */].win.top.location.hash;
|
|
4585
|
+
if (hash) {
|
|
4586
|
+
var len = util["a" /* default */].win.top.location.href.indexOf(hash);
|
|
4587
|
+
util["a" /* default */].win.top.location.href = util["a" /* default */].win.location.href.slice(0, len) + '#/login';
|
|
4588
|
+
} else {
|
|
4589
|
+
util["a" /* default */].win.top.location.href = '/login.html';
|
|
4590
|
+
}
|
|
4524
4591
|
}
|
|
4592
|
+
} catch (error) {
|
|
4593
|
+
util["a" /* default */].win.postMessage({ type: 1 }, '*');
|
|
4525
4594
|
}
|
|
4526
4595
|
}).catch(function (e) {});
|
|
4527
4596
|
} else {
|
|
@@ -4580,8 +4649,8 @@ var componentNormalizer = __webpack_require__(3);
|
|
|
4580
4649
|
|
|
4581
4650
|
var component = Object(componentNormalizer["a" /* default */])(
|
|
4582
4651
|
src_userinfovue_type_script_lang_js_,
|
|
4583
|
-
|
|
4584
|
-
|
|
4652
|
+
userinfovue_type_template_id_e93353b8_render,
|
|
4653
|
+
userinfovue_type_template_id_e93353b8_staticRenderFns,
|
|
4585
4654
|
false,
|
|
4586
4655
|
null,
|
|
4587
4656
|
null,
|
|
@@ -5756,8 +5825,8 @@ var notice_component = Object(componentNormalizer["a" /* default */])(
|
|
|
5756
5825
|
)
|
|
5757
5826
|
|
|
5758
5827
|
/* harmony default export */ var notice = (notice_component.exports);
|
|
5759
|
-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/async-component/index.vue?vue&type=template&id=
|
|
5760
|
-
var
|
|
5828
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/async-component/index.vue?vue&type=template&id=8b78c8b6&scoped=true&
|
|
5829
|
+
var async_componentvue_type_template_id_8b78c8b6_scoped_true_render = function () {
|
|
5761
5830
|
var _vm = this
|
|
5762
5831
|
var _h = _vm.$createElement
|
|
5763
5832
|
var _c = _vm._self._c || _h
|
|
@@ -5769,11 +5838,11 @@ var async_componentvue_type_template_id_51f0233c_scoped_true_render = function (
|
|
|
5769
5838
|
)
|
|
5770
5839
|
)
|
|
5771
5840
|
}
|
|
5772
|
-
var
|
|
5773
|
-
|
|
5841
|
+
var async_componentvue_type_template_id_8b78c8b6_scoped_true_staticRenderFns = []
|
|
5842
|
+
async_componentvue_type_template_id_8b78c8b6_scoped_true_render._withStripped = true
|
|
5774
5843
|
|
|
5775
5844
|
|
|
5776
|
-
// CONCATENATED MODULE: ./packages/main/src/async-component/index.vue?vue&type=template&id=
|
|
5845
|
+
// CONCATENATED MODULE: ./packages/main/src/async-component/index.vue?vue&type=template&id=8b78c8b6&scoped=true&
|
|
5777
5846
|
|
|
5778
5847
|
// EXTERNAL MODULE: external "babel-runtime/regenerator"
|
|
5779
5848
|
var regenerator_ = __webpack_require__(12);
|
|
@@ -5839,7 +5908,7 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
|
|
|
5839
5908
|
_context.prev = 0;
|
|
5840
5909
|
|
|
5841
5910
|
if (!(url.indexOf && (url.indexOf('http:') != -1 || url.indexOf('https:') != -1 || url.indexOf('/dev-api') != -1))) {
|
|
5842
|
-
_context.next =
|
|
5911
|
+
_context.next = 21;
|
|
5843
5912
|
break;
|
|
5844
5913
|
}
|
|
5845
5914
|
|
|
@@ -5847,7 +5916,7 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
|
|
|
5847
5916
|
catchComponent = util["a" /* default */].win[url];
|
|
5848
5917
|
|
|
5849
5918
|
if (!catchComponent) {
|
|
5850
|
-
_context.next =
|
|
5919
|
+
_context.next = 9;
|
|
5851
5920
|
break;
|
|
5852
5921
|
}
|
|
5853
5922
|
|
|
@@ -5855,56 +5924,58 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
|
|
|
5855
5924
|
_this.comp = catchComponent;
|
|
5856
5925
|
// 回传props内容
|
|
5857
5926
|
_this.$emit('handleGetProps', _this.comp.props);
|
|
5858
|
-
|
|
5927
|
+
_this.$emit('handle-get-props', _this.comp.props);
|
|
5928
|
+
_context.next = 19;
|
|
5859
5929
|
break;
|
|
5860
5930
|
|
|
5861
|
-
case
|
|
5862
|
-
_context.next =
|
|
5931
|
+
case 9:
|
|
5932
|
+
_context.next = 11;
|
|
5863
5933
|
return Object(external_runtime_import_["importScript"])(url);
|
|
5864
5934
|
|
|
5865
|
-
case
|
|
5935
|
+
case 11:
|
|
5866
5936
|
comp = _context.sent;
|
|
5867
5937
|
|
|
5868
5938
|
if (comp) {
|
|
5869
|
-
_context.next =
|
|
5939
|
+
_context.next = 15;
|
|
5870
5940
|
break;
|
|
5871
5941
|
}
|
|
5872
5942
|
|
|
5873
5943
|
_this.$message.error('不是合规组件,请检查组件上传环境和语法');
|
|
5874
5944
|
return _context.abrupt('return');
|
|
5875
5945
|
|
|
5876
|
-
case
|
|
5946
|
+
case 15:
|
|
5877
5947
|
_this.comp = comp;
|
|
5878
5948
|
util["a" /* default */].win[url] = comp;
|
|
5879
5949
|
// 回传props内容
|
|
5880
5950
|
_this.$emit('handleGetProps', _this.comp.props);
|
|
5951
|
+
_this.$emit('handle-get-props', _this.comp.props);
|
|
5881
5952
|
|
|
5882
|
-
case
|
|
5883
|
-
_context.next =
|
|
5953
|
+
case 19:
|
|
5954
|
+
_context.next = 22;
|
|
5884
5955
|
break;
|
|
5885
5956
|
|
|
5886
|
-
case
|
|
5957
|
+
case 21:
|
|
5887
5958
|
// 如果不是url则当作文本片段处理
|
|
5888
5959
|
_this.comp = url;
|
|
5889
5960
|
// 回传props内容
|
|
5890
5961
|
// this.$emit('handleGetProps', this.comp.props);
|
|
5891
5962
|
|
|
5892
|
-
case
|
|
5893
|
-
_context.next =
|
|
5963
|
+
case 22:
|
|
5964
|
+
_context.next = 27;
|
|
5894
5965
|
break;
|
|
5895
5966
|
|
|
5896
|
-
case
|
|
5897
|
-
_context.prev =
|
|
5967
|
+
case 24:
|
|
5968
|
+
_context.prev = 24;
|
|
5898
5969
|
_context.t0 = _context['catch'](0);
|
|
5899
5970
|
|
|
5900
5971
|
console.error(_context.t0);
|
|
5901
5972
|
|
|
5902
|
-
case
|
|
5973
|
+
case 27:
|
|
5903
5974
|
case 'end':
|
|
5904
5975
|
return _context.stop();
|
|
5905
5976
|
}
|
|
5906
5977
|
}
|
|
5907
|
-
}, _callee, _this, [[0,
|
|
5978
|
+
}, _callee, _this, [[0, 24]]);
|
|
5908
5979
|
}))();
|
|
5909
5980
|
}
|
|
5910
5981
|
}
|
|
@@ -5921,11 +5992,11 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
|
|
|
5921
5992
|
|
|
5922
5993
|
var async_component_component = Object(componentNormalizer["a" /* default */])(
|
|
5923
5994
|
src_async_componentvue_type_script_lang_js_,
|
|
5924
|
-
|
|
5925
|
-
|
|
5995
|
+
async_componentvue_type_template_id_8b78c8b6_scoped_true_render,
|
|
5996
|
+
async_componentvue_type_template_id_8b78c8b6_scoped_true_staticRenderFns,
|
|
5926
5997
|
false,
|
|
5927
5998
|
null,
|
|
5928
|
-
"
|
|
5999
|
+
"8b78c8b6",
|
|
5929
6000
|
null
|
|
5930
6001
|
|
|
5931
6002
|
)
|
|
@@ -6194,6 +6265,7 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
|
|
|
6194
6265
|
|
|
6195
6266
|
var isIE = navigator.userAgent.indexOf('MSIE') != -1;
|
|
6196
6267
|
var log = util["a" /* default */].getParams('console');
|
|
6268
|
+
var appCode = util["a" /* default */].getParams('appCode') || util["a" /* default */].getParams('appcode');
|
|
6197
6269
|
/* harmony default export */ var mainvue_type_script_lang_js_ = ({
|
|
6198
6270
|
name: 'EsMain',
|
|
6199
6271
|
inheritAttrs: false,
|
|
@@ -6231,7 +6303,12 @@ var log = util["a" /* default */].getParams('console');
|
|
|
6231
6303
|
type: String,
|
|
6232
6304
|
default: ''
|
|
6233
6305
|
},
|
|
6234
|
-
param:
|
|
6306
|
+
param: {
|
|
6307
|
+
type: Object,
|
|
6308
|
+
default: function _default() {
|
|
6309
|
+
return {};
|
|
6310
|
+
}
|
|
6311
|
+
},
|
|
6235
6312
|
header: {
|
|
6236
6313
|
type: Boolean,
|
|
6237
6314
|
default: true
|
|
@@ -6336,12 +6413,20 @@ var log = util["a" /* default */].getParams('console');
|
|
|
6336
6413
|
loadHomePage: {
|
|
6337
6414
|
type: [Boolean, String],
|
|
6338
6415
|
default: true
|
|
6339
|
-
}
|
|
6416
|
+
},
|
|
6417
|
+
appCode: String
|
|
6340
6418
|
},
|
|
6341
6419
|
computed: {
|
|
6342
6420
|
showHeader: function showHeader() {
|
|
6343
6421
|
return this.isHeader == 0 ? false : this.header;
|
|
6344
6422
|
},
|
|
6423
|
+
_maxHeight: function _maxHeight() {
|
|
6424
|
+
if (this.maxHeight) {
|
|
6425
|
+
return this.maxHeight;
|
|
6426
|
+
}
|
|
6427
|
+
console.log(document.body.clientHeight - 50);
|
|
6428
|
+
return String(document.body.clientHeight - 77);
|
|
6429
|
+
},
|
|
6345
6430
|
showSide: function showSide() {
|
|
6346
6431
|
return this.isSide !== null ? this.isSide : this.sideNav;
|
|
6347
6432
|
},
|
|
@@ -6446,6 +6531,9 @@ var log = util["a" /* default */].getParams('console');
|
|
|
6446
6531
|
},
|
|
6447
6532
|
isConsole: function isConsole() {
|
|
6448
6533
|
return log ? true : this.console;
|
|
6534
|
+
},
|
|
6535
|
+
menuCode: function menuCode() {
|
|
6536
|
+
return appCode || this.appCode;
|
|
6449
6537
|
}
|
|
6450
6538
|
},
|
|
6451
6539
|
watch: {
|
|
@@ -6827,8 +6915,12 @@ var log = util["a" /* default */].getParams('console');
|
|
|
6827
6915
|
this.color = unescape(results[i].color).toLowerCase();
|
|
6828
6916
|
}
|
|
6829
6917
|
if (i === 'subsystemExtend' && results[i].webPageWatermark) {
|
|
6830
|
-
|
|
6831
|
-
|
|
6918
|
+
try {
|
|
6919
|
+
util["a" /* default */].win.top.webPageWatermark = results[i].webPageWatermark;
|
|
6920
|
+
util["a" /* default */].watermark(results[i].webPageWatermark);
|
|
6921
|
+
} catch (error) {
|
|
6922
|
+
util["a" /* default */].win.postMessage({ type: 2, content: results[i].webPageWatermark }, '*');
|
|
6923
|
+
}
|
|
6832
6924
|
}
|
|
6833
6925
|
|
|
6834
6926
|
if (i === 'subsystemExtend' && results[i].loginPage) {
|
|
@@ -6962,7 +7054,9 @@ var log = util["a" /* default */].getParams('console');
|
|
|
6962
7054
|
getMenu: function getMenu() {
|
|
6963
7055
|
var _this5 = this;
|
|
6964
7056
|
|
|
6965
|
-
|
|
7057
|
+
var param = this.menuCode ? { menuCode: this.menuCode } : {};
|
|
7058
|
+
var params = _extends({}, this.param, param);
|
|
7059
|
+
util["a" /* default */].ajax({ url: this.action, params: params }).then(function (res) {
|
|
6966
7060
|
if (res.rCode === 0) {
|
|
6967
7061
|
if (res.results && res.results.length) {
|
|
6968
7062
|
_this5.menus = JSON.parse(JSON.stringify(res.results));
|
|
@@ -7839,32 +7933,36 @@ var log = util["a" /* default */].getParams('console');
|
|
|
7839
7933
|
_this13.$confirm(msg, btn).then(function () {
|
|
7840
7934
|
util["a" /* default */].removeStorage(['Authorization', 'token', 'ssId', 'userId', 'userName', 'auth', 'deviceUnique', 'menus', 'useCaseCodes', 'mainConfig', 'jump']);
|
|
7841
7935
|
var loginPage = util["a" /* default */].getStorage('login') || util["a" /* default */].getStorage('loginPage');
|
|
7842
|
-
|
|
7843
|
-
|
|
7844
|
-
|
|
7845
|
-
|
|
7846
|
-
|
|
7847
|
-
pathname
|
|
7848
|
-
|
|
7849
|
-
|
|
7850
|
-
|
|
7936
|
+
try {
|
|
7937
|
+
if (loginPage) {
|
|
7938
|
+
var src = void 0;
|
|
7939
|
+
if (!util["a" /* default */].startWith(loginPage, ['http', '/'], true)) {
|
|
7940
|
+
var pathname = util["a" /* default */].win.top.location.pathname;
|
|
7941
|
+
if (pathname !== '/') {
|
|
7942
|
+
pathname = pathname.split('/');
|
|
7943
|
+
pathname.splice(pathname.length - 1);
|
|
7944
|
+
pathname = pathname.join('/');
|
|
7945
|
+
src = pathname + '/' + loginPage.replace('./', '');
|
|
7946
|
+
} else {
|
|
7947
|
+
src = pathname + loginPage.replace('./', '');
|
|
7948
|
+
}
|
|
7851
7949
|
} else {
|
|
7852
|
-
src =
|
|
7950
|
+
src = loginPage;
|
|
7853
7951
|
}
|
|
7952
|
+
util["a" /* default */].win.top.location.href = src;
|
|
7953
|
+
} else if (util["a" /* default */].win.top.location.href.indexOf('main.html') > -1) {
|
|
7954
|
+
util["a" /* default */].win.top.location.href = './login.html';
|
|
7854
7955
|
} else {
|
|
7855
|
-
|
|
7856
|
-
|
|
7857
|
-
|
|
7858
|
-
|
|
7859
|
-
|
|
7860
|
-
|
|
7861
|
-
|
|
7862
|
-
if (hash) {
|
|
7863
|
-
var len = util["a" /* default */].win.top.location.href.indexOf(hash);
|
|
7864
|
-
util["a" /* default */].win.top.location.href = util["a" /* default */].win.location.href.slice(0, len) + '#/login';
|
|
7865
|
-
} else {
|
|
7866
|
-
util["a" /* default */].win.top.location.href = '/login.html';
|
|
7956
|
+
var hash = util["a" /* default */].win.top.location.hash;
|
|
7957
|
+
if (hash) {
|
|
7958
|
+
var len = util["a" /* default */].win.top.location.href.indexOf(hash);
|
|
7959
|
+
util["a" /* default */].win.top.location.href = util["a" /* default */].win.location.href.slice(0, len) + '#/login';
|
|
7960
|
+
} else {
|
|
7961
|
+
util["a" /* default */].win.top.location.href = '/login.html';
|
|
7962
|
+
}
|
|
7867
7963
|
}
|
|
7964
|
+
} catch (error) {
|
|
7965
|
+
util["a" /* default */].win.postMessage({ type: 1 }, '*');
|
|
7868
7966
|
}
|
|
7869
7967
|
}).catch(function (e) {
|
|
7870
7968
|
sessionStorage.removeItem('remind');
|
|
@@ -7884,8 +7982,15 @@ var log = util["a" /* default */].getParams('console');
|
|
|
7884
7982
|
src = pathname + url.replace('./', '/');
|
|
7885
7983
|
}
|
|
7886
7984
|
if (name) {
|
|
7887
|
-
var w =
|
|
7888
|
-
var h =
|
|
7985
|
+
var w = 0;
|
|
7986
|
+
var h = 0;
|
|
7987
|
+
try {
|
|
7988
|
+
w = width ? width : util["a" /* default */].win.top.screen.availWidth - 10;
|
|
7989
|
+
h = height ? height : util["a" /* default */].win.top.screen.availHeight - 60;
|
|
7990
|
+
} catch (error) {
|
|
7991
|
+
w = width ? width : util["a" /* default */].win.screen.availWidth - 10;
|
|
7992
|
+
h = height ? height : util["a" /* default */].win.screen.availHeight - 60;
|
|
7993
|
+
}
|
|
7889
7994
|
return util["a" /* default */].win.open(src, name, 'width=' + w + 'px,height=' + h + 'px,resizable=yes,status=yes,menubar=no,scrollbars=yes');
|
|
7890
7995
|
} else {
|
|
7891
7996
|
return util["a" /* default */].win.open(src);
|