From ef4ec36bbea2724c41dc3af28bf23b115df753a3 Mon Sep 17 00:00:00 2001 From: zhuhao <979263092@qq.com> Date: Fri, 13 Dec 2024 13:00:02 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=A7=E6=A8=A1=E5=9E=8B=E9=A1=B5=E9=9D=A2?= =?UTF-8?q?=E8=A1=A5=E5=85=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/renderer/src/api/file/index.js | 8 ++++ src/renderer/src/views/model/index.vue | 41 ++++++++++++++++--- src/renderer/src/views/prepare/index.vue | 3 +- .../views/teachingDesign/container/right.vue | 4 +- 4 files changed, 48 insertions(+), 8 deletions(-) diff --git a/src/renderer/src/api/file/index.js b/src/renderer/src/api/file/index.js index 25c7e76..dac999b 100644 --- a/src/renderer/src/api/file/index.js +++ b/src/renderer/src/api/file/index.js @@ -71,3 +71,11 @@ export const addFileToKj = (id) => { method: 'get' }) } + +export const getModelInfo = (params) => { + return request({ + url: '/education/llmModel/getModelInfo', + method: 'post', + params + }) +} diff --git a/src/renderer/src/views/model/index.vue b/src/renderer/src/views/model/index.vue index a42bd06..ec0d2f0 100644 --- a/src/renderer/src/views/model/index.vue +++ b/src/renderer/src/views/model/index.vue @@ -9,7 +9,7 @@
{{item.name}}
-
6
+
{{item.num}}
分析结果
@@ -83,7 +83,7 @@ import useUserStore from '@/store/modules/user' // 用户信息 import ChooseTextbook from '@/components/choose-textbook/index.vue' import KjListItem from '@/views/prepare/container/kj-list-item.vue' import FileImage from '@/components/file-image/index.vue' -import {creatAPT, getSmarttalkPage} from '@/api/file' +import {creatAPT, getSmarttalkPage, getModelInfo} from '@/api/file' import {ArrowDown, Flag, Position} from '@element-plus/icons-vue' import {asyncLocalFile, parseCataByNode} from "@/utils/talkFile"; import { dataSetJson } from '@/utils/comm' // 数据集id文生图 @@ -165,9 +165,6 @@ const uploadData = ref({ fileRoot: '备课' }) const currentFileList = ref([]) -// 页面加载 -onMounted(() => { -}) const gotoRoute = (item) => { if (item.path) { @@ -392,6 +389,35 @@ const changeBook = async(data) => { uploadData.value.levelSecondId = cata[1] uploadData.value.levelThirdId = cata[2] uploadData.value.textbookId = data.textBook.curBookId + getModelInfo({cataid: currentNode.value.id}).then(res=>{ + console.log(res) + if (res&&res.data) { + tags.filter(item=>{ + switch (item.name) { + case '课标分析': + item.num = res.data.kbs + break; + case '教材分析': + item.num = res.data.jcs + break; + case '考试分析': + item.num = res.data.kss + break; + case '素材设计': + item.num = res.data.scs + break; + case '作业设计': + item.num = res.data.zys + break; + case '框架设计': + item.num = res.data.kjs + break; + default: + break; + } + }) + } + }) getSmarttalkPage({ ...uploadData.value, orderByColumn: 'createTime', @@ -469,6 +495,11 @@ const changeClass = async (type, row, other) => { break } } + +// 页面加载 +onMounted(() => { +}) +