From 29f516a337f6e49033859957354232e25c665513 Mon Sep 17 00:00:00 2001 From: wh <1044541107@qq.com> Date: Fri, 18 Jul 2025 00:50:38 +0800 Subject: [PATCH] =?UTF-8?q?feat=EF=BC=9A=E7=94=A8dialog=E6=9B=BF=E6=8D=A2?= =?UTF-8?q?=E5=AD=97=E5=85=B8=E9=A1=B5=E9=9D=A2=E5=88=A0=E9=99=A4=E6=97=B6?= =?UTF-8?q?=E5=8E=9F=E7=94=A8=E7=9A=84modal=EF=BC=9Bmenu/index=E4=B8=AD?= =?UTF-8?q?=E7=9A=84adaptabilityOptions=E5=8F=98=E9=87=8F=E5=80=BC?= =?UTF-8?q?=E6=94=B9=E6=88=90=E4=BB=8E=E5=AD=97=E5=85=B8=E4=B8=AD=E8=8E=B7?= =?UTF-8?q?=E5=8F=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- auto-imports.d.ts | 9 --- src/api/dictApi.ts | 2 +- src/views/system/dict/components/DictMain.vue | 59 ++++++++++--------- src/views/system/dict/components/DictNav.vue | 39 ++++++------ src/views/system/menu/index.vue | 20 +++++-- 5 files changed, 68 insertions(+), 61 deletions(-) diff --git a/auto-imports.d.ts b/auto-imports.d.ts index af19dfd..a950714 100644 --- a/auto-imports.d.ts +++ b/auto-imports.d.ts @@ -7,8 +7,6 @@ export {} declare global { const EffectScope: typeof import('vue')['EffectScope'] - const addChildMenu: typeof import('./src/api/menu')['addChildMenu'] - const addParentMenu: typeof import('./src/api/menu')['addParentMenu'] const addChildDict: typeof import('./src/api/dictApi')['addChildDict'] const addChildMenu: typeof import('./src/api/menu')['addChildMenu'] const addParentDict: typeof import('./src/api/dictApi')['addParentDict'] @@ -18,9 +16,6 @@ declare global { const customRef: typeof import('vue')['customRef'] const defineAsyncComponent: typeof import('vue')['defineAsyncComponent'] const defineComponent: typeof import('vue')['defineComponent'] - const deleteMenu: typeof import('./src/api/menu')['deleteMenu'] - const deleteUser: typeof import('./src/api/roleApi')['deleteUser'] - const editParentMenu: typeof import('./src/api/menu')['editParentMenu'] const deleteChildDict: typeof import('./src/api/dictApi')['deleteChildDict'] const deleteMenu: typeof import('./src/api/menu')['deleteMenu'] const deleteParentDict: typeof import('./src/api/dictApi')['deleteParentDict'] @@ -31,10 +26,6 @@ declare global { const enable: typeof import('./src/api/roleApi')['enable'] const enableRole: typeof import('./src/api/roleApi')['enableRole'] const getAllMenu: typeof import('./src/api/menu')['getAllMenu'] - const eidtChildMenu: typeof import('./src/api/menu')['eidtChildMenu'] - const enable: typeof import('./src/api/roleApi')['enable'] - const enableRole: typeof import('./src/api/roleApi')['enableRole'] - const getAllMenu: typeof import('./src/api/menu')['getAllMenu'] const getCurrentInstance: typeof import('vue')['getCurrentInstance'] const getCurrentScope: typeof import('vue')['getCurrentScope'] const getDict: typeof import('./src/api/dictApi')['getDict'] diff --git a/src/api/dictApi.ts b/src/api/dictApi.ts index 2eb2d0b..d8a8fc8 100644 --- a/src/api/dictApi.ts +++ b/src/api/dictApi.ts @@ -79,7 +79,7 @@ export function addChildDict(data: DictRowQuery) { * @param tag 用逗号连接选择的tags数组 * @returns */ -export function getDict(value: string, tag: string): Promise { +export function getDict(value: string, tag: string | null = null): Promise { return http({ url: DictChildURL, method: 'GET', diff --git a/src/views/system/dict/components/DictMain.vue b/src/views/system/dict/components/DictMain.vue index 3fc10f1..eb33ba4 100644 --- a/src/views/system/dict/components/DictMain.vue +++ b/src/views/system/dict/components/DictMain.vue @@ -10,8 +10,8 @@

{{ tableTitle }}