eoss-ui 0.4.58 → 0.4.59
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/button-group.js +18 -5
- package/lib/button.js +18 -5
- package/lib/checkbox-group.js +18 -5
- package/lib/clients.js +95 -4
- package/lib/data-table-form.js +18 -5
- package/lib/data-table.js +23 -11
- package/lib/date-picker.js +18 -5
- package/lib/dialog.js +18 -5
- package/lib/eoss-ui.common.js +1322 -1049
- package/lib/flow-group.js +927 -860
- package/lib/flow-list.js +18 -5
- package/lib/flow.js +31 -16
- package/lib/form.js +18 -5
- package/lib/handle-user.js +18 -5
- package/lib/handler.js +37 -15
- package/lib/index.js +1 -1
- package/lib/input-number.js +18 -5
- package/lib/input.js +30 -10
- package/lib/login.js +101 -33
- package/lib/main.js +62 -30
- package/lib/mainComp.js +18 -5
- package/lib/nav.js +18 -5
- package/lib/page.js +18 -5
- package/lib/player.js +18 -5
- package/lib/qr-code.js +18 -5
- package/lib/radio-group.js +18 -5
- package/lib/retrial-auth.js +18 -5
- package/lib/select-ganged.js +18 -5
- package/lib/select.js +18 -5
- package/lib/selector-panel.js +18 -5
- package/lib/selector.js +18 -5
- package/lib/sizer.js +18 -5
- package/lib/steps.js +18 -5
- package/lib/switch.js +18 -5
- package/lib/table-form.js +25 -11
- package/lib/tabs.js +18 -5
- package/lib/theme-chalk/clients.css +1 -1
- package/lib/theme-chalk/flow-group.css +1 -1
- package/lib/theme-chalk/index.css +1 -1
- package/lib/theme-chalk/login.css +1 -1
- package/lib/tips.js +18 -5
- package/lib/toolbar.js +0 -1
- package/lib/tree-group.js +18 -5
- package/lib/tree.js +18 -5
- package/lib/upload.js +89 -52
- package/lib/utils/util.js +18 -5
- package/lib/wujie.js +18 -5
- package/lib/wxlogin.js +18 -5
- package/package.json +2 -2
- package/packages/clients/src/main.vue +60 -2
- package/packages/data-table/src/main.vue +0 -1
- package/packages/flow/src/main.vue +1 -0
- package/packages/flow/src/startTaskRead.vue +2 -2
- package/packages/flow-group/src/main.vue +284 -265
- package/packages/form/src/table.vue +3 -2
- package/packages/handler/src/main.vue +20 -10
- package/packages/input/src/main.vue +7 -2
- package/packages/login/src/main.vue +77 -27
- package/packages/main/src/main.vue +20 -10
- package/packages/main/src/userinfo.vue +20 -9
- package/packages/theme-chalk/lib/clients.css +1 -1
- package/packages/theme-chalk/lib/flow-group.css +1 -1
- package/packages/theme-chalk/lib/index.css +1 -1
- package/packages/theme-chalk/lib/login.css +1 -1
- package/packages/theme-chalk/src/clients.scss +8 -0
- package/packages/theme-chalk/src/flow-group.scss +9 -3
- package/packages/theme-chalk/src/login.scss +3 -0
- package/packages/toolbar/src/main.vue +0 -1
- package/packages/upload/src/main.vue +43 -27
- package/src/index.js +1 -1
- package/src/utils/util.js +20 -10
package/lib/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) {
|
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) {
|
|
@@ -2943,7 +2956,8 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
|
|
|
2943
2956
|
readonly: Boolean,
|
|
2944
2957
|
plain: Boolean,
|
|
2945
2958
|
text: [String, Number],
|
|
2946
|
-
scope: {}
|
|
2959
|
+
scope: {},
|
|
2960
|
+
exclude: Boolean
|
|
2947
2961
|
},
|
|
2948
2962
|
data: function data() {
|
|
2949
2963
|
return {
|
|
@@ -3036,12 +3050,18 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
|
|
|
3036
3050
|
}
|
|
3037
3051
|
},
|
|
3038
3052
|
searchFilter: function searchFilter(query) {
|
|
3053
|
+
var _this3 = this;
|
|
3054
|
+
|
|
3039
3055
|
return function (state) {
|
|
3040
|
-
|
|
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
|
+
}
|
|
3041
3061
|
};
|
|
3042
3062
|
},
|
|
3043
3063
|
renderd: function renderd(doms, h, type) {
|
|
3044
|
-
var
|
|
3064
|
+
var _this4 = this;
|
|
3045
3065
|
|
|
3046
3066
|
if (typeof this.$attrs[type] === 'boolean') {
|
|
3047
3067
|
if (this.$attrs.render) {
|
|
@@ -3067,8 +3087,8 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
|
|
|
3067
3087
|
domProps: this.$attrs[type].icon ? { innerHTML: this.$attrs[type].icon } : {},
|
|
3068
3088
|
on: {
|
|
3069
3089
|
click: function click() {
|
|
3070
|
-
|
|
3071
|
-
|
|
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);
|
|
3072
3092
|
}
|
|
3073
3093
|
}
|
|
3074
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) {
|
|
@@ -2858,7 +2871,7 @@ function normalizeComponent(
|
|
|
2858
2871
|
// ESM COMPAT FLAG
|
|
2859
2872
|
__webpack_require__.r(__webpack_exports__);
|
|
2860
2873
|
|
|
2861
|
-
// 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&
|
|
2862
2875
|
var render = function () {
|
|
2863
2876
|
var _vm = this
|
|
2864
2877
|
var _h = _vm.$createElement
|
|
@@ -2988,16 +3001,19 @@ var render = function () {
|
|
|
2988
3001
|
},
|
|
2989
3002
|
[
|
|
2990
3003
|
_c(
|
|
2991
|
-
"
|
|
3004
|
+
"es-input",
|
|
2992
3005
|
{
|
|
2993
3006
|
attrs: {
|
|
2994
3007
|
size: "large",
|
|
2995
3008
|
type: "text",
|
|
2996
3009
|
name: "username",
|
|
3010
|
+
exclude: "",
|
|
2997
3011
|
placeholder: _vm.username.placeholder,
|
|
3012
|
+
focusShow: _vm.focusShow,
|
|
3013
|
+
data: _vm.users,
|
|
2998
3014
|
autocomplete: "off",
|
|
2999
3015
|
},
|
|
3000
|
-
on: {
|
|
3016
|
+
on: { select: _vm.handleBlur },
|
|
3001
3017
|
model: {
|
|
3002
3018
|
value: _vm.formData.username,
|
|
3003
3019
|
callback: function ($$v) {
|
|
@@ -3207,9 +3223,11 @@ var render = function () {
|
|
|
3207
3223
|
name: "show",
|
|
3208
3224
|
rawName: "v-show",
|
|
3209
3225
|
value:
|
|
3210
|
-
_vm.remember &&
|
|
3226
|
+
_vm.remember &&
|
|
3227
|
+
(_vm.active == "0" ||
|
|
3228
|
+
_vm.active == "12"),
|
|
3211
3229
|
expression:
|
|
3212
|
-
"remember && active == '0'",
|
|
3230
|
+
"remember && (active == '0' || active == '12')",
|
|
3213
3231
|
},
|
|
3214
3232
|
],
|
|
3215
3233
|
model: {
|
|
@@ -3297,6 +3315,10 @@ var render = function () {
|
|
|
3297
3315
|
{
|
|
3298
3316
|
staticClass:
|
|
3299
3317
|
"es-login-app-name es-pointer",
|
|
3318
|
+
attrs: {
|
|
3319
|
+
target: "_blank",
|
|
3320
|
+
href: _vm.downloadApp,
|
|
3321
|
+
},
|
|
3300
3322
|
},
|
|
3301
3323
|
[
|
|
3302
3324
|
_vm._v(
|
|
@@ -3415,7 +3437,6 @@ var render = function () {
|
|
|
3415
3437
|
: _vm.email.placeholder,
|
|
3416
3438
|
autocomplete: "off",
|
|
3417
3439
|
},
|
|
3418
|
-
on: { blur: _vm.handleBlur },
|
|
3419
3440
|
model: {
|
|
3420
3441
|
value: _vm.formData.target,
|
|
3421
3442
|
callback: function ($$v) {
|
|
@@ -3708,7 +3729,7 @@ var staticRenderFns = []
|
|
|
3708
3729
|
render._withStripped = true
|
|
3709
3730
|
|
|
3710
3731
|
|
|
3711
|
-
// CONCATENATED MODULE: ./packages/login/src/main.vue?vue&type=template&id=
|
|
3732
|
+
// CONCATENATED MODULE: ./packages/login/src/main.vue?vue&type=template&id=6f4e7cde&
|
|
3712
3733
|
|
|
3713
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&
|
|
3714
3735
|
var resetPasswordvue_type_template_id_4f5da52e_render = function () {
|
|
@@ -4443,6 +4464,12 @@ var mainvue_type_script_lang_js_extends = Object.assign || function (target) { f
|
|
|
4443
4464
|
//
|
|
4444
4465
|
//
|
|
4445
4466
|
//
|
|
4467
|
+
//
|
|
4468
|
+
//
|
|
4469
|
+
//
|
|
4470
|
+
//
|
|
4471
|
+
//
|
|
4472
|
+
//
|
|
4446
4473
|
|
|
4447
4474
|
|
|
4448
4475
|
|
|
@@ -4490,7 +4517,7 @@ var mainvue_type_script_lang_js_extends = Object.assign || function (target) { f
|
|
|
4490
4517
|
default: function _default() {
|
|
4491
4518
|
return {
|
|
4492
4519
|
placeholder: '请输入账号',
|
|
4493
|
-
rules: [{ required: true, message: '账号不能为空', trigger: '
|
|
4520
|
+
rules: [{ required: true, message: '账号不能为空', trigger: 'change' }]
|
|
4494
4521
|
};
|
|
4495
4522
|
}
|
|
4496
4523
|
},
|
|
@@ -4612,6 +4639,12 @@ var mainvue_type_script_lang_js_extends = Object.assign || function (target) { f
|
|
|
4612
4639
|
default: true
|
|
4613
4640
|
},
|
|
4614
4641
|
downloadApp: String,
|
|
4642
|
+
downLoadUrls: {
|
|
4643
|
+
type: Object,
|
|
4644
|
+
default: function _default() {
|
|
4645
|
+
return {};
|
|
4646
|
+
}
|
|
4647
|
+
},
|
|
4615
4648
|
onDownLoadApp: [Function, Boolean],
|
|
4616
4649
|
redirect_uri: String,
|
|
4617
4650
|
position: {
|
|
@@ -4757,7 +4790,7 @@ var mainvue_type_script_lang_js_extends = Object.assign || function (target) { f
|
|
|
4757
4790
|
checked: function checked(val) {
|
|
4758
4791
|
if (!val) {
|
|
4759
4792
|
localStorage.removeItem('unpd');
|
|
4760
|
-
localStorage.removeItem('remember');
|
|
4793
|
+
//localStorage.removeItem('remember');
|
|
4761
4794
|
}
|
|
4762
4795
|
},
|
|
4763
4796
|
|
|
@@ -4785,6 +4818,8 @@ var mainvue_type_script_lang_js_extends = Object.assign || function (target) { f
|
|
|
4785
4818
|
submit: false,
|
|
4786
4819
|
checked: false,
|
|
4787
4820
|
formData: this.model,
|
|
4821
|
+
focusShow: false,
|
|
4822
|
+
users: [],
|
|
4788
4823
|
imageCode: '',
|
|
4789
4824
|
secret: null,
|
|
4790
4825
|
identifyingId: '',
|
|
@@ -4876,27 +4911,38 @@ var mainvue_type_script_lang_js_extends = Object.assign || function (target) { f
|
|
|
4876
4911
|
return url;
|
|
4877
4912
|
},
|
|
4878
4913
|
getRemember: function getRemember(user) {
|
|
4879
|
-
if (!user) {
|
|
4880
|
-
user = localStorage.getItem('remember');
|
|
4881
|
-
if (user) {
|
|
4882
|
-
user = util["a" /* default */].esDecode(user);
|
|
4883
|
-
} else {
|
|
4884
|
-
return false;
|
|
4885
|
-
}
|
|
4886
|
-
}
|
|
4887
4914
|
var values = localStorage.getItem('unpd');
|
|
4888
4915
|
var value = {};
|
|
4889
4916
|
if (values) {
|
|
4890
4917
|
try {
|
|
4891
4918
|
values = JSON.parse(values);
|
|
4919
|
+
var users = [];
|
|
4892
4920
|
for (var i in values) {
|
|
4893
|
-
|
|
4921
|
+
var k = util["a" /* default */].esDecode(i);
|
|
4922
|
+
value[k] = util["a" /* default */].esDecode(values[i]);
|
|
4923
|
+
users.push({ value: k });
|
|
4894
4924
|
}
|
|
4895
|
-
|
|
4925
|
+
this.users = users;
|
|
4926
|
+
var keys = Object.keys(value);
|
|
4927
|
+
if (keys.length) {
|
|
4896
4928
|
this.checked = true;
|
|
4897
4929
|
}
|
|
4898
|
-
|
|
4899
|
-
|
|
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
|
+
}
|
|
4900
4946
|
} catch (error) {
|
|
4901
4947
|
localStorage.removeItem('unpd');
|
|
4902
4948
|
}
|
|
@@ -4917,7 +4963,7 @@ var mainvue_type_script_lang_js_extends = Object.assign || function (target) { f
|
|
|
4917
4963
|
}
|
|
4918
4964
|
}
|
|
4919
4965
|
if (this.checked) {
|
|
4920
|
-
localStorage.setItem('remember', util
|
|
4966
|
+
//localStorage.setItem('remember', util.esEncode(this.formData.username));
|
|
4921
4967
|
value[this.formData.username] = this.formData.password;
|
|
4922
4968
|
var data = {};
|
|
4923
4969
|
for (var _i in value) {
|
|
@@ -4935,7 +4981,7 @@ var mainvue_type_script_lang_js_extends = Object.assign || function (target) { f
|
|
|
4935
4981
|
} else {
|
|
4936
4982
|
localStorage.removeItem('unpd');
|
|
4937
4983
|
}
|
|
4938
|
-
localStorage.removeItem('remember');
|
|
4984
|
+
//localStorage.removeItem('remember');
|
|
4939
4985
|
}
|
|
4940
4986
|
},
|
|
4941
4987
|
|
|
@@ -4956,7 +5002,7 @@ var mainvue_type_script_lang_js_extends = Object.assign || function (target) { f
|
|
|
4956
5002
|
this.$refs.login && this.$refs.login.clearValidate();
|
|
4957
5003
|
if (res != 1) {
|
|
4958
5004
|
this.active = res;
|
|
4959
|
-
this.formData = JSON.parse(JSON.stringify(this.defaultModel));
|
|
5005
|
+
Object.keys(this.defaultModel).length && (this.formData = JSON.parse(JSON.stringify(this.defaultModel)));
|
|
4960
5006
|
}
|
|
4961
5007
|
this.countdown = 0;
|
|
4962
5008
|
this.$emit('change-type', res, this.identifyingId);
|
|
@@ -4998,10 +5044,22 @@ var mainvue_type_script_lang_js_extends = Object.assign || function (target) { f
|
|
|
4998
5044
|
var host = util["a" /* default */].getStorage('host');
|
|
4999
5045
|
this.identifyingId = res.identifyingId;
|
|
5000
5046
|
this.getImgCode();
|
|
5001
|
-
|
|
5002
|
-
|
|
5003
|
-
|
|
5004
|
-
}
|
|
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
|
+
}
|
|
5005
5063
|
this.secret = res.secret;
|
|
5006
5064
|
this.setup = res.setup;
|
|
5007
5065
|
this.sysName = res.subsystemName;
|
|
@@ -5036,10 +5094,20 @@ var mainvue_type_script_lang_js_extends = Object.assign || function (target) { f
|
|
|
5036
5094
|
util["a" /* default */].updateTheme(res.subsystemExtend.themeColor);
|
|
5037
5095
|
localStorage.setItem('theme', res.subsystemExtend.themeColor);
|
|
5038
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
|
+
}
|
|
5039
5106
|
}
|
|
5040
5107
|
this.passModifyModel = res.passModifyModel;
|
|
5041
5108
|
this.wechatAppid = res.wechatAppid;
|
|
5042
5109
|
this.wechatScope = res.wechatScope;
|
|
5110
|
+
this.download = mainvue_type_script_lang_js_extends({}, this.downLoadUrls, downloads);
|
|
5043
5111
|
if (res.sysLogoIco) {
|
|
5044
5112
|
util["a" /* default */].setFavicon(res.sysLogoIco);
|
|
5045
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) {
|
|
@@ -2919,7 +2932,7 @@ module.exports = require("stompjs");
|
|
|
2919
2932
|
// ESM COMPAT FLAG
|
|
2920
2933
|
__webpack_require__.r(__webpack_exports__);
|
|
2921
2934
|
|
|
2922
|
-
// 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&
|
|
2923
2936
|
var render = function () {
|
|
2924
2937
|
var _vm = this
|
|
2925
2938
|
var _h = _vm.$createElement
|
|
@@ -3347,10 +3360,10 @@ var staticRenderFns = []
|
|
|
3347
3360
|
render._withStripped = true
|
|
3348
3361
|
|
|
3349
3362
|
|
|
3350
|
-
// CONCATENATED MODULE: ./packages/main/src/main.vue?vue&type=template&id=
|
|
3363
|
+
// CONCATENATED MODULE: ./packages/main/src/main.vue?vue&type=template&id=134babd4&
|
|
3351
3364
|
|
|
3352
|
-
// 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=
|
|
3353
|
-
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 () {
|
|
3354
3367
|
var _vm = this
|
|
3355
3368
|
var _h = _vm.$createElement
|
|
3356
3369
|
var _c = _vm._self._c || _h
|
|
@@ -3366,11 +3379,11 @@ var userinfovue_type_template_id_327101d6_render = function () {
|
|
|
3366
3379
|
2
|
|
3367
3380
|
)
|
|
3368
3381
|
}
|
|
3369
|
-
var
|
|
3370
|
-
|
|
3382
|
+
var userinfovue_type_template_id_2c2316da_staticRenderFns = []
|
|
3383
|
+
userinfovue_type_template_id_2c2316da_render._withStripped = true
|
|
3371
3384
|
|
|
3372
3385
|
|
|
3373
|
-
// CONCATENATED MODULE: ./packages/main/src/userinfo.vue?vue&type=template&id=
|
|
3386
|
+
// CONCATENATED MODULE: ./packages/main/src/userinfo.vue?vue&type=template&id=2c2316da&
|
|
3374
3387
|
|
|
3375
3388
|
// EXTERNAL MODULE: ./src/config/api.js
|
|
3376
3389
|
var api = __webpack_require__(1);
|
|
@@ -3706,7 +3719,22 @@ var util = __webpack_require__(0);
|
|
|
3706
3719
|
closeOnClickModal: false,
|
|
3707
3720
|
type: 'warning'
|
|
3708
3721
|
}).then(function () {
|
|
3709
|
-
|
|
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) {
|
|
3710
3738
|
util["a" /* default */].win.top.location.href = './login.html';
|
|
3711
3739
|
} else {
|
|
3712
3740
|
var hash = util["a" /* default */].win.top.location.hash;
|
|
@@ -3714,12 +3742,7 @@ var util = __webpack_require__(0);
|
|
|
3714
3742
|
var len = util["a" /* default */].win.top.location.href.indexOf(hash);
|
|
3715
3743
|
util["a" /* default */].win.top.location.href = util["a" /* default */].win.location.href.slice(0, len) + '#/login';
|
|
3716
3744
|
} else {
|
|
3717
|
-
|
|
3718
|
-
if (loginPage) {
|
|
3719
|
-
util["a" /* default */].win.top.location.href = loginPage;
|
|
3720
|
-
} else {
|
|
3721
|
-
util["a" /* default */].win.top.location.href = '/login.html';
|
|
3722
|
-
}
|
|
3745
|
+
util["a" /* default */].win.top.location.href = '/login.html';
|
|
3723
3746
|
}
|
|
3724
3747
|
}
|
|
3725
3748
|
}).catch(function (e) {});
|
|
@@ -3779,8 +3802,8 @@ var componentNormalizer = __webpack_require__(3);
|
|
|
3779
3802
|
|
|
3780
3803
|
var component = Object(componentNormalizer["a" /* default */])(
|
|
3781
3804
|
src_userinfovue_type_script_lang_js_,
|
|
3782
|
-
|
|
3783
|
-
|
|
3805
|
+
userinfovue_type_template_id_2c2316da_render,
|
|
3806
|
+
userinfovue_type_template_id_2c2316da_staticRenderFns,
|
|
3784
3807
|
false,
|
|
3785
3808
|
null,
|
|
3786
3809
|
null,
|
|
@@ -6832,21 +6855,30 @@ var log = util["a" /* default */].getParams('console');
|
|
|
6832
6855
|
}
|
|
6833
6856
|
this.$confirm(msg, btn).then(function () {
|
|
6834
6857
|
util["a" /* default */].removeStorage(['Authorization', 'token', 'ssId', 'userId', 'userName', 'auth', 'deviceUnique', 'menus', 'useCaseCodes', 'mainConfig', 'jump']);
|
|
6835
|
-
|
|
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) {
|
|
6836
6874
|
util["a" /* default */].win.top.location.href = './login.html';
|
|
6837
6875
|
} else {
|
|
6838
6876
|
var hash = util["a" /* default */].win.top.location.hash;
|
|
6839
6877
|
if (hash) {
|
|
6840
6878
|
var len = util["a" /* default */].win.top.location.href.indexOf(hash);
|
|
6841
|
-
|
|
6842
|
-
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';
|
|
6843
6880
|
} else {
|
|
6844
|
-
|
|
6845
|
-
if (loginPage) {
|
|
6846
|
-
util["a" /* default */].win.top.location.href = loginPage;
|
|
6847
|
-
} else {
|
|
6848
|
-
util["a" /* default */].win.top.location.href = '/login.html';
|
|
6849
|
-
}
|
|
6881
|
+
util["a" /* default */].win.top.location.href = '/login.html';
|
|
6850
6882
|
}
|
|
6851
6883
|
}
|
|
6852
6884
|
}).catch(function (e) {});
|
package/lib/mainComp.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) {
|
package/lib/nav.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) {
|