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.
- package/lib/button-group.js +17 -0
- package/lib/button.js +17 -0
- package/lib/checkbox-group.js +17 -0
- package/lib/data-table-form.js +17 -0
- package/lib/data-table.js +17 -0
- package/lib/date-picker.js +17 -0
- package/lib/dialog.js +17 -0
- package/lib/eoss-ui.common.js +70 -50
- package/lib/flow-group.js +17 -0
- package/lib/flow-list.js +17 -0
- package/lib/flow.js +17 -0
- package/lib/form.js +17 -0
- package/lib/handle-user.js +17 -0
- package/lib/handler.js +17 -0
- package/lib/index.js +1 -1
- package/lib/input-number.js +17 -0
- package/lib/input.js +17 -0
- package/lib/login.js +41 -15
- package/lib/main.js +35 -24
- package/lib/nav.js +17 -0
- package/lib/page.js +17 -0
- package/lib/player.js +17 -0
- package/lib/qr-code.js +17 -0
- package/lib/radio-group.js +17 -0
- package/lib/retrial-auth.js +17 -0
- package/lib/select-ganged.js +17 -0
- package/lib/select.js +17 -0
- package/lib/selector-panel.js +17 -0
- package/lib/selector.js +17 -0
- package/lib/sizer.js +17 -0
- package/lib/steps.js +17 -0
- package/lib/switch.js +17 -0
- package/lib/table-form.js +17 -0
- package/lib/tabs.js +17 -0
- package/lib/tips.js +17 -0
- package/lib/tree-group.js +17 -0
- package/lib/tree.js +17 -0
- package/lib/upload.js +17 -0
- package/lib/utils/util.js +17 -0
- package/lib/wujie.js +17 -0
- package/lib/wxlogin.js +17 -0
- package/package.json +1 -1
- package/packages/login/src/main.vue +9 -2
- package/packages/login/src/resetPassword.vue +7 -5
- package/packages/main/src/main.vue +11 -20
- package/packages/main/src/userinfo.vue +1 -1
- package/src/index.js +1 -1
- package/src/utils/util.js +22 -2
package/lib/selector-panel.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/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
|
@@ -291,12 +291,12 @@
|
|
|
291
291
|
<span class="es-login-icp-item" :style="_copyrightStyle">{{
|
|
292
292
|
icpInfo.copyright_unit
|
|
293
293
|
}}</span>
|
|
294
|
-
<
|
|
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 }}</
|
|
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 =
|
|
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
|
|
480
|
-
data
|
|
481
|
-
|
|
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
|
-
.
|
|
977
|
-
.
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
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 =
|
|
270
|
+
this.checkPasswordMsg = results.checkPasswordMsg;
|
|
271
271
|
}
|
|
272
272
|
this.results = results.simpleUserInfo;
|
|
273
273
|
this.values.orgName = results.simpleUserInfo.orgName;
|