diff --git a/src/types/api/system/dict.ts b/src/types/api/system/dict.ts index fb1d7d3..cf02597 100644 --- a/src/types/api/system/dict.ts +++ b/src/types/api/system/dict.ts @@ -21,6 +21,8 @@ export interface DictDataQueryParams extends PageDomain { dictName?: string; /** 字典标签 */ dictLabel?: string; + /** 字典类型 */ + dictType?: string; /** 状态 */ status?: string; } diff --git a/src/views/system/dict/detail.vue b/src/views/system/dict/detail.vue new file mode 100644 index 0000000..f3cd186 --- /dev/null +++ b/src/views/system/dict/detail.vue @@ -0,0 +1,203 @@ + + + + + + + {{ row.dictName }} + {{ row.dictType }} + + + + + + + + 加载中... + + + + + + 暂无字典数据 + + + + + + + + {{ dataList.length }} + 共计条目 + + + + + {{ normalCount }} + 正常 + + + + + {{ disabledCount }} + 停用 + + + + + + + + 标签 + + {{ item.dictLabel }} + {{ item.dictLabel }} + + + + 键值 + {{ item.dictValue }} + + + 状态 + + + {{ item.status === '0' ? '正常' : '停用' }} + + + + + + + + + + + + diff --git a/src/views/system/dict/index.vue b/src/views/system/dict/index.vue index aaf2e3d..1942014 100644 --- a/src/views/system/dict/index.vue +++ b/src/views/system/dict/index.vue @@ -106,11 +106,11 @@ - - - {{ scope.row.dictType }} - - + + + {{ scope.row.dictType }} + + @@ -123,9 +123,10 @@ {{ parseTime(scope.row.createTime) }} - + 修改 + 列表 删除 @@ -176,10 +177,13 @@ + +