eoss-ui 0.4.94 → 0.4.96
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 +32 -25
- package/lib/button.js +32 -25
- package/lib/checkbox-group.js +32 -25
- package/lib/data-table-form.js +32 -25
- package/lib/data-table.js +32 -25
- package/lib/date-picker.js +32 -25
- package/lib/dialog.js +32 -25
- package/lib/eoss-ui.common.js +106 -107
- package/lib/flow-group.js +32 -25
- package/lib/flow-list.js +32 -25
- package/lib/flow.js +41 -29
- package/lib/form.js +32 -25
- package/lib/handle-user.js +32 -25
- package/lib/handler.js +32 -25
- package/lib/index.js +1 -1
- package/lib/input-number.js +32 -25
- package/lib/input.js +32 -25
- package/lib/login.js +32 -25
- package/lib/main.js +86 -92
- package/lib/nav.js +32 -25
- package/lib/page.js +32 -25
- package/lib/player.js +32 -25
- package/lib/qr-code.js +32 -25
- package/lib/radio-group.js +32 -25
- package/lib/retrial-auth.js +32 -25
- package/lib/select-ganged.js +32 -25
- package/lib/select.js +32 -25
- package/lib/selector-panel.js +32 -25
- package/lib/selector.js +32 -25
- package/lib/sizer.js +32 -25
- package/lib/steps.js +32 -25
- package/lib/switch.js +32 -25
- package/lib/table-form.js +32 -25
- package/lib/tabs.js +32 -25
- package/lib/theme-chalk/index.css +1 -1
- package/lib/theme-chalk/toolbar.css +1 -1
- package/lib/tips.js +32 -25
- package/lib/tree-group.js +32 -25
- package/lib/tree.js +32 -25
- package/lib/upload.js +32 -25
- package/lib/utils/util.js +32 -25
- package/lib/wujie.js +32 -25
- package/lib/wxlogin.js +32 -25
- package/package.json +1 -1
- package/packages/flow/src/main.vue +58 -51
- package/packages/main/src/main.vue +36 -39
- package/packages/theme-chalk/lib/index.css +1 -1
- package/packages/theme-chalk/lib/toolbar.css +1 -1
- package/packages/theme-chalk/src/toolbar.scss +7 -0
- package/src/index.js +1 -1
- package/src/utils/util.js +64 -57
package/lib/flow.js
CHANGED
|
@@ -724,7 +724,7 @@ var debounce = function debounce(callback, delay) {
|
|
|
724
724
|
* @author huangbo
|
|
725
725
|
* @date 2022年5月7日
|
|
726
726
|
* @param {String} [url] - url地址
|
|
727
|
-
* @param {String} [key] - 参数名
|
|
727
|
+
* @param {String,Array} [key] - 参数名
|
|
728
728
|
**/
|
|
729
729
|
var delUrlParam = function delUrlParam(_ref2) {
|
|
730
730
|
var url = _ref2.url,
|
|
@@ -732,17 +732,37 @@ var delUrlParam = function delUrlParam(_ref2) {
|
|
|
732
732
|
|
|
733
733
|
var src = url ? decodeURI(url) : decodeURI(win.top.location.href);
|
|
734
734
|
var param = getParams({ url: src });
|
|
735
|
-
if (param &&
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
735
|
+
if (param && key.length) {
|
|
736
|
+
if (Array.isArray(key)) {
|
|
737
|
+
key.forEach(function (item) {
|
|
738
|
+
if (param.hasOwnProperty(item)) {
|
|
739
|
+
var reg = item + '=' + param[item];
|
|
740
|
+
if (src.indexOf(reg + '&') > -1) {
|
|
741
|
+
src = src.replace(reg + '&', '');
|
|
742
|
+
} else if (src.indexOf('&' + reg) > -1) {
|
|
743
|
+
src = src.replace('&' + reg, '');
|
|
744
|
+
} else {
|
|
745
|
+
src = src.replace(reg, '');
|
|
746
|
+
}
|
|
747
|
+
}
|
|
748
|
+
if (Object.keys(param).length === key.length) {
|
|
749
|
+
src = src.replace('?', '');
|
|
750
|
+
}
|
|
751
|
+
});
|
|
744
752
|
} else {
|
|
745
|
-
|
|
753
|
+
if (param.hasOwnProperty(key)) {
|
|
754
|
+
var reg = key + '=' + param[key];
|
|
755
|
+
if (Object.keys(param).length > 1) {
|
|
756
|
+
if (src.indexOf(reg + '&') > -1) {
|
|
757
|
+
src = src.replace(reg + '&', '');
|
|
758
|
+
}
|
|
759
|
+
if (src.indexOf('&' + reg) > -1) {
|
|
760
|
+
src = src.replace('&' + reg, '');
|
|
761
|
+
}
|
|
762
|
+
} else {
|
|
763
|
+
src = src.replace('?' + reg, '');
|
|
764
|
+
}
|
|
765
|
+
}
|
|
746
766
|
}
|
|
747
767
|
}
|
|
748
768
|
return src;
|
|
@@ -1942,20 +1962,6 @@ var isLogined = function isLogined(_ref8) {
|
|
|
1942
1962
|
} else {
|
|
1943
1963
|
var token = getStorage('token') || getStorage('Authorization');
|
|
1944
1964
|
if (!token && Object.prototype.hasOwnProperty.call(to.query, 'serverId') && Object.prototype.hasOwnProperty.call(to.query, 'authType')) {
|
|
1945
|
-
var url = win.top.location.href;
|
|
1946
|
-
if (to.query.openType) {
|
|
1947
|
-
switch (to.query.openType) {
|
|
1948
|
-
case 'self':
|
|
1949
|
-
url = win.location.href;
|
|
1950
|
-
break;
|
|
1951
|
-
case 'blank':
|
|
1952
|
-
url = win.open(url);
|
|
1953
|
-
break;
|
|
1954
|
-
case 'parent':
|
|
1955
|
-
url = win.parent.location.href;
|
|
1956
|
-
break;
|
|
1957
|
-
}
|
|
1958
|
-
}
|
|
1959
1965
|
ajax({
|
|
1960
1966
|
method: 'post',
|
|
1961
1967
|
url: _config_api__WEBPACK_IMPORTED_MODULE_0__[/* authCenter */ "b"],
|
|
@@ -1983,6 +1989,7 @@ var isLogined = function isLogined(_ref8) {
|
|
|
1983
1989
|
case 2:
|
|
1984
1990
|
break;
|
|
1985
1991
|
case 3:
|
|
1992
|
+
var url = win.top.location.href;
|
|
1986
1993
|
var href = results.authorizeUrl.replace('{redirectUri}', encodeURIComponent(url));
|
|
1987
1994
|
if (to.query.openType) {
|
|
1988
1995
|
switch (to.query.openType) {
|
|
@@ -3633,7 +3640,7 @@ var component = Object(componentNormalizer["a" /* default */])(
|
|
|
3633
3640
|
// ESM COMPAT FLAG
|
|
3634
3641
|
__webpack_require__.r(__webpack_exports__);
|
|
3635
3642
|
|
|
3636
|
-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/flow/src/main.vue?vue&type=template&id=
|
|
3643
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/flow/src/main.vue?vue&type=template&id=6538259e&
|
|
3637
3644
|
var render = function () {
|
|
3638
3645
|
var _vm = this
|
|
3639
3646
|
var _h = _vm.$createElement
|
|
@@ -4381,7 +4388,8 @@ var render = function () {
|
|
|
4381
4388
|
1
|
|
4382
4389
|
)
|
|
4383
4390
|
: _vm._e(),
|
|
4384
|
-
_vm.isMainSubProcess
|
|
4391
|
+
_vm.isMainSubProcess &&
|
|
4392
|
+
_vm.isNodeShowProcess
|
|
4385
4393
|
? _c(
|
|
4386
4394
|
"el-form-item",
|
|
4387
4395
|
{
|
|
@@ -5258,7 +5266,7 @@ var staticRenderFns = []
|
|
|
5258
5266
|
render._withStripped = true
|
|
5259
5267
|
|
|
5260
5268
|
|
|
5261
|
-
// CONCATENATED MODULE: ./packages/flow/src/main.vue?vue&type=template&id=
|
|
5269
|
+
// CONCATENATED MODULE: ./packages/flow/src/main.vue?vue&type=template&id=6538259e&
|
|
5262
5270
|
|
|
5263
5271
|
// EXTERNAL MODULE: external "babel-runtime/regenerator"
|
|
5264
5272
|
var regenerator_ = __webpack_require__(9);
|
|
@@ -12763,6 +12771,7 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
|
|
|
12763
12771
|
isHideCurrentOrg: false, //是否隐藏本单位(承办)
|
|
12764
12772
|
isHideOtherOrg: false, //是否隐藏外单位(承办)
|
|
12765
12773
|
isMainSubProcess: false, // 判断是否子-主流程
|
|
12774
|
+
isNodeShowProcess: false, //是否展示主办
|
|
12766
12775
|
isNextUser: false,
|
|
12767
12776
|
isShowNode: false,
|
|
12768
12777
|
nextNodeList: [],
|
|
@@ -12893,7 +12902,7 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
|
|
|
12893
12902
|
},
|
|
12894
12903
|
methods: {
|
|
12895
12904
|
getsubProcessColumns: function getsubProcessColumns() {
|
|
12896
|
-
if (!this.isMainSubProcess) return [];
|
|
12905
|
+
if (!this.isMainSubProcess || !this.isNodeShowProcess) return [];
|
|
12897
12906
|
var data = [];
|
|
12898
12907
|
var obj = { name: '[部门员工]-' };
|
|
12899
12908
|
if (this.nextCurrentOrgObjSelect.length > 0) {
|
|
@@ -13570,6 +13579,7 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
|
|
|
13570
13579
|
_this12.nodeType = data.nodeExtAttr.nodeType;
|
|
13571
13580
|
//如果当前为承办节点/会签节点,则展示本单位外单位办理人选择
|
|
13572
13581
|
if (_this12.nodeType === 1 || _this12.nodeType === 2) {
|
|
13582
|
+
_this12.isMainSubProcess === true ? _this12.isNodeShowProcess = true : _this12.isNodeShowProcess = false;
|
|
13573
13583
|
_this12.isMainSubProcess === true ? _this12.isMainSubProcess = true : _this12.isMainSubProcess = false;
|
|
13574
13584
|
_this12.isNextUser = false;
|
|
13575
13585
|
_this12.isHideCurrentOrg = res.data.nodeExtAttr.isHideCurrentOrg == 1 ? false : true; //判断是否隐藏本单位
|
|
@@ -13577,6 +13587,7 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
|
|
|
13577
13587
|
} else {
|
|
13578
13588
|
_this12.isHideCurrentOrg = false;
|
|
13579
13589
|
_this12.isHideOtherOrg = false;
|
|
13590
|
+
_this12.isNodeShowProcess = false;
|
|
13580
13591
|
_this12.isMainSubProcess = false;
|
|
13581
13592
|
_this12.isNextUser = true;
|
|
13582
13593
|
// this.isMainSubProcess === true
|
|
@@ -13656,6 +13667,7 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
|
|
|
13656
13667
|
this.isNextUser = false;
|
|
13657
13668
|
this.isShowNode = false;
|
|
13658
13669
|
this.isMainSubProcess = false;
|
|
13670
|
+
this.isNodeShowProcess = false;
|
|
13659
13671
|
this.nextNode.nextNodeId = '';
|
|
13660
13672
|
this.nextNode.isReturnSubmitter = 0;
|
|
13661
13673
|
this.nextNode.isUndertakeReply = 0;
|
package/lib/form.js
CHANGED
|
@@ -725,7 +725,7 @@ var debounce = function debounce(callback, delay) {
|
|
|
725
725
|
* @author huangbo
|
|
726
726
|
* @date 2022年5月7日
|
|
727
727
|
* @param {String} [url] - url地址
|
|
728
|
-
* @param {String} [key] - 参数名
|
|
728
|
+
* @param {String,Array} [key] - 参数名
|
|
729
729
|
**/
|
|
730
730
|
var delUrlParam = function delUrlParam(_ref2) {
|
|
731
731
|
var url = _ref2.url,
|
|
@@ -733,17 +733,37 @@ var delUrlParam = function delUrlParam(_ref2) {
|
|
|
733
733
|
|
|
734
734
|
var src = url ? decodeURI(url) : decodeURI(win.top.location.href);
|
|
735
735
|
var param = getParams({ url: src });
|
|
736
|
-
if (param &&
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
736
|
+
if (param && key.length) {
|
|
737
|
+
if (Array.isArray(key)) {
|
|
738
|
+
key.forEach(function (item) {
|
|
739
|
+
if (param.hasOwnProperty(item)) {
|
|
740
|
+
var reg = item + '=' + param[item];
|
|
741
|
+
if (src.indexOf(reg + '&') > -1) {
|
|
742
|
+
src = src.replace(reg + '&', '');
|
|
743
|
+
} else if (src.indexOf('&' + reg) > -1) {
|
|
744
|
+
src = src.replace('&' + reg, '');
|
|
745
|
+
} else {
|
|
746
|
+
src = src.replace(reg, '');
|
|
747
|
+
}
|
|
748
|
+
}
|
|
749
|
+
if (Object.keys(param).length === key.length) {
|
|
750
|
+
src = src.replace('?', '');
|
|
751
|
+
}
|
|
752
|
+
});
|
|
745
753
|
} else {
|
|
746
|
-
|
|
754
|
+
if (param.hasOwnProperty(key)) {
|
|
755
|
+
var reg = key + '=' + param[key];
|
|
756
|
+
if (Object.keys(param).length > 1) {
|
|
757
|
+
if (src.indexOf(reg + '&') > -1) {
|
|
758
|
+
src = src.replace(reg + '&', '');
|
|
759
|
+
}
|
|
760
|
+
if (src.indexOf('&' + reg) > -1) {
|
|
761
|
+
src = src.replace('&' + reg, '');
|
|
762
|
+
}
|
|
763
|
+
} else {
|
|
764
|
+
src = src.replace('?' + reg, '');
|
|
765
|
+
}
|
|
766
|
+
}
|
|
747
767
|
}
|
|
748
768
|
}
|
|
749
769
|
return src;
|
|
@@ -1943,20 +1963,6 @@ var isLogined = function isLogined(_ref8) {
|
|
|
1943
1963
|
} else {
|
|
1944
1964
|
var token = getStorage('token') || getStorage('Authorization');
|
|
1945
1965
|
if (!token && Object.prototype.hasOwnProperty.call(to.query, 'serverId') && Object.prototype.hasOwnProperty.call(to.query, 'authType')) {
|
|
1946
|
-
var url = win.top.location.href;
|
|
1947
|
-
if (to.query.openType) {
|
|
1948
|
-
switch (to.query.openType) {
|
|
1949
|
-
case 'self':
|
|
1950
|
-
url = win.location.href;
|
|
1951
|
-
break;
|
|
1952
|
-
case 'blank':
|
|
1953
|
-
url = win.open(url);
|
|
1954
|
-
break;
|
|
1955
|
-
case 'parent':
|
|
1956
|
-
url = win.parent.location.href;
|
|
1957
|
-
break;
|
|
1958
|
-
}
|
|
1959
|
-
}
|
|
1960
1966
|
ajax({
|
|
1961
1967
|
method: 'post',
|
|
1962
1968
|
url: _config_api__WEBPACK_IMPORTED_MODULE_0__[/* authCenter */ "b"],
|
|
@@ -1984,6 +1990,7 @@ var isLogined = function isLogined(_ref8) {
|
|
|
1984
1990
|
case 2:
|
|
1985
1991
|
break;
|
|
1986
1992
|
case 3:
|
|
1993
|
+
var url = win.top.location.href;
|
|
1987
1994
|
var href = results.authorizeUrl.replace('{redirectUri}', encodeURIComponent(url));
|
|
1988
1995
|
if (to.query.openType) {
|
|
1989
1996
|
switch (to.query.openType) {
|
package/lib/handle-user.js
CHANGED
|
@@ -725,7 +725,7 @@ var debounce = function debounce(callback, delay) {
|
|
|
725
725
|
* @author huangbo
|
|
726
726
|
* @date 2022年5月7日
|
|
727
727
|
* @param {String} [url] - url地址
|
|
728
|
-
* @param {String} [key] - 参数名
|
|
728
|
+
* @param {String,Array} [key] - 参数名
|
|
729
729
|
**/
|
|
730
730
|
var delUrlParam = function delUrlParam(_ref2) {
|
|
731
731
|
var url = _ref2.url,
|
|
@@ -733,17 +733,37 @@ var delUrlParam = function delUrlParam(_ref2) {
|
|
|
733
733
|
|
|
734
734
|
var src = url ? decodeURI(url) : decodeURI(win.top.location.href);
|
|
735
735
|
var param = getParams({ url: src });
|
|
736
|
-
if (param &&
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
736
|
+
if (param && key.length) {
|
|
737
|
+
if (Array.isArray(key)) {
|
|
738
|
+
key.forEach(function (item) {
|
|
739
|
+
if (param.hasOwnProperty(item)) {
|
|
740
|
+
var reg = item + '=' + param[item];
|
|
741
|
+
if (src.indexOf(reg + '&') > -1) {
|
|
742
|
+
src = src.replace(reg + '&', '');
|
|
743
|
+
} else if (src.indexOf('&' + reg) > -1) {
|
|
744
|
+
src = src.replace('&' + reg, '');
|
|
745
|
+
} else {
|
|
746
|
+
src = src.replace(reg, '');
|
|
747
|
+
}
|
|
748
|
+
}
|
|
749
|
+
if (Object.keys(param).length === key.length) {
|
|
750
|
+
src = src.replace('?', '');
|
|
751
|
+
}
|
|
752
|
+
});
|
|
745
753
|
} else {
|
|
746
|
-
|
|
754
|
+
if (param.hasOwnProperty(key)) {
|
|
755
|
+
var reg = key + '=' + param[key];
|
|
756
|
+
if (Object.keys(param).length > 1) {
|
|
757
|
+
if (src.indexOf(reg + '&') > -1) {
|
|
758
|
+
src = src.replace(reg + '&', '');
|
|
759
|
+
}
|
|
760
|
+
if (src.indexOf('&' + reg) > -1) {
|
|
761
|
+
src = src.replace('&' + reg, '');
|
|
762
|
+
}
|
|
763
|
+
} else {
|
|
764
|
+
src = src.replace('?' + reg, '');
|
|
765
|
+
}
|
|
766
|
+
}
|
|
747
767
|
}
|
|
748
768
|
}
|
|
749
769
|
return src;
|
|
@@ -1943,20 +1963,6 @@ var isLogined = function isLogined(_ref8) {
|
|
|
1943
1963
|
} else {
|
|
1944
1964
|
var token = getStorage('token') || getStorage('Authorization');
|
|
1945
1965
|
if (!token && Object.prototype.hasOwnProperty.call(to.query, 'serverId') && Object.prototype.hasOwnProperty.call(to.query, 'authType')) {
|
|
1946
|
-
var url = win.top.location.href;
|
|
1947
|
-
if (to.query.openType) {
|
|
1948
|
-
switch (to.query.openType) {
|
|
1949
|
-
case 'self':
|
|
1950
|
-
url = win.location.href;
|
|
1951
|
-
break;
|
|
1952
|
-
case 'blank':
|
|
1953
|
-
url = win.open(url);
|
|
1954
|
-
break;
|
|
1955
|
-
case 'parent':
|
|
1956
|
-
url = win.parent.location.href;
|
|
1957
|
-
break;
|
|
1958
|
-
}
|
|
1959
|
-
}
|
|
1960
1966
|
ajax({
|
|
1961
1967
|
method: 'post',
|
|
1962
1968
|
url: _config_api__WEBPACK_IMPORTED_MODULE_0__[/* authCenter */ "b"],
|
|
@@ -1984,6 +1990,7 @@ var isLogined = function isLogined(_ref8) {
|
|
|
1984
1990
|
case 2:
|
|
1985
1991
|
break;
|
|
1986
1992
|
case 3:
|
|
1993
|
+
var url = win.top.location.href;
|
|
1987
1994
|
var href = results.authorizeUrl.replace('{redirectUri}', encodeURIComponent(url));
|
|
1988
1995
|
if (to.query.openType) {
|
|
1989
1996
|
switch (to.query.openType) {
|
package/lib/handler.js
CHANGED
|
@@ -725,7 +725,7 @@ var debounce = function debounce(callback, delay) {
|
|
|
725
725
|
* @author huangbo
|
|
726
726
|
* @date 2022年5月7日
|
|
727
727
|
* @param {String} [url] - url地址
|
|
728
|
-
* @param {String} [key] - 参数名
|
|
728
|
+
* @param {String,Array} [key] - 参数名
|
|
729
729
|
**/
|
|
730
730
|
var delUrlParam = function delUrlParam(_ref2) {
|
|
731
731
|
var url = _ref2.url,
|
|
@@ -733,17 +733,37 @@ var delUrlParam = function delUrlParam(_ref2) {
|
|
|
733
733
|
|
|
734
734
|
var src = url ? decodeURI(url) : decodeURI(win.top.location.href);
|
|
735
735
|
var param = getParams({ url: src });
|
|
736
|
-
if (param &&
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
736
|
+
if (param && key.length) {
|
|
737
|
+
if (Array.isArray(key)) {
|
|
738
|
+
key.forEach(function (item) {
|
|
739
|
+
if (param.hasOwnProperty(item)) {
|
|
740
|
+
var reg = item + '=' + param[item];
|
|
741
|
+
if (src.indexOf(reg + '&') > -1) {
|
|
742
|
+
src = src.replace(reg + '&', '');
|
|
743
|
+
} else if (src.indexOf('&' + reg) > -1) {
|
|
744
|
+
src = src.replace('&' + reg, '');
|
|
745
|
+
} else {
|
|
746
|
+
src = src.replace(reg, '');
|
|
747
|
+
}
|
|
748
|
+
}
|
|
749
|
+
if (Object.keys(param).length === key.length) {
|
|
750
|
+
src = src.replace('?', '');
|
|
751
|
+
}
|
|
752
|
+
});
|
|
745
753
|
} else {
|
|
746
|
-
|
|
754
|
+
if (param.hasOwnProperty(key)) {
|
|
755
|
+
var reg = key + '=' + param[key];
|
|
756
|
+
if (Object.keys(param).length > 1) {
|
|
757
|
+
if (src.indexOf(reg + '&') > -1) {
|
|
758
|
+
src = src.replace(reg + '&', '');
|
|
759
|
+
}
|
|
760
|
+
if (src.indexOf('&' + reg) > -1) {
|
|
761
|
+
src = src.replace('&' + reg, '');
|
|
762
|
+
}
|
|
763
|
+
} else {
|
|
764
|
+
src = src.replace('?' + reg, '');
|
|
765
|
+
}
|
|
766
|
+
}
|
|
747
767
|
}
|
|
748
768
|
}
|
|
749
769
|
return src;
|
|
@@ -1943,20 +1963,6 @@ var isLogined = function isLogined(_ref8) {
|
|
|
1943
1963
|
} else {
|
|
1944
1964
|
var token = getStorage('token') || getStorage('Authorization');
|
|
1945
1965
|
if (!token && Object.prototype.hasOwnProperty.call(to.query, 'serverId') && Object.prototype.hasOwnProperty.call(to.query, 'authType')) {
|
|
1946
|
-
var url = win.top.location.href;
|
|
1947
|
-
if (to.query.openType) {
|
|
1948
|
-
switch (to.query.openType) {
|
|
1949
|
-
case 'self':
|
|
1950
|
-
url = win.location.href;
|
|
1951
|
-
break;
|
|
1952
|
-
case 'blank':
|
|
1953
|
-
url = win.open(url);
|
|
1954
|
-
break;
|
|
1955
|
-
case 'parent':
|
|
1956
|
-
url = win.parent.location.href;
|
|
1957
|
-
break;
|
|
1958
|
-
}
|
|
1959
|
-
}
|
|
1960
1966
|
ajax({
|
|
1961
1967
|
method: 'post',
|
|
1962
1968
|
url: _config_api__WEBPACK_IMPORTED_MODULE_0__[/* authCenter */ "b"],
|
|
@@ -1984,6 +1990,7 @@ var isLogined = function isLogined(_ref8) {
|
|
|
1984
1990
|
case 2:
|
|
1985
1991
|
break;
|
|
1986
1992
|
case 3:
|
|
1993
|
+
var url = win.top.location.href;
|
|
1987
1994
|
var href = results.authorizeUrl.replace('{redirectUri}', encodeURIComponent(url));
|
|
1988
1995
|
if (to.query.openType) {
|
|
1989
1996
|
switch (to.query.openType) {
|