eoss-ui 0.4.57 → 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/CHANGELOG.md +929 -0
- package/lib/button-group.js +19 -5
- package/lib/button.js +19 -5
- package/lib/checkbox-group.js +19 -5
- package/lib/clients.js +95 -4
- package/lib/data-table-form.js +19 -5
- package/lib/data-table.js +24 -11
- package/lib/date-picker.js +19 -5
- package/lib/dialog.js +19 -5
- package/lib/eoss-ui.common.js +1361 -1074
- package/lib/flow-group.js +928 -860
- package/lib/flow-list.js +19 -5
- package/lib/flow.js +32 -16
- package/lib/form.js +19 -5
- package/lib/handle-user.js +19 -5
- package/lib/handler.js +38 -15
- package/lib/index.js +1 -1
- package/lib/input-number.js +19 -5
- package/lib/input.js +31 -10
- package/lib/login.js +102 -33
- package/lib/main.js +71 -36
- package/lib/mainComp.js +19 -5
- package/lib/nav.js +19 -5
- package/lib/page.js +19 -5
- package/lib/player.js +19 -5
- package/lib/qr-code.js +19 -5
- package/lib/radio-group.js +19 -5
- package/lib/retrial-auth.js +24 -9
- package/lib/select-ganged.js +19 -5
- package/lib/select.js +19 -5
- package/lib/selector-panel.js +19 -5
- package/lib/selector.js +19 -5
- package/lib/sizer.js +19 -5
- package/lib/steps.js +19 -5
- package/lib/switch.js +19 -5
- package/lib/table-form.js +26 -11
- package/lib/tabs.js +19 -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/theme-chalk/upload.css +1 -1
- package/lib/tips.js +19 -5
- package/lib/toolbar.js +0 -1
- package/lib/tree-group.js +19 -5
- package/lib/tree.js +19 -5
- package/lib/upload.js +110 -62
- package/lib/utils/util.js +19 -5
- package/lib/wujie.js +19 -5
- package/lib/wxlogin.js +19 -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 +28 -16
- package/packages/main/src/userinfo.vue +20 -9
- package/packages/retrial-auth/src/main.vue +3 -2
- 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/lib/upload.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/theme-chalk/src/upload.scss +50 -26
- package/packages/toolbar/src/main.vue +0 -1
- package/packages/upload/src/main.vue +56 -37
- package/src/index.js +1 -1
- package/src/utils/util.js +21 -10
package/lib/upload.js
CHANGED
|
@@ -264,20 +264,33 @@ var ajax = function ajax(_ref) {
|
|
|
264
264
|
}).then(function () {
|
|
265
265
|
var loginPage = getStorage('login') || getStorage('loginPage');
|
|
266
266
|
if (loginPage) {
|
|
267
|
-
|
|
267
|
+
var src = void 0;
|
|
268
|
+
if (!startWith(loginPage, ['http', '/'])) {
|
|
269
|
+
var pathname = win.top.location.pathname;
|
|
270
|
+
if (pathname !== '/') {
|
|
271
|
+
pathname = pathname.split('/');
|
|
272
|
+
pathname.splice(pathname.length - 1);
|
|
273
|
+
pathname = pathname.join('/');
|
|
274
|
+
}
|
|
275
|
+
src = pathname + loginPage.replace('./', '');
|
|
276
|
+
} else {
|
|
277
|
+
src = loginPage;
|
|
278
|
+
}
|
|
279
|
+
win.top.location.href = src;
|
|
268
280
|
} else if (win.top.location.href.indexOf('main.html') > -1) {
|
|
269
281
|
win.top.location.href = './login.html';
|
|
270
282
|
} else {
|
|
271
283
|
var hash = win.top.location.hash;
|
|
272
|
-
if (hash
|
|
284
|
+
if (hash) {
|
|
273
285
|
var len = win.top.location.href.indexOf(hash);
|
|
274
|
-
|
|
275
|
-
win.top.location.href = href;
|
|
286
|
+
win.top.location.href = win.location.href.slice(0, len) + '#/login';
|
|
276
287
|
} else {
|
|
277
288
|
win.top.location.href = '/login.html';
|
|
278
289
|
}
|
|
279
290
|
}
|
|
280
|
-
}).catch(function (e) {
|
|
291
|
+
}).catch(function (e) {
|
|
292
|
+
sessionStorage.removeItem('remind');
|
|
293
|
+
});
|
|
281
294
|
}, 1000));
|
|
282
295
|
}
|
|
283
296
|
} else if (response.data.rCode === 61) {
|
|
@@ -295,6 +308,7 @@ var ajax = function ajax(_ref) {
|
|
|
295
308
|
return h('es-retrial-auth', {
|
|
296
309
|
ref: 'auth',
|
|
297
310
|
props: {
|
|
311
|
+
reload: response.data.results.reload || response.data.results.refresh,
|
|
298
312
|
group: response.data.results.retrialAuthGroupIds,
|
|
299
313
|
type: response.data.results.retrialAuthType,
|
|
300
314
|
msgBox: msgBox
|
|
@@ -2832,8 +2846,8 @@ function normalizeComponent(
|
|
|
2832
2846
|
// ESM COMPAT FLAG
|
|
2833
2847
|
__webpack_require__.r(__webpack_exports__);
|
|
2834
2848
|
|
|
2835
|
-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/upload/src/main.vue?vue&type=template&id=
|
|
2836
|
-
var
|
|
2849
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/upload/src/main.vue?vue&type=template&id=456fded3&
|
|
2850
|
+
var mainvue_type_template_id_456fded3_render = function () {
|
|
2837
2851
|
var _vm = this
|
|
2838
2852
|
var _h = _vm.$createElement
|
|
2839
2853
|
var _c = _vm._self._c || _h
|
|
@@ -2846,7 +2860,7 @@ var mainvue_type_template_id_a73af130_render = function () {
|
|
|
2846
2860
|
class: [
|
|
2847
2861
|
{
|
|
2848
2862
|
"es-avatar-uploader": _vm.portrait,
|
|
2849
|
-
"es-upload-readonly": _vm.
|
|
2863
|
+
"es-upload-readonly": _vm.isReadonly,
|
|
2850
2864
|
},
|
|
2851
2865
|
"es-upload-" + _vm.listType,
|
|
2852
2866
|
],
|
|
@@ -2859,7 +2873,8 @@ var mainvue_type_template_id_a73af130_render = function () {
|
|
|
2859
2873
|
"show-file-list": _vm.showList,
|
|
2860
2874
|
"file-list": _vm.lists,
|
|
2861
2875
|
"result-file": _vm.resultFile,
|
|
2862
|
-
disabled: _vm.isDisabled,
|
|
2876
|
+
disabled: _vm.isDisabled || _vm.isReadonly,
|
|
2877
|
+
readonly: _vm.isReadonly,
|
|
2863
2878
|
previewAdjunct: _vm.host + _vm.previewAdjunct,
|
|
2864
2879
|
headers: _vm.headers,
|
|
2865
2880
|
data: _vm.datas,
|
|
@@ -2959,7 +2974,10 @@ var mainvue_type_template_id_a73af130_render = function () {
|
|
|
2959
2974
|
})
|
|
2960
2975
|
: _c("i", {
|
|
2961
2976
|
staticClass: "avatar-uploader-icon",
|
|
2962
|
-
class: {
|
|
2977
|
+
class: {
|
|
2978
|
+
"el-icon-plus": !_vm.isReadonly,
|
|
2979
|
+
"is-disabled": _vm.isDisabled,
|
|
2980
|
+
},
|
|
2963
2981
|
style: {
|
|
2964
2982
|
width: _vm.width,
|
|
2965
2983
|
height: _vm.height,
|
|
@@ -2968,11 +2986,12 @@ var mainvue_type_template_id_a73af130_render = function () {
|
|
|
2968
2986
|
}),
|
|
2969
2987
|
]
|
|
2970
2988
|
: [
|
|
2971
|
-
!_vm.
|
|
2989
|
+
!_vm.isReadonly
|
|
2972
2990
|
? [
|
|
2973
2991
|
_vm.selectType === "icon-plus"
|
|
2974
2992
|
? _c("i", {
|
|
2975
2993
|
staticClass: "el-icon-plus es-uploader-icon",
|
|
2994
|
+
class: { "is-disabled": _vm.isDisabled },
|
|
2976
2995
|
})
|
|
2977
2996
|
: _c(
|
|
2978
2997
|
"el-button",
|
|
@@ -2982,6 +3001,7 @@ var mainvue_type_template_id_a73af130_render = function () {
|
|
|
2982
3001
|
attrs: {
|
|
2983
3002
|
type: _vm.selectType,
|
|
2984
3003
|
size: _vm.btnSize,
|
|
3004
|
+
disabled: _vm.isDisabled,
|
|
2985
3005
|
},
|
|
2986
3006
|
},
|
|
2987
3007
|
[
|
|
@@ -3004,6 +3024,7 @@ var mainvue_type_template_id_a73af130_render = function () {
|
|
|
3004
3024
|
attrs: {
|
|
3005
3025
|
type: _vm.uploadType,
|
|
3006
3026
|
size: _vm.btnSize,
|
|
3027
|
+
disabled: _vm.isDisabled,
|
|
3007
3028
|
},
|
|
3008
3029
|
on: {
|
|
3009
3030
|
click: function ($event) {
|
|
@@ -3105,50 +3126,61 @@ var mainvue_type_template_id_a73af130_render = function () {
|
|
|
3105
3126
|
],
|
|
3106
3127
|
2
|
|
3107
3128
|
),
|
|
3108
|
-
|
|
3109
|
-
"
|
|
3110
|
-
|
|
3111
|
-
|
|
3112
|
-
|
|
3113
|
-
|
|
3114
|
-
_vm.
|
|
3129
|
+
_vm.previewScale && _vm.showImg
|
|
3130
|
+
? _c("el-image-viewer", {
|
|
3131
|
+
attrs: {
|
|
3132
|
+
slot: "dialog",
|
|
3133
|
+
"z-index": 9999,
|
|
3134
|
+
"initial-index": 0,
|
|
3135
|
+
"url-list": [_vm.imgUrl],
|
|
3136
|
+
"on-close": _vm.closeViewer,
|
|
3115
3137
|
},
|
|
3116
|
-
|
|
3117
|
-
|
|
3118
|
-
|
|
3119
|
-
|
|
3120
|
-
_c(
|
|
3121
|
-
"div",
|
|
3138
|
+
slot: "dialog",
|
|
3139
|
+
})
|
|
3140
|
+
: _c(
|
|
3141
|
+
"es-dialog",
|
|
3122
3142
|
{
|
|
3123
|
-
|
|
3124
|
-
|
|
3125
|
-
|
|
3126
|
-
|
|
3127
|
-
value: _vm.imgChange,
|
|
3128
|
-
expression: "imgChange",
|
|
3143
|
+
attrs: { slot: "dialog", title: _vm.title, visible: _vm.showImg },
|
|
3144
|
+
on: {
|
|
3145
|
+
"update:visible": function ($event) {
|
|
3146
|
+
_vm.showImg = $event
|
|
3129
3147
|
},
|
|
3130
|
-
|
|
3131
|
-
|
|
3132
|
-
attrs: { "element-loading-background": "rgba(0, 0, 0, 0.8)" },
|
|
3148
|
+
},
|
|
3149
|
+
slot: "dialog",
|
|
3133
3150
|
},
|
|
3134
3151
|
[
|
|
3135
|
-
_c(
|
|
3136
|
-
|
|
3137
|
-
|
|
3138
|
-
|
|
3139
|
-
|
|
3140
|
-
|
|
3141
|
-
|
|
3142
|
-
|
|
3143
|
-
|
|
3144
|
-
|
|
3145
|
-
|
|
3146
|
-
|
|
3147
|
-
|
|
3152
|
+
_c(
|
|
3153
|
+
"div",
|
|
3154
|
+
{
|
|
3155
|
+
directives: [
|
|
3156
|
+
{
|
|
3157
|
+
name: "loading",
|
|
3158
|
+
rawName: "v-loading",
|
|
3159
|
+
value: _vm.imgChange,
|
|
3160
|
+
expression: "imgChange",
|
|
3161
|
+
},
|
|
3162
|
+
],
|
|
3163
|
+
staticClass: "es-upload-dialog",
|
|
3164
|
+
attrs: { "element-loading-background": "rgba(0, 0, 0, 0.8)" },
|
|
3165
|
+
},
|
|
3166
|
+
[
|
|
3167
|
+
_c("img", {
|
|
3168
|
+
directives: [
|
|
3169
|
+
{
|
|
3170
|
+
name: "show",
|
|
3171
|
+
rawName: "v-show",
|
|
3172
|
+
value: !_vm.imgChange,
|
|
3173
|
+
expression: "!imgChange",
|
|
3174
|
+
},
|
|
3175
|
+
],
|
|
3176
|
+
ref: "showImg",
|
|
3177
|
+
style: _vm.styles,
|
|
3178
|
+
attrs: { src: _vm.imgUrl },
|
|
3179
|
+
}),
|
|
3180
|
+
]
|
|
3181
|
+
),
|
|
3148
3182
|
]
|
|
3149
3183
|
),
|
|
3150
|
-
]
|
|
3151
|
-
),
|
|
3152
3184
|
_c(
|
|
3153
3185
|
"es-dialog",
|
|
3154
3186
|
{
|
|
@@ -3177,10 +3209,10 @@ var mainvue_type_template_id_a73af130_render = function () {
|
|
|
3177
3209
|
)
|
|
3178
3210
|
}
|
|
3179
3211
|
var staticRenderFns = []
|
|
3180
|
-
|
|
3212
|
+
mainvue_type_template_id_456fded3_render._withStripped = true
|
|
3181
3213
|
|
|
3182
3214
|
|
|
3183
|
-
// CONCATENATED MODULE: ./packages/upload/src/main.vue?vue&type=template&id=
|
|
3215
|
+
// CONCATENATED MODULE: ./packages/upload/src/main.vue?vue&type=template&id=456fded3&
|
|
3184
3216
|
|
|
3185
3217
|
// EXTERNAL MODULE: ./src/config/api.js
|
|
3186
3218
|
var api = __webpack_require__(1);
|
|
@@ -3375,6 +3407,17 @@ var _props;
|
|
|
3375
3407
|
//
|
|
3376
3408
|
//
|
|
3377
3409
|
//
|
|
3410
|
+
//
|
|
3411
|
+
//
|
|
3412
|
+
//
|
|
3413
|
+
//
|
|
3414
|
+
//
|
|
3415
|
+
//
|
|
3416
|
+
//
|
|
3417
|
+
//
|
|
3418
|
+
//
|
|
3419
|
+
//
|
|
3420
|
+
//
|
|
3378
3421
|
|
|
3379
3422
|
|
|
3380
3423
|
|
|
@@ -3582,6 +3625,9 @@ var _props;
|
|
|
3582
3625
|
default: function _default() {
|
|
3583
3626
|
return {};
|
|
3584
3627
|
}
|
|
3628
|
+
}, _props.previewScale = {
|
|
3629
|
+
type: Boolean,
|
|
3630
|
+
default: true
|
|
3585
3631
|
}, _props),
|
|
3586
3632
|
data: function data() {
|
|
3587
3633
|
return {
|
|
@@ -3669,11 +3715,10 @@ var _props;
|
|
|
3669
3715
|
return false;
|
|
3670
3716
|
},
|
|
3671
3717
|
isDisabled: function isDisabled() {
|
|
3672
|
-
|
|
3673
|
-
|
|
3674
|
-
|
|
3675
|
-
|
|
3676
|
-
}
|
|
3718
|
+
return this.disabled || (this.elForm || {}).disabled;
|
|
3719
|
+
},
|
|
3720
|
+
isReadonly: function isReadonly() {
|
|
3721
|
+
return this.readonly || (this.elForm || {}).readonly;
|
|
3677
3722
|
},
|
|
3678
3723
|
isRemove: function isRemove() {
|
|
3679
3724
|
if (this.remove || this.deleted) {
|
|
@@ -3682,7 +3727,7 @@ var _props;
|
|
|
3682
3727
|
return false;
|
|
3683
3728
|
},
|
|
3684
3729
|
isSort: function isSort() {
|
|
3685
|
-
return this.dragSort && !this.isDisabled;
|
|
3730
|
+
return this.dragSort && !this.isDisabled && this.isReadonly;
|
|
3686
3731
|
},
|
|
3687
3732
|
datas: function datas() {
|
|
3688
3733
|
if (this.data) {
|
|
@@ -3912,7 +3957,7 @@ var _props;
|
|
|
3912
3957
|
} else if (suffix.includes('pdf')) {
|
|
3913
3958
|
util["a" /* default */].win.open(this.host + (url ? url : api["hb" /* previewAdjunct2 */]) + '/' + file.originalName + '?adjunctId=' + file.adjunctId);
|
|
3914
3959
|
} else if (suffix.includes('jpge') || suffix.includes('jpg') || suffix.includes('gif') || suffix.includes('png')) {
|
|
3915
|
-
this.imgUrl = this.host + (url ? url : this.previewAdjunct) + '?adjunctId=' + file.adjunctId;
|
|
3960
|
+
this.imgUrl = res.url ? res.url : this.host + (url ? url : this.previewAdjunct) + '?adjunctId=' + file.adjunctId;
|
|
3916
3961
|
this.title = file.originalName;
|
|
3917
3962
|
this.showImg = true;
|
|
3918
3963
|
this.$nextTick(function () {
|
|
@@ -3933,10 +3978,13 @@ var _props;
|
|
|
3933
3978
|
}
|
|
3934
3979
|
}
|
|
3935
3980
|
},
|
|
3981
|
+
closeViewer: function closeViewer() {
|
|
3982
|
+
this.showImg = false;
|
|
3983
|
+
},
|
|
3936
3984
|
loadImage: function loadImage() {
|
|
3937
3985
|
var _this5 = this;
|
|
3938
3986
|
|
|
3939
|
-
this.$refs.showImg.onload = function () {
|
|
3987
|
+
this.$refs.showImg && (this.$refs.showImg.onload = function () {
|
|
3940
3988
|
_this5.imgChange = false;
|
|
3941
3989
|
var w = _this5.$refs.showImg.naturalWidth;
|
|
3942
3990
|
var h = _this5.$refs.showImg.naturalHeight;
|
|
@@ -3953,14 +4001,14 @@ var _props;
|
|
|
3953
4001
|
if (h < ph) {
|
|
3954
4002
|
_this5.styles.height = h + 'px';
|
|
3955
4003
|
}
|
|
3956
|
-
};
|
|
4004
|
+
});
|
|
3957
4005
|
},
|
|
3958
4006
|
isLt: function isLt(file) {
|
|
3959
4007
|
var flag = false;
|
|
3960
4008
|
var flieArr = file.name.split('.');
|
|
3961
|
-
var suffix = '.' + flieArr[flieArr.length - 1];
|
|
4009
|
+
var suffix = '.' + flieArr[flieArr.length - 1].toLowerCase();
|
|
3962
4010
|
if (this.accepts) {
|
|
3963
|
-
var accepts = this.accepts.split(',');
|
|
4011
|
+
var accepts = this.accepts.toLowerCase().split(',');
|
|
3964
4012
|
flag = accepts.includes(suffix);
|
|
3965
4013
|
if (!flag) {
|
|
3966
4014
|
this.$message.error('\u6587\u4EF6\u7C7B\u578B\u9519\u8BEF\uFF0C\u8BF7\u4E0A\u4F20' + this.accepts + '\u7C7B\u578B\u6587\u4EF6!');
|
|
@@ -4206,7 +4254,7 @@ var componentNormalizer = __webpack_require__(3);
|
|
|
4206
4254
|
|
|
4207
4255
|
var component = Object(componentNormalizer["a" /* default */])(
|
|
4208
4256
|
src_mainvue_type_script_lang_js_,
|
|
4209
|
-
|
|
4257
|
+
mainvue_type_template_id_456fded3_render,
|
|
4210
4258
|
staticRenderFns,
|
|
4211
4259
|
false,
|
|
4212
4260
|
null,
|
package/lib/utils/util.js
CHANGED
|
@@ -179,20 +179,33 @@ var ajax = function ajax(_ref) {
|
|
|
179
179
|
}).then(function () {
|
|
180
180
|
var loginPage = getStorage('login') || getStorage('loginPage');
|
|
181
181
|
if (loginPage) {
|
|
182
|
-
|
|
182
|
+
var src = void 0;
|
|
183
|
+
if (!startWith(loginPage, ['http', '/'])) {
|
|
184
|
+
var pathname = win.top.location.pathname;
|
|
185
|
+
if (pathname !== '/') {
|
|
186
|
+
pathname = pathname.split('/');
|
|
187
|
+
pathname.splice(pathname.length - 1);
|
|
188
|
+
pathname = pathname.join('/');
|
|
189
|
+
}
|
|
190
|
+
src = pathname + loginPage.replace('./', '');
|
|
191
|
+
} else {
|
|
192
|
+
src = loginPage;
|
|
193
|
+
}
|
|
194
|
+
win.top.location.href = src;
|
|
183
195
|
} else if (win.top.location.href.indexOf('main.html') > -1) {
|
|
184
196
|
win.top.location.href = './login.html';
|
|
185
197
|
} else {
|
|
186
198
|
var hash = win.top.location.hash;
|
|
187
|
-
if (hash
|
|
199
|
+
if (hash) {
|
|
188
200
|
var len = win.top.location.href.indexOf(hash);
|
|
189
|
-
|
|
190
|
-
win.top.location.href = href;
|
|
201
|
+
win.top.location.href = win.location.href.slice(0, len) + '#/login';
|
|
191
202
|
} else {
|
|
192
203
|
win.top.location.href = '/login.html';
|
|
193
204
|
}
|
|
194
205
|
}
|
|
195
|
-
}).catch(function (e) {
|
|
206
|
+
}).catch(function (e) {
|
|
207
|
+
sessionStorage.removeItem('remind');
|
|
208
|
+
});
|
|
196
209
|
}, 1000));
|
|
197
210
|
}
|
|
198
211
|
} else if (response.data.rCode === 61) {
|
|
@@ -210,6 +223,7 @@ var ajax = function ajax(_ref) {
|
|
|
210
223
|
return h('es-retrial-auth', {
|
|
211
224
|
ref: 'auth',
|
|
212
225
|
props: {
|
|
226
|
+
reload: response.data.results.reload || response.data.results.refresh,
|
|
213
227
|
group: response.data.results.retrialAuthGroupIds,
|
|
214
228
|
type: response.data.results.retrialAuthType,
|
|
215
229
|
msgBox: msgBox
|
package/lib/wujie.js
CHANGED
|
@@ -264,20 +264,33 @@ var ajax = function ajax(_ref) {
|
|
|
264
264
|
}).then(function () {
|
|
265
265
|
var loginPage = getStorage('login') || getStorage('loginPage');
|
|
266
266
|
if (loginPage) {
|
|
267
|
-
|
|
267
|
+
var src = void 0;
|
|
268
|
+
if (!startWith(loginPage, ['http', '/'])) {
|
|
269
|
+
var pathname = win.top.location.pathname;
|
|
270
|
+
if (pathname !== '/') {
|
|
271
|
+
pathname = pathname.split('/');
|
|
272
|
+
pathname.splice(pathname.length - 1);
|
|
273
|
+
pathname = pathname.join('/');
|
|
274
|
+
}
|
|
275
|
+
src = pathname + loginPage.replace('./', '');
|
|
276
|
+
} else {
|
|
277
|
+
src = loginPage;
|
|
278
|
+
}
|
|
279
|
+
win.top.location.href = src;
|
|
268
280
|
} else if (win.top.location.href.indexOf('main.html') > -1) {
|
|
269
281
|
win.top.location.href = './login.html';
|
|
270
282
|
} else {
|
|
271
283
|
var hash = win.top.location.hash;
|
|
272
|
-
if (hash
|
|
284
|
+
if (hash) {
|
|
273
285
|
var len = win.top.location.href.indexOf(hash);
|
|
274
|
-
|
|
275
|
-
win.top.location.href = href;
|
|
286
|
+
win.top.location.href = win.location.href.slice(0, len) + '#/login';
|
|
276
287
|
} else {
|
|
277
288
|
win.top.location.href = '/login.html';
|
|
278
289
|
}
|
|
279
290
|
}
|
|
280
|
-
}).catch(function (e) {
|
|
291
|
+
}).catch(function (e) {
|
|
292
|
+
sessionStorage.removeItem('remind');
|
|
293
|
+
});
|
|
281
294
|
}, 1000));
|
|
282
295
|
}
|
|
283
296
|
} else if (response.data.rCode === 61) {
|
|
@@ -295,6 +308,7 @@ var ajax = function ajax(_ref) {
|
|
|
295
308
|
return h('es-retrial-auth', {
|
|
296
309
|
ref: 'auth',
|
|
297
310
|
props: {
|
|
311
|
+
reload: response.data.results.reload || response.data.results.refresh,
|
|
298
312
|
group: response.data.results.retrialAuthGroupIds,
|
|
299
313
|
type: response.data.results.retrialAuthType,
|
|
300
314
|
msgBox: msgBox
|
package/lib/wxlogin.js
CHANGED
|
@@ -264,20 +264,33 @@ var ajax = function ajax(_ref) {
|
|
|
264
264
|
}).then(function () {
|
|
265
265
|
var loginPage = getStorage('login') || getStorage('loginPage');
|
|
266
266
|
if (loginPage) {
|
|
267
|
-
|
|
267
|
+
var src = void 0;
|
|
268
|
+
if (!startWith(loginPage, ['http', '/'])) {
|
|
269
|
+
var pathname = win.top.location.pathname;
|
|
270
|
+
if (pathname !== '/') {
|
|
271
|
+
pathname = pathname.split('/');
|
|
272
|
+
pathname.splice(pathname.length - 1);
|
|
273
|
+
pathname = pathname.join('/');
|
|
274
|
+
}
|
|
275
|
+
src = pathname + loginPage.replace('./', '');
|
|
276
|
+
} else {
|
|
277
|
+
src = loginPage;
|
|
278
|
+
}
|
|
279
|
+
win.top.location.href = src;
|
|
268
280
|
} else if (win.top.location.href.indexOf('main.html') > -1) {
|
|
269
281
|
win.top.location.href = './login.html';
|
|
270
282
|
} else {
|
|
271
283
|
var hash = win.top.location.hash;
|
|
272
|
-
if (hash
|
|
284
|
+
if (hash) {
|
|
273
285
|
var len = win.top.location.href.indexOf(hash);
|
|
274
|
-
|
|
275
|
-
win.top.location.href = href;
|
|
286
|
+
win.top.location.href = win.location.href.slice(0, len) + '#/login';
|
|
276
287
|
} else {
|
|
277
288
|
win.top.location.href = '/login.html';
|
|
278
289
|
}
|
|
279
290
|
}
|
|
280
|
-
}).catch(function (e) {
|
|
291
|
+
}).catch(function (e) {
|
|
292
|
+
sessionStorage.removeItem('remind');
|
|
293
|
+
});
|
|
281
294
|
}, 1000));
|
|
282
295
|
}
|
|
283
296
|
} else if (response.data.rCode === 61) {
|
|
@@ -295,6 +308,7 @@ var ajax = function ajax(_ref) {
|
|
|
295
308
|
return h('es-retrial-auth', {
|
|
296
309
|
ref: 'auth',
|
|
297
310
|
props: {
|
|
311
|
+
reload: response.data.results.reload || response.data.results.refresh,
|
|
298
312
|
group: response.data.results.retrialAuthGroupIds,
|
|
299
313
|
type: response.data.results.retrialAuthType,
|
|
300
314
|
msgBox: msgBox
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eoss-ui",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.59",
|
|
4
4
|
"description": "eoss内部业务组件",
|
|
5
5
|
"main": "lib/eoss-ui.common.js",
|
|
6
6
|
"files": [
|
|
@@ -93,7 +93,7 @@
|
|
|
93
93
|
"cp-cli": "^1.0.2",
|
|
94
94
|
"cross-env": "^3.1.3",
|
|
95
95
|
"css-loader": "^2.1.0",
|
|
96
|
-
"eoss-element": "^0.2.
|
|
96
|
+
"eoss-element": "^0.2.66",
|
|
97
97
|
"es6-promise": "^4.0.5",
|
|
98
98
|
"eslint": "4.18.2",
|
|
99
99
|
"eslint-config-elemefe": "0.1.1",
|