eoss-ui 0.5.34 → 0.5.35

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.
Files changed (48) hide show
  1. package/lib/button-group.js +17 -0
  2. package/lib/button.js +17 -0
  3. package/lib/checkbox-group.js +17 -0
  4. package/lib/data-table-form.js +17 -0
  5. package/lib/data-table.js +17 -0
  6. package/lib/date-picker.js +17 -0
  7. package/lib/dialog.js +17 -0
  8. package/lib/eoss-ui.common.js +70 -50
  9. package/lib/flow-group.js +17 -0
  10. package/lib/flow-list.js +17 -0
  11. package/lib/flow.js +17 -0
  12. package/lib/form.js +17 -0
  13. package/lib/handle-user.js +17 -0
  14. package/lib/handler.js +17 -0
  15. package/lib/index.js +1 -1
  16. package/lib/input-number.js +17 -0
  17. package/lib/input.js +17 -0
  18. package/lib/login.js +41 -15
  19. package/lib/main.js +35 -24
  20. package/lib/nav.js +17 -0
  21. package/lib/page.js +17 -0
  22. package/lib/player.js +17 -0
  23. package/lib/qr-code.js +17 -0
  24. package/lib/radio-group.js +17 -0
  25. package/lib/retrial-auth.js +17 -0
  26. package/lib/select-ganged.js +17 -0
  27. package/lib/select.js +17 -0
  28. package/lib/selector-panel.js +17 -0
  29. package/lib/selector.js +17 -0
  30. package/lib/sizer.js +17 -0
  31. package/lib/steps.js +17 -0
  32. package/lib/switch.js +17 -0
  33. package/lib/table-form.js +17 -0
  34. package/lib/tabs.js +17 -0
  35. package/lib/tips.js +17 -0
  36. package/lib/tree-group.js +17 -0
  37. package/lib/tree.js +17 -0
  38. package/lib/upload.js +17 -0
  39. package/lib/utils/util.js +17 -0
  40. package/lib/wujie.js +17 -0
  41. package/lib/wxlogin.js +17 -0
  42. package/package.json +1 -1
  43. package/packages/login/src/main.vue +9 -2
  44. package/packages/login/src/resetPassword.vue +7 -5
  45. package/packages/main/src/main.vue +11 -20
  46. package/packages/main/src/userinfo.vue +1 -1
  47. package/src/index.js +1 -1
  48. package/src/utils/util.js +22 -2
package/src/utils/util.js CHANGED
@@ -7,7 +7,7 @@
7
7
 
8
8
  /* eslint-disable indent */
9
9
  const sm2 = require('sm-crypto').sm2;
10
- import { authCenter } from '../config/api';
10
+ import { authCenter, mainConfig } from '../config/api';
11
11
  import axios from 'axios';
12
12
  import qs from 'qs';
13
13
  import JSONbig from 'json-bigint';
@@ -1206,6 +1206,7 @@ const getLength = function (text) {
1206
1206
  * @desc:转换明度
1207
1207
  * @author huangbo
1208
1208
  * @date 2022年5月7日
1209
+ * @return {string,array} 元素类名或者id
1209
1210
  **/
1210
1211
  const getLightness = function ($v, $i, $isLight) {
1211
1212
  let $value = $isLight
@@ -1215,6 +1216,24 @@ const getLightness = function ($v, $i, $isLight) {
1215
1216
  return toFixed($value, 2);
1216
1217
  };
1217
1218
 
1219
+ /**
1220
+ * getMainConfig
1221
+ * @desc 获取系统配置
1222
+ * @author huangbo
1223
+ * @date 2022年5月7日
1224
+ * @param {function} callback - 回调函数
1225
+ **/
1226
+ const getMainConfig = function (callback) {
1227
+ ajax({ url: mainConfig })
1228
+ .then((res) => {
1229
+ if (res && res.rCode === 0) {
1230
+ callback(res.results);
1231
+ }
1232
+ })
1233
+ .catch(() => {
1234
+ });
1235
+ };
1236
+
1218
1237
  /**
1219
1238
  * getMinute
1220
1239
  * @desc 获取分钟
@@ -1857,7 +1876,7 @@ const indexOfObj = function (arry, target, key) {
1857
1876
  * @date 2022年5月7日
1858
1877
  * @param {Object} [obj] -
1859
1878
  **/
1860
- const isExist = function(obj) {
1879
+ const isExist = function (obj) {
1861
1880
  return obj !== undefined && obj !== null && obj !== '';
1862
1881
  };
1863
1882
 
@@ -2868,6 +2887,7 @@ export default {
2868
2887
  getHour,
2869
2888
  getWeekNumber,
2870
2889
  getLength,
2890
+ getMainConfig,
2871
2891
  getMinute,
2872
2892
  getMonth,
2873
2893
  getObjectType,