eoss-ui 0.4.58 → 0.4.59
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 +18 -5
- package/lib/button.js +18 -5
- package/lib/checkbox-group.js +18 -5
- package/lib/clients.js +95 -4
- package/lib/data-table-form.js +18 -5
- package/lib/data-table.js +23 -11
- package/lib/date-picker.js +18 -5
- package/lib/dialog.js +18 -5
- package/lib/eoss-ui.common.js +1322 -1049
- package/lib/flow-group.js +927 -860
- package/lib/flow-list.js +18 -5
- package/lib/flow.js +31 -16
- package/lib/form.js +18 -5
- package/lib/handle-user.js +18 -5
- package/lib/handler.js +37 -15
- package/lib/index.js +1 -1
- package/lib/input-number.js +18 -5
- package/lib/input.js +30 -10
- package/lib/login.js +101 -33
- package/lib/main.js +62 -30
- package/lib/mainComp.js +18 -5
- package/lib/nav.js +18 -5
- package/lib/page.js +18 -5
- package/lib/player.js +18 -5
- package/lib/qr-code.js +18 -5
- package/lib/radio-group.js +18 -5
- package/lib/retrial-auth.js +18 -5
- package/lib/select-ganged.js +18 -5
- package/lib/select.js +18 -5
- package/lib/selector-panel.js +18 -5
- package/lib/selector.js +18 -5
- package/lib/sizer.js +18 -5
- package/lib/steps.js +18 -5
- package/lib/switch.js +18 -5
- package/lib/table-form.js +25 -11
- package/lib/tabs.js +18 -5
- package/lib/theme-chalk/clients.css +1 -1
- package/lib/theme-chalk/flow-group.css +1 -1
- package/lib/theme-chalk/index.css +1 -1
- package/lib/theme-chalk/login.css +1 -1
- package/lib/tips.js +18 -5
- package/lib/toolbar.js +0 -1
- package/lib/tree-group.js +18 -5
- package/lib/tree.js +18 -5
- package/lib/upload.js +89 -52
- package/lib/utils/util.js +18 -5
- package/lib/wujie.js +18 -5
- package/lib/wxlogin.js +18 -5
- package/package.json +2 -2
- package/packages/clients/src/main.vue +60 -2
- package/packages/data-table/src/main.vue +0 -1
- package/packages/flow/src/main.vue +1 -0
- package/packages/flow/src/startTaskRead.vue +2 -2
- package/packages/flow-group/src/main.vue +284 -265
- package/packages/form/src/table.vue +3 -2
- package/packages/handler/src/main.vue +20 -10
- package/packages/input/src/main.vue +7 -2
- package/packages/login/src/main.vue +77 -27
- package/packages/main/src/main.vue +20 -10
- package/packages/main/src/userinfo.vue +20 -9
- package/packages/theme-chalk/lib/clients.css +1 -1
- package/packages/theme-chalk/lib/flow-group.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/src/clients.scss +8 -0
- package/packages/theme-chalk/src/flow-group.scss +9 -3
- package/packages/theme-chalk/src/login.scss +3 -0
- package/packages/toolbar/src/main.vue +0 -1
- package/packages/upload/src/main.vue +43 -27
- package/src/index.js +1 -1
- package/src/utils/util.js +20 -10
package/lib/dialog.js
CHANGED
|
@@ -263,20 +263,33 @@ var ajax = function ajax(_ref) {
|
|
|
263
263
|
}).then(function () {
|
|
264
264
|
var loginPage = getStorage('login') || getStorage('loginPage');
|
|
265
265
|
if (loginPage) {
|
|
266
|
-
|
|
266
|
+
var src = void 0;
|
|
267
|
+
if (!startWith(loginPage, ['http', '/'])) {
|
|
268
|
+
var pathname = win.top.location.pathname;
|
|
269
|
+
if (pathname !== '/') {
|
|
270
|
+
pathname = pathname.split('/');
|
|
271
|
+
pathname.splice(pathname.length - 1);
|
|
272
|
+
pathname = pathname.join('/');
|
|
273
|
+
}
|
|
274
|
+
src = pathname + loginPage.replace('./', '');
|
|
275
|
+
} else {
|
|
276
|
+
src = loginPage;
|
|
277
|
+
}
|
|
278
|
+
win.top.location.href = src;
|
|
267
279
|
} else if (win.top.location.href.indexOf('main.html') > -1) {
|
|
268
280
|
win.top.location.href = './login.html';
|
|
269
281
|
} else {
|
|
270
282
|
var hash = win.top.location.hash;
|
|
271
|
-
if (hash
|
|
283
|
+
if (hash) {
|
|
272
284
|
var len = win.top.location.href.indexOf(hash);
|
|
273
|
-
|
|
274
|
-
win.top.location.href = href;
|
|
285
|
+
win.top.location.href = win.location.href.slice(0, len) + '#/login';
|
|
275
286
|
} else {
|
|
276
287
|
win.top.location.href = '/login.html';
|
|
277
288
|
}
|
|
278
289
|
}
|
|
279
|
-
}).catch(function (e) {
|
|
290
|
+
}).catch(function (e) {
|
|
291
|
+
sessionStorage.removeItem('remind');
|
|
292
|
+
});
|
|
280
293
|
}, 1000));
|
|
281
294
|
}
|
|
282
295
|
} else if (response.data.rCode === 61) {
|