eoss-ui 0.5.10 → 0.5.11
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 -33
- package/lib/button.js +18 -33
- package/lib/checkbox-group.js +18 -33
- package/lib/data-table-form.js +18 -33
- package/lib/data-table.js +36 -42
- package/lib/date-picker.js +18 -33
- package/lib/dialog.js +18 -33
- package/lib/eoss-ui.common.js +217 -486
- package/lib/flow-group.js +18 -33
- package/lib/flow-list.js +18 -33
- package/lib/flow.js +18 -33
- package/lib/form.js +50 -172
- package/lib/handle-user.js +18 -33
- package/lib/handler.js +18 -33
- package/lib/index.js +1 -1
- package/lib/input-number.js +18 -33
- package/lib/input.js +18 -33
- package/lib/login.js +18 -33
- package/lib/main.js +117 -282
- package/lib/nav.js +18 -33
- package/lib/page.js +18 -33
- package/lib/player.js +18 -33
- package/lib/qr-code.js +18 -33
- package/lib/radio-group.js +21 -36
- package/lib/retrial-auth.js +18 -33
- package/lib/select-ganged.js +18 -33
- package/lib/select.js +18 -33
- package/lib/selector-panel.js +18 -33
- package/lib/selector.js +18 -33
- package/lib/sizer.js +18 -33
- package/lib/steps.js +18 -33
- package/lib/switch.js +18 -33
- package/lib/table-form.js +30 -61
- package/lib/tabs.js +18 -33
- package/lib/theme-chalk/index.css +1 -1
- package/lib/theme-chalk/pagination.css +1 -1
- package/lib/theme-chalk/toolbar.css +1 -1
- package/lib/tips.js +18 -33
- package/lib/toolbar.js +19 -9
- package/lib/tree-group.js +18 -33
- package/lib/tree.js +18 -33
- package/lib/upload.js +18 -33
- package/lib/utils/util.js +18 -33
- package/lib/wujie.js +18 -33
- package/lib/wxlogin.js +18 -33
- package/package.json +1 -1
- package/packages/data-table/src/main.vue +14 -6
- package/packages/form/src/main.vue +11 -46
- package/packages/form/src/table.vue +6 -11
- package/packages/main/src/main.vue +12 -150
- package/packages/radio-group/src/main.vue +1 -5
- package/packages/theme-chalk/lib/index.css +1 -1
- package/packages/theme-chalk/lib/pagination.css +1 -1
- package/packages/theme-chalk/lib/toolbar.css +1 -1
- package/packages/theme-chalk/src/pagination.scss +8 -0
- package/packages/theme-chalk/src/toolbar.scss +1 -0
- package/packages/toolbar/src/main.vue +17 -8
- package/src/index.js +1 -1
- package/src/utils/util.js +20 -34
package/lib/nav.js
CHANGED
|
@@ -746,6 +746,7 @@ var delUrlParam = function delUrlParam(_ref2) {
|
|
|
746
746
|
key.forEach(function (item) {
|
|
747
747
|
if (param.hasOwnProperty(item)) {
|
|
748
748
|
var reg = item + '=' + param[item];
|
|
749
|
+
console.log(reg);
|
|
749
750
|
if (src.indexOf(reg + '&') > -1) {
|
|
750
751
|
src = src.replace(reg + '&', '');
|
|
751
752
|
} else if (src.indexOf('&' + reg) > -1) {
|
|
@@ -1946,7 +1947,6 @@ var isLogined = function isLogined(_ref8) {
|
|
|
1946
1947
|
next = _ref8.next,
|
|
1947
1948
|
_ref8$exclude = _ref8.exclude,
|
|
1948
1949
|
exclude = _ref8$exclude === undefined ? [] : _ref8$exclude,
|
|
1949
|
-
open = _ref8.open,
|
|
1950
1950
|
cookie = _ref8.cookie,
|
|
1951
1951
|
loginPage = _ref8.loginPage,
|
|
1952
1952
|
redirect = _ref8.redirect;
|
|
@@ -1954,24 +1954,24 @@ var isLogined = function isLogined(_ref8) {
|
|
|
1954
1954
|
if (cookie === undefined) {
|
|
1955
1955
|
cookie = getParams({ name: 'cookie' });
|
|
1956
1956
|
}
|
|
1957
|
+
var pathname = win.top.location.pathname;
|
|
1957
1958
|
if (loginPage) {
|
|
1958
1959
|
sessionStorage.setItem('loginPage', loginPage);
|
|
1959
1960
|
if (!startWith(loginPage, ['http', '/'], true)) {
|
|
1960
|
-
var pathname = win.top.location.pathname;
|
|
1961
1961
|
if (pathname !== '/') {
|
|
1962
|
-
|
|
1963
|
-
|
|
1964
|
-
|
|
1965
|
-
loginPage =
|
|
1962
|
+
var path = pathname.split('/');
|
|
1963
|
+
path.splice(pathname.length - 1);
|
|
1964
|
+
path = path.join('/');
|
|
1965
|
+
loginPage = path + '/' + loginPage.replace('./', '');
|
|
1966
1966
|
} else {
|
|
1967
1967
|
loginPage = pathname + loginPage.replace('./', '');
|
|
1968
1968
|
}
|
|
1969
1969
|
}
|
|
1970
1970
|
}
|
|
1971
1971
|
var token = getStorage('token') || getStorage('Authorization');
|
|
1972
|
-
|
|
1972
|
+
// const logined = getStorage('logined');
|
|
1973
1973
|
// eslint-disable-next-line eqeqeq
|
|
1974
|
-
if (token ||
|
|
1974
|
+
if (token || cookie == true || cookie == 1) {
|
|
1975
1975
|
next && next();
|
|
1976
1976
|
} else {
|
|
1977
1977
|
if (!token && Object.prototype.hasOwnProperty.call(to.query, 'serverId') && Object.prototype.hasOwnProperty.call(to.query, 'authType')) {
|
|
@@ -1995,37 +1995,22 @@ var isLogined = function isLogined(_ref8) {
|
|
|
1995
1995
|
deviceUnique: results.deviceUnique
|
|
1996
1996
|
}
|
|
1997
1997
|
});
|
|
1998
|
-
|
|
1998
|
+
var url = delUrlParam({
|
|
1999
|
+
url: win.top.location.href,
|
|
2000
|
+
key: ['serverId', 'authType', 'code', 'sessionId']
|
|
2001
|
+
});
|
|
2002
|
+
win.top.location.href = url;
|
|
2003
|
+
setTimeout(function () {
|
|
2004
|
+
win.top.location.reload();
|
|
2005
|
+
}, 200);
|
|
1999
2006
|
break;
|
|
2000
2007
|
case 1:
|
|
2001
2008
|
break;
|
|
2002
2009
|
case 2:
|
|
2003
2010
|
break;
|
|
2004
2011
|
case 3:
|
|
2005
|
-
var
|
|
2006
|
-
|
|
2007
|
-
if (to.query.openType) {
|
|
2008
|
-
switch (to.query.openType) {
|
|
2009
|
-
case 'self':
|
|
2010
|
-
win.location.href = href;
|
|
2011
|
-
break;
|
|
2012
|
-
case 'blank':
|
|
2013
|
-
win.open(href);
|
|
2014
|
-
break;
|
|
2015
|
-
case 'top':
|
|
2016
|
-
win.top.location.href = href;
|
|
2017
|
-
break;
|
|
2018
|
-
case 'parent':
|
|
2019
|
-
win.parent.location.href = href;
|
|
2020
|
-
break;
|
|
2021
|
-
}
|
|
2022
|
-
} else {
|
|
2023
|
-
if (open) {
|
|
2024
|
-
win.open(href);
|
|
2025
|
-
} else {
|
|
2026
|
-
win.top.location.href = href;
|
|
2027
|
-
}
|
|
2028
|
-
}
|
|
2012
|
+
var href = results.authorizeUrl.replace('{redirectUri}', encodeURIComponent(win.top.location.href));
|
|
2013
|
+
win.top.location.href = href;
|
|
2029
2014
|
break;
|
|
2030
2015
|
case 4:
|
|
2031
2016
|
eoss_element__WEBPACK_IMPORTED_MODULE_6__["MessageBox"].alert(results.msg ? results.msg : '账号未绑定,账号密码登录后自动绑定!', '提示', {
|
package/lib/page.js
CHANGED
|
@@ -746,6 +746,7 @@ var delUrlParam = function delUrlParam(_ref2) {
|
|
|
746
746
|
key.forEach(function (item) {
|
|
747
747
|
if (param.hasOwnProperty(item)) {
|
|
748
748
|
var reg = item + '=' + param[item];
|
|
749
|
+
console.log(reg);
|
|
749
750
|
if (src.indexOf(reg + '&') > -1) {
|
|
750
751
|
src = src.replace(reg + '&', '');
|
|
751
752
|
} else if (src.indexOf('&' + reg) > -1) {
|
|
@@ -1946,7 +1947,6 @@ var isLogined = function isLogined(_ref8) {
|
|
|
1946
1947
|
next = _ref8.next,
|
|
1947
1948
|
_ref8$exclude = _ref8.exclude,
|
|
1948
1949
|
exclude = _ref8$exclude === undefined ? [] : _ref8$exclude,
|
|
1949
|
-
open = _ref8.open,
|
|
1950
1950
|
cookie = _ref8.cookie,
|
|
1951
1951
|
loginPage = _ref8.loginPage,
|
|
1952
1952
|
redirect = _ref8.redirect;
|
|
@@ -1954,24 +1954,24 @@ var isLogined = function isLogined(_ref8) {
|
|
|
1954
1954
|
if (cookie === undefined) {
|
|
1955
1955
|
cookie = getParams({ name: 'cookie' });
|
|
1956
1956
|
}
|
|
1957
|
+
var pathname = win.top.location.pathname;
|
|
1957
1958
|
if (loginPage) {
|
|
1958
1959
|
sessionStorage.setItem('loginPage', loginPage);
|
|
1959
1960
|
if (!startWith(loginPage, ['http', '/'], true)) {
|
|
1960
|
-
var pathname = win.top.location.pathname;
|
|
1961
1961
|
if (pathname !== '/') {
|
|
1962
|
-
|
|
1963
|
-
|
|
1964
|
-
|
|
1965
|
-
loginPage =
|
|
1962
|
+
var path = pathname.split('/');
|
|
1963
|
+
path.splice(pathname.length - 1);
|
|
1964
|
+
path = path.join('/');
|
|
1965
|
+
loginPage = path + '/' + loginPage.replace('./', '');
|
|
1966
1966
|
} else {
|
|
1967
1967
|
loginPage = pathname + loginPage.replace('./', '');
|
|
1968
1968
|
}
|
|
1969
1969
|
}
|
|
1970
1970
|
}
|
|
1971
1971
|
var token = getStorage('token') || getStorage('Authorization');
|
|
1972
|
-
|
|
1972
|
+
// const logined = getStorage('logined');
|
|
1973
1973
|
// eslint-disable-next-line eqeqeq
|
|
1974
|
-
if (token ||
|
|
1974
|
+
if (token || cookie == true || cookie == 1) {
|
|
1975
1975
|
next && next();
|
|
1976
1976
|
} else {
|
|
1977
1977
|
if (!token && Object.prototype.hasOwnProperty.call(to.query, 'serverId') && Object.prototype.hasOwnProperty.call(to.query, 'authType')) {
|
|
@@ -1995,37 +1995,22 @@ var isLogined = function isLogined(_ref8) {
|
|
|
1995
1995
|
deviceUnique: results.deviceUnique
|
|
1996
1996
|
}
|
|
1997
1997
|
});
|
|
1998
|
-
|
|
1998
|
+
var url = delUrlParam({
|
|
1999
|
+
url: win.top.location.href,
|
|
2000
|
+
key: ['serverId', 'authType', 'code', 'sessionId']
|
|
2001
|
+
});
|
|
2002
|
+
win.top.location.href = url;
|
|
2003
|
+
setTimeout(function () {
|
|
2004
|
+
win.top.location.reload();
|
|
2005
|
+
}, 200);
|
|
1999
2006
|
break;
|
|
2000
2007
|
case 1:
|
|
2001
2008
|
break;
|
|
2002
2009
|
case 2:
|
|
2003
2010
|
break;
|
|
2004
2011
|
case 3:
|
|
2005
|
-
var
|
|
2006
|
-
|
|
2007
|
-
if (to.query.openType) {
|
|
2008
|
-
switch (to.query.openType) {
|
|
2009
|
-
case 'self':
|
|
2010
|
-
win.location.href = href;
|
|
2011
|
-
break;
|
|
2012
|
-
case 'blank':
|
|
2013
|
-
win.open(href);
|
|
2014
|
-
break;
|
|
2015
|
-
case 'top':
|
|
2016
|
-
win.top.location.href = href;
|
|
2017
|
-
break;
|
|
2018
|
-
case 'parent':
|
|
2019
|
-
win.parent.location.href = href;
|
|
2020
|
-
break;
|
|
2021
|
-
}
|
|
2022
|
-
} else {
|
|
2023
|
-
if (open) {
|
|
2024
|
-
win.open(href);
|
|
2025
|
-
} else {
|
|
2026
|
-
win.top.location.href = href;
|
|
2027
|
-
}
|
|
2028
|
-
}
|
|
2012
|
+
var href = results.authorizeUrl.replace('{redirectUri}', encodeURIComponent(win.top.location.href));
|
|
2013
|
+
win.top.location.href = href;
|
|
2029
2014
|
break;
|
|
2030
2015
|
case 4:
|
|
2031
2016
|
eoss_element__WEBPACK_IMPORTED_MODULE_6__["MessageBox"].alert(results.msg ? results.msg : '账号未绑定,账号密码登录后自动绑定!', '提示', {
|
package/lib/player.js
CHANGED
|
@@ -746,6 +746,7 @@ var delUrlParam = function delUrlParam(_ref2) {
|
|
|
746
746
|
key.forEach(function (item) {
|
|
747
747
|
if (param.hasOwnProperty(item)) {
|
|
748
748
|
var reg = item + '=' + param[item];
|
|
749
|
+
console.log(reg);
|
|
749
750
|
if (src.indexOf(reg + '&') > -1) {
|
|
750
751
|
src = src.replace(reg + '&', '');
|
|
751
752
|
} else if (src.indexOf('&' + reg) > -1) {
|
|
@@ -1946,7 +1947,6 @@ var isLogined = function isLogined(_ref8) {
|
|
|
1946
1947
|
next = _ref8.next,
|
|
1947
1948
|
_ref8$exclude = _ref8.exclude,
|
|
1948
1949
|
exclude = _ref8$exclude === undefined ? [] : _ref8$exclude,
|
|
1949
|
-
open = _ref8.open,
|
|
1950
1950
|
cookie = _ref8.cookie,
|
|
1951
1951
|
loginPage = _ref8.loginPage,
|
|
1952
1952
|
redirect = _ref8.redirect;
|
|
@@ -1954,24 +1954,24 @@ var isLogined = function isLogined(_ref8) {
|
|
|
1954
1954
|
if (cookie === undefined) {
|
|
1955
1955
|
cookie = getParams({ name: 'cookie' });
|
|
1956
1956
|
}
|
|
1957
|
+
var pathname = win.top.location.pathname;
|
|
1957
1958
|
if (loginPage) {
|
|
1958
1959
|
sessionStorage.setItem('loginPage', loginPage);
|
|
1959
1960
|
if (!startWith(loginPage, ['http', '/'], true)) {
|
|
1960
|
-
var pathname = win.top.location.pathname;
|
|
1961
1961
|
if (pathname !== '/') {
|
|
1962
|
-
|
|
1963
|
-
|
|
1964
|
-
|
|
1965
|
-
loginPage =
|
|
1962
|
+
var path = pathname.split('/');
|
|
1963
|
+
path.splice(pathname.length - 1);
|
|
1964
|
+
path = path.join('/');
|
|
1965
|
+
loginPage = path + '/' + loginPage.replace('./', '');
|
|
1966
1966
|
} else {
|
|
1967
1967
|
loginPage = pathname + loginPage.replace('./', '');
|
|
1968
1968
|
}
|
|
1969
1969
|
}
|
|
1970
1970
|
}
|
|
1971
1971
|
var token = getStorage('token') || getStorage('Authorization');
|
|
1972
|
-
|
|
1972
|
+
// const logined = getStorage('logined');
|
|
1973
1973
|
// eslint-disable-next-line eqeqeq
|
|
1974
|
-
if (token ||
|
|
1974
|
+
if (token || cookie == true || cookie == 1) {
|
|
1975
1975
|
next && next();
|
|
1976
1976
|
} else {
|
|
1977
1977
|
if (!token && Object.prototype.hasOwnProperty.call(to.query, 'serverId') && Object.prototype.hasOwnProperty.call(to.query, 'authType')) {
|
|
@@ -1995,37 +1995,22 @@ var isLogined = function isLogined(_ref8) {
|
|
|
1995
1995
|
deviceUnique: results.deviceUnique
|
|
1996
1996
|
}
|
|
1997
1997
|
});
|
|
1998
|
-
|
|
1998
|
+
var url = delUrlParam({
|
|
1999
|
+
url: win.top.location.href,
|
|
2000
|
+
key: ['serverId', 'authType', 'code', 'sessionId']
|
|
2001
|
+
});
|
|
2002
|
+
win.top.location.href = url;
|
|
2003
|
+
setTimeout(function () {
|
|
2004
|
+
win.top.location.reload();
|
|
2005
|
+
}, 200);
|
|
1999
2006
|
break;
|
|
2000
2007
|
case 1:
|
|
2001
2008
|
break;
|
|
2002
2009
|
case 2:
|
|
2003
2010
|
break;
|
|
2004
2011
|
case 3:
|
|
2005
|
-
var
|
|
2006
|
-
|
|
2007
|
-
if (to.query.openType) {
|
|
2008
|
-
switch (to.query.openType) {
|
|
2009
|
-
case 'self':
|
|
2010
|
-
win.location.href = href;
|
|
2011
|
-
break;
|
|
2012
|
-
case 'blank':
|
|
2013
|
-
win.open(href);
|
|
2014
|
-
break;
|
|
2015
|
-
case 'top':
|
|
2016
|
-
win.top.location.href = href;
|
|
2017
|
-
break;
|
|
2018
|
-
case 'parent':
|
|
2019
|
-
win.parent.location.href = href;
|
|
2020
|
-
break;
|
|
2021
|
-
}
|
|
2022
|
-
} else {
|
|
2023
|
-
if (open) {
|
|
2024
|
-
win.open(href);
|
|
2025
|
-
} else {
|
|
2026
|
-
win.top.location.href = href;
|
|
2027
|
-
}
|
|
2028
|
-
}
|
|
2012
|
+
var href = results.authorizeUrl.replace('{redirectUri}', encodeURIComponent(win.top.location.href));
|
|
2013
|
+
win.top.location.href = href;
|
|
2029
2014
|
break;
|
|
2030
2015
|
case 4:
|
|
2031
2016
|
eoss_element__WEBPACK_IMPORTED_MODULE_6__["MessageBox"].alert(results.msg ? results.msg : '账号未绑定,账号密码登录后自动绑定!', '提示', {
|
package/lib/qr-code.js
CHANGED
|
@@ -746,6 +746,7 @@ var delUrlParam = function delUrlParam(_ref2) {
|
|
|
746
746
|
key.forEach(function (item) {
|
|
747
747
|
if (param.hasOwnProperty(item)) {
|
|
748
748
|
var reg = item + '=' + param[item];
|
|
749
|
+
console.log(reg);
|
|
749
750
|
if (src.indexOf(reg + '&') > -1) {
|
|
750
751
|
src = src.replace(reg + '&', '');
|
|
751
752
|
} else if (src.indexOf('&' + reg) > -1) {
|
|
@@ -1946,7 +1947,6 @@ var isLogined = function isLogined(_ref8) {
|
|
|
1946
1947
|
next = _ref8.next,
|
|
1947
1948
|
_ref8$exclude = _ref8.exclude,
|
|
1948
1949
|
exclude = _ref8$exclude === undefined ? [] : _ref8$exclude,
|
|
1949
|
-
open = _ref8.open,
|
|
1950
1950
|
cookie = _ref8.cookie,
|
|
1951
1951
|
loginPage = _ref8.loginPage,
|
|
1952
1952
|
redirect = _ref8.redirect;
|
|
@@ -1954,24 +1954,24 @@ var isLogined = function isLogined(_ref8) {
|
|
|
1954
1954
|
if (cookie === undefined) {
|
|
1955
1955
|
cookie = getParams({ name: 'cookie' });
|
|
1956
1956
|
}
|
|
1957
|
+
var pathname = win.top.location.pathname;
|
|
1957
1958
|
if (loginPage) {
|
|
1958
1959
|
sessionStorage.setItem('loginPage', loginPage);
|
|
1959
1960
|
if (!startWith(loginPage, ['http', '/'], true)) {
|
|
1960
|
-
var pathname = win.top.location.pathname;
|
|
1961
1961
|
if (pathname !== '/') {
|
|
1962
|
-
|
|
1963
|
-
|
|
1964
|
-
|
|
1965
|
-
loginPage =
|
|
1962
|
+
var path = pathname.split('/');
|
|
1963
|
+
path.splice(pathname.length - 1);
|
|
1964
|
+
path = path.join('/');
|
|
1965
|
+
loginPage = path + '/' + loginPage.replace('./', '');
|
|
1966
1966
|
} else {
|
|
1967
1967
|
loginPage = pathname + loginPage.replace('./', '');
|
|
1968
1968
|
}
|
|
1969
1969
|
}
|
|
1970
1970
|
}
|
|
1971
1971
|
var token = getStorage('token') || getStorage('Authorization');
|
|
1972
|
-
|
|
1972
|
+
// const logined = getStorage('logined');
|
|
1973
1973
|
// eslint-disable-next-line eqeqeq
|
|
1974
|
-
if (token ||
|
|
1974
|
+
if (token || cookie == true || cookie == 1) {
|
|
1975
1975
|
next && next();
|
|
1976
1976
|
} else {
|
|
1977
1977
|
if (!token && Object.prototype.hasOwnProperty.call(to.query, 'serverId') && Object.prototype.hasOwnProperty.call(to.query, 'authType')) {
|
|
@@ -1995,37 +1995,22 @@ var isLogined = function isLogined(_ref8) {
|
|
|
1995
1995
|
deviceUnique: results.deviceUnique
|
|
1996
1996
|
}
|
|
1997
1997
|
});
|
|
1998
|
-
|
|
1998
|
+
var url = delUrlParam({
|
|
1999
|
+
url: win.top.location.href,
|
|
2000
|
+
key: ['serverId', 'authType', 'code', 'sessionId']
|
|
2001
|
+
});
|
|
2002
|
+
win.top.location.href = url;
|
|
2003
|
+
setTimeout(function () {
|
|
2004
|
+
win.top.location.reload();
|
|
2005
|
+
}, 200);
|
|
1999
2006
|
break;
|
|
2000
2007
|
case 1:
|
|
2001
2008
|
break;
|
|
2002
2009
|
case 2:
|
|
2003
2010
|
break;
|
|
2004
2011
|
case 3:
|
|
2005
|
-
var
|
|
2006
|
-
|
|
2007
|
-
if (to.query.openType) {
|
|
2008
|
-
switch (to.query.openType) {
|
|
2009
|
-
case 'self':
|
|
2010
|
-
win.location.href = href;
|
|
2011
|
-
break;
|
|
2012
|
-
case 'blank':
|
|
2013
|
-
win.open(href);
|
|
2014
|
-
break;
|
|
2015
|
-
case 'top':
|
|
2016
|
-
win.top.location.href = href;
|
|
2017
|
-
break;
|
|
2018
|
-
case 'parent':
|
|
2019
|
-
win.parent.location.href = href;
|
|
2020
|
-
break;
|
|
2021
|
-
}
|
|
2022
|
-
} else {
|
|
2023
|
-
if (open) {
|
|
2024
|
-
win.open(href);
|
|
2025
|
-
} else {
|
|
2026
|
-
win.top.location.href = href;
|
|
2027
|
-
}
|
|
2028
|
-
}
|
|
2012
|
+
var href = results.authorizeUrl.replace('{redirectUri}', encodeURIComponent(win.top.location.href));
|
|
2013
|
+
win.top.location.href = href;
|
|
2029
2014
|
break;
|
|
2030
2015
|
case 4:
|
|
2031
2016
|
eoss_element__WEBPACK_IMPORTED_MODULE_6__["MessageBox"].alert(results.msg ? results.msg : '账号未绑定,账号密码登录后自动绑定!', '提示', {
|
package/lib/radio-group.js
CHANGED
|
@@ -746,6 +746,7 @@ var delUrlParam = function delUrlParam(_ref2) {
|
|
|
746
746
|
key.forEach(function (item) {
|
|
747
747
|
if (param.hasOwnProperty(item)) {
|
|
748
748
|
var reg = item + '=' + param[item];
|
|
749
|
+
console.log(reg);
|
|
749
750
|
if (src.indexOf(reg + '&') > -1) {
|
|
750
751
|
src = src.replace(reg + '&', '');
|
|
751
752
|
} else if (src.indexOf('&' + reg) > -1) {
|
|
@@ -1946,7 +1947,6 @@ var isLogined = function isLogined(_ref8) {
|
|
|
1946
1947
|
next = _ref8.next,
|
|
1947
1948
|
_ref8$exclude = _ref8.exclude,
|
|
1948
1949
|
exclude = _ref8$exclude === undefined ? [] : _ref8$exclude,
|
|
1949
|
-
open = _ref8.open,
|
|
1950
1950
|
cookie = _ref8.cookie,
|
|
1951
1951
|
loginPage = _ref8.loginPage,
|
|
1952
1952
|
redirect = _ref8.redirect;
|
|
@@ -1954,24 +1954,24 @@ var isLogined = function isLogined(_ref8) {
|
|
|
1954
1954
|
if (cookie === undefined) {
|
|
1955
1955
|
cookie = getParams({ name: 'cookie' });
|
|
1956
1956
|
}
|
|
1957
|
+
var pathname = win.top.location.pathname;
|
|
1957
1958
|
if (loginPage) {
|
|
1958
1959
|
sessionStorage.setItem('loginPage', loginPage);
|
|
1959
1960
|
if (!startWith(loginPage, ['http', '/'], true)) {
|
|
1960
|
-
var pathname = win.top.location.pathname;
|
|
1961
1961
|
if (pathname !== '/') {
|
|
1962
|
-
|
|
1963
|
-
|
|
1964
|
-
|
|
1965
|
-
loginPage =
|
|
1962
|
+
var path = pathname.split('/');
|
|
1963
|
+
path.splice(pathname.length - 1);
|
|
1964
|
+
path = path.join('/');
|
|
1965
|
+
loginPage = path + '/' + loginPage.replace('./', '');
|
|
1966
1966
|
} else {
|
|
1967
1967
|
loginPage = pathname + loginPage.replace('./', '');
|
|
1968
1968
|
}
|
|
1969
1969
|
}
|
|
1970
1970
|
}
|
|
1971
1971
|
var token = getStorage('token') || getStorage('Authorization');
|
|
1972
|
-
|
|
1972
|
+
// const logined = getStorage('logined');
|
|
1973
1973
|
// eslint-disable-next-line eqeqeq
|
|
1974
|
-
if (token ||
|
|
1974
|
+
if (token || cookie == true || cookie == 1) {
|
|
1975
1975
|
next && next();
|
|
1976
1976
|
} else {
|
|
1977
1977
|
if (!token && Object.prototype.hasOwnProperty.call(to.query, 'serverId') && Object.prototype.hasOwnProperty.call(to.query, 'authType')) {
|
|
@@ -1995,37 +1995,22 @@ var isLogined = function isLogined(_ref8) {
|
|
|
1995
1995
|
deviceUnique: results.deviceUnique
|
|
1996
1996
|
}
|
|
1997
1997
|
});
|
|
1998
|
-
|
|
1998
|
+
var url = delUrlParam({
|
|
1999
|
+
url: win.top.location.href,
|
|
2000
|
+
key: ['serverId', 'authType', 'code', 'sessionId']
|
|
2001
|
+
});
|
|
2002
|
+
win.top.location.href = url;
|
|
2003
|
+
setTimeout(function () {
|
|
2004
|
+
win.top.location.reload();
|
|
2005
|
+
}, 200);
|
|
1999
2006
|
break;
|
|
2000
2007
|
case 1:
|
|
2001
2008
|
break;
|
|
2002
2009
|
case 2:
|
|
2003
2010
|
break;
|
|
2004
2011
|
case 3:
|
|
2005
|
-
var
|
|
2006
|
-
|
|
2007
|
-
if (to.query.openType) {
|
|
2008
|
-
switch (to.query.openType) {
|
|
2009
|
-
case 'self':
|
|
2010
|
-
win.location.href = href;
|
|
2011
|
-
break;
|
|
2012
|
-
case 'blank':
|
|
2013
|
-
win.open(href);
|
|
2014
|
-
break;
|
|
2015
|
-
case 'top':
|
|
2016
|
-
win.top.location.href = href;
|
|
2017
|
-
break;
|
|
2018
|
-
case 'parent':
|
|
2019
|
-
win.parent.location.href = href;
|
|
2020
|
-
break;
|
|
2021
|
-
}
|
|
2022
|
-
} else {
|
|
2023
|
-
if (open) {
|
|
2024
|
-
win.open(href);
|
|
2025
|
-
} else {
|
|
2026
|
-
win.top.location.href = href;
|
|
2027
|
-
}
|
|
2028
|
-
}
|
|
2012
|
+
var href = results.authorizeUrl.replace('{redirectUri}', encodeURIComponent(win.top.location.href));
|
|
2013
|
+
win.top.location.href = href;
|
|
2029
2014
|
break;
|
|
2030
2015
|
case 4:
|
|
2031
2016
|
eoss_element__WEBPACK_IMPORTED_MODULE_6__["MessageBox"].alert(results.msg ? results.msg : '账号未绑定,账号密码登录后自动绑定!', '提示', {
|
|
@@ -3542,7 +3527,7 @@ module.exports = require("axios");
|
|
|
3542
3527
|
// ESM COMPAT FLAG
|
|
3543
3528
|
__webpack_require__.r(__webpack_exports__);
|
|
3544
3529
|
|
|
3545
|
-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/radio-group/src/main.vue?vue&type=template&id=
|
|
3530
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/radio-group/src/main.vue?vue&type=template&id=a0afa96c&
|
|
3546
3531
|
var render = function () {
|
|
3547
3532
|
var _vm = this
|
|
3548
3533
|
var _h = _vm.$createElement
|
|
@@ -3676,7 +3661,7 @@ var staticRenderFns = []
|
|
|
3676
3661
|
render._withStripped = true
|
|
3677
3662
|
|
|
3678
3663
|
|
|
3679
|
-
// CONCATENATED MODULE: ./packages/radio-group/src/main.vue?vue&type=template&id=
|
|
3664
|
+
// CONCATENATED MODULE: ./packages/radio-group/src/main.vue?vue&type=template&id=a0afa96c&
|
|
3680
3665
|
|
|
3681
3666
|
// EXTERNAL MODULE: ./src/config/api.js
|
|
3682
3667
|
var api = __webpack_require__(1);
|
|
@@ -3873,7 +3858,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
|
|
|
3873
3858
|
labelVal: function labelVal() {
|
|
3874
3859
|
var _this = this;
|
|
3875
3860
|
|
|
3876
|
-
if (this.readonly &&
|
|
3861
|
+
if (this.readonly && this.model !== undefined && this.results.length) {
|
|
3877
3862
|
if (_typeof(this.model) !== 'object') {
|
|
3878
3863
|
if (util["a" /* default */].isObject(this.results[0])) {
|
|
3879
3864
|
var val = void 0;
|
package/lib/retrial-auth.js
CHANGED
|
@@ -746,6 +746,7 @@ var delUrlParam = function delUrlParam(_ref2) {
|
|
|
746
746
|
key.forEach(function (item) {
|
|
747
747
|
if (param.hasOwnProperty(item)) {
|
|
748
748
|
var reg = item + '=' + param[item];
|
|
749
|
+
console.log(reg);
|
|
749
750
|
if (src.indexOf(reg + '&') > -1) {
|
|
750
751
|
src = src.replace(reg + '&', '');
|
|
751
752
|
} else if (src.indexOf('&' + reg) > -1) {
|
|
@@ -1946,7 +1947,6 @@ var isLogined = function isLogined(_ref8) {
|
|
|
1946
1947
|
next = _ref8.next,
|
|
1947
1948
|
_ref8$exclude = _ref8.exclude,
|
|
1948
1949
|
exclude = _ref8$exclude === undefined ? [] : _ref8$exclude,
|
|
1949
|
-
open = _ref8.open,
|
|
1950
1950
|
cookie = _ref8.cookie,
|
|
1951
1951
|
loginPage = _ref8.loginPage,
|
|
1952
1952
|
redirect = _ref8.redirect;
|
|
@@ -1954,24 +1954,24 @@ var isLogined = function isLogined(_ref8) {
|
|
|
1954
1954
|
if (cookie === undefined) {
|
|
1955
1955
|
cookie = getParams({ name: 'cookie' });
|
|
1956
1956
|
}
|
|
1957
|
+
var pathname = win.top.location.pathname;
|
|
1957
1958
|
if (loginPage) {
|
|
1958
1959
|
sessionStorage.setItem('loginPage', loginPage);
|
|
1959
1960
|
if (!startWith(loginPage, ['http', '/'], true)) {
|
|
1960
|
-
var pathname = win.top.location.pathname;
|
|
1961
1961
|
if (pathname !== '/') {
|
|
1962
|
-
|
|
1963
|
-
|
|
1964
|
-
|
|
1965
|
-
loginPage =
|
|
1962
|
+
var path = pathname.split('/');
|
|
1963
|
+
path.splice(pathname.length - 1);
|
|
1964
|
+
path = path.join('/');
|
|
1965
|
+
loginPage = path + '/' + loginPage.replace('./', '');
|
|
1966
1966
|
} else {
|
|
1967
1967
|
loginPage = pathname + loginPage.replace('./', '');
|
|
1968
1968
|
}
|
|
1969
1969
|
}
|
|
1970
1970
|
}
|
|
1971
1971
|
var token = getStorage('token') || getStorage('Authorization');
|
|
1972
|
-
|
|
1972
|
+
// const logined = getStorage('logined');
|
|
1973
1973
|
// eslint-disable-next-line eqeqeq
|
|
1974
|
-
if (token ||
|
|
1974
|
+
if (token || cookie == true || cookie == 1) {
|
|
1975
1975
|
next && next();
|
|
1976
1976
|
} else {
|
|
1977
1977
|
if (!token && Object.prototype.hasOwnProperty.call(to.query, 'serverId') && Object.prototype.hasOwnProperty.call(to.query, 'authType')) {
|
|
@@ -1995,37 +1995,22 @@ var isLogined = function isLogined(_ref8) {
|
|
|
1995
1995
|
deviceUnique: results.deviceUnique
|
|
1996
1996
|
}
|
|
1997
1997
|
});
|
|
1998
|
-
|
|
1998
|
+
var url = delUrlParam({
|
|
1999
|
+
url: win.top.location.href,
|
|
2000
|
+
key: ['serverId', 'authType', 'code', 'sessionId']
|
|
2001
|
+
});
|
|
2002
|
+
win.top.location.href = url;
|
|
2003
|
+
setTimeout(function () {
|
|
2004
|
+
win.top.location.reload();
|
|
2005
|
+
}, 200);
|
|
1999
2006
|
break;
|
|
2000
2007
|
case 1:
|
|
2001
2008
|
break;
|
|
2002
2009
|
case 2:
|
|
2003
2010
|
break;
|
|
2004
2011
|
case 3:
|
|
2005
|
-
var
|
|
2006
|
-
|
|
2007
|
-
if (to.query.openType) {
|
|
2008
|
-
switch (to.query.openType) {
|
|
2009
|
-
case 'self':
|
|
2010
|
-
win.location.href = href;
|
|
2011
|
-
break;
|
|
2012
|
-
case 'blank':
|
|
2013
|
-
win.open(href);
|
|
2014
|
-
break;
|
|
2015
|
-
case 'top':
|
|
2016
|
-
win.top.location.href = href;
|
|
2017
|
-
break;
|
|
2018
|
-
case 'parent':
|
|
2019
|
-
win.parent.location.href = href;
|
|
2020
|
-
break;
|
|
2021
|
-
}
|
|
2022
|
-
} else {
|
|
2023
|
-
if (open) {
|
|
2024
|
-
win.open(href);
|
|
2025
|
-
} else {
|
|
2026
|
-
win.top.location.href = href;
|
|
2027
|
-
}
|
|
2028
|
-
}
|
|
2012
|
+
var href = results.authorizeUrl.replace('{redirectUri}', encodeURIComponent(win.top.location.href));
|
|
2013
|
+
win.top.location.href = href;
|
|
2029
2014
|
break;
|
|
2030
2015
|
case 4:
|
|
2031
2016
|
eoss_element__WEBPACK_IMPORTED_MODULE_6__["MessageBox"].alert(results.msg ? results.msg : '账号未绑定,账号密码登录后自动绑定!', '提示', {
|