项目修改,删除,开始开发的分权提示

This commit is contained in:
WindowBird 2025-11-24 15:18:38 +08:00
parent a9256cc368
commit 1803c997e4
2 changed files with 4 additions and 10 deletions

View File

@ -157,7 +157,8 @@ export const deleteProject = (ids) => {
export const startProjectDevelopment = (data) => {
return uni.$uv.http.put('bst/project/start', data, {
custom: {
auth: true
auth: true,
catch:true
}
});
};

View File

@ -574,7 +574,6 @@ const getAvatarText = (member) => {
return name.charAt(0);
};
const deletingProjectId = ref('');
const showStartModal = ref(false);
const startingProject = ref(false);
const startProjectForm = reactive({
@ -655,7 +654,7 @@ const submitStartDevelopment = async () => {
} catch (err) {
console.error('开始开发失败:', err);
uni.showToast({
title: err?.message || '操作失败,请稍后重试',
title: err?.msg || '操作失败,请稍后重试',
icon: 'none'
});
} finally {
@ -686,10 +685,6 @@ const handleDeleteProject = (project) => {
return;
}
if (deletingProjectId.value) {
return;
}
const projectName = project.name || project.projectName || '';
uni.showModal({
@ -702,7 +697,6 @@ const handleDeleteProject = (project) => {
}
try {
deletingProjectId.value = project.id;
uni.showLoading({ title: '删除中...', mask: true });
await deleteProject(project.id);
uni.showToast({ title: '删除成功', icon: 'success' });
@ -714,7 +708,6 @@ const handleDeleteProject = (project) => {
icon: 'none'
});
} finally {
deletingProjectId.value = '';
uni.hideLoading();
}
}
@ -901,7 +894,7 @@ onLoad(() => {
background-color: #fff;
border-bottom: 1px solid #e4e7ed;
position: fixed;
top: 0;
//top: 0;
right: 0;
left: 0;
z-index: 100;