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
@@ -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/button.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,
@@ -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,
@@ -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/data-table.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,
@@ -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/dialog.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,
@@ -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,
@@ -44956,8 +44973,8 @@ layout_src_main.install = function (Vue) {
44956
44973
  };
44957
44974
 
44958
44975
  /* harmony default export */ var layout = (layout_src_main);
44959
- // 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=e28c2dd0&
44960
- var mainvue_type_template_id_e28c2dd0_render = function () {
44976
+ // 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=413b11b3&
44977
+ var mainvue_type_template_id_413b11b3_render = function () {
44961
44978
  var _vm = this
44962
44979
  var _h = _vm.$createElement
44963
44980
  var _c = _vm._self._c || _h
@@ -45737,7 +45754,7 @@ var mainvue_type_template_id_e28c2dd0_render = function () {
45737
45754
  [_vm._v(_vm._s(_vm.icpInfo.copyright_unit))]
45738
45755
  ),
45739
45756
  _c(
45740
- "a",
45757
+ "span",
45741
45758
  {
45742
45759
  staticClass: "es-login-icp-item",
45743
45760
  style: _vm._copyrightStyle,
@@ -45836,14 +45853,14 @@ var mainvue_type_template_id_e28c2dd0_render = function () {
45836
45853
  )
45837
45854
  : _vm._e()
45838
45855
  }
45839
- var mainvue_type_template_id_e28c2dd0_staticRenderFns = []
45840
- mainvue_type_template_id_e28c2dd0_render._withStripped = true
45856
+ var mainvue_type_template_id_413b11b3_staticRenderFns = []
45857
+ mainvue_type_template_id_413b11b3_render._withStripped = true
45841
45858
 
45842
45859
 
45843
- // CONCATENATED MODULE: ./packages/login/src/main.vue?vue&type=template&id=e28c2dd0&
45860
+ // CONCATENATED MODULE: ./packages/login/src/main.vue?vue&type=template&id=413b11b3&
45844
45861
 
45845
- // 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&
45846
- var resetPasswordvue_type_template_id_7e3a7461_render = function () {
45862
+ // 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=28f463b9&
45863
+ var resetPasswordvue_type_template_id_28f463b9_render = function () {
45847
45864
  var _vm = this
45848
45865
  var _h = _vm.$createElement
45849
45866
  var _c = _vm._self._c || _h
@@ -45903,11 +45920,11 @@ var resetPasswordvue_type_template_id_7e3a7461_render = function () {
45903
45920
  1
45904
45921
  )
45905
45922
  }
45906
- var resetPasswordvue_type_template_id_7e3a7461_staticRenderFns = []
45907
- resetPasswordvue_type_template_id_7e3a7461_render._withStripped = true
45923
+ var resetPasswordvue_type_template_id_28f463b9_staticRenderFns = []
45924
+ resetPasswordvue_type_template_id_28f463b9_render._withStripped = true
45908
45925
 
45909
45926
 
45910
- // CONCATENATED MODULE: ./packages/login/src/resetPassword.vue?vue&type=template&id=7e3a7461&
45927
+ // CONCATENATED MODULE: ./packages/login/src/resetPassword.vue?vue&type=template&id=28f463b9&
45911
45928
 
45912
45929
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/login/src/resetPassword.vue?vue&type=script&lang=js&
45913
45930
  var resetPasswordvue_type_script_lang_js_extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
@@ -46219,7 +46236,7 @@ function resetPasswordvue_type_script_lang_js_objectWithoutProperties(obj, keys)
46219
46236
  _this.checkPassword = new RegExp(results.checkPassword);
46220
46237
  }
46221
46238
  if (results.checkPasswordMsg) {
46222
- _this.checkPasswordMsg = new RegExp(results.checkPasswordMsg);
46239
+ _this.checkPasswordMsg = results.checkPasswordMsg;
46223
46240
  }
46224
46241
  } else {
46225
46242
  var msg = res.msg || '系统错误,请联系管理员!';
@@ -46305,10 +46322,12 @@ function resetPasswordvue_type_script_lang_js_objectWithoutProperties(obj, keys)
46305
46322
  data: data.password,
46306
46323
  key: this.secret
46307
46324
  });
46308
- data.oldPassword = utils_util["a" /* default */].esmEncrypt({
46309
- data: data.oldPassword,
46310
- key: this.secret
46311
- });
46325
+ if (data.oldPassword) {
46326
+ data.oldPassword = utils_util["a" /* default */].esmEncrypt({
46327
+ data: data.oldPassword,
46328
+ key: this.secret
46329
+ });
46330
+ }
46312
46331
  }
