mirror of
https://gitee.com/lab1024/smart-admin.git
synced 2025-11-14 06:33:47 +08:00
【V3.5.0】1、【新增】轻量级定时任务 SmartJob;2、【新增】站内信;3、【新增】个人中心;4、【新增】岗位管理;5、【优化】部门员工管理
This commit is contained in:
@@ -22,6 +22,7 @@ export default {
|
||||
*/
|
||||
smartEnumPlugin.getDescByValue = function (constantName, value) {
|
||||
if (!smartEnumWrapper || !Object.prototype.hasOwnProperty.call(smartEnumWrapper, constantName)) {
|
||||
console.error('无法找到变量名称:' + constantName + ',请检查 /constants/index.js 文件中是否引入此变量!');
|
||||
return '';
|
||||
}
|
||||
// boolean类型需要做特殊处理
|
||||
@@ -44,6 +45,7 @@ export default {
|
||||
*/
|
||||
smartEnumPlugin.getValueDescList = function (constantName) {
|
||||
if (!Object.prototype.hasOwnProperty.call(smartEnumWrapper, constantName)) {
|
||||
console.error('无法找到变量名称:' + constantName + ',请检查 /constants/index.js 文件中是否引入此变量!');
|
||||
return [];
|
||||
}
|
||||
const result = [];
|
||||
@@ -61,6 +63,7 @@ export default {
|
||||
*/
|
||||
smartEnumPlugin.getValueDesc = function (constantName) {
|
||||
if (!Object.prototype.hasOwnProperty.call(smartEnumWrapper, constantName)) {
|
||||
console.error('无法找到变量名称:' + constantName + ',请检查 /constants/index.js 文件中是否引入此变量!');
|
||||
return {};
|
||||
}
|
||||
let smartEnum = smartEnumWrapper[constantName];
|
||||
|
||||
Reference in New Issue
Block a user