diff --git a/frontend/src/components/business/ms-user-group-comp/authTable.vue b/frontend/src/components/business/ms-user-group-comp/authTable.vue
index f832127360..176700529c 100644
--- a/frontend/src/components/business/ms-user-group-comp/authTable.vue
+++ b/frontend/src/components/business/ms-user-group-comp/authTable.vue
@@ -465,6 +465,7 @@
permissions,
});
}
+ canSave.value = false;
Message.success(t('common.saveSuccess'));
initData(props.current.id);
} catch (error) {
diff --git a/frontend/src/hooks/useModal.ts b/frontend/src/hooks/useModal.ts
index 7a62d57f38..231eca9a83 100644
--- a/frontend/src/hooks/useModal.ts
+++ b/frontend/src/hooks/useModal.ts
@@ -65,6 +65,7 @@ export default function useModal() {
okText: t('common.confirmDelete'),
cancelText: t('common.cancel'),
hideCancel: false,
+ simple: false,
okButtonProps: { status: 'danger' },
titleAlign: 'start',
modalClass: `ms-usemodal ms-usemodal-warning ms-usemodal-small`,
diff --git a/frontend/src/views/project-management/projectAndPermission/userGroup/addUserModal.vue b/frontend/src/views/project-management/projectAndPermission/userGroup/addUserModal.vue
index 141d4a7a40..6f970ba31d 100644
--- a/frontend/src/views/project-management/projectAndPermission/userGroup/addUserModal.vue
+++ b/frontend/src/views/project-management/projectAndPermission/userGroup/addUserModal.vue
@@ -5,6 +5,7 @@
class="ms-modal-form ms-modal-medium"
:ok-text="t('system.organization.addMember')"
unmount-on-close
+ :mask-closable="false"
@cancel="handleCancel(false)"
>
{{ t('system.organization.addMember') }}
diff --git a/frontend/src/views/project-management/projectAndPermission/userGroup/locale/en-US.ts b/frontend/src/views/project-management/projectAndPermission/userGroup/locale/en-US.ts
index 8df7d18e0e..17f6720db6 100644
--- a/frontend/src/views/project-management/projectAndPermission/userGroup/locale/en-US.ts
+++ b/frontend/src/views/project-management/projectAndPermission/userGroup/locale/en-US.ts
@@ -5,6 +5,7 @@ export default {
'project.usergroup.memberCount': 'Member Count',
'project.userGroup.viewAuth': 'View Auth',
'project.userGroup.deleteName': 'Are you sure to delete: {name}?',
+ 'project.userGroup.removeTip': 'Delete it, you`ll lose project auth',
'project.userGroup.deleteTip':
'After deletion, the user group data under the project will be deleted together, please operate with caution!',
};
diff --git a/frontend/src/views/project-management/projectAndPermission/userGroup/locale/zh-CN.ts b/frontend/src/views/project-management/projectAndPermission/userGroup/locale/zh-CN.ts
index 7e03f05156..e2f44f3a75 100644
--- a/frontend/src/views/project-management/projectAndPermission/userGroup/locale/zh-CN.ts
+++ b/frontend/src/views/project-management/projectAndPermission/userGroup/locale/zh-CN.ts
@@ -8,4 +8,5 @@ export default {
'project.userGroup.deleteTip': '删除后,项目下用户组数据将一起删除,请谨慎操作!',
'project.userGroup.addRequired': '用户组名称不能为空',
'project.userGroup.addUserGroup': '添加用户组',
+ 'project.userGroup.removeTip': '移除后,将失去用户组权限',
};
diff --git a/frontend/src/views/project-management/projectAndPermission/userGroup/projectUserGroup.vue b/frontend/src/views/project-management/projectAndPermission/userGroup/projectUserGroup.vue
index b09ee4f222..0c6f33a12c 100644
--- a/frontend/src/views/project-management/projectAndPermission/userGroup/projectUserGroup.vue
+++ b/frontend/src/views/project-management/projectAndPermission/userGroup/projectUserGroup.vue
@@ -87,6 +87,7 @@
:ok-text="t('common.create')"
title-align="start"
class="ms-modal-form ms-modal-small"
+ :mask-closable="false"
>
{{ t('project.userGroup.addUserGroup') }}
diff --git a/frontend/src/views/project-management/projectAndPermission/userGroup/userDrawer.vue b/frontend/src/views/project-management/projectAndPermission/userGroup/userDrawer.vue
index f4bdf2e6fe..313da6df55 100644
--- a/frontend/src/views/project-management/projectAndPermission/userGroup/userDrawer.vue
+++ b/frontend/src/views/project-management/projectAndPermission/userGroup/userDrawer.vue
@@ -34,7 +34,7 @@
diff --git a/frontend/src/views/setting/organization/project/components/addProjectModal.vue b/frontend/src/views/setting/organization/project/components/addProjectModal.vue
index 0fbf8f3c34..f06e9fd206 100644
--- a/frontend/src/views/setting/organization/project/components/addProjectModal.vue
+++ b/frontend/src/views/setting/organization/project/components/addProjectModal.vue
@@ -4,6 +4,7 @@
title-align="start"
class="ms-modal-form ms-modal-medium"
unmount-on-close
+ :mask-closable="false"
@cancel="handleCancel(false)"
>
diff --git a/frontend/src/views/setting/organization/project/components/addUserModal.vue b/frontend/src/views/setting/organization/project/components/addUserModal.vue
index 7b6090e594..58cd12983c 100644
--- a/frontend/src/views/setting/organization/project/components/addUserModal.vue
+++ b/frontend/src/views/setting/organization/project/components/addUserModal.vue
@@ -4,6 +4,7 @@
title-align="start"
class="ms-modal-form ms-modal-medium"
:ok-text="t('system.organization.addMember')"
+ :mask-closable="false"
unmount-on-close
@cancel="handleCancel(false)"
>
diff --git a/frontend/src/views/setting/organization/project/components/userDrawer.vue b/frontend/src/views/setting/organization/project/components/userDrawer.vue
index a9f2865814..0eccc9a04d 100644
--- a/frontend/src/views/setting/organization/project/components/userDrawer.vue
+++ b/frontend/src/views/setting/organization/project/components/userDrawer.vue
@@ -32,8 +32,8 @@
diff --git a/frontend/src/views/setting/organization/project/locale/en-US.ts b/frontend/src/views/setting/organization/project/locale/en-US.ts
index 94da755c6e..3dfb1fdd05 100644
--- a/frontend/src/views/setting/organization/project/locale/en-US.ts
+++ b/frontend/src/views/setting/organization/project/locale/en-US.ts
@@ -76,4 +76,5 @@ export default {
'system.project.createProjectSuccess': 'Create project success',
'system.project.updateProjectSuccess': 'Update project success',
'system.project.resourcePool': 'Resource pool',
+ 'system.project.removeName': 'Confirm remove the {name}',
};
diff --git a/frontend/src/views/setting/organization/project/locale/zh-CN.ts b/frontend/src/views/setting/organization/project/locale/zh-CN.ts
index 7c1042c6f0..bb56acd0e5 100644
--- a/frontend/src/views/setting/organization/project/locale/zh-CN.ts
+++ b/frontend/src/views/setting/organization/project/locale/zh-CN.ts
@@ -6,7 +6,7 @@ export default {
'system.organization.edit': '编辑',
'system.organization.save': '保存',
'system.organization.end': '结束',
- 'system.organization.removeName': '确认移除 {name} 这个用户吗',
+ 'system.organization.removeName': '确认移除 {name} 这个用户吗?',
'system.organization.removeTip': '移除后,将失去组织权限',
'system.organization.addMember': '添加成员',
'system.organization.addMemberPlaceholder': '请选择成员',
@@ -70,4 +70,5 @@ export default {
'system.project.createProjectSuccess': '创建项目成功',
'system.project.updateProjectSuccess': '更新项目成功',
'system.project.resourcePool': '资源池',
+ 'system.project.removeName': '确认移除 {name} 这个用户吗?',
};
diff --git a/frontend/src/views/setting/system/organizationAndProject/components/addProjectModal.vue b/frontend/src/views/setting/system/organizationAndProject/components/addProjectModal.vue
index e73010d786..9ace2d7dea 100644
--- a/frontend/src/views/setting/system/organizationAndProject/components/addProjectModal.vue
+++ b/frontend/src/views/setting/system/organizationAndProject/components/addProjectModal.vue
@@ -5,6 +5,7 @@
:ok-text="isEdit ? t('common.update') : t('common.create')"
title-align="start"
unmount-on-close
+ :mask-closable="false"
@cancel="handleCancel(false)"
>
diff --git a/frontend/src/views/setting/system/organizationAndProject/components/addUserModal.vue b/frontend/src/views/setting/system/organizationAndProject/components/addUserModal.vue
index 3faf5f4e81..3621d33626 100644
--- a/frontend/src/views/setting/system/organizationAndProject/components/addUserModal.vue
+++ b/frontend/src/views/setting/system/organizationAndProject/components/addUserModal.vue
@@ -4,6 +4,7 @@
title-align="start"
class="ms-modal-form ms-modal-medium"
:ok-text="t('system.organization.addMember')"
+ :mask-closable="false"
unmount-on-close
@cancel="handleCancel"
>
diff --git a/frontend/src/views/setting/system/organizationAndProject/components/systemProject.vue b/frontend/src/views/setting/system/organizationAndProject/components/systemProject.vue
index da08d08570..10ed228c4e 100644
--- a/frontend/src/views/setting/system/organizationAndProject/components/systemProject.vue
+++ b/frontend/src/views/setting/system/organizationAndProject/components/systemProject.vue
@@ -241,8 +241,8 @@
const handleDelete = (record: TableData) => {
openDeleteModal({
- title: t('system.organization.deleteName', { name: characterLimit(record.name) }),
- content: t('system.organization.deleteTip'),
+ title: t('system.project.deleteName', { name: characterLimit(record.name) }),
+ content: t('system.project.deleteTip'),
onBeforeOk: async () => {
try {
await deleteProject(record.id);
diff --git a/frontend/src/views/setting/system/organizationAndProject/components/userDrawer.vue b/frontend/src/views/setting/system/organizationAndProject/components/userDrawer.vue
index 077321f781..ccdb4c20e7 100644
--- a/frontend/src/views/setting/system/organizationAndProject/components/userDrawer.vue
+++ b/frontend/src/views/setting/system/organizationAndProject/components/userDrawer.vue
@@ -33,7 +33,7 @@
@@ -66,6 +66,7 @@
postUserTableByOrgIdOrProjectId,
} from '@/api/modules/setting/organizationAndProject';
import { useI18n } from '@/hooks/useI18n';
+ import { characterLimit } from '@/utils';
export interface projectDrawerProps {
visible: boolean;
diff --git a/frontend/src/views/setting/system/organizationAndProject/locale/zh-CN.ts b/frontend/src/views/setting/system/organizationAndProject/locale/zh-CN.ts
index aa57ba7acf..ea954977a4 100644
--- a/frontend/src/views/setting/system/organizationAndProject/locale/zh-CN.ts
+++ b/frontend/src/views/setting/system/organizationAndProject/locale/zh-CN.ts
@@ -6,7 +6,7 @@ export default {
'system.organization.edit': '编辑',
'system.organization.save': '保存',
'system.organization.end': '结束',
- 'system.organization.removeName': '确认移除 {name} 这个用户吗',
+ 'system.organization.removeName': '确认移除 {name} 这个用户吗?',
'system.organization.removeTip': '移除后,将失去组织权限',
'system.organization.addMember': '添加成员',
'system.organization.addMemberTitle': '添加成员({name})',
@@ -39,7 +39,7 @@ export default {
'system.organization.email': '邮箱',
'system.organization.phone': '手机',
'system.organization.addSuccess': '添加成功',
- 'system.organization.deleteName': '确认删除 {name} 这个组织吗',
+ 'system.organization.deleteName': '确认删除 {name} 这个组织吗?',
'system.organization.deleteTip': '删除组织同时将该组织下的项目数据一起删除,请谨慎操作!',
'system.organization.revokeDeleteToolTip': '该组织将与 {count} 天后自动删除',
'system.organization.createOrganizationSuccess': '创建组织成功',
@@ -71,4 +71,6 @@ export default {
'system.project.revokeDeleteToolTip': '该项目将于 {count} 天后自动删除',
'system.project.removeTip': '移除后,将失去项目权限',
'system.organization.projectIsDisabled': '项目已结束,可在 项目列表 开启',
+ 'system.project.deleteName': '确认删除 {name} 这个项目吗?',
+ 'system.project.deleteTip': '删除后,系统会在 30天 后执行删除项目 (含项目下所有业务数据),请谨慎操作!',
};
diff --git a/frontend/src/views/setting/system/usergroup/locale/zh-CN.ts b/frontend/src/views/setting/system/usergroup/locale/zh-CN.ts
index 1750b5ff27..508d28219c 100644
--- a/frontend/src/views/setting/system/usergroup/locale/zh-CN.ts
+++ b/frontend/src/views/setting/system/usergroup/locale/zh-CN.ts
@@ -64,7 +64,7 @@ export default {
phone: '手机',
remove: '移除',
quickAddUser: '快速添加用户',
- removeName: '确认移除 {name} 这个用户吗',
+ removeName: '确认移除 {name} 这个用户吗?',
removeTip: '移除后,将失去用户组权限',
custom: '自定义用户组',
projectUserGroup: '项目用户组',