46313
46332
  if (this.activeIndex == '0') {
46314
46333
  data.operationCheckCode = this.operationCheckCode;
@@ -46385,8 +46404,8 @@ function resetPasswordvue_type_script_lang_js_objectWithoutProperties(obj, keys)
46385
46404
 
46386
46405
  var resetPassword_component = normalizeComponent(
46387
46406
  src_resetPasswordvue_type_script_lang_js_,
46388
- resetPasswordvue_type_template_id_7e3a7461_render,
46389
- resetPasswordvue_type_template_id_7e3a7461_staticRenderFns,
46407
+ resetPasswordvue_type_template_id_28f463b9_render,
46408
+ resetPasswordvue_type_template_id_28f463b9_staticRenderFns,
46390
46409
  false,
46391
46410
  null,
46392
46411
  null,
@@ -47138,6 +47157,7 @@ var login_src_mainvue_type_script_lang_js_extends = Object.assign || function (t
47138
47157
  } else {
47139
47158
  this.getLogin();
47140
47159
  document.addEventListener('keyup', this.doLogin);
47160
+ document.addEventListener('keydown', this.forbiddenTab);
47141
47161
  }
47142
47162
  },
47143
47163
  mounted: function mounted() {
@@ -47794,10 +47814,16 @@ var login_src_mainvue_type_script_lang_js_extends = Object.assign || function (t
47794
47814
  },
47795
47815
  handleSuccess: function handleSuccess() {
47796
47816
  this.showResetPassword = false;
47817
+ },
47818
+ forbiddenTab: function forbiddenTab(e) {
47819
+ if (e.keyCode == 9) {
47820
+ return false;
47821
+ }
47797
47822
  }
47798
47823
  },
47799
47824
  beforeDestroy: function beforeDestroy() {
47800
47825
  document.removeEventListener('keyup', this.doLogin);
47826
+ document.removeEventListener('keydown', this.forbiddenTab);
47801
47827
  }
47802
47828
  });
47803
47829
  // CONCATENATED MODULE: ./packages/login/src/main.vue?vue&type=script&lang=js&
