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) => { };