修改班组长请求bug
This commit is contained in:
@ -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 = () => {
|
||||
|
Reference in New Issue
Block a user