From 88b956cf983cc2d12bbf6e188b74a5647258a7a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BB=96=E5=BD=A6=E6=A3=8B?= Date: Fri, 8 Mar 2024 09:12:39 +0800 Subject: [PATCH] =?UTF-8?q?refactor(ui):=20=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/SearchTable/FormSection.vue | 28 ++++++------------- gpt-vue/projects/vue-admin/src/router/menu.ts | 16 +++++++++-- .../views/Functions/FunctionsContainer.vue | 7 ++++- .../src/views/Functions/FunctionsForm.vue | 19 ++++++------- .../src/views/System/SystemBaseConfig.vue | 22 +++++++++------ .../src/views/System/SystemChatConfig.vue | 2 +- .../src/views/System/SystemContainer.vue | 12 ++++++-- .../src/views/System/SystemNoticeConfig.vue | 2 +- .../src/views/System/SystemUploader.vue | 19 +++++++------ 9 files changed, 72 insertions(+), 55 deletions(-) diff --git a/gpt-vue/projects/vue-admin/src/components/SearchTable/FormSection.vue b/gpt-vue/projects/vue-admin/src/components/SearchTable/FormSection.vue index 1a5f717a..178b6c8c 100644 --- a/gpt-vue/projects/vue-admin/src/components/SearchTable/FormSection.vue +++ b/gpt-vue/projects/vue-admin/src/components/SearchTable/FormSection.vue @@ -33,9 +33,9 @@ const formData = computed({ }); const searchColumns = computed(() => { - return props.columns?.filter( - (item) => item.dataIndex && item.search - ) as (SearchColumns & { dataIndex: string })[]; + return props.columns?.filter((item) => item.dataIndex && item.search) as (SearchColumns & { + dataIndex: string; + })[]; }); const optionsEvent = { @@ -60,7 +60,7 @@ const optionsEvent = { @submit="optionsEvent.onSearch" > - + @@ -86,20 +83,11 @@ const optionsEvent = { - + 查询 - + 重置 diff --git a/gpt-vue/projects/vue-admin/src/router/menu.ts b/gpt-vue/projects/vue-admin/src/router/menu.ts index 81e7f5b8..9b047a6a 100644 --- a/gpt-vue/projects/vue-admin/src/router/menu.ts +++ b/gpt-vue/projects/vue-admin/src/router/menu.ts @@ -3,6 +3,9 @@ import { IconDashboard, IconOrderedList, IconCalendar, + IconHeartFill, + IconCodeSquare, + IconMessage, IconSettings, IconUserGroup, IconLock, @@ -80,16 +83,25 @@ const menu = [ name: "Reward", meta: { title: "众筹管理", - icon: IconCalendar, + icon: IconHeartFill, }, component: () => import("@/views/Reward/RewardContainer.vue"), }, + { + path: "/functions", + name: "Functions", + meta: { + title: "函数管理", + icon: IconCodeSquare, + }, + component: () => import("@/views/Functions/FunctionsContainer.vue"), + }, { path: "/chats", name: "Chats", meta: { title: "对话管理", - icon: IconCalendar, + icon: IconMessage, }, component: () => import("@/views/Chats/ChatsContainer.vue"), }, diff --git a/gpt-vue/projects/vue-admin/src/views/Functions/FunctionsContainer.vue b/gpt-vue/projects/vue-admin/src/views/Functions/FunctionsContainer.vue index e68a958e..94e12a54 100644 --- a/gpt-vue/projects/vue-admin/src/views/Functions/FunctionsContainer.vue +++ b/gpt-vue/projects/vue-admin/src/views/Functions/FunctionsContainer.vue @@ -55,8 +55,13 @@ const handleRemove = async (id, reload) => { };