update:运动员成绩项目选择
This commit is contained in:
parent
4b63e2d366
commit
5380069f1f
@ -842,9 +842,9 @@ const selectedProjectGroup = ref(null)
|
||||
const scoreQueryParam = computed(() => ({
|
||||
refresh: initParam.value.refresh,
|
||||
eventId: initParam.value.eventId,
|
||||
projectId: selectedProjectGroup.value?.type === 'project' ? selectedProjectGroup.value?.id : undefined,
|
||||
eventProjectGroupId: selectedProjectGroup.value?.type === 'group' ? selectedProjectGroup.value?.eventProjectGroupId : undefined,
|
||||
groupName: selectedProjectGroup.value?.type === 'group' ? selectedProjectGroup.value?.groupName : undefined
|
||||
projectId: selectedProjectGroup.value?.nodeKey.includes('project') ? selectedProjectGroup.value?.id : undefined,
|
||||
eventProjectGroupId: selectedProjectGroup.value?.nodeKey.includes('group') ? selectedProjectGroup.value?.eventProjectGroupId : undefined,
|
||||
groupName: selectedProjectGroup.value?.nodeKey.includes('group') ? selectedProjectGroup.value?.groupName : undefined
|
||||
}))
|
||||
|
||||
const buildProjectGroupTree = (projects) => {
|
||||
@ -890,11 +890,11 @@ const handleTreeNodeClick = (data) => {
|
||||
console.log('树节点被点击:', data)
|
||||
selectedProjectGroup.value = data
|
||||
// 同时更新 refresh 标志,强制 ProTable 重新查询
|
||||
initParam.value.refresh = !initParam.value.refresh
|
||||
// initParam.value.refresh = !initParam.value.refresh
|
||||
console.log('更新后的 selectedProjectGroup:', selectedProjectGroup.value)
|
||||
console.log('scoreQueryParam:', scoreQueryParam.value)
|
||||
nextTick(() => {
|
||||
refreshScoreTable()
|
||||
// refreshScoreTable()
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user