diff --git a/src/apis/system/dict.ts b/src/apis/system/dict.ts index 3b8d8f3..18121ca 100644 --- a/src/apis/system/dict.ts +++ b/src/apis/system/dict.ts @@ -4,8 +4,8 @@ import http from '@/utils/http' const BASE_URL = '/system/dict' /** @desc 查询字典列表 */ -export function listDict(query: System.DictPageQuery) { - return http.get>(`${BASE_URL}`, query) +export function listDict(query: System.DictQuery) { + return http.get(`${BASE_URL}/list`, query) } /** @desc 查询字典详情 */ diff --git a/src/apis/system/type.ts b/src/apis/system/type.ts index f0a1471..68e3f3c 100644 --- a/src/apis/system/type.ts +++ b/src/apis/system/type.ts @@ -146,9 +146,6 @@ export interface DictQuery { sort: Array } -export interface DictPageQuery extends DictQuery, PageQuery { -} - export type DictItemResp = { id: string label: string diff --git a/src/views/system/dict/item/DictItemAddModal.vue b/src/views/system/dict/DictItemAddModal.vue similarity index 100% rename from src/views/system/dict/item/DictItemAddModal.vue rename to src/views/system/dict/DictItemAddModal.vue diff --git a/src/views/system/dict/index.vue b/src/views/system/dict/index.vue index 4fcc0f3..b8775e1 100644 --- a/src/views/system/dict/index.vue +++ b/src/views/system/dict/index.vue @@ -1,59 +1,70 @@ diff --git a/src/views/system/dict/item/index.vue b/src/views/system/dict/item/index.vue deleted file mode 100644 index a8bd274..0000000 --- a/src/views/system/dict/item/index.vue +++ /dev/null @@ -1,156 +0,0 @@ - - - - - diff --git a/src/views/system/dict/DictAddModal.vue b/src/views/system/dict/tree/DictAddModal.vue similarity index 100% rename from src/views/system/dict/DictAddModal.vue rename to src/views/system/dict/tree/DictAddModal.vue diff --git a/src/views/system/dict/tree/RightMenu.vue b/src/views/system/dict/tree/RightMenu.vue new file mode 100644 index 0000000..7e1a38a --- /dev/null +++ b/src/views/system/dict/tree/RightMenu.vue @@ -0,0 +1,62 @@ + + + + + diff --git a/src/views/system/dict/tree/index.vue b/src/views/system/dict/tree/index.vue new file mode 100644 index 0000000..ad55aec --- /dev/null +++ b/src/views/system/dict/tree/index.vue @@ -0,0 +1,212 @@ + + + + +