eoss-ui 0.5.29 → 0.5.31
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 +20 -3
- package/lib/button.js +20 -3
- package/lib/cascader.js +18 -15
- package/lib/checkbox-group.js +39 -11
- package/lib/data-table-form.js +20 -3
- package/lib/data-table.js +34 -16
- package/lib/date-picker.js +20 -3
- package/lib/dialog.js +20 -3
- package/lib/eoss-ui.common.js +1810 -1809
- package/lib/flow-group.js +22 -5
- package/lib/flow-list.js +20 -3
- package/lib/flow.js +20 -3
- package/lib/form.js +50 -14
- package/lib/handle-user.js +20 -3
- package/lib/handler.js +20 -3
- package/lib/index.js +1 -1
- package/lib/input-number.js +20 -3
- package/lib/input.js +36 -10
- package/lib/login.js +45 -126
- package/lib/main.js +29 -12
- package/lib/nav.js +20 -3
- package/lib/page.js +20 -3
- package/lib/player.js +20 -3
- package/lib/qr-code.js +20 -3
- package/lib/radio-group.js +23 -6
- package/lib/retrial-auth.js +20 -3
- package/lib/select-ganged.js +20 -3
- package/lib/select.js +20 -3
- package/lib/selector-panel.js +20 -3
- package/lib/selector.js +23 -6
- package/lib/sizer.js +20 -3
- package/lib/steps.js +20 -3
- package/lib/switch.js +20 -3
- package/lib/table-form.js +20 -3
- package/lib/tabs.js +1626 -1570
- package/lib/tips.js +20 -3
- package/lib/tree-group.js +20 -3
- package/lib/tree.js +20 -3
- package/lib/upload.js +20 -3
- package/lib/utils/util.js +20 -3
- package/lib/wujie.js +20 -3
- package/lib/wxlogin.js +20 -3
- package/package.json +2 -2
- package/packages/cascader/src/main.vue +24 -19
- package/packages/checkbox-group/src/main.vue +14 -9
- package/packages/data-table/src/column.vue +9 -7
- package/packages/flow-group/src/main.vue +1 -1
- package/packages/form/src/main.vue +8 -1
- package/packages/input/src/main.vue +20 -16
- package/packages/login/src/main.vue +8 -3
- package/packages/login/src/resetPassword.vue +11 -114
- package/packages/main/src/userinfo.vue +5 -2
- package/packages/radio-group/src/main.vue +1 -1
- package/packages/selector/src/main.vue +1 -1
- package/packages/tabs/src/main.vue +563 -542
- package/src/index.js +1 -1
- package/src/utils/util.js +23 -3
package/lib/input-number.js
CHANGED
|
@@ -240,16 +240,21 @@ var ajax = function ajax(_ref) {
|
|
|
240
240
|
delPendingRequest(response.config);
|
|
241
241
|
loading && loading.close();
|
|
242
242
|
if (response.headers.authorization && response.headers.authorization !== getStorage('token')) {
|
|
243
|
-
if (localStorage.getItem('storage') === 'localStorage' || localStorage.getItem('
|
|
244
|
-
localStorage.setItem('ssId', response.headers.ssid);
|
|
243
|
+
if (localStorage.getItem('storage') === 'localStorage' || localStorage.getItem('token') || localStorage.getItem('Authorization')) {
|
|
245
244
|
localStorage.setItem('token', response.headers.authorization);
|
|
246
245
|
localStorage.setItem('Authorization', response.headers.authorization);
|
|
247
246
|
} else {
|
|
248
|
-
sessionStorage.setItem('ssId', response.headers.ssid);
|
|
249
247
|
sessionStorage.setItem('token', response.headers.authorization);
|
|
250
248
|
sessionStorage.setItem('Authorization', response.headers.authorization);
|
|
251
249
|
}
|
|
252
250
|
}
|
|
251
|
+
if ((response.headers.ssId || response.headers.Ssid || response.headers.ssid) && (response.headers.ssId || response.headers.SsId || response.headers.ssid) !== getStorage('ssId')) {
|
|
252
|
+
if (localStorage.getItem('storage') === 'localStorage' || localStorage.getItem('ssId')) {
|
|
253
|
+
localStorage.setItem('ssId', response.headers.ssId || response.headers.SsId || response.headers.ssid);
|
|
254
|
+
} else {
|
|
255
|
+
sessionStorage.setItem('ssId', response.headers.ssId || response.headers.SsId || response.headers.ssid);
|
|
256
|
+
}
|
|
257
|
+
}
|
|
253
258
|
if (response.status === 200) {
|
|
254
259
|
if (response.data.rCode === 64 || response.data.rCode === 65 || response.data.rCode === 67 || response.data.rCode === 69) {
|
|
255
260
|
removeStorage(['Authorization', 'token', 'ssId', 'userId', 'userName', 'deviceUnique', 'menus', 'menus', 'useCaseCodes', 'mainConfig', 'jump']);
|
|
@@ -1910,6 +1915,17 @@ var indexOfObj = function indexOfObj(arry, target, key) {
|
|
|
1910
1915
|
return -1;
|
|
1911
1916
|
};
|
|
1912
1917
|
|
|
1918
|
+
/**
|
|
1919
|
+
* isExist
|
|
1920
|
+
* @desc:判断是否存在
|
|
1921
|
+
* @author huangbo
|
|
1922
|
+
* @date 2022年5月7日
|
|
1923
|
+
* @param {Object} [obj] -
|
|
1924
|
+
**/
|
|
1925
|
+
var isExist = function isExist(obj) {
|
|
1926
|
+
return obj !== undefined && obj !== null && obj === '';
|
|
1927
|
+
};
|
|
1928
|
+
|
|
1913
1929
|
/**
|
|
1914
1930
|
* isFunction
|
|
1915
1931
|
* @desc:判断是否是函数
|
|
@@ -2934,6 +2950,7 @@ var watermark = function watermark(option) {
|
|
|
2934
2950
|
hsvTorgb: hsvTorgb,
|
|
2935
2951
|
identical: identical,
|
|
2936
2952
|
indexOfObj: indexOfObj,
|
|
2953
|
+
isExist: isExist,
|
|
2937
2954
|
isFunction: isFunction,
|
|
2938
2955
|
isLogged: isLogged,
|
|
2939
2956
|
isLogined: isLogined,
|
package/lib/input.js
CHANGED
|
@@ -240,16 +240,21 @@ var ajax = function ajax(_ref) {
|
|
|
240
240
|
delPendingRequest(response.config);
|
|
241
241
|
loading && loading.close();
|
|
242
242
|
if (response.headers.authorization && response.headers.authorization !== getStorage('token')) {
|
|
243
|
-
if (localStorage.getItem('storage') === 'localStorage' || localStorage.getItem('
|
|
244
|
-
localStorage.setItem('ssId', response.headers.ssid);
|
|
243
|
+
if (localStorage.getItem('storage') === 'localStorage' || localStorage.getItem('token') || localStorage.getItem('Authorization')) {
|
|
245
244
|
localStorage.setItem('token', response.headers.authorization);
|
|
246
245
|
localStorage.setItem('Authorization', response.headers.authorization);
|
|
247
246
|
} else {
|
|
248
|
-
sessionStorage.setItem('ssId', response.headers.ssid);
|
|
249
247
|
sessionStorage.setItem('token', response.headers.authorization);
|
|
250
248
|
sessionStorage.setItem('Authorization', response.headers.authorization);
|
|
251
249
|
}
|
|
252
250
|
}
|
|
251
|
+
if ((response.headers.ssId || response.headers.Ssid || response.headers.ssid) && (response.headers.ssId || response.headers.SsId || response.headers.ssid) !== getStorage('ssId')) {
|
|
252
|
+
if (localStorage.getItem('storage') === 'localStorage' || localStorage.getItem('ssId')) {
|
|
253
|
+
localStorage.setItem('ssId', response.headers.ssId || response.headers.SsId || response.headers.ssid);
|
|
254
|
+
} else {
|
|
255
|
+
sessionStorage.setItem('ssId', response.headers.ssId || response.headers.SsId || response.headers.ssid);
|
|
256
|
+
}
|
|
257
|
+
}
|
|
253
258
|
if (response.status === 200) {
|
|
254
259
|
if (response.data.rCode === 64 || response.data.rCode === 65 || response.data.rCode === 67 || response.data.rCode === 69) {
|
|
255
260
|
removeStorage(['Authorization', 'token', 'ssId', 'userId', 'userName', 'deviceUnique', 'menus', 'menus', 'useCaseCodes', 'mainConfig', 'jump']);
|
|
@@ -1910,6 +1915,17 @@ var indexOfObj = function indexOfObj(arry, target, key) {
|
|
|
1910
1915
|
return -1;
|
|
1911
1916
|
};
|
|
1912
1917
|
|
|
1918
|
+
/**
|
|
1919
|
+
* isExist
|
|
1920
|
+
* @desc:判断是否存在
|
|
1921
|
+
* @author huangbo
|
|
1922
|
+
* @date 2022年5月7日
|
|
1923
|
+
* @param {Object} [obj] -
|
|
1924
|
+
**/
|
|
1925
|
+
var isExist = function isExist(obj) {
|
|
1926
|
+
return obj !== undefined && obj !== null && obj === '';
|
|
1927
|
+
};
|
|
1928
|
+
|
|
1913
1929
|
/**
|
|
1914
1930
|
* isFunction
|
|
1915
1931
|
* @desc:判断是否是函数
|
|
@@ -2934,6 +2950,7 @@ var watermark = function watermark(option) {
|
|
|
2934
2950
|
hsvTorgb: hsvTorgb,
|
|
2935
2951
|
identical: identical,
|
|
2936
2952
|
indexOfObj: indexOfObj,
|
|
2953
|
+
isExist: isExist,
|
|
2937
2954
|
isFunction: isFunction,
|
|
2938
2955
|
isLogged: isLogged,
|
|
2939
2956
|
isLogined: isLogined,
|
|
@@ -3836,14 +3853,23 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
|
|
|
3836
3853
|
var cls = [];
|
|
3837
3854
|
var doms = [];
|
|
3838
3855
|
if (this.readonly) {
|
|
3839
|
-
var content = this.text;
|
|
3840
|
-
if (this.
|
|
3841
|
-
|
|
3842
|
-
|
|
3856
|
+
var content = this.model ? this.model : this.text;
|
|
3857
|
+
if (this.$attrs.type === 'textarea') {
|
|
3858
|
+
if (this.model) {
|
|
3859
|
+
content = this.model.replace(RegExp('\\n', 'g'), '<br/>');
|
|
3860
|
+
content = content.replace(RegExp(' ', 'g'), ' ');
|
|
3861
|
+
}
|
|
3862
|
+
return h('div', {
|
|
3863
|
+
class: ['es-textarea__inner ', { 'es-plain': this.plain }],
|
|
3864
|
+
domProps: {
|
|
3865
|
+
innerHTML: content
|
|
3866
|
+
}
|
|
3867
|
+
});
|
|
3868
|
+
} else {
|
|
3869
|
+
return h('div', {
|
|
3870
|
+
class: ['es-input__inner', { 'es-plain': this.plain }]
|
|
3871
|
+
}, [content]);
|
|
3843
3872
|
}
|
|
3844
|
-
return h('div', {
|
|
3845
|
-
class: [this.$attrs.type === 'textarea' ? 'es-textarea__inner ' : 'es-input__inner', { 'es-plain': this.plain }]
|
|
3846
|
-
}, [content]);
|
|
3847
3873
|
}
|
|
3848
3874
|
if (this.$slots.prefix) {
|
|
3849
3875
|
doms.push(h('template', { slot: 'prefix' }, this.$slots.prefix));
|
package/lib/login.js
CHANGED
|
@@ -239,16 +239,21 @@ var ajax = function ajax(_ref) {
|
|
|
239
239
|
delPendingRequest(response.config);
|
|
240
240
|
loading && loading.close();
|
|
241
241
|
if (response.headers.authorization && response.headers.authorization !== getStorage('token')) {
|
|
242
|
-
if (localStorage.getItem('storage') === 'localStorage' || localStorage.getItem('
|
|
243
|
-
localStorage.setItem('ssId', response.headers.ssid);
|
|
242
|
+
if (localStorage.getItem('storage') === 'localStorage' || localStorage.getItem('token') || localStorage.getItem('Authorization')) {
|
|
244
243
|
localStorage.setItem('token', response.headers.authorization);
|
|
245
244
|
localStorage.setItem('Authorization', response.headers.authorization);
|
|
246
245
|
} else {
|
|
247
|
-
sessionStorage.setItem('ssId', response.headers.ssid);
|
|
248
246
|
sessionStorage.setItem('token', response.headers.authorization);
|
|
249
247
|
sessionStorage.setItem('Authorization', response.headers.authorization);
|
|
250
248
|
}
|
|
251
249
|
}
|
|
250
|
+
if ((response.headers.ssId || response.headers.Ssid || response.headers.ssid) && (response.headers.ssId || response.headers.SsId || response.headers.ssid) !== getStorage('ssId')) {
|
|
251
|
+
if (localStorage.getItem('storage') === 'localStorage' || localStorage.getItem('ssId')) {
|
|
252
|
+
localStorage.setItem('ssId', response.headers.ssId || response.headers.SsId || response.headers.ssid);
|
|
253
|
+
} else {
|
|
254
|
+
sessionStorage.setItem('ssId', response.headers.ssId || response.headers.SsId || response.headers.ssid);
|
|
255
|
+
}
|
|
256
|
+
}
|
|
252
257
|
if (response.status === 200) {
|
|
253
258
|
if (response.data.rCode === 64 || response.data.rCode === 65 || response.data.rCode === 67 || response.data.rCode === 69) {
|
|
254
259
|
removeStorage(['Authorization', 'token', 'ssId', 'userId', 'userName', 'deviceUnique', 'menus', 'menus', 'useCaseCodes', 'mainConfig', 'jump']);
|
|
@@ -1909,6 +1914,17 @@ var indexOfObj = function indexOfObj(arry, target, key) {
|
|
|
1909
1914
|
return -1;
|
|
1910
1915
|
};
|
|
1911
1916
|
|
|
1917
|
+
/**
|
|
1918
|
+
* isExist
|
|
1919
|
+
* @desc:判断是否存在
|
|
1920
|
+
* @author huangbo
|
|
1921
|
+
* @date 2022年5月7日
|
|
1922
|
+
* @param {Object} [obj] -
|
|
1923
|
+
**/
|
|
1924
|
+
var isExist = function isExist(obj) {
|
|
1925
|
+
return obj !== undefined && obj !== null && obj === '';
|
|
1926
|
+
};
|
|
1927
|
+
|
|
1912
1928
|
/**
|
|
1913
1929
|
* isFunction
|
|
1914
1930
|
* @desc:判断是否是函数
|
|
@@ -2933,6 +2949,7 @@ var watermark = function watermark(option) {
|
|
|
2933
2949
|
hsvTorgb: hsvTorgb,
|
|
2934
2950
|
identical: identical,
|
|
2935
2951
|
indexOfObj: indexOfObj,
|
|
2952
|
+
isExist: isExist,
|
|
2936
2953
|
isFunction: isFunction,
|
|
2937
2954
|
isLogged: isLogged,
|
|
2938
2955
|
isLogined: isLogined,
|
|
@@ -3670,7 +3687,7 @@ var bankCard = { pattern: new RegExp('^([1-9]{1})(\\d{14}|\\d{18})$'), message:
|
|
|
3670
3687
|
// ESM COMPAT FLAG
|
|
3671
3688
|
__webpack_require__.r(__webpack_exports__);
|
|
3672
3689
|
|
|
3673
|
-
// 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=
|
|
3690
|
+
// 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=49b75306&
|
|
3674
3691
|
var render = function () {
|
|
3675
3692
|
var _vm = this
|
|
3676
3693
|
var _h = _vm.$createElement
|
|
@@ -4530,10 +4547,10 @@ var staticRenderFns = []
|
|
|
4530
4547
|
render._withStripped = true
|
|
4531
4548
|
|
|
4532
4549
|
|
|
4533
|
-
// CONCATENATED MODULE: ./packages/login/src/main.vue?vue&type=template&id=
|
|
4550
|
+
// CONCATENATED MODULE: ./packages/login/src/main.vue?vue&type=template&id=49b75306&
|
|
4534
4551
|
|
|
4535
|
-
// 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=
|
|
4536
|
-
var
|
|
4552
|
+
// 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=7e3a7461&
|
|
4553
|
+
var resetPasswordvue_type_template_id_7e3a7461_render = function () {
|
|
4537
4554
|
var _vm = this
|
|
4538
4555
|
var _h = _vm.$createElement
|
|
4539
4556
|
var _c = _vm._self._c || _h
|
|
@@ -4593,11 +4610,11 @@ var resetPasswordvue_type_template_id_7815e915_render = function () {
|
|
|
4593
4610
|
1
|
|
4594
4611
|
)
|
|
4595
4612
|
}
|
|
4596
|
-
var
|
|
4597
|
-
|
|
4613
|
+
var resetPasswordvue_type_template_id_7e3a7461_staticRenderFns = []
|
|
4614
|
+
resetPasswordvue_type_template_id_7e3a7461_render._withStripped = true
|
|
4598
4615
|
|
|
4599
4616
|
|
|
4600
|
-
// CONCATENATED MODULE: ./packages/login/src/resetPassword.vue?vue&type=template&id=
|
|
4617
|
+
// CONCATENATED MODULE: ./packages/login/src/resetPassword.vue?vue&type=template&id=7e3a7461&
|
|
4601
4618
|
|
|
4602
4619
|
// EXTERNAL MODULE: ./src/config/api.js
|
|
4603
4620
|
var api = __webpack_require__(1);
|
|
@@ -4648,6 +4665,8 @@ function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in ob
|
|
|
4648
4665
|
//
|
|
4649
4666
|
//
|
|
4650
4667
|
//
|
|
4668
|
+
//
|
|
4669
|
+
//
|
|
4651
4670
|
|
|
4652
4671
|
|
|
4653
4672
|
|
|
@@ -4860,119 +4879,6 @@ function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in ob
|
|
|
4860
4879
|
}]
|
|
4861
4880
|
}];
|
|
4862
4881
|
}
|
|
4863
|
-
// return [
|
|
4864
|
-
// this.activeIndex == '6'
|
|
4865
|
-
// ? {
|
|
4866
|
-
// type: 'text',
|
|
4867
|
-
// name: 'target',
|
|
4868
|
-
// label: '手机号',
|
|
4869
|
-
// placeholder: '请输入手机号',
|
|
4870
|
-
// rules: [
|
|
4871
|
-
// {
|
|
4872
|
-
// required: true,
|
|
4873
|
-
// message: '请输入手机号',
|
|
4874
|
-
// trigger: 'blur'
|
|
4875
|
-
// },
|
|
4876
|
-
// {
|
|
4877
|
-
// ...rules.phone,
|
|
4878
|
-
// trigger: 'blur'
|
|
4879
|
-
// }
|
|
4880
|
-
// ]
|
|
4881
|
-
// }
|
|
4882
|
-
// : {
|
|
4883
|
-
// type: 'text',
|
|
4884
|
-
// name: 'target',
|
|
4885
|
-
// label: '邮箱地址',
|
|
4886
|
-
// placeholder: '请输入邮箱地址',
|
|
4887
|
-
// rules: [
|
|
4888
|
-
// {
|
|
4889
|
-
// required: true,
|
|
4890
|
-
// message: '请输入邮箱地址',
|
|
4891
|
-
// trigger: 'blur'
|
|
4892
|
-
// },
|
|
4893
|
-
// {
|
|
4894
|
-
// type: 'email',
|
|
4895
|
-
// message: '请输入正确的邮箱地址',
|
|
4896
|
-
// trigger: 'blur'
|
|
4897
|
-
// }
|
|
4898
|
-
// ]
|
|
4899
|
-
// },
|
|
4900
|
-
// {
|
|
4901
|
-
// type: 'password',
|
|
4902
|
-
// name: 'password',
|
|
4903
|
-
// label: '新密码',
|
|
4904
|
-
// placeholder: '请输入新密码',
|
|
4905
|
-
// showPassword: true,
|
|
4906
|
-
// rules: [
|
|
4907
|
-
// this.checkPassword
|
|
4908
|
-
// ? {
|
|
4909
|
-
// pattern: this.checkPassword,
|
|
4910
|
-
// message: this.checkPasswordMsg
|
|
4911
|
-
// ? this.checkPasswordMsg
|
|
4912
|
-
// : '密码格式不合法',
|
|
4913
|
-
// trigger: 'blur'
|
|
4914
|
-
// }
|
|
4915
|
-
// : {},
|
|
4916
|
-
// {
|
|
4917
|
-
// required: true,
|
|
4918
|
-
// message: '请输入新密码',
|
|
4919
|
-
// trigger: 'blur'
|
|
4920
|
-
// }
|
|
4921
|
-
// ]
|
|
4922
|
-
// },
|
|
4923
|
-
// {
|
|
4924
|
-
// type: 'password',
|
|
4925
|
-
// name: 'repassword',
|
|
4926
|
-
// placeholder: '请确认新密码',
|
|
4927
|
-
// label: '确认新密码',
|
|
4928
|
-
// showPassword: true,
|
|
4929
|
-
// rules: [
|
|
4930
|
-
// this.checkPassword
|
|
4931
|
-
// ? {
|
|
4932
|
-
// pattern: this.checkPassword,
|
|
4933
|
-
// message: this.checkPasswordMsg
|
|
4934
|
-
// ? this.checkPasswordMsg
|
|
4935
|
-
// : '密码格式不合法',
|
|
4936
|
-
// trigger: 'blur'
|
|
4937
|
-
// }
|
|
4938
|
-
// : {},
|
|
4939
|
-
// {
|
|
4940
|
-
// required: true,
|
|
4941
|
-
// message: '请输入新密码',
|
|
4942
|
-
// trigger: 'blur'
|
|
4943
|
-
// },
|
|
4944
|
-
// { validator: this.reregExpValidate, trigger: 'blur' }
|
|
4945
|
-
// ]
|
|
4946
|
-
// },
|
|
4947
|
-
// {
|
|
4948
|
-
// type: 'text',
|
|
4949
|
-
// name: 'verificationCode',
|
|
4950
|
-
// placeholder: '请输入验证码',
|
|
4951
|
-
// label: '验证码',
|
|
4952
|
-
// append: {
|
|
4953
|
-
// text: this.btnText,
|
|
4954
|
-
// attrs: { disabled: this.disabled },
|
|
4955
|
-
// event: this.getVerificationCode
|
|
4956
|
-
// },
|
|
4957
|
-
// rules: [
|
|
4958
|
-
// {
|
|
4959
|
-
// required: true,
|
|
4960
|
-
// message: '请输入验证码',
|
|
4961
|
-
// trigger: 'blur'
|
|
4962
|
-
// }
|
|
4963
|
-
// ]
|
|
4964
|
-
// },
|
|
4965
|
-
// {
|
|
4966
|
-
// type: 'submit',
|
|
4967
|
-
// contents: [
|
|
4968
|
-
// {
|
|
4969
|
-
// type: 'primary',
|
|
4970
|
-
// text: '提交',
|
|
4971
|
-
// event: 'confirm'
|
|
4972
|
-
// }
|
|
4973
|
-
// ]
|
|
4974
|
-
// }
|
|
4975
|
-
// ];
|
|
4976
4882
|
},
|
|
4977
4883
|
show: function show() {
|
|
4978
4884
|
if (this.type) {
|
|
@@ -5134,6 +5040,10 @@ function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in ob
|
|
|
5134
5040
|
} else {
|
|
5135
5041
|
var msg = res.msg || '系统错误,请联系管理员!';
|
|
5136
5042
|
_this4.$message.error(msg);
|
|
5043
|
+
_this4.btnText = '获取验证码';
|
|
5044
|
+
_this4.disabled = false;
|
|
5045
|
+
delete _this4.formData.verificationCode;
|
|
5046
|
+
clearInterval(_this4.timer);
|
|
5137
5047
|
}
|
|
5138
5048
|
}).catch(function (err) {
|
|
5139
5049
|
if (err.message && err.message !== 'canceled') {
|
|
@@ -5157,6 +5067,10 @@ function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in ob
|
|
|
5157
5067
|
_this4.$emit('success');
|
|
5158
5068
|
} else {
|
|
5159
5069
|
var msg = res.msg || '系统错误,请联系管理员!';
|
|
5070
|
+
_this4.btnText = '获取验证码';
|
|
5071
|
+
_this4.disabled = false;
|
|
5072
|
+
clearInterval(_this4.timer);
|
|
5073
|
+
delete _this4.formData.verificationCode;
|
|
5160
5074
|
_this4.$message.error(msg);
|
|
5161
5075
|
}
|
|
5162
5076
|
}).catch(function (err) {
|
|
@@ -5190,8 +5104,8 @@ var componentNormalizer = __webpack_require__(3);
|
|
|
5190
5104
|
|
|
5191
5105
|
var component = Object(componentNormalizer["a" /* default */])(
|
|
5192
5106
|
src_resetPasswordvue_type_script_lang_js_,
|
|
5193
|
-
|
|
5194
|
-
|
|
5107
|
+
resetPasswordvue_type_template_id_7e3a7461_render,
|
|
5108
|
+
resetPasswordvue_type_template_id_7e3a7461_staticRenderFns,
|
|
5195
5109
|
false,
|
|
5196
5110
|
null,
|
|
5197
5111
|
null,
|
|
@@ -6190,7 +6104,8 @@ var mainvue_type_script_lang_js_extends = Object.assign || function (target) { f
|
|
|
6190
6104
|
return;
|
|
6191
6105
|
}
|
|
6192
6106
|
this.imageCode = util["a" /* default */].getStorage('host') + this.codeAction + '?identifyingId=' + this.identifyingId + (this.imgCode && _typeof(this.imgCode) == 'object' ? '&' + util["a" /* default */].queryParams(this.imgCode) : '') + '&heightflag=' + Math.random().toString().split('.')[1];
|
|
6193
|
-
|
|
6107
|
+
delete this.formData.identifyingCode;
|
|
6108
|
+
delete this.formData.verificationCode;
|
|
6194
6109
|
return this.imageCode;
|
|
6195
6110
|
},
|
|
6196
6111
|
getCode: function getCode() {
|
|
@@ -6348,6 +6263,10 @@ var mainvue_type_script_lang_js_extends = Object.assign || function (target) { f
|
|
|
6348
6263
|
type: 'error',
|
|
6349
6264
|
duration: 1500,
|
|
6350
6265
|
onClose: function onClose() {
|
|
6266
|
+
_this6.btnText = '获取验证码';
|
|
6267
|
+
_this6.disabled = false;
|
|
6268
|
+
_this6.countdown = 0;
|
|
6269
|
+
clearInterval(_this6.timer);
|
|
6351
6270
|
_this6.getImgCode();
|
|
6352
6271
|
}
|
|
6353
6272
|
});
|
package/lib/main.js
CHANGED
|
@@ -239,16 +239,21 @@ var ajax = function ajax(_ref) {
|
|
|
239
239
|
delPendingRequest(response.config);
|
|
240
240
|
loading && loading.close();
|
|
241
241
|
if (response.headers.authorization && response.headers.authorization !== getStorage('token')) {
|
|
242
|
-
if (localStorage.getItem('storage') === 'localStorage' || localStorage.getItem('
|
|
243
|
-
localStorage.setItem('ssId', response.headers.ssid);
|
|
242
|
+
if (localStorage.getItem('storage') === 'localStorage' || localStorage.getItem('token') || localStorage.getItem('Authorization')) {
|
|
244
243
|
localStorage.setItem('token', response.headers.authorization);
|
|
245
244
|
localStorage.setItem('Authorization', response.headers.authorization);
|
|
246
245
|
} else {
|
|
247
|
-
sessionStorage.setItem('ssId', response.headers.ssid);
|
|
248
246
|
sessionStorage.setItem('token', response.headers.authorization);
|
|
249
247
|
sessionStorage.setItem('Authorization', response.headers.authorization);
|
|
250
248
|
}
|
|
251
249
|
}
|
|
250
|
+
if ((response.headers.ssId || response.headers.Ssid || response.headers.ssid) && (response.headers.ssId || response.headers.SsId || response.headers.ssid) !== getStorage('ssId')) {
|
|
251
|
+
if (localStorage.getItem('storage') === 'localStorage' || localStorage.getItem('ssId')) {
|
|
252
|
+
localStorage.setItem('ssId', response.headers.ssId || response.headers.SsId || response.headers.ssid);
|
|
253
|
+
} else {
|
|
254
|
+
sessionStorage.setItem('ssId', response.headers.ssId || response.headers.SsId || response.headers.ssid);
|
|
255
|
+
}
|
|
256
|
+
}
|
|
252
257
|
if (response.status === 200) {
|
|
253
258
|
if (response.data.rCode === 64 || response.data.rCode === 65 || response.data.rCode === 67 || response.data.rCode === 69) {
|
|
254
259
|
removeStorage(['Authorization', 'token', 'ssId', 'userId', 'userName', 'deviceUnique', 'menus', 'menus', 'useCaseCodes', 'mainConfig', 'jump']);
|
|
@@ -1909,6 +1914,17 @@ var indexOfObj = function indexOfObj(arry, target, key) {
|
|
|
1909
1914
|
return -1;
|
|
1910
1915
|
};
|
|
1911
1916
|
|
|
1917
|
+
/**
|
|
1918
|
+
* isExist
|
|
1919
|
+
* @desc:判断是否存在
|
|
1920
|
+
* @author huangbo
|
|
1921
|
+
* @date 2022年5月7日
|
|
1922
|
+
* @param {Object} [obj] -
|
|
1923
|
+
**/
|
|
1924
|
+
var isExist = function isExist(obj) {
|
|
1925
|
+
return obj !== undefined && obj !== null && obj === '';
|
|
1926
|
+
};
|
|
1927
|
+
|
|
1912
1928
|
/**
|
|
1913
1929
|
* isFunction
|
|
1914
1930
|
* @desc:判断是否是函数
|
|
@@ -2933,6 +2949,7 @@ var watermark = function watermark(option) {
|
|
|
2933
2949
|
hsvTorgb: hsvTorgb,
|
|
2934
2950
|
identical: identical,
|
|
2935
2951
|
indexOfObj: indexOfObj,
|
|
2952
|
+
isExist: isExist,
|
|
2936
2953
|
isFunction: isFunction,
|
|
2937
2954
|
isLogged: isLogged,
|
|
2938
2955
|
isLogined: isLogined,
|
|
@@ -4085,8 +4102,8 @@ render._withStripped = true
|
|
|
4085
4102
|
|
|
4086
4103
|
// CONCATENATED MODULE: ./packages/main/src/main.vue?vue&type=template&id=f53c488c&
|
|
4087
4104
|
|
|
4088
|
-
// 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=
|
|
4089
|
-
var
|
|
4105
|
+
// 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=356fcf36&
|
|
4106
|
+
var userinfovue_type_template_id_356fcf36_render = function () {
|
|
4090
4107
|
var _vm = this
|
|
4091
4108
|
var _h = _vm.$createElement
|
|
4092
4109
|
var _c = _vm._self._c || _h
|
|
@@ -4102,11 +4119,11 @@ var userinfovue_type_template_id_751fb998_render = function () {
|
|
|
4102
4119
|
2
|
|
4103
4120
|
)
|
|
4104
4121
|
}
|
|
4105
|
-
var
|
|
4106
|
-
|
|
4122
|
+
var userinfovue_type_template_id_356fcf36_staticRenderFns = []
|
|
4123
|
+
userinfovue_type_template_id_356fcf36_render._withStripped = true
|
|
4107
4124
|
|
|
4108
4125
|
|
|
4109
|
-
// CONCATENATED MODULE: ./packages/main/src/userinfo.vue?vue&type=template&id=
|
|
4126
|
+
// CONCATENATED MODULE: ./packages/main/src/userinfo.vue?vue&type=template&id=356fcf36&
|
|
4110
4127
|
|
|
4111
4128
|
// EXTERNAL MODULE: ./src/config/api.js
|
|
4112
4129
|
var api = __webpack_require__(1);
|
|
@@ -4392,13 +4409,13 @@ var util = __webpack_require__(0);
|
|
|
4392
4409
|
key: 'userId',
|
|
4393
4410
|
value: value.value
|
|
4394
4411
|
});
|
|
4395
|
-
util["a" /* default */].removeStorage('mainConfig');
|
|
4412
|
+
util["a" /* default */].removeStorage(['mainConfig', 'jump']);
|
|
4396
4413
|
_this3.$message({
|
|
4397
4414
|
message: res.msg,
|
|
4398
4415
|
type: 'success',
|
|
4399
4416
|
duration: 500,
|
|
4400
4417
|
onClose: function onClose() {
|
|
4401
|
-
if (util["a" /* default */].win.location.href.indexOf('#/main') > -1) {
|
|
4418
|
+
if (util["a" /* default */].win.location.href.indexOf('#/main') > -1 || util["a" /* default */].win.location.href.indexOf('/main.html') > -1) {
|
|
4402
4419
|
location.reload();
|
|
4403
4420
|
} else {
|
|
4404
4421
|
_this3.$router.replace('/main');
|
|
@@ -4534,8 +4551,8 @@ var componentNormalizer = __webpack_require__(3);
|
|
|
4534
4551
|
|
|
4535
4552
|
var component = Object(componentNormalizer["a" /* default */])(
|
|
4536
4553
|
src_userinfovue_type_script_lang_js_,
|
|
4537
|
-
|
|
4538
|
-
|
|
4554
|
+
userinfovue_type_template_id_356fcf36_render,
|
|
4555
|
+
userinfovue_type_template_id_356fcf36_staticRenderFns,
|
|
4539
4556
|
false,
|
|
4540
4557
|
null,
|
|
4541
4558
|
null,
|
package/lib/nav.js
CHANGED
|
@@ -240,16 +240,21 @@ var ajax = function ajax(_ref) {
|
|
|
240
240
|
delPendingRequest(response.config);
|
|
241
241
|
loading && loading.close();
|
|
242
242
|
if (response.headers.authorization && response.headers.authorization !== getStorage('token')) {
|
|
243
|
-
if (localStorage.getItem('storage') === 'localStorage' || localStorage.getItem('
|
|
244
|
-
localStorage.setItem('ssId', response.headers.ssid);
|
|
243
|
+
if (localStorage.getItem('storage') === 'localStorage' || localStorage.getItem('token') || localStorage.getItem('Authorization')) {
|
|
245
244
|
localStorage.setItem('token', response.headers.authorization);
|
|
246
245
|
localStorage.setItem('Authorization', response.headers.authorization);
|
|
247
246
|
} else {
|
|
248
|
-
sessionStorage.setItem('ssId', response.headers.ssid);
|
|
249
247
|
sessionStorage.setItem('token', response.headers.authorization);
|
|
250
248
|
sessionStorage.setItem('Authorization', response.headers.authorization);
|
|
251
249
|
}
|
|
252
250
|
}
|
|
251
|
+
if ((response.headers.ssId || response.headers.Ssid || response.headers.ssid) && (response.headers.ssId || response.headers.SsId || response.headers.ssid) !== getStorage('ssId')) {
|
|
252
|
+
if (localStorage.getItem('storage') === 'localStorage' || localStorage.getItem('ssId')) {
|
|
253
|
+
localStorage.setItem('ssId', response.headers.ssId || response.headers.SsId || response.headers.ssid);
|
|
254
|
+
} else {
|
|
255
|
+
sessionStorage.setItem('ssId', response.headers.ssId || response.headers.SsId || response.headers.ssid);
|
|
256
|
+
}
|
|
257
|
+
}
|
|
253
258
|
if (response.status === 200) {
|
|
254
259
|
if (response.data.rCode === 64 || response.data.rCode === 65 || response.data.rCode === 67 || response.data.rCode === 69) {
|
|
255
260
|
removeStorage(['Authorization', 'token', 'ssId', 'userId', 'userName', 'deviceUnique', 'menus', 'menus', 'useCaseCodes', 'mainConfig', 'jump']);
|
|
@@ -1910,6 +1915,17 @@ var indexOfObj = function indexOfObj(arry, target, key) {
|
|
|
1910
1915
|
return -1;
|
|
1911
1916
|
};
|
|
1912
1917
|
|
|
1918
|
+
/**
|
|
1919
|
+
* isExist
|
|
1920
|
+
* @desc:判断是否存在
|
|
1921
|
+
* @author huangbo
|
|
1922
|
+
* @date 2022年5月7日
|
|
1923
|
+
* @param {Object} [obj] -
|
|
1924
|
+
**/
|
|
1925
|
+
var isExist = function isExist(obj) {
|
|
1926
|
+
return obj !== undefined && obj !== null && obj === '';
|
|
1927
|
+
};
|
|
1928
|
+
|
|
1913
1929
|
/**
|
|
1914
1930
|
* isFunction
|
|
1915
1931
|
* @desc:判断是否是函数
|
|
@@ -2934,6 +2950,7 @@ var watermark = function watermark(option) {
|
|
|
2934
2950
|
hsvTorgb: hsvTorgb,
|
|
2935
2951
|
identical: identical,
|
|
2936
2952
|
indexOfObj: indexOfObj,
|
|
2953
|
+
isExist: isExist,
|
|
2937
2954
|
isFunction: isFunction,
|
|
2938
2955
|
isLogged: isLogged,
|
|
2939
2956
|
isLogined: isLogined,
|
package/lib/page.js
CHANGED
|
@@ -240,16 +240,21 @@ var ajax = function ajax(_ref) {
|
|
|
240
240
|
delPendingRequest(response.config);
|
|
241
241
|
loading && loading.close();
|
|
242
242
|
if (response.headers.authorization && response.headers.authorization !== getStorage('token')) {
|
|
243
|
-
if (localStorage.getItem('storage') === 'localStorage' || localStorage.getItem('
|
|
244
|
-
localStorage.setItem('ssId', response.headers.ssid);
|
|
243
|
+
if (localStorage.getItem('storage') === 'localStorage' || localStorage.getItem('token') || localStorage.getItem('Authorization')) {
|
|
245
244
|
localStorage.setItem('token', response.headers.authorization);
|
|
246
245
|
localStorage.setItem('Authorization', response.headers.authorization);
|
|
247
246
|
} else {
|
|
248
|
-
sessionStorage.setItem('ssId', response.headers.ssid);
|
|
249
247
|
sessionStorage.setItem('token', response.headers.authorization);
|
|
250
248
|
sessionStorage.setItem('Authorization', response.headers.authorization);
|
|
251
249
|
}
|
|
252
250
|
}
|
|
251
|
+
if ((response.headers.ssId || response.headers.Ssid || response.headers.ssid) && (response.headers.ssId || response.headers.SsId || response.headers.ssid) !== getStorage('ssId')) {
|
|
252
|
+
if (localStorage.getItem('storage') === 'localStorage' || localStorage.getItem('ssId')) {
|
|
253
|
+
localStorage.setItem('ssId', response.headers.ssId || response.headers.SsId || response.headers.ssid);
|
|
254
|
+
} else {
|
|
255
|
+
sessionStorage.setItem('ssId', response.headers.ssId || response.headers.SsId || response.headers.ssid);
|
|
256
|
+
}
|
|
257
|
+
}
|
|
253
258
|
if (response.status === 200) {
|
|
254
259
|
if (response.data.rCode === 64 || response.data.rCode === 65 || response.data.rCode === 67 || response.data.rCode === 69) {
|
|
255
260
|
removeStorage(['Authorization', 'token', 'ssId', 'userId', 'userName', 'deviceUnique', 'menus', 'menus', 'useCaseCodes', 'mainConfig', 'jump']);
|
|
@@ -1910,6 +1915,17 @@ var indexOfObj = function indexOfObj(arry, target, key) {
|
|
|
1910
1915
|
return -1;
|
|
1911
1916
|
};
|
|
1912
1917
|
|
|
1918
|
+
/**
|
|
1919
|
+
* isExist
|
|
1920
|
+
* @desc:判断是否存在
|
|
1921
|
+
* @author huangbo
|
|
1922
|
+
* @date 2022年5月7日
|
|
1923
|
+
* @param {Object} [obj] -
|
|
1924
|
+
**/
|
|
1925
|
+
var isExist = function isExist(obj) {
|
|
1926
|
+
return obj !== undefined && obj !== null && obj === '';
|
|
1927
|
+
};
|
|
1928
|
+
|
|
1913
1929
|
/**
|
|
1914
1930
|
* isFunction
|
|
1915
1931
|
* @desc:判断是否是函数
|
|
@@ -2934,6 +2950,7 @@ var watermark = function watermark(option) {
|
|
|
2934
2950
|
hsvTorgb: hsvTorgb,
|
|
2935
2951
|
identical: identical,
|
|
2936
2952
|
indexOfObj: indexOfObj,
|
|
2953
|
+
isExist: isExist,
|
|
2937
2954
|
isFunction: isFunction,
|
|
2938
2955
|
isLogged: isLogged,
|
|
2939
2956
|
isLogined: isLogined,
|
package/lib/player.js
CHANGED
|
@@ -240,16 +240,21 @@ var ajax = function ajax(_ref) {
|
|
|
240
240
|
delPendingRequest(response.config);
|
|
241
241
|
loading && loading.close();
|
|
242
242
|
if (response.headers.authorization && response.headers.authorization !== getStorage('token')) {
|
|
243
|
-
if (localStorage.getItem('storage') === 'localStorage' || localStorage.getItem('
|
|
244
|
-
localStorage.setItem('ssId', response.headers.ssid);
|
|
243
|
+
if (localStorage.getItem('storage') === 'localStorage' || localStorage.getItem('token') || localStorage.getItem('Authorization')) {
|
|
245
244
|
localStorage.setItem('token', response.headers.authorization);
|
|
246
245
|
localStorage.setItem('Authorization', response.headers.authorization);
|
|
247
246
|
} else {
|
|
248
|
-
sessionStorage.setItem('ssId', response.headers.ssid);
|
|
249
247
|
sessionStorage.setItem('token', response.headers.authorization);
|
|
250
248
|
sessionStorage.setItem('Authorization', response.headers.authorization);
|
|
251
249
|
}
|
|
252
250
|
}
|
|
251
|
+
if ((response.headers.ssId || response.headers.Ssid || response.headers.ssid) && (response.headers.ssId || response.headers.SsId || response.headers.ssid) !== getStorage('ssId')) {
|
|
252
|
+
if (localStorage.getItem('storage') === 'localStorage' || localStorage.getItem('ssId')) {
|
|
253
|
+
localStorage.setItem('ssId', response.headers.ssId || response.headers.SsId || response.headers.ssid);
|
|
254
|
+
} else {
|
|
255
|
+
sessionStorage.setItem('ssId', response.headers.ssId || response.headers.SsId || response.headers.ssid);
|
|
256
|
+
}
|
|
257
|
+
}
|
|
253
258
|
if (response.status === 200) {
|
|
254
259
|
if (response.data.rCode === 64 || response.data.rCode === 65 || response.data.rCode === 67 || response.data.rCode === 69) {
|
|
255
260
|
removeStorage(['Authorization', 'token', 'ssId', 'userId', 'userName', 'deviceUnique', 'menus', 'menus', 'useCaseCodes', 'mainConfig', 'jump']);
|
|
@@ -1910,6 +1915,17 @@ var indexOfObj = function indexOfObj(arry, target, key) {
|
|
|
1910
1915
|
return -1;
|
|
1911
1916
|
};
|
|
1912
1917
|
|
|
1918
|
+
/**
|
|
1919
|
+
* isExist
|
|
1920
|
+
* @desc:判断是否存在
|
|
1921
|
+
* @author huangbo
|
|
1922
|
+
* @date 2022年5月7日
|
|
1923
|
+
* @param {Object} [obj] -
|
|
1924
|
+
**/
|
|
1925
|
+
var isExist = function isExist(obj) {
|
|
1926
|
+
return obj !== undefined && obj !== null && obj === '';
|
|
1927
|
+
};
|
|
1928
|
+
|
|
1913
1929
|
/**
|
|
1914
1930
|
* isFunction
|
|
1915
1931
|
* @desc:判断是否是函数
|
|
@@ -2934,6 +2950,7 @@ var watermark = function watermark(option) {
|
|
|
2934
2950
|
hsvTorgb: hsvTorgb,
|
|
2935
2951
|
identical: identical,
|
|
2936
2952
|
indexOfObj: indexOfObj,
|
|
2953
|
+
isExist: isExist,
|
|
2937
2954
|
isFunction: isFunction,
|
|
2938
2955
|
isLogged: isLogged,
|
|
2939
2956
|
isLogined: isLogined,
|