From 2736c178c5bbb5ff864027e1cff379d3591d544d Mon Sep 17 00:00:00 2001 From: Azir-11 <2075125282@qq.com> Date: Thu, 4 Dec 2025 16:03:02 +0800 Subject: [PATCH] =?UTF-8?q?feat-wip(components):=20=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E5=AD=97=E5=85=B8=E7=9B=B8=E5=85=B3=E9=A1=B5=E9=9D=A2=E4=BB=A3?= =?UTF-8?q?=E7=A0=81=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/locales/langs/en-us.ts | 3 +- src/locales/langs/zh-cn.ts | 3 +- src/store/modules/tab/index.ts | 1 + src/typings/app.d.ts | 1 + src/views/sys/core/dictionary/index.vue | 5 + .../modules/dictionary-operate-drawer.vue | 97 +------------------ 6 files changed, 12 insertions(+), 98 deletions(-) diff --git a/src/locales/langs/en-us.ts b/src/locales/langs/en-us.ts index 8ffee9d0..69cb64ad 100644 --- a/src/locales/langs/en-us.ts +++ b/src/locales/langs/en-us.ts @@ -47,7 +47,8 @@ const local: App.I18n.Schema = { yesOrNo: { yes: 'Yes', no: 'No' - } + }, + children: 'Children' }, request: { logout: 'Logout user after request failed', diff --git a/src/locales/langs/zh-cn.ts b/src/locales/langs/zh-cn.ts index e51ce123..f39be4f0 100644 --- a/src/locales/langs/zh-cn.ts +++ b/src/locales/langs/zh-cn.ts @@ -47,7 +47,8 @@ const local: App.I18n.Schema = { yesOrNo: { yes: '是', no: '否' - } + }, + children: '子项' }, request: { logout: '请求失败后登出用户', diff --git a/src/store/modules/tab/index.ts b/src/store/modules/tab/index.ts index 84d96902..0da775cf 100644 --- a/src/store/modules/tab/index.ts +++ b/src/store/modules/tab/index.ts @@ -318,6 +318,7 @@ export const useTabStore = defineStore(SetupStoreId.Tab, () => { /** All tabs */ tabs: allTabs, activeTabId, + homeTab, initHomeTab, initTabStore, addTab, diff --git a/src/typings/app.d.ts b/src/typings/app.d.ts index edc18ddd..a5c00890 100644 --- a/src/typings/app.d.ts +++ b/src/typings/app.d.ts @@ -357,6 +357,7 @@ declare namespace App { yes: string; no: string; }; + children: string; }; request: { logout: string; diff --git a/src/views/sys/core/dictionary/index.vue b/src/views/sys/core/dictionary/index.vue index f0726cd5..7f54f348 100644 --- a/src/views/sys/core/dictionary/index.vue +++ b/src/views/sys/core/dictionary/index.vue @@ -82,6 +82,9 @@ const { columns, columnChecks, data, loading, getData, getDataByPage, mobilePagi align: 'center', render: row => (
+ handleOpenChildren(row.id)}> + {$t('common.children')} + edit(row.id)}> {$t('common.edit')} @@ -119,6 +122,8 @@ function handleDelete(id: string) { function edit(id: string) { handleEdit(id); } + +function handleOpenChildren(_: string) {}