项目修改,删除,开始开发的分权提示
This commit is contained in:
parent
a9256cc368
commit
1803c997e4
|
|
@ -157,7 +157,8 @@ export const deleteProject = (ids) => {
|
||||||
export const startProjectDevelopment = (data) => {
|
export const startProjectDevelopment = (data) => {
|
||||||
return uni.$uv.http.put('bst/project/start', data, {
|
return uni.$uv.http.put('bst/project/start', data, {
|
||||||
custom: {
|
custom: {
|
||||||
auth: true
|
auth: true,
|
||||||
|
catch:true
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -574,7 +574,6 @@ const getAvatarText = (member) => {
|
||||||
return name.charAt(0);
|
return name.charAt(0);
|
||||||
};
|
};
|
||||||
|
|
||||||
const deletingProjectId = ref('');
|
|
||||||
const showStartModal = ref(false);
|
const showStartModal = ref(false);
|
||||||
const startingProject = ref(false);
|
const startingProject = ref(false);
|
||||||
const startProjectForm = reactive({
|
const startProjectForm = reactive({
|
||||||
|
|
@ -655,7 +654,7 @@ const submitStartDevelopment = async () => {
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
console.error('开始开发失败:', err);
|
console.error('开始开发失败:', err);
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: err?.message || '操作失败,请稍后重试',
|
title: err?.msg || '操作失败,请稍后重试',
|
||||||
icon: 'none'
|
icon: 'none'
|
||||||
});
|
});
|
||||||
} finally {
|
} finally {
|
||||||
|
|
@ -686,10 +685,6 @@ const handleDeleteProject = (project) => {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (deletingProjectId.value) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
const projectName = project.name || project.projectName || '';
|
const projectName = project.name || project.projectName || '';
|
||||||
|
|
||||||
uni.showModal({
|
uni.showModal({
|
||||||
|
|
@ -702,7 +697,6 @@ const handleDeleteProject = (project) => {
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
deletingProjectId.value = project.id;
|
|
||||||
uni.showLoading({ title: '删除中...', mask: true });
|
uni.showLoading({ title: '删除中...', mask: true });
|
||||||
await deleteProject(project.id);
|
await deleteProject(project.id);
|
||||||
uni.showToast({ title: '删除成功', icon: 'success' });
|
uni.showToast({ title: '删除成功', icon: 'success' });
|
||||||
|
|
@ -714,7 +708,6 @@ const handleDeleteProject = (project) => {
|
||||||
icon: 'none'
|
icon: 'none'
|
||||||
});
|
});
|
||||||
} finally {
|
} finally {
|
||||||
deletingProjectId.value = '';
|
|
||||||
uni.hideLoading();
|
uni.hideLoading();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -901,7 +894,7 @@ onLoad(() => {
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
border-bottom: 1px solid #e4e7ed;
|
border-bottom: 1px solid #e4e7ed;
|
||||||
position: fixed;
|
position: fixed;
|
||||||
top: 0;
|
//top: 0;
|
||||||
right: 0;
|
right: 0;
|
||||||
left: 0;
|
left: 0;
|
||||||
z-index: 100;
|
z-index: 100;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user