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/tips.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/tree-group.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/tree.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/upload.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,
|
package/lib/utils/util.js
CHANGED
|
@@ -157,16 +157,21 @@ var ajax = function ajax(_ref) {
|
|
|
157
157
|
delPendingRequest(response.config);
|
|
158
158
|
loading && loading.close();
|
|
159
159
|
if (response.headers.authorization && response.headers.authorization !== getStorage('token')) {
|
|
160
|
-
if (localStorage.getItem('storage') === 'localStorage' || localStorage.getItem('
|
|
161
|
-
localStorage.setItem('ssId', response.headers.ssid);
|
|
160
|
+
if (localStorage.getItem('storage') === 'localStorage' || localStorage.getItem('token') || localStorage.getItem('Authorization')) {
|
|
162
161
|
localStorage.setItem('token', response.headers.authorization);
|
|
163
162
|
localStorage.setItem('Authorization', response.headers.authorization);
|
|
164
163
|
} else {
|
|
165
|
-
sessionStorage.setItem('ssId', response.headers.ssid);
|
|
166
164
|
sessionStorage.setItem('token', response.headers.authorization);
|
|
167
165
|
sessionStorage.setItem('Authorization', response.headers.authorization);
|
|
168
166
|
}
|
|
169
167
|
}
|
|
168
|
+
if ((response.headers.ssId || response.headers.Ssid || response.headers.ssid) && (response.headers.ssId || response.headers.SsId || response.headers.ssid) !== getStorage('ssId')) {
|
|
169
|
+
if (localStorage.getItem('storage') === 'localStorage' || localStorage.getItem('ssId')) {
|
|
170
|
+
localStorage.setItem('ssId', response.headers.ssId || response.headers.SsId || response.headers.ssid);
|
|
171
|
+
} else {
|
|
172
|
+
sessionStorage.setItem('ssId', response.headers.ssId || response.headers.SsId || response.headers.ssid);
|
|
173
|
+
}
|
|
174
|
+
}
|
|
170
175
|
if (response.status === 200) {
|
|
171
176
|
if (response.data.rCode === 64 || response.data.rCode === 65 || response.data.rCode === 67 || response.data.rCode === 69) {
|
|
172
177
|
removeStorage(['Authorization', 'token', 'ssId', 'userId', 'userName', 'deviceUnique', 'menus', 'menus', 'useCaseCodes', 'mainConfig', 'jump']);
|
|
@@ -1827,6 +1832,17 @@ var indexOfObj = function indexOfObj(arry, target, key) {
|
|
|
1827
1832
|
return -1;
|
|
1828
1833
|
};
|
|
1829
1834
|
|
|
1835
|
+
/**
|
|
1836
|
+
* isExist
|
|
1837
|
+
* @desc:判断是否存在
|
|
1838
|
+
* @author huangbo
|
|
1839
|
+
* @date 2022年5月7日
|
|
1840
|
+
* @param {Object} [obj] -
|
|
1841
|
+
**/
|
|
1842
|
+
var isExist = function isExist(obj) {
|
|
1843
|
+
return obj !== undefined && obj !== null && obj === '';
|
|
1844
|
+
};
|
|
1845
|
+
|
|
1830
1846
|
/**
|
|
1831
1847
|
* isFunction
|
|
1832
1848
|
* @desc:判断是否是函数
|
|
@@ -2851,6 +2867,7 @@ exports.default = {
|
|
|
2851
2867
|
hsvTorgb: hsvTorgb,
|
|
2852
2868
|
identical: identical,
|
|
2853
2869
|
indexOfObj: indexOfObj,
|
|
2870
|
+
isExist: isExist,
|
|
2854
2871
|
isFunction: isFunction,
|
|
2855
2872
|
isLogged: isLogged,
|
|
2856
2873
|
isLogined: isLogined,
|
package/lib/wujie.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/wxlogin.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eoss-ui",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.31",
|
|
4
4
|
"description": "eoss内部业务组件",
|
|
5
5
|
"main": "lib/eoss-ui.common.js",
|
|
6
6
|
"files": [
|
|
@@ -96,7 +96,7 @@
|
|
|
96
96
|
"cp-cli": "^1.0.2",
|
|
97
97
|
"cross-env": "^3.1.3",
|
|
98
98
|
"css-loader": "^2.1.0",
|
|
99
|
-
"eoss-element": "^0.2.
|
|
99
|
+
"eoss-element": "^0.2.82",
|
|
100
100
|
"es6-promise": "^4.0.5",
|
|
101
101
|
"eslint": "4.18.2",
|
|
102
102
|
"eslint-config-elemefe": "0.1.1",
|
|
@@ -3,7 +3,7 @@ export default {
|
|
|
3
3
|
name: 'EsCascader',
|
|
4
4
|
inheritAttrs: false,
|
|
5
5
|
props: {
|
|
6
|
-
value: [String,
|
|
6
|
+
value: [String, Array],
|
|
7
7
|
data: Array,
|
|
8
8
|
options: Array,
|
|
9
9
|
hide: {
|
|
@@ -96,27 +96,32 @@ export default {
|
|
|
96
96
|
render(h) {
|
|
97
97
|
if (!this.hide) {
|
|
98
98
|
if (this.readonly) {
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
.map(
|
|
104
|
-
if (
|
|
105
|
-
return
|
|
99
|
+
let value = '';
|
|
100
|
+
if (this.model) {
|
|
101
|
+
value = Array.isArray(this.model)
|
|
102
|
+
? this.model
|
|
103
|
+
.map((item) => {
|
|
104
|
+
if (Array.isArray(item)) {
|
|
105
|
+
return item
|
|
106
|
+
.map((ele) => {
|
|
107
|
+
if (typeof ele === 'string') {
|
|
108
|
+
return ele;
|
|
109
|
+
} else {
|
|
110
|
+
return ele[this.newProps.label];
|
|
111
|
+
}
|
|
112
|
+
})
|
|
113
|
+
.join(this.separator);
|
|
106
114
|
} else {
|
|
107
|
-
|
|
115
|
+
if (typeof item === 'string') {
|
|
116
|
+
return item;
|
|
117
|
+
} else {
|
|
118
|
+
return item[this.newProps.label];
|
|
119
|
+
}
|
|
108
120
|
}
|
|
109
121
|
})
|
|
110
|
-
.join(this.separator)
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
return item;
|
|
114
|
-
} else {
|
|
115
|
-
return item[this.newProps.label];
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
})
|
|
119
|
-
.join(this.multiple ? ',' : this.separator);
|
|
122
|
+
.join(this.multiple ? ',' : this.separator)
|
|
123
|
+
: this.model;
|
|
124
|
+
}
|
|
120
125
|
return h(
|
|
121
126
|
'div',
|
|
122
127
|
{
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
v-else
|
|
12
12
|
v-show="display"
|
|
13
13
|
v-model="model"
|
|
14
|
-
v-bind="
|
|
14
|
+
v-bind="{ valueKey: valKey, labelKey: label, ...$attrs }"
|
|
15
15
|
v-on="$listeners"
|
|
16
16
|
>
|
|
17
17
|
<template v-if="genre === 'button'">
|
|
@@ -97,6 +97,10 @@ export default {
|
|
|
97
97
|
type: String,
|
|
98
98
|
default: ''
|
|
99
99
|
},
|
|
100
|
+
separator: {
|
|
101
|
+
type: String,
|
|
102
|
+
default: '、'
|
|
103
|
+
},
|
|
100
104
|
display: {
|
|
101
105
|
type: Boolean,
|
|
102
106
|
default: true
|
|
@@ -158,6 +162,7 @@ export default {
|
|
|
158
162
|
return this.value === undefined ? [] : this.value;
|
|
159
163
|
},
|
|
160
164
|
set(val) {
|
|
165
|
+
console.log(val);
|
|
161
166
|
return val;
|
|
162
167
|
}
|
|
163
168
|
},
|
|
@@ -186,17 +191,17 @@ export default {
|
|
|
186
191
|
return item[this.label];
|
|
187
192
|
}
|
|
188
193
|
if (util.isObject(this.results[0])) {
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
194
|
+
let vals = [];
|
|
195
|
+
this.results.forEach((ele) => {
|
|
196
|
+
if (ele[this.valKey] === item) {
|
|
197
|
+
vals.push(ele[this.label]);
|
|
198
|
+
}
|
|
199
|
+
});
|
|
200
|
+
return vals.join(this.separator);
|
|
196
201
|
}
|
|
197
202
|
return item;
|
|
198
203
|
});
|
|
199
|
-
return label.join(
|
|
204
|
+
return label.join(this.separator);
|
|
200
205
|
}
|
|
201
206
|
},
|
|
202
207
|
watch: {
|
|
@@ -730,16 +730,17 @@ export default {
|
|
|
730
730
|
} else if (Array.isArray(rows[field])) {
|
|
731
731
|
const vals = rows[field].map((item) => {
|
|
732
732
|
if (util.isObject(item)) {
|
|
733
|
-
|
|
733
|
+
return (
|
|
734
734
|
item[this.labelKey] ||
|
|
735
735
|
item['name'] ||
|
|
736
736
|
item['label'] ||
|
|
737
|
-
item['shortName']
|
|
737
|
+
item['shortName']
|
|
738
|
+
);
|
|
738
739
|
} else {
|
|
739
740
|
if (data && data.length && util.isObject(data[0])) {
|
|
740
|
-
|
|
741
|
+
return this.getLabel(data, item);
|
|
741
742
|
}
|
|
742
|
-
|
|
743
|
+
return item;
|
|
743
744
|
}
|
|
744
745
|
});
|
|
745
746
|
str = vals.join(this.symbol ? this.symbol : '-');
|
|
@@ -747,16 +748,17 @@ export default {
|
|
|
747
748
|
if (this.valueToString) {
|
|
748
749
|
const vals = rows[field].split(',').map((item) => {
|
|
749
750
|
if (data && data.length && util.isObject(data[0])) {
|
|
750
|
-
|
|
751
|
+
return this.getLabel(data, item);
|
|
751
752
|
}
|
|
752
|
-
|
|
753
|
+
return item;
|
|
753
754
|
});
|
|
754
755
|
str = vals.join(this.symbol ? this.symbol : '-');
|
|
755
756
|
} else {
|
|
756
757
|
if (data && data.length && util.isObject(data[0])) {
|
|
757
758
|
str = this.getLabel(data, rows[field]);
|
|
759
|
+
} else {
|
|
760
|
+
str = rows[field];
|
|
758
761
|
}
|
|
759
|
-
str = rows[field];
|
|
760
762
|
}
|
|
761
763
|
}
|
|
762
764
|
if (str && flag) {
|
|
@@ -604,7 +604,7 @@ export default {
|
|
|
604
604
|
handleSuccess() {
|
|
605
605
|
if (this.closeDialog && this.esDialog) {
|
|
606
606
|
this.esDialog.handleClose();
|
|
607
|
-
}else if (util.win.top.opener) {
|
|
607
|
+
} else if (util.win.top.opener) {
|
|
608
608
|
util.win.top.close();
|
|
609
609
|
}
|
|
610
610
|
if (this.events && this.events.success) {
|
|
@@ -4039,7 +4039,8 @@ export default {
|
|
|
4039
4039
|
default: 3
|
|
4040
4040
|
},
|
|
4041
4041
|
zoom: false,
|
|
4042
|
-
showMsg: true
|
|
4042
|
+
showMsg: true,
|
|
4043
|
+
validated: Function
|
|
4043
4044
|
},
|
|
4044
4045
|
data() {
|
|
4045
4046
|
return {
|
|
@@ -4871,6 +4872,9 @@ export default {
|
|
|
4871
4872
|
handle,
|
|
4872
4873
|
type
|
|
4873
4874
|
);
|
|
4875
|
+
if (this.validated && !this.validated(models, validate)) {
|
|
4876
|
+
return reject(err);
|
|
4877
|
+
}
|
|
4874
4878
|
let param = this.param;
|
|
4875
4879
|
if (handle.param) {
|
|
4876
4880
|
param = util.extend({}, this.param, handle.param);
|
|
@@ -4949,6 +4953,9 @@ export default {
|
|
|
4949
4953
|
handle,
|
|
4950
4954
|
type
|
|
4951
4955
|
);
|
|
4956
|
+
if (this.validated && !this.validated(models, validate)) {
|
|
4957
|
+
return reject(err);
|
|
4958
|
+
}
|
|
4952
4959
|
let param = this.param;
|
|
4953
4960
|
if (handle.param) {
|
|
4954
4961
|
param = util.extend({}, this.param, handle.param);
|
|
@@ -235,23 +235,27 @@ export default {
|
|
|
235
235
|
let cls = [];
|
|
236
236
|
let doms = [];
|
|
237
237
|
if (this.readonly) {
|
|
238
|
-
let content = this.text;
|
|
239
|
-
if (this.
|
|
240
|
-
|
|
241
|
-
|
|
238
|
+
let content = this.model ? this.model : this.text;
|
|
239
|
+
if (this.$attrs.type === 'textarea') {
|
|
240
|
+
if (this.model) {
|
|
241
|
+
content = this.model.replace(RegExp('\\n', 'g'), '<br/>');
|
|
242
|
+
content = content.replace(RegExp(' ', 'g'), ' ');
|
|
243
|
+
}
|
|
244
|
+
return h('div', {
|
|
245
|
+
class: ['es-textarea__inner ', { 'es-plain': this.plain }],
|
|
246
|
+
domProps: {
|
|
247
|
+
innerHTML: content
|
|
248
|
+
}
|
|
249
|
+
});
|
|
250
|
+
} else {
|
|
251
|
+
return h(
|
|
252
|
+
'div',
|
|
253
|
+
{
|
|
254
|
+
class: ['es-input__inner', { 'es-plain': this.plain }]
|
|
255
|
+
},
|
|
256
|
+
[content]
|
|
257
|
+
);
|
|
242
258
|
}
|
|
243
|
-
return h(
|
|
244
|
-
'div',
|
|
245
|
-
{
|
|
246
|
-
class: [
|
|
247
|
-
this.$attrs.type === 'textarea'
|
|
248
|
-
? 'es-textarea__inner '
|
|
249
|
-
: 'es-input__inner',
|
|
250
|
-
{ 'es-plain': this.plain }
|
|
251
|
-
]
|
|
252
|
-
},
|
|
253
|
-
[content]
|
|
254
|
-
);
|
|
255
259
|
}
|
|
256
260
|
if (this.$slots.prefix) {
|
|
257
261
|
doms.push(h('template', { slot: 'prefix' }, this.$slots.prefix));
|
|
@@ -732,7 +732,7 @@ export default {
|
|
|
732
732
|
ipad: '',
|
|
733
733
|
interval: null,
|
|
734
734
|
showResetPassword: false,
|
|
735
|
-
operationCheckCode:'',
|
|
735
|
+
operationCheckCode: '',
|
|
736
736
|
showDownLoadApp: false,
|
|
737
737
|
wechatAppid: null,
|
|
738
738
|
wechatScope: null,
|
|
@@ -1041,7 +1041,8 @@ export default {
|
|
|
1041
1041
|
: '') +
|
|
1042
1042
|
'&heightflag=' +
|
|
1043
1043
|
Math.random().toString().split('.')[1];
|
|
1044
|
-
|
|
1044
|
+
delete this.formData.identifyingCode;
|
|
1045
|
+
delete this.formData.verificationCode;
|
|
1045
1046
|
return this.imageCode;
|
|
1046
1047
|
},
|
|
1047
1048
|
getCode() {
|
|
@@ -1219,6 +1220,10 @@ export default {
|
|
|
1219
1220
|
type: 'error',
|
|
1220
1221
|
duration: 1500,
|
|
1221
1222
|
onClose: () => {
|
|
1223
|
+
this.btnText = '获取验证码';
|
|
1224
|
+
this.disabled = false;
|
|
1225
|
+
this.countdown = 0;
|
|
1226
|
+
clearInterval(this.timer);
|
|
1222
1227
|
this.getImgCode();
|
|
1223
1228
|
}
|
|
1224
1229
|
});
|
|
@@ -1355,7 +1360,7 @@ export default {
|
|
|
1355
1360
|
}
|
|
1356
1361
|
)
|
|
1357
1362
|
.then(() => {
|
|
1358
|
-
this.operationCheckCode = results.checkCode
|
|
1363
|
+
this.operationCheckCode = results.checkCode;
|
|
1359
1364
|
if (typeof this.forget === 'string') {
|
|
1360
1365
|
util.win.open(this.forgetUrl);
|
|
1361
1366
|
} else {
|