Commit d49ca68e authored by nick zheng's avatar nick zheng

chore(应用配置): 支持刷新知识库列表&&只查询学习成功知识库

parent 6f2d7dd4
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
name="viewport" name="viewport"
content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"
/> />
<link rel="stylesheet" href="//at.alicdn.com/t/c/font_4711453_04ol63hssfos.css" /> <link rel="stylesheet" href="//at.alicdn.com/t/c/font_4711453_i03chzm1n0e.css" />
<title>Model Link</title> <title>Model Link</title>
</head> </head>
......
...@@ -7,6 +7,7 @@ import { usePagination } from '@/composables/usePagination.ts' ...@@ -7,6 +7,7 @@ import { usePagination } from '@/composables/usePagination.ts'
import CustomModal from '@/components/custom-modal/custom-modal.vue' import CustomModal from '@/components/custom-modal/custom-modal.vue'
import { fetchCreateKnowledge, fetchGetKnowledgeList } from '@/apis/knowledge' import { fetchCreateKnowledge, fetchGetKnowledgeList } from '@/apis/knowledge'
import { KnowledgeDocumentItem, KnowledgeItem } from '@/views/personal-space/personal-knowledge/types' import { KnowledgeDocumentItem, KnowledgeItem } from '@/views/personal-space/personal-knowledge/types'
import { TrainStatus } from '@/views/personal-space/personal-knowledge/types.d'
import { formatDateTime } from '@/utils/date-formatter' import { formatDateTime } from '@/utils/date-formatter'
import CreateKnowledgeModal, { import CreateKnowledgeModal, {
KnowledgeFormDataInterface, KnowledgeFormDataInterface,
...@@ -95,7 +96,7 @@ async function handleGetKnowledgeList() { ...@@ -95,7 +96,7 @@ async function handleGetKnowledgeList() {
paginationData.pageSize = 999999 paginationData.pageSize = 999999
knowledgeListLoading.value = true knowledgeListLoading.value = true
const res = await fetchGetKnowledgeList<KnowledgeItem[]>('', searchKnowledgeInputValue.value, { const res = await fetchGetKnowledgeList<KnowledgeItem[]>(TrainStatus.COMPLETE, searchKnowledgeInputValue.value, {
pagingInfo: paginationData, pagingInfo: paginationData,
}) })
...@@ -171,6 +172,11 @@ async function handleCreateKnowledgeNextStep(createKnowledgeData: KnowledgeFormD ...@@ -171,6 +172,11 @@ async function handleCreateKnowledgeNextStep(createKnowledgeData: KnowledgeFormD
<template #content> <template #content>
<div class="flex w-full justify-end px-3"> <div class="flex w-full justify-end px-3">
<div class="gap-4.5 flex items-center"> <div class="gap-4.5 flex items-center">
<i
class="iconfont icon-shuaxin text-gray-font-color hover:text-font-color cursor-pointer"
@click="handleGetKnowledgeList"
/>
<NInput <NInput
v-model:value="searchKnowledgeInputValue" v-model:value="searchKnowledgeInputValue"
:placeholder="t('personal_space_module.knowledge_module.search_knowledge_placeholder')" :placeholder="t('personal_space_module.knowledge_module.search_knowledge_placeholder')"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment