diff --git a/frontend/biome.json b/frontend/biome.json index e6b5818..a8f2669 100644 --- a/frontend/biome.json +++ b/frontend/biome.json @@ -30,5 +30,18 @@ "formatter": { "quoteStyle": "double" } - } + }, + "overrides": [ + { + "include": ["*.vue"], + "linter": { + "rules": { + "style": { + "useConst": "off", + "useImportType": "off" + } + } + } + } + ] } diff --git a/frontend/src/components/Assistant.vue b/frontend/src/components/Assistant.vue index a94a2ba..a05ae6e 100644 --- a/frontend/src/components/Assistant.vue +++ b/frontend/src/components/Assistant.vue @@ -87,6 +87,7 @@ import LoadingIcon from "@/components/icons/LoadingIcon.vue"; import { useAiAction } from "@/composables/ai/useAiAction"; import { useDepartmentQuery } from "@/composables/department/useDepartmentQuery"; import { useDepartmentUpsert } from "@/composables/department/useDepartmentUpsert"; +import { useActionExcStore } from "@/composables/store/useActionExcStore"; import useAlertStore from "@/composables/store/useAlertStore"; import type { DepartmentUpsertModel } from "@/types/department"; import DOMPurify from "dompurify"; @@ -118,7 +119,7 @@ const { deleteUserByUsername, deleteDepartmentByName } = useAiAction(); const departmentDeleteModal = ref(); const currentDeleteUsername = ref(); const currentDeleteDepartmentName = ref(); - +const actionExcStore = useActionExcStore(); const { availableDepartments, fetchAvailableDepartments } = useDepartmentQuery(); @@ -194,6 +195,7 @@ const handleUpsertUserSubmit = async (data: UserUpsertSubmitModel) => { content: "操作成功", level: "success", }); + actionExcStore.notify(true); }; const handleUpsertDepartmentSubmit = async ( @@ -205,6 +207,7 @@ const handleUpsertDepartmentSubmit = async ( content: "操作成功", level: "success", }); + actionExcStore.notify(true); }; const handleDeleteUserSubmit = async () => { @@ -214,6 +217,7 @@ const handleDeleteUserSubmit = async () => { content: "操作成功", level: "success", }); + actionExcStore.notify(true); }; const handleDeleteDepartmentSubmit = async () => { @@ -223,6 +227,7 @@ const handleDeleteDepartmentSubmit = async () => { content: "操作成功", level: "success", }); + actionExcStore.notify(true); }; watch( @@ -261,6 +266,7 @@ const chatByMode = async ( await searchAction(message); } else if (mode === "execute") { await executeAction(message); + actionExcStore.notify(true); } else { await chat(message); } diff --git a/frontend/src/components/Breadcrumbs.vue b/frontend/src/components/Breadcrumbs.vue index 8c3f0f1..e604fa5 100644 --- a/frontend/src/components/Breadcrumbs.vue +++ b/frontend/src/components/Breadcrumbs.vue @@ -35,21 +35,21 @@ import { computed } from "vue"; import type { RouteLocationRaw } from "vue-router"; interface BreadcrumbItem { - name: string; - route?: RouteLocationRaw; + name: string; + route?: RouteLocationRaw; } const props = defineProps<{ - names: string[]; - routes?: RouteLocationRaw[]; + names: string[]; + routes?: RouteLocationRaw[]; }>(); const breadcrumbs = computed(() => { - return props.names.map((name, index) => { - return { - name, - route: props.routes?.[index] - }; - }); + return props.names.map((name, index) => { + return { + name, + route: props.routes?.[index], + }; + }); }); diff --git a/frontend/src/components/DateRangePicker.vue b/frontend/src/components/DateRangePicker.vue new file mode 100644 index 0000000..d675779 --- /dev/null +++ b/frontend/src/components/DateRangePicker.vue @@ -0,0 +1,35 @@ + + + + + diff --git a/frontend/src/components/Headbar.vue b/frontend/src/components/Headbar.vue index 076c2ef..c9302b3 100644 --- a/frontend/src/components/Headbar.vue +++ b/frontend/src/components/Headbar.vue @@ -4,7 +4,7 @@
- + logo 知路后台管理 @@ -36,8 +36,7 @@
-