diff --git a/frontend/src/api/workspace.ts b/frontend/src/api/workspace.ts index 6a289bbe..46637678 100644 --- a/frontend/src/api/workspace.ts +++ b/frontend/src/api/workspace.ts @@ -20,3 +20,7 @@ export const workspaceModelMapping = (aiModelId: any) => request.get(`/system/aimodel/${aiModelId}/ws_mapping`) export const workspaceModelMappingUpdate = (aiModelId: any, data: any) => request.put(`/system/aimodel/${aiModelId}/ws_mapping`, data) +export const workspaceModelMappingAdd = (aiModelId: any, data: any) => + request.post(`/system/aimodel/${aiModelId}/ws_mapping`, data) +export const workspaceModelMappingDelete = (aiModelId: any, data: any) => + request.delete(`/system/aimodel/${aiModelId}/ws_mapping`, { data }) diff --git a/frontend/src/assets/svg/icon_block_outlined.svg b/frontend/src/assets/svg/icon_block_outlined.svg new file mode 100644 index 00000000..ffefda2c --- /dev/null +++ b/frontend/src/assets/svg/icon_block_outlined.svg @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/frontend/src/i18n/en.json b/frontend/src/i18n/en.json index db1116ac..e0134352 100644 --- a/frontend/src/i18n/en.json +++ b/frontend/src/i18n/en.json @@ -40,7 +40,8 @@ "workspaces_authorized": "Authorized {num} Workspaces", "number_of_members": "Number of Members", "delete_selected_workspaces": "Are you sure you want to delete the selected {msg} workspaces?", - "delete_workspace": "Are you sure you want to delete the workspace: {msg}?" + "delete_workspace": "Are you sure you want to delete the workspace: {msg}?", + "no_workspace": "No Workspaces" }, "sync": { "records": "Displaying {num} records out of {total}", @@ -189,6 +190,7 @@ "system_manage": "System Management", "update_success": "Update", "save_success": "Save Successful", + "operation_success": "Operation successful", "next": "Next", "save": "Save", "logout": "Logout", diff --git a/frontend/src/i18n/ko-KR.json b/frontend/src/i18n/ko-KR.json index 322e50de..89319a77 100644 --- a/frontend/src/i18n/ko-KR.json +++ b/frontend/src/i18n/ko-KR.json @@ -40,7 +40,8 @@ "workspaces_authorized": "{num}개의 권한 있는 작업 공간", "number_of_members": "회원 수", "delete_selected_workspaces": "선택한 {msg}개의 작업 공간을 삭제하시겠습니까?", - "delete_workspace": "작업 공간을 삭제하시겠습니까: {msg}?" + "delete_workspace": "작업 공간을 삭제하시겠습니까: {msg}?", + "no_workspace": "작업 공간 없음" }, "sync": { "records": "{total}개 중 {num}개의 레코드 표시", @@ -189,6 +190,7 @@ "system_manage": "시스템 관리", "update_success": "업데이트 성공", "save_success": "저장 성공", + "operation_success": "작업 성공", "next": "다음 단계", "save": "저장", "logout": "로그아웃", diff --git a/frontend/src/i18n/zh-CN.json b/frontend/src/i18n/zh-CN.json index f0b22916..3a51d53a 100644 --- a/frontend/src/i18n/zh-CN.json +++ b/frontend/src/i18n/zh-CN.json @@ -39,8 +39,9 @@ "modify_authorized_space": "修改授权空间", "workspaces_authorized": "已授权 {num} 个工作空间", "number_of_members": "成员数量", - "delete_selected_workspaces": "是否删除选中的 {msg} 个工作空间?", - "delete_workspace": "是否删除工作空间:{msg}?" + "delete_selected_workspaces": "是否移除选中的 {msg} 个工作空间?", + "delete_workspace": "是否移除工作空间:{msg}?", + "no_workspace": "暂无工作空间" }, "sync": { "records": "显示 {num} 条数据,共 {total} 条", @@ -189,6 +190,7 @@ "system_manage": "系统管理", "update_success": "更新成功", "save_success": "保存成功", + "operation_success": "操作成功", "next": "下一步", "save": "保存", "logout": "退出登录", diff --git a/frontend/src/i18n/zh-TW.json b/frontend/src/i18n/zh-TW.json index b57b93e6..573ea9d9 100644 --- a/frontend/src/i18n/zh-TW.json +++ b/frontend/src/i18n/zh-TW.json @@ -39,8 +39,9 @@ "modify_authorized_space": "修改授權空間", "workspaces_authorized": "已授權 {num} 個工作空間", "number_of_members": "成員數量", - "delete_selected_workspaces": "是否刪除選中的 {msg} 個工作空間?", - "delete_workspace": "是否刪除工作空間:{msg}?" + "delete_selected_workspaces": "是否移除選中的 {msg} 個工作空間?", + "delete_workspace": "是否移除工作空間:{msg}?", + "no_workspace": "暫無工作空間" }, "sync": { "records": "顯示 {num} 筆資料,共 {total} 筆", @@ -189,6 +190,7 @@ "system_manage": "系統管理", "update_success": "更新成功", "save_success": "儲存成功", + "operation_success": "操作成功", "next": "下一步", "save": "儲存", "logout": "登出", diff --git a/frontend/src/views/system/model/Card.vue b/frontend/src/views/system/model/Card.vue index 4e3ec68a..449d523f 100644 --- a/frontend/src/views/system/model/Card.vue +++ b/frontend/src/views/system/model/Card.vue @@ -43,7 +43,7 @@ const showErrorMask = (msg?: string) => { errorMsg.value = '' }, 3000) } -const emits = defineEmits(['edit', 'del', 'default', 'authorizedSpace', 'editworkspaceList']) +const emits = defineEmits(['edit', 'del', 'default', 'authorizedSpace', 'editWorkspaceList']) const handleDefault = () => { emits('default') @@ -58,7 +58,7 @@ const handleEdit = () => { } const handleEditWorkspaceList = () => { - emits('editworkspaceList') + emits('editWorkspaceList') } const handleAuthorizedSpace = () => { emits('authorizedSpace') @@ -99,7 +99,6 @@ defineExpose({ showErrorMask }) {{ $t('permission.2', { msg: num }) }} { } const AuthorizedWorkspaceDialogForModelRef = ref() +const AuthorizedWorkspaceDrawRef = ref() const handleAuthorizedSpace = (item: any) => { AuthorizedWorkspaceDialogForModelRef.value.open(item.id) } const handleEditWorkspaceList = (item: any) => { - AuthorizedWorkspaceDialogForModelRef.value.open(item.id) + AuthorizedWorkspaceDrawRef.value.open(item.id) } const clickModel = (ele: any) => { @@ -483,6 +485,7 @@ const submit = (item: any) => { + diff --git a/frontend/src/views/system/workspace/AuthorizedWorkspaceDraw.vue b/frontend/src/views/system/workspace/AuthorizedWorkspaceDraw.vue new file mode 100644 index 00000000..808eb16a --- /dev/null +++ b/frontend/src/views/system/workspace/AuthorizedWorkspaceDraw.vue @@ -0,0 +1,521 @@ + + + + +