1. 修改 MenuDO 的字段,menuId 改成 id,menuName 改成 name
2. 添加 Menu 的创建、修改、删除接口
This commit is contained in:
@@ -6,7 +6,8 @@
|
||||
import store from '@/store'
|
||||
|
||||
export const DICT_TYPE = {
|
||||
SYS_COMMON_STATUS: 'sys_common_status'
|
||||
SYS_COMMON_STATUS: 'sys_common_status',
|
||||
SYS_MENU_TYPE: 'menu_type'
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -28,8 +29,8 @@ export function getDictDataLabel(dictType, value) {
|
||||
// 获取 value 对应的展示名
|
||||
value = value + '' // 强制转换成字符串,因为 DictData 小类数值,是字符串
|
||||
for (const dictData of dictDatas) {
|
||||
if (dictData.dictValue === value) {
|
||||
return dictData.dictLabel
|
||||
if (dictData.value === value) {
|
||||
return dictData.label
|
||||
}
|
||||
}
|
||||
return ''
|
||||
|
||||
Reference in New Issue
Block a user