@@ -47812,8 +47838,8 @@ var login_src_mainvue_type_script_lang_js_extends = Object.assign || function (t
47812
47838
 
47813
47839
  var login_src_main_component = normalizeComponent(
47814
47840
  packages_login_src_mainvue_type_script_lang_js_,
47815
- mainvue_type_template_id_e28c2dd0_render,
47816
- mainvue_type_template_id_e28c2dd0_staticRenderFns,
47841
+ mainvue_type_template_id_413b11b3_render,
47842
+ mainvue_type_template_id_413b11b3_staticRenderFns,
47817
47843
  false,
47818
47844
  null,
47819
47845
  null,
@@ -47830,8 +47856,8 @@ login_src_main.install = function (Vue) {
47830
47856
  };
47831
47857
 
47832
47858
  /* harmony default export */ var login = (login_src_main);
47833
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/main.vue?vue&type=template&id=79a0b910&
47834
- var mainvue_type_template_id_79a0b910_render = function () {
47859
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/main.vue?vue&type=template&id=31c26b8e&
47860
+ var mainvue_type_template_id_31c26b8e_render = function () {
47835
47861
  var _vm = this
47836
47862
  var _h = _vm.$createElement
47837
47863
  var _c = _vm._self._c || _h
@@ -48256,14 +48282,14 @@ var mainvue_type_template_id_79a0b910_render = function () {
48256
48282
  1
48257
48283
  )
48258
48284
  }
48259
- var mainvue_type_template_id_79a0b910_staticRenderFns = []
48260
- mainvue_type_template_id_79a0b910_render._withStripped = true
48285
+ var mainvue_type_template_id_31c26b8e_staticRenderFns = []
48286
+ mainvue_type_template_id_31c26b8e_render._withStripped = true
48261
48287
 
48262
48288
 
48263
- // CONCATENATED MODULE: ./packages/main/src/main.vue?vue&type=template&id=79a0b910&
48289
+ // CONCATENATED MODULE: ./packages/main/src/main.vue?vue&type=template&id=31c26b8e&
48264
48290
 
48265
- // 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&
48266
- var userinfovue_type_template_id_356fcf36_render = function () {
48291
+ // 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=137dd243&
48292
+ var userinfovue_type_template_id_137dd243_render = function () {
48267
48293
  var _vm = this
48268
48294
  var _h = _vm.$createElement
48269
48295
  var _c = _vm._self._c || _h
@@ -48279,11 +48305,11 @@ var userinfovue_type_template_id_356fcf36_render = function () {
48279
48305
  2
48280
48306
  )
48281
48307
  }
48282
- var userinfovue_type_template_id_356fcf36_staticRenderFns = []
48283
- userinfovue_type_template_id_356fcf36_render._withStripped = true
48308
+ var userinfovue_type_template_id_137dd243_staticRenderFns = []
48309
+ userinfovue_type_template_id_137dd243_render._withStripped = true
48284
48310
 
48285
48311
 
48286
- // CONCATENATED MODULE: ./packages/main/src/userinfo.vue?vue&type=template&id=356fcf36&
48312
+ // CONCATENATED MODULE: ./packages/main/src/userinfo.vue?vue&type=template&id=137dd243&
48287
48313
 
48288
48314
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/userinfo.vue?vue&type=script&lang=js&
48289
48315
  //
@@ -48513,7 +48539,7 @@ userinfovue_type_template_id_356fcf36_render._withStripped = true
48513
48539
  _this2.checkPassword = new RegExp(results.checkPassword);
48514
48540
  }
48515
48541
  if (results.checkPasswordMsg) {
48516
- _this2.checkPasswordMsg = new RegExp(results.checkPasswordMsg);
48542
+ _this2.checkPasswordMsg = results.checkPasswordMsg;
48517
48543
  }
48518
48544
  _this2.results = results.simpleUserInfo;
48519
48545
  _this2.values.orgName = results.simpleUserInfo.orgName;
@@ -48699,8 +48725,8 @@ userinfovue_type_template_id_356fcf36_render._withStripped = true
48699
48725
 
48700
48726
  var userinfo_component = normalizeComponent(
48701
48727
  src_userinfovue_type_script_lang_js_,
48702
- userinfovue_type_template_id_356fcf36_render,
48703
- userinfovue_type_template_id_356fcf36_staticRenderFns,
48728
+ userinfovue_type_template_id_137dd243_render,
48729
+ userinfovue_type_template_id_137dd243_staticRenderFns,
48704
48730
  false,
48705
48731
  null,
48706
48732
  null,
@@ -50933,6 +50959,9 @@ var log = utils_util["a" /* default */].getParams('console');
50933
50959
  sessionStorage.setItem('sysLogoIco', results[i]);
50934
50960
  utils_util["a" /* default */].setFavicon(results[i]);
50935
50961
  }
50962
+ if (i === 'subsystemExtend' && results[i].themeColor) {
50963
+ this.color = unescape(results[i].themeColor).toLowerCase();
50964
+ }
50936
50965
  if (i === 'userStyle' && results[i].color) {
50937
50966
  this.color = unescape(results[i].color).toLowerCase();
50938
50967
  }
@@ -50975,21 +51004,12 @@ var log = utils_util["a" /* default */].getParams('console');
50975
51004
  }
50976
51005
  return true;
50977
51006
  }
50978
- utils_util["a" /* default */].ajax({ url: this.mainConfig }).then(function (res) {
50979
- if (res && res.rCode === 0) {
50980
- _this3.setConfig(res.results, 1);
50981
- if (_this3.remote) {
50982
- _this3.getMenu();
50983
- } else {
50984
- _this3.renderMenu();
50985
- }
51007
+ utils_util["a" /* default */].getMainConfig(function (res) {
51008
+ _this3.setConfig(res, 1);
51009
+ if (_this3.remote) {
51010
+ _this3.getMenu();
50986
51011
  } else {
50987
- var msg = res.msg || '系统错误,请联系管理员!';
50988
- _this3.$message.error(msg);
50989
- }
50990
- }).catch(function (err) {
50991
- if (err.message && err.message !== 'canceled') {
50992
- _this3.$message.error(err.message);
51012
+ _this3.renderMenu();
50993
51013
  }
50994
51014
  });
50995
51015
  },
@@ -52031,8 +52051,8 @@ var log = utils_util["a" /* default */].getParams('console');
52031
52051
 
52032
52052
  var main_src_main_component = normalizeComponent(
52033
52053
  packages_main_src_mainvue_type_script_lang_js_,
52034
- mainvue_type_template_id_79a0b910_render,
52035
- mainvue_type_template_id_79a0b910_staticRenderFns,
52054
+ mainvue_type_template_id_31c26b8e_render,
52055
+ mainvue_type_template_id_31c26b8e_staticRenderFns,
52036
52056
  false,
52037
52057
  null,
52038
52058
  null,
@@ -71420,7 +71440,7 @@ if (typeof window !== 'undefined' && window.Vue) {
71420
71440
  }
71421
71441
 
71422
71442
  /* harmony default export */ var src_0 = __webpack_exports__["default"] = ({
71423
- version: '0.5.34',
71443
+ version: '0.5.35',
71424
71444
  install: install,
71425
71445
  Button: packages_button,
71426
71446
  ButtonGroup: button_group,
package/lib/flow-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/flow-list.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/flow.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,