Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions frontend/src/api/workspace.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 })
11 changes: 11 additions & 0 deletions frontend/src/assets/svg/icon_block_outlined.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 3 additions & 1 deletion frontend/src/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -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}",
Expand Down Expand Up @@ -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",
Expand Down
4 changes: 3 additions & 1 deletion frontend/src/i18n/ko-KR.json
Original file line number Diff line number Diff line change
Expand Up @@ -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}개의 레코드 표시",
Expand Down Expand Up @@ -189,6 +190,7 @@
"system_manage": "시스템 관리",
"update_success": "업데이트 성공",
"save_success": "저장 성공",
"operation_success": "작업 성공",
"next": "다음 단계",
"save": "저장",
"logout": "로그아웃",
Expand Down
6 changes: 4 additions & 2 deletions frontend/src/i18n/zh-CN.json
Original file line number Diff line number Diff line change
Expand Up @@ -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} 条",
Expand Down Expand Up @@ -189,6 +190,7 @@
"system_manage": "系统管理",
"update_success": "更新成功",
"save_success": "保存成功",
"operation_success": "操作成功",
"next": "下一步",
"save": "保存",
"logout": "退出登录",
Expand Down
6 changes: 4 additions & 2 deletions frontend/src/i18n/zh-TW.json
Original file line number Diff line number Diff line change
Expand Up @@ -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} 筆",
Expand Down Expand Up @@ -189,6 +190,7 @@
"system_manage": "系統管理",
"update_success": "更新成功",
"save_success": "儲存成功",
"operation_success": "操作成功",
"next": "下一步",
"save": "儲存",
"logout": "登出",
Expand Down
5 changes: 2 additions & 3 deletions frontend/src/views/system/model/Card.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand All @@ -58,7 +58,7 @@ const handleEdit = () => {
}

const handleEditWorkspaceList = () => {
emits('editworkspaceList')
emits('editWorkspaceList')
}
const handleAuthorizedSpace = () => {
emits('authorizedSpace')
Expand Down Expand Up @@ -99,7 +99,6 @@ defineExpose({ showErrorMask })
<span class="value" style="display: flex; align-items: center">
{{ $t('permission.2', { msg: num }) }}
<el-tooltip
v-if="false"
effect="dark"
:content="$t('authorized_space.authorized_space_list')"
placement="top"
Expand Down
5 changes: 4 additions & 1 deletion frontend/src/views/system/model/Model.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import { useI18n } from 'vue-i18n'
import { get_supplier } from '@/entity/supplier'
import { highlightKeyword } from '@/utils/xss'
import AuthorizedWorkspaceDialogForModel from '@/views/system/workspace/AuthorizedWorkspaceDialogForModel.vue'
import AuthorizedWorkspaceDraw from '@/views/system/workspace/AuthorizedWorkspaceDraw.vue'

interface Model {
ws_mapping_count: number | undefined
Expand Down Expand Up @@ -252,12 +253,13 @@ const deleteHandler = (item: any) => {
}

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) => {
Expand Down Expand Up @@ -483,6 +485,7 @@ const submit = (item: any) => {
</el-drawer>
</div>
<AuthorizedWorkspaceDialogForModel ref="AuthorizedWorkspaceDialogForModelRef" @refresh="search" />
<AuthorizedWorkspaceDraw ref="AuthorizedWorkspaceDrawRef" @refresh="search" />
</template>

<style lang="less" scoped>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
</el-input>
<div class="mt-8 max-height_workspace">
<el-checkbox
v-if="workspaceWithKeywords.length"
v-model="checkAll"
class="mb-8"
style="margin-left: 16px"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
</el-input>
<div class="mt-8 max-height_workspace">
<el-checkbox
v-if="workspaceWithKeywords.length"
v-model="checkAll"
class="mb-8"
style="margin-left: 16px"
Expand Down
Loading
Loading