fix: typo

This commit is contained in:
wangdan-fit2cloud 2025-06-30 16:33:49 +08:00
parent a16375781b
commit 18eff85215
8 changed files with 29 additions and 29 deletions

View File

@ -10,7 +10,7 @@ export default {
}, },
delete: { delete: {
button: 'Remove', button: 'Remove',
confirmTitle: 'Wheather to remove the member:', confirmTitle: 'Whether to remove the member:',
confirmMessage: confirmMessage:
"After removal, the member's knowledge base and application permissions will be revoked. ", "After removal, the member's knowledge base and application permissions will be revoked. ",
}, },

View File

@ -19,11 +19,11 @@ export default {
member: { member: {
title: 'Members', title: 'Members',
add: 'Add Member', add: 'Add Member',
workspace: 'worksapce', workspace: 'workspace',
role: 'role', role: 'role',
delete: { delete: {
button: 'remove', button: 'remove',
confirmTitle: 'Whether to remove the member:', confirmTitle: 'Whether to remove the member:',
} }
} }
} }

View File

@ -40,7 +40,7 @@
<folder-tree <folder-tree
:data="folderList" :data="folderList"
:currentNodeKey="currentFolder?.id" :currentNodeKey="currentFolder?.id"
@handleNodeClick="folderClickHandel" @handleNodeClick="folderClickHandle"
class="p-8" class="p-8"
v-loading="folderLoading" v-loading="folderLoading"
:canOperation="false" :canOperation="false"
@ -182,7 +182,7 @@ const knowledgeList = ref<any[]>([])
const currentFolder = ref<any>({}) const currentFolder = ref<any>({})
const folderLoading = ref(false) const folderLoading = ref(false)
// //
function folderClickHandel(row: any) { function folderClickHandle(row: any) {
currentFolder.value = row currentFolder.value = row
knowledgeList.value = [] knowledgeList.value = []
if (currentFolder.value.id === 'share') return if (currentFolder.value.id === 'share') return

View File

@ -6,14 +6,14 @@
:source="SourceTypeEnum.APPLICATION" :source="SourceTypeEnum.APPLICATION"
:data="folderList" :data="folderList"
:currentNodeKey="folder.currentFolder?.id" :currentNodeKey="folder.currentFolder?.id"
@handleNodeClick="folderClickHandel" @handleNodeClick="folderClickHandle"
@refreshTree="refreshFolder" @refreshTree="refreshFolder"
class="p-8" class="p-8"
/> />
</template> </template>
<ContentContainer> <ContentContainer>
<template #header> <template #header>
<FolderBreadcrumb :folderList="folderList" @click="folderClickHandel" /> <FolderBreadcrumb :folderList="folderList" @click="folderClickHandle" />
</template> </template>
<template #search> <template #search>
<div class="flex"> <div class="flex">
@ -31,7 +31,7 @@
<el-input <el-input
v-if="search_type === 'name'" v-if="search_type === 'name'"
v-model="search_form.name" v-model="search_form.name"
@change="searchHandel" @change="searchHandle"
:placeholder="$t('common.searchBar.placeholder')" :placeholder="$t('common.searchBar.placeholder')"
style="width: 220px" style="width: 220px"
clearable clearable
@ -39,7 +39,7 @@
<el-select <el-select
v-else-if="search_type === 'create_user'" v-else-if="search_type === 'create_user'"
v-model="search_form.create_user" v-model="search_form.create_user"
@change="searchHandel" @change="searchHandle"
clearable clearable
style="width: 220px" style="width: 220px"
> >
@ -272,7 +272,7 @@ import { onMounted, ref, reactive, computed } from 'vue'
import CreateApplicationDialog from '@/views/application/component/CreateApplicationDialog.vue' import CreateApplicationDialog from '@/views/application/component/CreateApplicationDialog.vue'
import CreateFolderDialog from '@/components/folder-tree/CreateFolderDialog.vue' import CreateFolderDialog from '@/components/folder-tree/CreateFolderDialog.vue'
import CopyApplicationDialog from '@/views/application/component/CopyApplicationDialog.vue' import CopyApplicationDialog from '@/views/application/component/CopyApplicationDialog.vue'
import ApplicaitonApi from '@/api/application/application' import ApplicationApi from '@/api/application/application'
import { MsgSuccess, MsgConfirm, MsgError } from '@/utils/message' import { MsgSuccess, MsgConfirm, MsgError } from '@/utils/message'
import useStore from '@/stores' import useStore from '@/stores'
import { t } from '@/locales' import { t } from '@/locales'
@ -414,7 +414,7 @@ function deleteApplication(row: any) {
}, },
) )
.then(() => { .then(() => {
ApplicaitonApi.delApplication(row.id, loading).then(() => { ApplicationApi.delApplication(row.id, loading).then(() => {
const index = applicationList.value.findIndex((v) => v.id === row.id) const index = applicationList.value.findIndex((v) => v.id === row.id)
applicationList.value.splice(index, 1) applicationList.value.splice(index, 1)
MsgSuccess(t('common.deleteSuccess')) MsgSuccess(t('common.deleteSuccess'))
@ -424,7 +424,7 @@ function deleteApplication(row: any) {
} }
const exportApplication = (application: any) => { const exportApplication = (application: any) => {
ApplicaitonApi.exportApplication(application.id, application.name, loading).catch((e) => { ApplicationApi.exportApplication(application.id, application.name, loading).catch((e) => {
if (e.response.status !== 403) { if (e.response.status !== 403) {
e.response.data.text().then((res: string) => { e.response.data.text().then((res: string) => {
MsgError(`${t('views.application.tip.ExportError')}:${JSON.parse(res).message}`) MsgError(`${t('views.application.tip.ExportError')}:${JSON.parse(res).message}`)
@ -438,7 +438,7 @@ const importApplication = (file: any) => {
const formData = new FormData() const formData = new FormData()
formData.append('file', file.raw, file.name) formData.append('file', file.raw, file.name)
elUploadRef.value.clearFiles() elUploadRef.value.clearFiles()
ApplicaitonApi.importApplication(formData, loading) ApplicationApi.importApplication(formData, loading)
.then(async (res: any) => { .then(async (res: any) => {
if (res?.data) { if (res?.data) {
applicationList.value = [] applicationList.value = []
@ -480,7 +480,7 @@ function clickFolder(item: any) {
applicationList.value = [] applicationList.value = []
getList() getList()
} }
function folderClickHandel(row: any) { function folderClickHandle(row: any) {
folder.setCurrentFolder(row) folder.setCurrentFolder(row)
applicationList.value = [] applicationList.value = []
getList() getList()
@ -490,7 +490,7 @@ function refreshFolder() {
getFolder() getFolder()
} }
function searchHandel() { function searchHandle() {
paginationConfig.current_page = 1 paginationConfig.current_page = 1
applicationList.value = [] applicationList.value = []
getList() getList()
@ -500,7 +500,7 @@ function getList() {
const params = { const params = {
folder_id: folder.currentFolder?.id || 'default', folder_id: folder.currentFolder?.id || 'default',
} }
ApplicaitonApi.getApplication(paginationConfig, params, loading).then((res) => { ApplicationApi.getApplication(paginationConfig, params, loading).then((res) => {
paginationConfig.total = res.data.total paginationConfig.total = res.data.total
applicationList.value = [...applicationList.value, ...res.data.records] applicationList.value = [...applicationList.value, ...res.data.records]
}) })

View File

@ -19,7 +19,7 @@
<el-input <el-input
v-if="search_type === 'name'" v-if="search_type === 'name'"
v-model="search_form.name" v-model="search_form.name"
@change="searchHandel" @change="searchHandle"
:placeholder="$t('common.searchBar.placeholder')" :placeholder="$t('common.searchBar.placeholder')"
style="width: 220px" style="width: 220px"
clearable clearable
@ -27,7 +27,7 @@
<el-select <el-select
v-else-if="search_type === 'create_user'" v-else-if="search_type === 'create_user'"
v-model="search_form.create_user" v-model="search_form.create_user"
@change="searchHandel" @change="searchHandle"
clearable clearable
style="width: 220px" style="width: 220px"
> >
@ -481,7 +481,7 @@ function clickFolder(item: any) {
folder.setCurrentFolder(item) folder.setCurrentFolder(item)
} }
function searchHandel() { function searchHandle() {
paginationConfig.current_page = 1 paginationConfig.current_page = 1
knowledge.setKnowledgeList([]) knowledge.setKnowledgeList([])
getList() getList()

View File

@ -6,7 +6,7 @@
:source="SourceTypeEnum.KNOWLEDGE" :source="SourceTypeEnum.KNOWLEDGE"
:data="folderList" :data="folderList"
:currentNodeKey="folder.currentFolder?.id" :currentNodeKey="folder.currentFolder?.id"
@handleNodeClick="folderClickHandel" @handleNodeClick="folderClickHandle"
class="p-8" class="p-8"
:shareTitle="$t('views.shared.shared_knowledge')" :shareTitle="$t('views.shared.shared_knowledge')"
:showShared="permissionPrecise['is_share']()" :showShared="permissionPrecise['is_share']()"
@ -15,7 +15,7 @@
</template> </template>
<KnowledgeListContainer> <KnowledgeListContainer>
<template #header> <template #header>
<FolderBreadcrumb :folderList="folderList" @click="folderClickHandel" /> <FolderBreadcrumb :folderList="folderList" @click="folderClickHandle" />
</template> </template>
</KnowledgeListContainer> </KnowledgeListContainer>
</LayoutContainer> </LayoutContainer>
@ -57,7 +57,7 @@ function getFolder(bool?: boolean) {
}) })
} }
function folderClickHandel(row: any) { function folderClickHandle(row: any) {
folder.setCurrentFolder(row) folder.setCurrentFolder(row)
knowledge.setKnowledgeList([]) knowledge.setKnowledgeList([])
} }

View File

@ -19,7 +19,7 @@
<el-input <el-input
v-if="search_type === 'name'" v-if="search_type === 'name'"
v-model="search_form.name" v-model="search_form.name"
@change="searchHandel" @change="searchHandle"
:placeholder="$t('common.searchBar.placeholder')" :placeholder="$t('common.searchBar.placeholder')"
style="width: 220px" style="width: 220px"
clearable clearable
@ -27,7 +27,7 @@
<el-select <el-select
v-else-if="search_type === 'create_user'" v-else-if="search_type === 'create_user'"
v-model="search_form.create_user" v-model="search_form.create_user"
@change="searchHandel" @change="searchHandle"
clearable clearable
style="width: 220px" style="width: 220px"
> >
@ -591,7 +591,7 @@ function clickFolder(item: any) {
folder.setCurrentFolder(item) folder.setCurrentFolder(item)
} }
function searchHandel() { function searchHandle() {
paginationConfig.current_page = 1 paginationConfig.current_page = 1
tool.setToolList([]) tool.setToolList([])
getList() getList()

View File

@ -6,7 +6,7 @@
:source="SourceTypeEnum.TOOL" :source="SourceTypeEnum.TOOL"
:data="folderList" :data="folderList"
:currentNodeKey="folder.currentFolder?.id" :currentNodeKey="folder.currentFolder?.id"
@handleNodeClick="folderClickHandel" @handleNodeClick="folderClickHandle"
@refreshTree="refreshFolder" @refreshTree="refreshFolder"
:shareTitle="$t('views.shared.shared_tool')" :shareTitle="$t('views.shared.shared_tool')"
:showShared="permissionPrecise['is_share']()" :showShared="permissionPrecise['is_share']()"
@ -15,7 +15,7 @@
</template> </template>
<ToolListContainer> <ToolListContainer>
<template #header> <template #header>
<FolderBreadcrumb :folderList="folderList" @click="folderClickHandel" /> <FolderBreadcrumb :folderList="folderList" @click="folderClickHandle" />
</template> </template>
</ToolListContainer> </ToolListContainer>
</LayoutContainer> </LayoutContainer>
@ -59,7 +59,7 @@ function getFolder(bool?: boolean) {
}) })
} }
function folderClickHandel(row: any) { function folderClickHandle(row: any) {
folder.setCurrentFolder(row) folder.setCurrentFolder(row)
tool.setToolList([]) tool.setToolList([])
} }