Refactor brand service and related components

- Removed ListQuestionVersions method and associated types from BrandService and Queries.
- Updated PromptRuleGenerationService to change task naming and handling.
- Enhanced ScheduleTaskService to support filtering by created date range and keyword.
- Introduced InstantTaskService for managing instant tasks with appropriate filtering and response structures.
- Added InstantTaskHandler for handling API requests related to instant tasks.
- Created InstantTaskTab component for the admin web interface to display and manage instant tasks.
- Updated database migrations to rename source types for articles and generation tasks.
- Adjusted models and repository queries to reflect the removal of question version handling.
This commit is contained in:
2026-04-02 21:16:12 +08:00
parent 111498a65f
commit 8958cb44c0
36 changed files with 1378 additions and 358 deletions
+8 -2
View File
@@ -29,7 +29,13 @@ const quotaQuery = useQuery({
});
const userInitial = computed(() => authStore.user?.name?.slice(0, 1).toUpperCase() ?? "A");
const selectedKey = computed(() => String(route.meta.navKey ?? route.path));
const selectedKeys = computed(() => {
if (route.meta.navKey === null) {
return [];
}
return [String(route.meta.navKey ?? route.path)];
});
const pageTitle = computed(() => t(String(route.meta.titleKey ?? "route.workspace.title")));
const localeOptions = computed(() => [
@@ -117,7 +123,7 @@ async function handleLogout(): Promise<void> {
<a-menu
mode="inline"
theme="light"
:selected-keys="[selectedKey]"
:selected-keys="selectedKeys"
class="admin-menu"
>
<template v-for="section in navSections" :key="section.key">