refactor: update workspace reference to use workspace_name in index.vue, shared_knowledge.py, and shared_tool.py
This commit is contained in:
parent
acd0adaf3c
commit
ede1e3d645
@ -55,7 +55,7 @@
|
|||||||
:label="$t('views.application.form.appType.label')"
|
:label="$t('views.application.form.appType.label')"
|
||||||
width="120"
|
width="120"
|
||||||
/>
|
/>
|
||||||
<el-table-column width="100" property="workspace_id">
|
<el-table-column width="100" property="workspace_name">
|
||||||
<template #header>
|
<template #header>
|
||||||
<div class="flex align-center">
|
<div class="flex align-center">
|
||||||
{{ $t('views.role.member.workspace') }}
|
{{ $t('views.role.member.workspace') }}
|
||||||
@ -91,7 +91,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column property="creator" :label="$t('common.creator')" />
|
<el-table-column property="nick_name" :label="$t('common.creator')" />
|
||||||
<el-table-column
|
<el-table-column
|
||||||
property="update_time"
|
property="update_time"
|
||||||
sortable
|
sortable
|
||||||
@ -397,7 +397,7 @@ function refreshFolder() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
getAllList()
|
getList()
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
@ -66,7 +66,7 @@
|
|||||||
:label="$t('views.application.form.appType.label')"
|
:label="$t('views.application.form.appType.label')"
|
||||||
width="120"
|
width="120"
|
||||||
/>
|
/>
|
||||||
<el-table-column width="100" property="workspace_id">
|
<el-table-column width="100" property="workspace_name">
|
||||||
<template #header>
|
<template #header>
|
||||||
<div class="flex align-center">
|
<div class="flex align-center">
|
||||||
{{ $t('views.role.member.workspace') }}
|
{{ $t('views.role.member.workspace') }}
|
||||||
@ -102,7 +102,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column property="creator" :label="$t('common.creator')" />
|
<el-table-column property="nick_name" :label="$t('common.creator')" />
|
||||||
<el-table-column
|
<el-table-column
|
||||||
property="update_time"
|
property="update_time"
|
||||||
sortable
|
sortable
|
||||||
@ -444,7 +444,6 @@ function importTool(file: any) {
|
|||||||
function getList() {
|
function getList() {
|
||||||
const params = {
|
const params = {
|
||||||
folder_id: currentFolder.value?.id || localStorage.getItem('workspace_id'),
|
folder_id: currentFolder.value?.id || localStorage.getItem('workspace_id'),
|
||||||
scope: 'WORKSPACE',
|
|
||||||
}
|
}
|
||||||
ToolApi.getToolList(paginationConfig, params, loading).then((res) => {
|
ToolApi.getToolList(paginationConfig, params, loading).then((res) => {
|
||||||
paginationConfig.total = res.data?.total
|
paginationConfig.total = res.data?.total
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user