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:
@@ -7,6 +7,7 @@ import { ref } from "vue";
|
||||
import { useI18n } from "vue-i18n";
|
||||
|
||||
import CustomArticleTab from "@/components/CustomArticleTab.vue";
|
||||
import InstantTaskTab from "@/components/InstantTaskTab.vue";
|
||||
import PromptRuleTab from "@/components/PromptRuleTab.vue";
|
||||
import ScheduleTaskTab from "@/components/ScheduleTaskTab.vue";
|
||||
import InstantGenerateModal from "@/components/InstantGenerateModal.vue";
|
||||
@@ -56,6 +57,9 @@ function openScheduleModal(): void {
|
||||
<a-tab-pane key="articles" :tab="t('custom.tabs.articles')">
|
||||
<CustomArticleTab />
|
||||
</a-tab-pane>
|
||||
<a-tab-pane key="instantTasks" :tab="t('custom.tabs.instantTasks')">
|
||||
<InstantTaskTab />
|
||||
</a-tab-pane>
|
||||
<a-tab-pane key="scheduleTasks" :tab="t('custom.tabs.scheduleTasks')">
|
||||
<ScheduleTaskTab />
|
||||
</a-tab-pane>
|
||||
|
||||
Reference in New Issue
Block a user