update:证书查看字段修改&报名删除项目时候重新请求接口
This commit is contained in:
parent
7f66787c4f
commit
9d02881a01
@ -1220,8 +1220,8 @@ const viewCertificate = async (id) => {
|
|||||||
try {
|
try {
|
||||||
const { succeeded, data, errors } = await eventscoreGetCertificateDetailGet(id);
|
const { succeeded, data, errors } = await eventscoreGetCertificateDetailGet(id);
|
||||||
if (succeeded) {
|
if (succeeded) {
|
||||||
if (data?.CertificateUrl) {
|
if (data?.certificateUrl) {
|
||||||
window.open(data.CertificateUrl, '_blank');
|
window.open(data.certificateUrl, '_blank');
|
||||||
} else if (data?.url) {
|
} else if (data?.url) {
|
||||||
window.open(data.url, '_blank');
|
window.open(data.url, '_blank');
|
||||||
} else if (data?.Url) {
|
} else if (data?.Url) {
|
||||||
|
|||||||
@ -829,6 +829,17 @@ const toggleGroupSelection = (id) => {
|
|||||||
if (idx >= 0) {
|
if (idx >= 0) {
|
||||||
// 取消选中
|
// 取消选中
|
||||||
selectedGroupIds.value.splice(idx, 1);
|
selectedGroupIds.value.splice(idx, 1);
|
||||||
|
// 若在第二步删除了组别,清理该组别的验证缓存并重新触发验证
|
||||||
|
if (activeStep.value === 1) {
|
||||||
|
// 清理被删除组别的队员验证缓存
|
||||||
|
Object.keys(memberValidationMap.value).forEach(key => {
|
||||||
|
if (key.startsWith(`${id}_`)) {
|
||||||
|
delete memberValidationMap.value[key];
|
||||||
|
}
|
||||||
|
});
|
||||||
|
// 重新检查报名限制(刷新页面上的提示信息)
|
||||||
|
checkRegistrationLimit();
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
// 选中新组别:先找出这个组别属于哪个项目,然后取消该项目的其他组别
|
// 选中新组别:先找出这个组别属于哪个项目,然后取消该项目的其他组别
|
||||||
const clickedGroup = allGroups.value.find(g => g.id === id);
|
const clickedGroup = allGroups.value.find(g => g.id === id);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user