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/input-number.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/input.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
|
|
@@ -2942,7 +2956,8 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
|
|
|
2942
2956
|
readonly: Boolean,
|
|
2943
2957
|
plain: Boolean,
|
|
2944
2958
|
text: [String, Number],
|
|
2945
|
-
scope: {}
|
|
2959
|
+
scope: {},
|
|
2960
|
+
exclude: Boolean
|
|
2946
2961
|
},
|
|
2947
2962
|
data: function data() {
|
|
2948
2963
|
return {
|
|
@@ -3035,12 +3050,18 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
|
|
|
3035
3050
|
}
|
|
3036
3051
|
},
|
|
3037
3052
|
searchFilter: function searchFilter(query) {
|
|
3053
|
+
var _this3 = this;
|
|
3054
|
+
|
|
3038
3055
|
return function (state) {
|
|
3039
|
-
|
|
3056
|
+
if (_this3.exclude) {
|
|
3057
|
+
return state.value.toLowerCase().indexOf(query.toLowerCase()) === -1;
|
|
3058
|
+
} else {
|
|
3059
|
+
return state.value.toLowerCase().indexOf(query.toLowerCase()) === 0;
|
|
3060
|
+
}
|
|
3040
3061
|
};
|
|
3041
3062
|
},
|
|
3042
3063
|
renderd: function renderd(doms, h, type) {
|
|
3043
|
-
var
|
|
3064
|
+
var _this4 = this;
|
|
3044
3065
|
|
|
3045
3066
|
if (typeof this.$attrs[type] === 'boolean') {
|
|
3046
3067
|
if (this.$attrs.render) {
|
|
@@ -3066,8 +3087,8 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
|
|
|
3066
3087
|
domProps: this.$attrs[type].icon ? { innerHTML: this.$attrs[type].icon } : {},
|
|
3067
3088
|
on: {
|
|
3068
3089
|
click: function click() {
|
|
3069
|
-
|
|
3070
|
-
|
|
3090
|
+
_this4.$attrs[type].click && _this4.$attrs[type].click(_this4, _this4.model, _this4.scope);
|
|
3091
|
+
_this4.$attrs[type].event && _this4.$attrs[type].event(_this4, _this4.model, _this4.scope);
|
|
3071
3092
|
}
|
|
3072
3093
|
}
|
|
3073
3094
|
}, [this.$attrs[type].text]));
|
package/lib/login.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
|
|
@@ -2857,7 +2871,7 @@ function normalizeComponent(
|
|
|
2857
2871
|
// ESM COMPAT FLAG
|
|
2858
2872
|
__webpack_require__.r(__webpack_exports__);
|
|
2859
2873
|
|
|
2860
|
-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/login/src/main.vue?vue&type=template&id=
|
|
2874
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/login/src/main.vue?vue&type=template&id=6f4e7cde&
|
|
2861
2875
|
var render = function () {
|
|
2862
2876
|
var _vm = this
|
|
2863
2877
|
var _h = _vm.$createElement
|
|
@@ -2987,16 +3001,19 @@ var render = function () {
|
|
|
2987
3001
|
},
|
|
2988
3002
|
[
|
|
2989
3003
|
_c(
|
|
2990
|
-
"
|
|
3004
|
+
"es-input",
|
|
2991
3005
|
{
|
|
2992
3006
|
attrs: {
|
|
2993
3007
|
size: "large",
|
|
2994
3008
|
type: "text",
|
|
2995
3009
|
name: "username",
|
|
3010
|
+
exclude: "",
|
|
2996
3011
|
placeholder: _vm.username.placeholder,
|
|
3012
|
+
focusShow: _vm.focusShow,
|
|
3013
|
+
data: _vm.users,
|
|
2997
3014
|
autocomplete: "off",
|
|
2998
3015
|
},
|
|
2999
|
-
on: {
|
|
3016
|
+
on: { select: _vm.handleBlur },
|
|
3000
3017
|
model: {
|
|
3001
3018
|
value: _vm.formData.username,
|
|
3002
3019
|
callback: function ($$v) {
|
|
@@ -3206,9 +3223,11 @@ var render = function () {
|
|
|
3206
3223
|
name: "show",
|
|
3207
3224
|
rawName: "v-show",
|
|
3208
3225
|
value:
|
|
3209
|
-
_vm.remember &&
|
|
3226
|
+
_vm.remember &&
|
|
3227
|
+
(_vm.active == "0" ||
|
|
3228
|
+
_vm.active == "12"),
|
|
3210
3229
|
expression:
|
|
3211
|
-
"remember && active == '0'",
|
|
3230
|
+
"remember && (active == '0' || active == '12')",
|
|
3212
3231
|
},
|
|
3213
3232
|
],
|
|
3214
3233
|
model: {
|
|
@@ -3296,6 +3315,10 @@ var render = function () {
|
|
|
3296
3315
|
{
|
|
3297
3316
|
staticClass:
|
|
3298
3317
|
"es-login-app-name es-pointer",
|
|
3318
|
+
attrs: {
|
|
3319
|
+
target: "_blank",
|
|
3320
|
+
href: _vm.downloadApp,
|
|
3321
|
+
},
|
|
3299
3322
|
},
|
|
3300
3323
|
[
|
|
3301
3324
|
_vm._v(
|
|
@@ -3414,7 +3437,6 @@ var render = function () {
|
|
|
3414
3437
|
: _vm.email.placeholder,
|
|
3415
3438
|
autocomplete: "off",
|
|
3416
3439
|
},
|
|
3417
|
-
on: { blur: _vm.handleBlur },
|
|
3418
3440
|
model: {
|
|
3419
3441
|
value: _vm.formData.target,
|
|
3420
3442
|
callback: function ($$v) {
|
|
@@ -3707,7 +3729,7 @@ var staticRenderFns = []
|
|
|
3707
3729
|
render._withStripped = true
|
|
3708
3730
|
|
|
3709
3731
|
|
|
3710
|
-
// CONCATENATED MODULE: ./packages/login/src/main.vue?vue&type=template&id=
|
|
3732
|
+
// CONCATENATED MODULE: ./packages/login/src/main.vue?vue&type=template&id=6f4e7cde&
|
|
3711
3733
|
|
|
3712
3734
|
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/login/src/resetPassword.vue?vue&type=template&id=4f5da52e&
|
|
3713
3735
|
var resetPasswordvue_type_template_id_4f5da52e_render = function () {
|
|
@@ -4442,6 +4464,12 @@ var mainvue_type_script_lang_js_extends = Object.assign || function (target) { f
|
|
|
4442
4464
|
//
|
|
4443
4465
|
//
|
|
4444
4466
|
//
|
|
4467
|
+
//
|
|
4468
|
+
//
|
|
4469
|
+
//
|
|
4470
|
+
//
|
|
4471
|
+
//
|
|
4472
|
+
//
|
|
4445
4473
|
|
|
4446
4474
|
|
|
4447
4475
|
|
|
@@ -4489,7 +4517,7 @@ var mainvue_type_script_lang_js_extends = Object.assign || function (target) { f
|
|
|
4489
4517
|
default: function _default() {
|
|
4490
4518
|
return {
|
|
4491
4519
|
placeholder: '请输入账号',
|
|
4492
|
-
rules: [{ required: true, message: '账号不能为空', trigger: '
|
|
4520
|
+
rules: [{ required: true, message: '账号不能为空', trigger: 'change' }]
|
|
4493
4521
|
};
|
|
4494
4522
|
}
|
|
4495
4523
|
},
|
|
@@ -4611,6 +4639,12 @@ var mainvue_type_script_lang_js_extends = Object.assign || function (target) { f
|
|
|
4611
4639
|
default: true
|
|
4612
4640
|
},
|
|
4613
4641
|
downloadApp: String,
|
|
4642
|
+
downLoadUrls: {
|
|
4643
|
+
type: Object,
|
|
4644
|
+
default: function _default() {
|
|
4645
|
+
return {};
|
|
4646
|
+
}
|
|
4647
|
+
},
|
|
4614
4648
|
onDownLoadApp: [Function, Boolean],
|
|
4615
4649
|
redirect_uri: String,
|
|
4616
4650
|
position: {
|
|
@@ -4756,7 +4790,7 @@ var mainvue_type_script_lang_js_extends = Object.assign || function (target) { f
|
|
|
4756
4790
|
checked: function checked(val) {
|
|
4757
4791
|
if (!val) {
|
|
4758
4792
|
localStorage.removeItem('unpd');
|
|
4759
|
-
localStorage.removeItem('remember');
|
|
4793
|
+
//localStorage.removeItem('remember');
|
|
4760
4794
|
}
|
|
4761
4795
|
},
|
|
4762
4796
|
|
|
@@ -4784,6 +4818,8 @@ var mainvue_type_script_lang_js_extends = Object.assign || function (target) { f
|
|
|
4784
4818
|
submit: false,
|
|
4785
4819
|
checked: false,
|
|
4786
4820
|
formData: this.model,
|
|
4821
|
+
focusShow: false,
|
|
4822
|
+
users: [],
|
|
4787
4823
|
imageCode: '',
|
|
4788
4824
|
secret: null,
|
|
4789
4825
|
identifyingId: '',
|
|
@@ -4875,27 +4911,38 @@ var mainvue_type_script_lang_js_extends = Object.assign || function (target) { f
|
|
|
4875
4911
|
return url;
|
|
4876
4912
|
},
|
|
4877
4913
|
getRemember: function getRemember(user) {
|
|
4878
|
-
if (!user) {
|
|
4879
|
-
user = localStorage.getItem('remember');
|
|
4880
|
-
if (user) {
|
|
4881
|
-
user = util["a" /* default */].esDecode(user);
|
|
4882
|
-
} else {
|
|
4883
|
-
return false;
|
|
4884
|
-
}
|
|
4885
|
-
}
|
|
4886
4914
|
var values = localStorage.getItem('unpd');
|
|
4887
4915
|
var value = {};
|
|
4888
4916
|
if (values) {
|
|
4889
4917
|
try {
|
|
4890
4918
|
values = JSON.parse(values);
|
|
4919
|
+
var users = [];
|
|
4891
4920
|
for (var i in values) {
|
|
4892
|
-
|
|
4921
|
+
var k = util["a" /* default */].esDecode(i);
|
|
4922
|
+
value[k] = util["a" /* default */].esDecode(values[i]);
|
|
4923
|
+
users.push({ value: k });
|
|
4893
4924
|
}
|
|
4894
|
-
|
|
4925
|
+
this.users = users;
|
|
4926
|
+
var keys = Object.keys(value);
|
|
4927
|
+
if (keys.length) {
|
|
4895
4928
|
this.checked = true;
|
|
4896
4929
|
}
|
|
4897
|
-
|
|
4898
|
-
|
|
4930
|
+
if (!user && keys.length == 1) {
|
|
4931
|
+
user = keys[0];
|
|
4932
|
+
// user = localStorage.getItem('remember');
|
|
4933
|
+
// if (user) {
|
|
4934
|
+
// user = util.esDecode(user);
|
|
4935
|
+
// } else {
|
|
4936
|
+
// user = keys[0];
|
|
4937
|
+
// }
|
|
4938
|
+
}
|
|
4939
|
+
if (keys.length > 1) {
|
|
4940
|
+
this.focusShow = true;
|
|
4941
|
+
}
|
|
4942
|
+
if (user) {
|
|
4943
|
+
this.$set(this.formData, 'username', user);
|
|
4944
|
+
this.$set(this.formData, 'password', value[user]);
|
|
4945
|
+
}
|
|
4899
4946
|
} catch (error) {
|
|
4900
4947
|
localStorage.removeItem('unpd');
|
|
4901
4948
|
}
|
|
@@ -4916,7 +4963,7 @@ var mainvue_type_script_lang_js_extends = Object.assign || function (target) { f
|
|
|
4916
4963
|
}
|
|
4917
4964
|
}
|
|
4918
4965
|
if (this.checked) {
|
|
4919
|
-
localStorage.setItem('remember', util
|
|
4966
|
+
//localStorage.setItem('remember', util.esEncode(this.formData.username));
|
|
4920
4967
|
value[this.formData.username] = this.formData.password;
|
|
4921
4968
|
var data = {};
|
|
4922
4969
|
for (var _i in value) {
|
|
@@ -4934,7 +4981,7 @@ var mainvue_type_script_lang_js_extends = Object.assign || function (target) { f
|
|
|
4934
4981
|
} else {
|
|
4935
4982
|
localStorage.removeItem('unpd');
|
|
4936
4983
|
}
|
|
4937
|
-
localStorage.removeItem('remember');
|
|
4984
|
+
//localStorage.removeItem('remember');
|
|
4938
4985
|
}
|
|
4939
4986
|
},
|
|
4940
4987
|
|
|
@@ -4955,7 +5002,7 @@ var mainvue_type_script_lang_js_extends = Object.assign || function (target) { f
|
|
|
4955
5002
|
this.$refs.login && this.$refs.login.clearValidate();
|
|
4956
5003
|
if (res != 1) {
|
|
4957
5004
|
this.active = res;
|
|
4958
|
-
this.formData = JSON.parse(JSON.stringify(this.defaultModel));
|
|
5005
|
+
Object.keys(this.defaultModel).length && (this.formData = JSON.parse(JSON.stringify(this.defaultModel)));
|
|
4959
5006
|
}
|
|
4960
5007
|
this.countdown = 0;
|
|
4961
5008
|
this.$emit('change-type', res, this.identifyingId);
|
|
@@ -4997,10 +5044,22 @@ var mainvue_type_script_lang_js_extends = Object.assign || function (target) { f
|
|
|
4997
5044
|
var host = util["a" /* default */].getStorage('host');
|
|
4998
5045
|
this.identifyingId = res.identifyingId;
|
|
4999
5046
|
this.getImgCode();
|
|
5000
|
-
|
|
5001
|
-
|
|
5002
|
-
|
|
5003
|
-
}
|
|
5047
|
+
var downloads = {};
|
|
5048
|
+
if (res.androidDownloadUrl) {
|
|
5049
|
+
downloads['android'] = res.androidDownloadUrl;
|
|
5050
|
+
}
|
|
5051
|
+
if (res.iosDownloadUrl || res.iosDownloadUrl2) {
|
|
5052
|
+
downloads['ios'] = res.iosDownloadUrl || res.iosDownloadUrl2;
|
|
5053
|
+
}
|
|
5054
|
+
if (res.macDownloadUrl) {
|
|
5055
|
+
downloads['mac'] = res.macDownloadUrl;
|
|
5056
|
+
}
|
|
5057
|
+
if (res.winDownloadUrl) {
|
|
5058
|
+
downloads['win'] = res.winDownloadUrl;
|
|
5059
|
+
}
|
|
5060
|
+
if (res.linuxDownloadUrl) {
|
|
5061
|
+
downloads['linux'] = res.linuxDownloadUrl;
|
|
5062
|
+
}
|
|
5004
5063
|
this.secret = res.secret;
|
|
5005
5064
|
this.setup = res.setup;
|
|
5006
5065
|
this.sysName = res.subsystemName;
|
|
@@ -5035,10 +5094,20 @@ var mainvue_type_script_lang_js_extends = Object.assign || function (target) { f
|
|
|
5035
5094
|
util["a" /* default */].updateTheme(res.subsystemExtend.themeColor);
|
|
5036
5095
|
localStorage.setItem('theme', res.subsystemExtend.themeColor);
|
|
5037
5096
|
}
|
|
5097
|
+
if (res.subsystemExtend.macDownloadUrl) {
|
|
5098
|
+
downloads.mac = res.subsystemExtend.macDownloadUrl;
|
|
5099
|
+
}
|
|
5100
|
+
if (res.subsystemExtend.winDownloadUrl) {
|
|
5101
|
+
downloads.win = res.subsystemExtend.winDownloadUrl;
|
|
5102
|
+
}
|
|
5103
|
+
if (res.subsystemExtend.linuxDownloadUrl) {
|
|
5104
|
+
downloads.linux = res.subsystemExtend.linuxDownloadUrl;
|
|
5105
|
+
}
|
|
5038
5106
|
}
|
|
5039
5107
|
this.passModifyModel = res.passModifyModel;
|
|
5040
5108
|
this.wechatAppid = res.wechatAppid;
|
|
5041
5109
|
this.wechatScope = res.wechatScope;
|
|
5110
|
+
this.download = mainvue_type_script_lang_js_extends({}, this.downLoadUrls, downloads);
|
|
5042
5111
|
if (res.sysLogoIco) {
|
|
5043
5112
|
util["a" /* default */].setFavicon(res.sysLogoIco);
|
|
5044
5113
|
}
|
package/lib/main.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) {
|
|
@@ -294,6 +307,7 @@ var ajax = function ajax(_ref) {
|
|
|
294
307
|
return h('es-retrial-auth', {
|
|
295
308
|
ref: 'auth',
|
|
296
309
|
props: {
|
|
310
|
+
reload: response.data.results.reload || response.data.results.refresh,
|
|
297
311
|
group: response.data.results.retrialAuthGroupIds,
|
|
298
312
|
type: response.data.results.retrialAuthType,
|
|
299
313
|
msgBox: msgBox
|
|
@@ -2918,7 +2932,7 @@ module.exports = require("stompjs");
|
|
|
2918
2932
|
// ESM COMPAT FLAG
|
|
2919
2933
|
__webpack_require__.r(__webpack_exports__);
|
|
2920
2934
|
|
|
2921
|
-
// 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=
|
|
2935
|
+
// 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=134babd4&
|
|
2922
2936
|
var render = function () {
|
|
2923
2937
|
var _vm = this
|
|
2924
2938
|
var _h = _vm.$createElement
|
|
@@ -3346,10 +3360,10 @@ var staticRenderFns = []
|
|
|
3346
3360
|
render._withStripped = true
|
|
3347
3361
|
|
|
3348
3362
|
|
|
3349
|
-
// CONCATENATED MODULE: ./packages/main/src/main.vue?vue&type=template&id=
|
|
3363
|
+
// CONCATENATED MODULE: ./packages/main/src/main.vue?vue&type=template&id=134babd4&
|
|
3350
3364
|
|
|
3351
|
-
// 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=
|
|
3352
|
-
var
|
|
3365
|
+
// 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=2c2316da&
|
|
3366
|
+
var userinfovue_type_template_id_2c2316da_render = function () {
|
|
3353
3367
|
var _vm = this
|
|
3354
3368
|
var _h = _vm.$createElement
|
|
3355
3369
|
var _c = _vm._self._c || _h
|
|
@@ -3365,11 +3379,11 @@ var userinfovue_type_template_id_327101d6_render = function () {
|
|
|
3365
3379
|
2
|
|
3366
3380
|
)
|
|
3367
3381
|
}
|
|
3368
|
-
var
|
|
3369
|
-
|
|
3382
|
+
var userinfovue_type_template_id_2c2316da_staticRenderFns = []
|
|
3383
|
+
userinfovue_type_template_id_2c2316da_render._withStripped = true
|
|
3370
3384
|
|
|
3371
3385
|
|
|
3372
|
-
// CONCATENATED MODULE: ./packages/main/src/userinfo.vue?vue&type=template&id=
|
|
3386
|
+
// CONCATENATED MODULE: ./packages/main/src/userinfo.vue?vue&type=template&id=2c2316da&
|
|
3373
3387
|
|
|
3374
3388
|
// EXTERNAL MODULE: ./src/config/api.js
|
|
3375
3389
|
var api = __webpack_require__(1);
|
|
@@ -3705,7 +3719,22 @@ var util = __webpack_require__(0);
|
|
|
3705
3719
|
closeOnClickModal: false,
|
|
3706
3720
|
type: 'warning'
|
|
3707
3721
|
}).then(function () {
|
|
3708
|
-
|
|
3722
|
+
var loginPage = util["a" /* default */].getStorage('login') || util["a" /* default */].getStorage('loginPage');
|
|
3723
|
+
if (loginPage) {
|
|
3724
|
+
var src = void 0;
|
|
3725
|
+
if (!util["a" /* default */].startWith(loginPage, ['http', '/'])) {
|
|
3726
|
+
var pathname = util["a" /* default */].win.top.location.pathname;
|
|
3727
|
+
if (pathname !== '/') {
|
|
3728
|
+
pathname = pathname.split('/');
|
|
3729
|
+
pathname.splice(pathname.length - 1);
|
|
3730
|
+
pathname = pathname.join('/');
|
|
3731
|
+
}
|
|
3732
|
+
src = pathname + loginPage.replace('./', '');
|
|
3733
|
+
} else {
|
|
3734
|
+
src = loginPage;
|
|
3735
|
+
}
|
|
3736
|
+
util["a" /* default */].win.top.location.href = src;
|
|
3737
|
+
} else if (util["a" /* default */].win.top.location.href.indexOf('main.html') > -1) {
|
|
3709
3738
|
util["a" /* default */].win.top.location.href = './login.html';
|
|
3710
3739
|
} else {
|
|
3711
3740
|
var hash = util["a" /* default */].win.top.location.hash;
|
|
@@ -3713,12 +3742,7 @@ var util = __webpack_require__(0);
|
|
|
3713
3742
|
var len = util["a" /* default */].win.top.location.href.indexOf(hash);
|
|
3714
3743
|
util["a" /* default */].win.top.location.href = util["a" /* default */].win.location.href.slice(0, len) + '#/login';
|
|
3715
3744
|
} else {
|
|
3716
|
-
|
|
3717
|
-
if (loginPage) {
|
|
3718
|
-
util["a" /* default */].win.top.location.href = loginPage;
|
|
3719
|
-
} else {
|
|
3720
|
-
util["a" /* default */].win.top.location.href = '/login.html';
|
|
3721
|
-
}
|
|
3745
|
+
util["a" /* default */].win.top.location.href = '/login.html';
|
|
3722
3746
|
}
|
|
3723
3747
|
}
|
|
3724
3748
|
}).catch(function (e) {});
|
|
@@ -3778,8 +3802,8 @@ var componentNormalizer = __webpack_require__(3);
|
|
|
3778
3802
|
|
|
3779
3803
|
var component = Object(componentNormalizer["a" /* default */])(
|
|
3780
3804
|
src_userinfovue_type_script_lang_js_,
|
|
3781
|
-
|
|
3782
|
-
|
|
3805
|
+
userinfovue_type_template_id_2c2316da_render,
|
|
3806
|
+
userinfovue_type_template_id_2c2316da_staticRenderFns,
|
|
3783
3807
|
false,
|
|
3784
3808
|
null,
|
|
3785
3809
|
null,
|
|
@@ -6431,12 +6455,14 @@ var log = util["a" /* default */].getParams('console');
|
|
|
6431
6455
|
}
|
|
6432
6456
|
break;
|
|
6433
6457
|
case 'sys':
|
|
6434
|
-
|
|
6435
|
-
|
|
6436
|
-
|
|
6437
|
-
|
|
6438
|
-
|
|
6439
|
-
|
|
6458
|
+
if (Number(node.urlopenmode) !== 1) {
|
|
6459
|
+
this.navIds = [node.id];
|
|
6460
|
+
this.tabs = [];
|
|
6461
|
+
this.menu = node.children;
|
|
6462
|
+
this.title = node.text;
|
|
6463
|
+
this.active = this.getFirst(node.children[0]).id;
|
|
6464
|
+
this.isSide = true;
|
|
6465
|
+
}
|
|
6440
6466
|
break;
|
|
6441
6467
|
case 'sub':
|
|
6442
6468
|
this.navIds = [node.id];
|
|
@@ -6829,21 +6855,30 @@ var log = util["a" /* default */].getParams('console');
|
|
|
6829
6855
|
}
|
|
6830
6856
|
this.$confirm(msg, btn).then(function () {
|
|
6831
6857
|
util["a" /* default */].removeStorage(['Authorization', 'token', 'ssId', 'userId', 'userName', 'auth', 'deviceUnique', 'menus', 'useCaseCodes', 'mainConfig', 'jump']);
|
|
6832
|
-
|
|
6858
|
+
var loginPage = util["a" /* default */].getStorage('login') || util["a" /* default */].getStorage('loginPage');
|
|
6859
|
+
if (loginPage) {
|
|
6860
|
+
var src = void 0;
|
|
6861
|
+
if (!util["a" /* default */].startWith(loginPage, ['http', '/'])) {
|
|
6862
|
+
var pathname = util["a" /* default */].win.top.location.pathname;
|
|
6863
|
+
if (pathname !== '/') {
|
|
6864
|
+
pathname = pathname.split('/');
|
|
6865
|
+
pathname.splice(pathname.length - 1);
|
|
6866
|
+
pathname = pathname.join('/');
|
|
6867
|
+
}
|
|
6868
|
+
src = pathname + loginPage.replace('./', '');
|
|
6869
|
+
} else {
|
|
6870
|
+
src = loginPage;
|
|
6871
|
+
}
|
|
6872
|
+
util["a" /* default */].win.top.location.href = src;
|
|
6873
|
+
} else if (util["a" /* default */].win.top.location.href.indexOf('main.html') > -1) {
|
|
6833
6874
|
util["a" /* default */].win.top.location.href = './login.html';
|
|
6834
6875
|
} else {
|
|
6835
6876
|
var hash = util["a" /* default */].win.top.location.hash;
|
|
6836
6877
|
if (hash) {
|
|
6837
6878
|
var len = util["a" /* default */].win.top.location.href.indexOf(hash);
|
|
6838
|
-
|
|
6839
|
-
util["a" /* default */].win.top.location.href = href;
|
|
6879
|
+
util["a" /* default */].win.top.location.href = util["a" /* default */].win.location.href.slice(0, len) + '#/login';
|
|
6840
6880
|
} else {
|
|
6841
|
-
|
|
6842
|
-
if (loginPage) {
|
|
6843
|
-
util["a" /* default */].win.top.location.href = loginPage;
|
|
6844
|
-
} else {
|
|
6845
|
-
util["a" /* default */].win.top.location.href = '/login.html';
|
|
6846
|
-
}
|
|
6881
|
+
util["a" /* default */].win.top.location.href = '/login.html';
|
|
6847
6882
|
}
|
|
6848
6883
|
}
|
|
6849
6884
|
}).catch(function (e) {});
|