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
@@ -1294,6 +1294,7 @@ var getLength = function getLength(text) {
1294
1294
  * @desc:转换明度
1295
1295
  * @author huangbo
1296
1296
  * @date 2022年5月7日
1297
+ * @return {string,array} 元素类名或者id
1297
1298
  **/
1298
1299
  var getLightness = function getLightness($v, $i, $isLight) {
1299
1300
  var $value = $isLight ? $v + $brightnessStep1 * $i : $v - $brightnessStep2 * $i;
@@ -1301,6 +1302,21 @@ var getLightness = function getLightness($v, $i, $isLight) {
1301
1302
  return toFixed($value, 2);
1302
1303
  };
1303
1304
 
1305
+ /**
1306
+ * getMainConfig
1307
+ * @desc 获取系统配置
1308
+ * @author huangbo
1309
+ * @date 2022年5月7日
1310
+ * @param {function} callback - 回调函数
1311
+ **/
1312
+ var getMainConfig = function getMainConfig(callback) {
1313
+ ajax({ url: _config_api__WEBPACK_IMPORTED_MODULE_0__[/* mainConfig */ "db"] }).then(function (res) {
1314
+ if (res && res.rCode === 0) {
1315
+ callback(res.results);
1316
+ }
1317
+ }).catch(function () {});
1318
+ };
1319
+
1304
1320
  /**
1305
1321
  * getMinute
1306
1322
  * @desc 获取分钟
@@ -2931,6 +2947,7 @@ var watermark = function watermark(option) {
2931
2947
  getHour: getHour,
2932
2948
  getWeekNumber: getWeekNumber,
2933
2949
  getLength: getLength,
2950
+ getMainConfig: getMainConfig,
2934
2951
  getMinute: getMinute,
2935
2952
  getMonth: getMonth,
2936
2953
  getObjectType: getObjectType,
package/lib/selector.js CHANGED
@@ -1295,6 +1295,7 @@ var getLength = function getLength(text) {
1295
1295
  * @desc:转换明度
1296
1296
  * @author huangbo
1297
1297
  * @date 2022年5月7日
1298
+ * @return {string,array} 元素类名或者id
1298
1299
  **/
1299
1300
  var getLightness = function getLightness($v, $i, $isLight) {
1300
1301
  var $value = $isLight ? $v + $brightnessStep1 * $i : $v - $brightnessStep2 * $i;
@@ -1302,6 +1303,21 @@ var getLightness = function getLightness($v, $i, $isLight) {
1302
1303
  return toFixed($value, 2);
1303
1304
  };
1304
1305
 
1306
+ /**
1307
+ * getMainConfig
1308
+ * @desc 获取系统配置
1309
+ * @author huangbo
1310
+ * @date 2022年5月7日
1311
+ * @param {function} callback - 回调函数
1312
+ **/
1313
+ var getMainConfig = function getMainConfig(callback) {
1314
+ ajax({ url: _config_api__WEBPACK_IMPORTED_MODULE_0__[/* mainConfig */ "db"] }).then(function (res) {
1315
+ if (res && res.rCode === 0) {
1316
+ callback(res.results);
1317
+ }
1318
+ }).catch(function () {});
1319
+ };
1320
+
1305
1321
  /**
1306
1322
  * getMinute
1307
1323
  * @desc 获取分钟
@@ -2932,6 +2948,7 @@ var watermark = function watermark(option) {
2932
2948
  getHour: getHour,
2933
2949
  getWeekNumber: getWeekNumber,
2934
2950
  getLength: getLength,
2951
+ getMainConfig: getMainConfig,
2935
2952
  getMinute: getMinute,
2936
2953
  getMonth: getMonth,
2937
2954
  getObjectType: getObjectType,
package/lib/sizer.js CHANGED
@@ -1295,6 +1295,7 @@ var getLength = function getLength(text) {
1295
1295
  * @desc:转换明度
1296
1296
  * @author huangbo
1297
1297
  * @date 2022年5月7日
1298
+ * @return {string,array} 元素类名或者id
1298
1299
  **/
1299
1300
  var getLightness = function getLightness($v, $i, $isLight) {
1300
1301
  var $value = $isLight ? $v + $brightnessStep1 * $i : $v - $brightnessStep2 * $i;
@@ -1302,6 +1303,21 @@ var getLightness = function getLightness($v, $i, $isLight) {
1302
1303
  return toFixed($value, 2);
1303
1304
  };
1304
1305
 
1306
+ /**
1307
+ * getMainConfig
1308
+ * @desc 获取系统配置
1309
+ * @author huangbo
1310
+ * @date 2022年5月7日
1311
+ * @param {function} callback - 回调函数
1312
+ **/
1313
+ var getMainConfig = function getMainConfig(callback) {
1314
+ ajax({ url: _config_api__WEBPACK_IMPORTED_MODULE_0__[/* mainConfig */ "db"] }).then(function (res) {
1315
+ if (res && res.rCode === 0) {
1316
+ callback(res.results);
1317
+ }
1318
+ }).catch(function () {});
1319
+ };
1320
+
1305
1321
  /**
1306
1322
  * getMinute
1307
1323
  * @desc 获取分钟
@@ -2932,6 +2948,7 @@ var watermark = function watermark(option) {
2932
2948
  getHour: getHour,
2933
2949
  getWeekNumber: getWeekNumber,
2934
2950
  getLength: getLength,
2951
+ getMainConfig: getMainConfig,
2935
2952
  getMinute: getMinute,
2936
2953
  getMonth: getMonth,
2937
2954
  getObjectType: getObjectType,
package/lib/steps.js CHANGED
@@ -1295,6 +1295,7 @@ var getLength = function getLength(text) {
1295
1295
  * @desc:转换明度
1296
1296
  * @author huangbo
1297
1297
  * @date 2022年5月7日
1298
+ * @return {string,array} 元素类名或者id
1298
1299
  **/
1299
1300
  var getLightness = function getLightness($v, $i, $isLight) {
1300
1301
  var $value = $isLight ? $v + $brightnessStep1 * $i : $v - $brightnessStep2 * $i;
@@ -1302,6 +1303,21 @@ var getLightness = function getLightness($v, $i, $isLight) {
1302
1303
  return toFixed($value, 2);
1303
1304
  };
1304
1305
 
1306
+ /**
1307
+ * getMainConfig
1308
+ * @desc 获取系统配置
1309
+ * @author huangbo
1310
+ * @date 2022年5月7日
1311
+ * @param {function} callback - 回调函数
1312
+ **/
1313
+ var getMainConfig = function getMainConfig(callback) {
1314
+ ajax({ url: _config_api__WEBPACK_IMPORTED_MODULE_0__[/* mainConfig */ "db"] }).then(function (res) {
1315
+ if (res && res.rCode === 0) {
1316
+ callback(res.results);
1317
+ }
1318
+ }).catch(function () {});
1319
+ };
1320
+
1305
1321
  /**
1306
1322
  * getMinute
1307
1323
  * @desc 获取分钟
@@ -2932,6 +2948,7 @@ var watermark = function watermark(option) {
2932
2948
  getHour: getHour,
2933
2949
  getWeekNumber: getWeekNumber,
2934
2950
  getLength: getLength,
2951
+ getMainConfig: getMainConfig,
2935
2952
  getMinute: getMinute,
2936
2953
  getMonth: getMonth,
2937
2954
  getObjectType: getObjectType,
package/lib/switch.js CHANGED
@@ -1295,6 +1295,7 @@ var getLength = function getLength(text) {
1295
1295
  * @desc:转换明度
1296
1296
  * @author huangbo
1297
1297
  * @date 2022年5月7日
1298
+ * @return {string,array} 元素类名或者id
1298
1299
  **/
1299
1300
  var getLightness = function getLightness($v, $i, $isLight) {
1300
1301
  var $value = $isLight ? $v + $brightnessStep1 * $i : $v - $brightnessStep2 * $i;
@@ -1302,6 +1303,21 @@ var getLightness = function getLightness($v, $i, $isLight) {
1302
1303
  return toFixed($value, 2);
1303
1304
  };
1304
1305
 
1306
+ /**
1307
+ * getMainConfig
1308
+ * @desc 获取系统配置
1309
+ * @author huangbo
1310
+ * @date 2022年5月7日
1311
+ * @param {function} callback - 回调函数
1312
+ **/
1313
+ var getMainConfig = function getMainConfig(callback) {
1314
+ ajax({ url: _config_api__WEBPACK_IMPORTED_MODULE_0__[/* mainConfig */ "db"] }).then(function (res) {
1315
+ if (res && res.rCode === 0) {
1316
+ callback(res.results);
1317
+ }
1318
+ }).catch(function () {});
1319
+ };
1320
+
1305
1321
  /**
1306
1322
  * getMinute
1307
1323
  * @desc 获取分钟
@@ -2932,6 +2948,7 @@ var watermark = function watermark(option) {
2932
2948
  getHour: getHour,
2933
2949
  getWeekNumber: getWeekNumber,
2934
2950
  getLength: getLength,
2951
+ getMainConfig: getMainConfig,
2935
2952
  getMinute: getMinute,
2936
2953
  getMonth: getMonth,
2937
2954
  getObjectType: getObjectType,
package/lib/table-form.js CHANGED
@@ -1295,6 +1295,7 @@ var getLength = function getLength(text) {
1295
1295
  * @desc:转换明度
1296
1296
  * @author huangbo
1297
1297
  * @date 2022年5月7日
1298
+ * @return {string,array} 元素类名或者id
1298
1299
  **/
1299
1300
  var getLightness = function getLightness($v, $i, $isLight) {
1300
1301
  var $value = $isLight ? $v + $brightnessStep1 * $i : $v - $brightnessStep2 * $i;
@@ -1302,6 +1303,21 @@ var getLightness = function getLightness($v, $i, $isLight) {
1302
1303
  return toFixed($value, 2);
1303
1304
  };
1304
1305
 
1306
+ /**
1307
+ * getMainConfig
1308
+ * @desc 获取系统配置
1309
+ * @author huangbo
1310
+ * @date 2022年5月7日
1311
+ * @param {function} callback - 回调函数
1312
+ **/
1313
+ var getMainConfig = function getMainConfig(callback) {
1314
+ ajax({ url: _config_api__WEBPACK_IMPORTED_MODULE_0__[/* mainConfig */ "db"] }).then(function (res) {
1315
+ if (res && res.rCode === 0) {
1316
+ callback(res.results);
1317
+ }
1318
+ }).catch(function () {});
1319
+ };
1320
+
1305
1321
  /**
1306
1322
  * getMinute
1307
1323
  * @desc 获取分钟
@@ -2932,6 +2948,7 @@ var watermark = function watermark(option) {
2932
2948
  getHour: getHour,
2933
2949
  getWeekNumber: getWeekNumber,
2934
2950
  getLength: getLength,
2951
+ getMainConfig: getMainConfig,
2935
2952
  getMinute: getMinute,
2936
2953
  getMonth: getMonth,
2937
2954
  getObjectType: getObjectType,
package/lib/tabs.js CHANGED
@@ -1295,6 +1295,7 @@ var getLength = function getLength(text) {
1295
1295
  * @desc:转换明度
1296
1296
  * @author huangbo
1297
1297
  * @date 2022年5月7日
1298
+ * @return {string,array} 元素类名或者id
1298
1299
  **/
1299
1300
  var getLightness = function getLightness($v, $i, $isLight) {
1300
1301
  var $value = $isLight ? $v + $brightnessStep1 * $i : $v - $brightnessStep2 * $i;
@@ -1302,6 +1303,21 @@ var getLightness = function getLightness($v, $i, $isLight) {
1302
1303
  return toFixed($value, 2);
1303
1304
  };
1304
1305
 
1306
+ /**
1307
+ * getMainConfig
1308
+ * @desc 获取系统配置
1309
+ * @author huangbo
1310
+ * @date 2022年5月7日
1311
+ * @param {function} callback - 回调函数
1312
+ **/
1313
+ var getMainConfig = function getMainConfig(callback) {
1314
+ ajax({ url: _config_api__WEBPACK_IMPORTED_MODULE_0__[/* mainConfig */ "db"] }).then(function (res) {
1315
+ if (res && res.rCode === 0) {
1316
+ callback(res.results);
1317
+ }
1318
+ }).catch(function () {});
1319
+ };
1320
+
1305
1321
  /**
1306
1322
  * getMinute
1307
1323
  * @desc 获取分钟
@@ -2932,6 +2948,7 @@ var watermark = function watermark(option) {
2932
2948
  getHour: getHour,
2933
2949
  getWeekNumber: getWeekNumber,
2934
2950
  getLength: getLength,
2951
+ getMainConfig: getMainConfig,
2935
2952
  getMinute: getMinute,
2936
2953
  getMonth: getMonth,
2937
2954
  getObjectType: getObjectType,
package/lib/tips.js CHANGED
@@ -1295,6 +1295,7 @@ var getLength = function getLength(text) {
1295
1295
  * @desc:转换明度
1296
1296
  * @author huangbo
1297
1297
  * @date 2022年5月7日
1298
+ * @return {string,array} 元素类名或者id
1298
1299
  **/
1299
1300
  var getLightness = function getLightness($v, $i, $isLight) {
1300
1301
  var $value = $isLight ? $v + $brightnessStep1 * $i : $v - $brightnessStep2 * $i;
@@ -1302,6 +1303,21 @@ var getLightness = function getLightness($v, $i, $isLight) {
1302
1303
  return toFixed($value, 2);
1303
1304
  };
1304
1305
 
1306
+ /**
1307
+ * getMainConfig
1308
+ * @desc 获取系统配置
1309
+ * @author huangbo
1310
+ * @date 2022年5月7日
1311
+ * @param {function} callback - 回调函数
1312
+ **/
1313
+ var getMainConfig = function getMainConfig(callback) {
1314
+ ajax({ url: _config_api__WEBPACK_IMPORTED_MODULE_0__[/* mainConfig */ "db"] }).then(function (res) {
1315
+ if (res && res.rCode === 0) {
1316
+ callback(res.results);
1317
+ }
1318
+ }).catch(function () {});
1319
+ };
1320
+
1305
1321
  /**
1306
1322
  * getMinute
1307
1323
  * @desc 获取分钟
@@ -2932,6 +2948,7 @@ var watermark = function watermark(option) {
2932
2948
  getHour: getHour,
2933
2949
  getWeekNumber: getWeekNumber,
2934
2950
  getLength: getLength,
2951
+ getMainConfig: getMainConfig,
2935
2952
  getMinute: getMinute,
2936
2953
  getMonth: getMonth,
2937
2954
  getObjectType: getObjectType,
package/lib/tree-group.js CHANGED
@@ -1295,6 +1295,7 @@ var getLength = function getLength(text) {
1295
1295
  * @desc:转换明度
1296
1296
  * @author huangbo
1297
1297
  * @date 2022年5月7日
1298
+ * @return {string,array} 元素类名或者id
1298
1299
  **/
1299
1300
  var getLightness = function getLightness($v, $i, $isLight) {
1300
1301
  var $value = $isLight ? $v + $brightnessStep1 * $i : $v - $brightnessStep2 * $i;
@@ -1302,6 +1303,21 @@ var getLightness = function getLightness($v, $i, $isLight) {
1302
1303
  return toFixed($value, 2);
1303
1304
  };
1304
1305
 
1306
+ /**
1307
+ * getMainConfig
1308
+ * @desc 获取系统配置
1309
+ * @author huangbo
1310
+ * @date 2022年5月7日
1311
+ * @param {function} callback - 回调函数
1312
+ **/
1313
+ var getMainConfig = function getMainConfig(callback) {
1314
+ ajax({ url: _config_api__WEBPACK_IMPORTED_MODULE_0__[/* mainConfig */ "db"] }).then(function (res) {
1315
+ if (res && res.rCode === 0) {
1316
+ callback(res.results);
1317
+ }
1318
+ }).catch(function () {});
1319
+ };
1320
+
1305
1321
  /**
1306
1322
  * getMinute
1307
1323
  * @desc 获取分钟
@@ -2932,6 +2948,7 @@ var watermark = function watermark(option) {
2932
2948
  getHour: getHour,
2933
2949
  getWeekNumber: getWeekNumber,
2934
2950
  getLength: getLength,
2951
+ getMainConfig: getMainConfig,
2935
2952
  getMinute: getMinute,
2936
2953
  getMonth: getMonth,
2937
2954
  getObjectType: getObjectType,
package/lib/tree.js CHANGED
@@ -1295,6 +1295,7 @@ var getLength = function getLength(text) {
1295
1295
  * @desc:转换明度
1296
1296
  * @author huangbo
1297
1297
  * @date 2022年5月7日
1298
+ * @return {string,array} 元素类名或者id
1298
1299
  **/
1299
1300
  var getLightness = function getLightness($v, $i, $isLight) {
1300
1301
  var $value = $isLight ? $v + $brightnessStep1 * $i : $v - $brightnessStep2 * $i;
@@ -1302,6 +1303,21 @@ var getLightness = function getLightness($v, $i, $isLight) {
1302
1303
  return toFixed($value, 2);
1303
1304
  };
1304
1305
 
1306
+ /**
1307
+ * getMainConfig
1308
+ * @desc 获取系统配置
1309
+ * @author huangbo
1310
+ * @date 2022年5月7日
1311
+ * @param {function} callback - 回调函数
1312
+ **/
1313
+ var getMainConfig = function getMainConfig(callback) {
1314
+ ajax({ url: _config_api__WEBPACK_IMPORTED_MODULE_0__[/* mainConfig */ "db"] }).then(function (res) {
1315
+ if (res && res.rCode === 0) {
1316
+ callback(res.results);
1317
+ }
1318
+ }).catch(function () {});
1319
+ };
1320
+
1305
1321
  /**
1306
1322
  * getMinute
1307
1323
  * @desc 获取分钟
@@ -2932,6 +2948,7 @@ var watermark = function watermark(option) {
2932
2948
  getHour: getHour,
2933
2949
  getWeekNumber: getWeekNumber,
2934
2950
  getLength: getLength,
2951
+ getMainConfig: getMainConfig,
2935
2952
  getMinute: getMinute,
2936
2953
  getMonth: getMonth,
2937
2954
  getObjectType: getObjectType,
package/lib/upload.js CHANGED
@@ -1294,6 +1294,7 @@ var getLength = function getLength(text) {
1294
1294
  * @desc:转换明度
1295
1295
  * @author huangbo
1296
1296
  * @date 2022年5月7日
1297
+ * @return {string,array} 元素类名或者id
1297
1298
  **/
1298
1299
  var getLightness = function getLightness($v, $i, $isLight) {
1299
1300
  var $value = $isLight ? $v + $brightnessStep1 * $i : $v - $brightnessStep2 * $i;
@@ -1301,6 +1302,21 @@ var getLightness = function getLightness($v, $i, $isLight) {
1301
1302
  return toFixed($value, 2);
1302
1303
  };
1303
1304
 
1305
+ /**
1306
+ * getMainConfig
1307
+ * @desc 获取系统配置
1308
+ * @author huangbo
1309
+ * @date 2022年5月7日
1310
+ * @param {function} callback - 回调函数
1311
+ **/
1312
+ var getMainConfig = function getMainConfig(callback) {
1313
+ ajax({ url: _config_api__WEBPACK_IMPORTED_MODULE_0__[/* mainConfig */ "db"] }).then(function (res) {
1314
+ if (res && res.rCode === 0) {
1315
+ callback(res.results);
1316
+ }
1317
+ }).catch(function () {});
1318
+ };
1319
+
1304
1320
  /**
1305
1321
  * getMinute
1306
1322
  * @desc 获取分钟
@@ -2931,6 +2947,7 @@ var watermark = function watermark(option) {
2931
2947
  getHour: getHour,
2932
2948
  getWeekNumber: getWeekNumber,
2933
2949
  getLength: getLength,
2950
+ getMainConfig: getMainConfig,
2934
2951
  getMinute: getMinute,
2935
2952
  getMonth: getMonth,
2936
2953
  getObjectType: getObjectType,
package/lib/utils/util.js CHANGED
@@ -1212,6 +1212,7 @@ var getLength = function getLength(text) {
1212
1212
  * @desc:转换明度
1213
1213
  * @author huangbo
1214
1214
  * @date 2022年5月7日
1215
+ * @return {string,array} 元素类名或者id
1215
1216
  **/
1216
1217
  var getLightness = function getLightness($v, $i, $isLight) {
1217
1218
  var $value = $isLight ? $v + $brightnessStep1 * $i : $v - $brightnessStep2 * $i;
@@ -1219,6 +1220,21 @@ var getLightness = function getLightness($v, $i, $isLight) {
1219
1220
  return toFixed($value, 2);
1220
1221
  };
1221
1222
 
1223
+ /**
1224
+ * getMainConfig
1225
+ * @desc 获取系统配置
1226
+ * @author huangbo
1227
+ * @date 2022年5月7日
1228
+ * @param {function} callback - 回调函数
1229
+ **/
1230
+ var getMainConfig = function getMainConfig(callback) {
1231
+ ajax({ url: _api.mainConfig }).then(function (res) {
1232
+ if (res && res.rCode === 0) {
1233
+ callback(res.results);
1234
+ }
1235
+ }).catch(function () {});
1236
+ };
1237
+
1222
1238
  /**
1223
1239
  * getMinute
1224
1240
  * @desc 获取分钟
@@ -2849,6 +2865,7 @@ exports.default = {
2849
2865
  getHour: getHour,
2850
2866
  getWeekNumber: getWeekNumber,
2851
2867
  getLength: getLength,
2868
+ getMainConfig: getMainConfig,
2852
2869
  getMinute: getMinute,
2853
2870
  getMonth: getMonth,
2854
2871
  getObjectType: getObjectType,
package/lib/wujie.js CHANGED
@@ -1295,6 +1295,7 @@ var getLength = function getLength(text) {
1295
1295
  * @desc:转换明度
1296
1296
  * @author huangbo
1297
1297
  * @date 2022年5月7日
1298
+ * @return {string,array} 元素类名或者id
1298
1299
  **/
1299
1300
  var getLightness = function getLightness($v, $i, $isLight) {
1300
1301
  var $value = $isLight ? $v + $brightnessStep1 * $i : $v - $brightnessStep2 * $i;
@@ -1302,6 +1303,21 @@ var getLightness = function getLightness($v, $i, $isLight) {
1302
1303
  return toFixed($value, 2);
1303
1304
  };
1304
1305
 
1306
+ /**
1307
+ * getMainConfig
1308
+ * @desc 获取系统配置
1309
+ * @author huangbo
1310
+ * @date 2022年5月7日
1311
+ * @param {function} callback - 回调函数
1312
+ **/
1313
+ var getMainConfig = function getMainConfig(callback) {
1314
+ ajax({ url: _config_api__WEBPACK_IMPORTED_MODULE_0__[/* mainConfig */ "db"] }).then(function (res) {
1315
+ if (res && res.rCode === 0) {
1316
+ callback(res.results);
1317
+ }
1318
+ }).catch(function () {});
1319
+ };
1320
+
1305
1321
  /**
1306
1322
  * getMinute
1307
1323
  * @desc 获取分钟
@@ -2932,6 +2948,7 @@ var watermark = function watermark(option) {
2932
2948
  getHour: getHour,
2933
2949
  getWeekNumber: getWeekNumber,
2934
2950
  getLength: getLength,
2951
+ getMainConfig: getMainConfig,
2935
2952
  getMinute: getMinute,
2936
2953
  getMonth: getMonth,
2937
2954
  getObjectType: getObjectType,
package/lib/wxlogin.js CHANGED
@@ -1295,6 +1295,7 @@ var getLength = function getLength(text) {
1295
1295
  * @desc:转换明度
1296
1296
  * @author huangbo
1297
1297
  * @date 2022年5月7日
1298
+ * @return {string,array} 元素类名或者id
1298
1299
  **/
1299
1300
  var getLightness = function getLightness($v, $i, $isLight) {
1300
1301
  var $value = $isLight ? $v + $brightnessStep1 * $i : $v - $brightnessStep2 * $i;
@@ -1302,6 +1303,21 @@ var getLightness = function getLightness($v, $i, $isLight) {
1302
1303
  return toFixed($value, 2);
1303
1304
  };
1304
1305
 
1306
+ /**
1307
+ * getMainConfig
1308
+ * @desc 获取系统配置
1309
+ * @author huangbo
1310
+ * @date 2022年5月7日
1311
+ * @param {function} callback - 回调函数
1312
+ **/
1313
+ var getMainConfig = function getMainConfig(callback) {
1314
+ ajax({ url: _config_api__WEBPACK_IMPORTED_MODULE_0__[/* mainConfig */ "db"] }).then(function (res) {
1315
+ if (res && res.rCode === 0) {
1316
+ callback(res.results);
1317
+ }
1318
+ }).catch(function () {});
1319
+ };
1320
+
1305
1321
  /**
1306
1322
  * getMinute
1307
1323
  * @desc 获取分钟
@@ -2932,6 +2948,7 @@ var watermark = function watermark(option) {
2932
2948
  getHour: getHour,
2933
2949
  getWeekNumber: getWeekNumber,
2934
2950
  getLength: getLength,
2951
+ getMainConfig: getMainConfig,
2935
2952
  getMinute: getMinute,
2936
2953
  getMonth: getMonth,
2937
2954
  getObjectType: getObjectType,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eoss-ui",
3
- "version": "0.5.34",
3
+ "version": "0.5.35",
4
4
  "description": "eoss内部业务组件",
5
5
  "main": "lib/eoss-ui.common.js",
6
6
  "files": [
@@ -291,12 +291,12 @@
291
291
  <span class="es-login-icp-item" :style="_copyrightStyle">{{
292
292
  icpInfo.copyright_unit
293
293
  }}</span>
294
- <a
294
+ <span
295
295
  class="es-login-icp-item"
296
296
  target="_blank"
297
297
  :style="_copyrightStyle"
298
298
  :href="icpInfo.copyright_icp_url"
299
- >{{ icpInfo.copyright_icp }}</a
299
+ >{{ icpInfo.copyright_icp }}</span
300
300
  >
301
301
  </div>
302
302
  <es-dialog
@@ -778,6 +778,7 @@ export default {
778
778
  } else {
779
779
  this.getLogin();
780
780
  document.addEventListener('keyup', this.doLogin);
781
+ document.addEventListener('keydown', this.forbiddenTab);
781
782
  }
782
783
  },
783
784
  mounted() {
@@ -1494,10 +1495,16 @@ export default {
1494
1495
  },
1495
1496
  handleSuccess() {
1496
1497
  this.showResetPassword = false;
1498
+ },
1499
+ forbiddenTab(e) {
1500
+ if (e.keyCode == 9) {
1501
+ return false;
1502
+ }
1497
1503
  }
1498
1504
  },
1499
1505
  beforeDestroy() {
1500
1506
  document.removeEventListener('keyup', this.doLogin);
1507
+ document.removeEventListener('keydown', this.forbiddenTab);
1501
1508
  }
1502
1509
  };
1503
1510
  </script>
@@ -395,7 +395,7 @@ export default {
395
395
  this.checkPassword = new RegExp(results.checkPassword);
396
396
  }
397
397
  if (results.checkPasswordMsg) {
398
- this.checkPasswordMsg = new RegExp(results.checkPasswordMsg);
398
+ this.checkPasswordMsg = results.checkPasswordMsg;
399
399
  }
400
400
  } else {
401
401
  let msg = res.msg || '系统错误,请联系管理员!';
@@ -476,10 +476,12 @@ export default {
476
476
  data: data.password,
477
477
  key: this.secret
478
478
  });
479
- data.oldPassword = util.esmEncrypt({
480
- data: data.oldPassword,
481
- key: this.secret
482
- });
479
+ if (data.oldPassword) {
480
+ data.oldPassword = util.esmEncrypt({
481
+ data: data.oldPassword,
482
+ key: this.secret
483
+ });
484
+ }
483
485
  }
484
486
  if (this.activeIndex == '0') {
485
487
  data.operationCheckCode = this.operationCheckCode;
@@ -928,6 +928,9 @@ export default {
928
928
  sessionStorage.setItem('sysLogoIco', results[i]);
929
929
  util.setFavicon(results[i]);
930
930
  }
931
+ if (i === 'subsystemExtend' && results[i].themeColor) {
932
+ this.color = unescape(results[i].themeColor).toLowerCase();
933
+ }
931
934
  if (i === 'userStyle' && results[i].color) {
932
935
  this.color = unescape(results[i].color).toLowerCase();
933
936
  }
@@ -972,26 +975,14 @@ export default {
972
975
  }
973
976
  return true;
974
977
  }
975
- util
976
- .ajax({ url: this.mainConfig })
977
- .then((res) => {
978
- if (res && res.rCode === 0) {
979
- this.setConfig(res.results, 1);
980
- if (this.remote) {
981
- this.getMenu();
982
- } else {
983
- this.renderMenu();
984
- }
985
- } else {
986
- let msg = res.msg || '系统错误,请联系管理员!';
987
- this.$message.error(msg);
988
- }
989
- })
990
- .catch((err) => {
991
- if (err.message && err.message !== 'canceled') {
992
- this.$message.error(err.message);
993
- }
994
- });
978
+ util.getMainConfig((res) => {
979
+ this.setConfig(res, 1);
980
+ if (this.remote) {
981
+ this.getMenu();
982
+ } else {
983
+ this.renderMenu();
984
+ }
985
+ });
995
986
  },
996
987
  reGetConfig() {
997
988
  util
@@ -267,7 +267,7 @@ export default {
267
267
  this.checkPassword = new RegExp(results.checkPassword);
268
268
  }
269
269
  if (results.checkPasswordMsg) {
270
- this.checkPasswordMsg = new RegExp(results.checkPasswordMsg);
270
+ this.checkPasswordMsg = results.checkPasswordMsg;
271
271
  }
272
272
  this.results = results.simpleUserInfo;
273
273
  this.values.orgName = results.simpleUserInfo.orgName;
package/src/index.js CHANGED
@@ -117,7 +117,7 @@ if (typeof window !== 'undefined' && window.Vue) {
117
117
  }
118
118
 
119
119
  export default {
120
- version: '0.5.34',
120
+ version: '0.5.35',
121
121
  install,
122
122
  Button,
123
123
  ButtonGroup,