style(projects): 微调

This commit is contained in:
2026-06-22 20:47:20 +08:00
parent 4a7f54b0ed
commit b1d52b852f
4 changed files with 51 additions and 8 deletions

View File

@@ -50,6 +50,7 @@ import {
sortWorkbenchTodoItemsByPriority
} from '../homepage';
import { useWorkbenchRefresh } from '../composables/use-workbench-refresh';
import { useWorkbenchWorklogSignal } from '../composables/use-workbench-worklog-signal';
import WorkbenchModuleCard from './workbench-module-card.vue';
import IconMdiCheckCircleOutline from '~icons/mdi/check-circle-outline';
import IconMdiClipboardEditOutline from '~icons/mdi/clipboard-edit-outline';
@@ -80,6 +81,9 @@ const { routerPushByKey } = useRouterPush();
const authStore = useAuthStore();
const currentUserId = computed(() => authStore.userInfo.userId || '');
// 工时填报在工作台内弹层完成不切路由需广播给「我的工时」widget 重拉
const { notify: notifyWorklogChanged } = useWorkbenchWorklogSignal();
const { loading, refresh } = useWorkbenchRefresh(async () => {
await Promise.all([
loadMyTaskItems(),
@@ -290,6 +294,7 @@ async function handlePersonalStatusSubmit(reason: string | null) {
}
async function handlePersonalWorklogChanged() {
notifyWorklogChanged();
await loadPersonalTodoItems();
}
@@ -323,6 +328,7 @@ async function openTaskWorklog(item: WorkbenchTodoItem) {
// 填报会联动任务进度/状态(如 auto_start变更后刷新任务列表
async function handleTaskWorklogChanged(payload: WorklogChangedPayload) {
notifyWorklogChanged();
await loadMyTaskItems();
// 与任务工作区联动一致:进度填到 100 且我是任务负责人时提示完成(仅单任务,不做级联)