修改班组长请求bug

This commit is contained in:
Teo
2025-07-28 19:49:17 +08:00
parent 09c8cf2333
commit ed996ee7f4
11 changed files with 24 additions and 17 deletions

View File

@ -524,7 +524,8 @@ const { type_of_work, user_sex_type, user_clock_type, user_file_type, user_statu
const userStore = useUserStoreHook();
// 从 store 中获取项目列表和当前选中的项目
const currentProject = computed(() => userStore.selectedProject);
const ProjectTeam = computed(() => userStore.ProjectTeamList);
const ProjectTeam = computed(() => proxy?.$cache.local.getJSON('ProjectTeamList') || []);
const constructionUserList = ref<ConstructionUserVO[]>([]);
const buttonLoading = ref(false);
const loading = ref(true);
@ -829,10 +830,10 @@ const updateProjectFile = async () => {
await getList();
};
const getTeamName = (teamId: string | number) => {
const team = ProjectTeam.value.find((item: any) => item.value === teamId);
const getTeamName = computed(() => (teamId: string | number) => {
const team = Array.isArray(ProjectTeam.value) ? ProjectTeam.value.find((item: any) => item.value === teamId) : null;
return team ? team.label : teamId;
};
});
/** 取消按钮 */
const cancel = () => {