This commit is contained in:
zdg 2024-12-13 13:16:31 +08:00
commit 645f9ab120
4 changed files with 48 additions and 8 deletions

View File

@ -71,3 +71,11 @@ export const addFileToKj = (id) => {
method: 'get'
})
}
export const getModelInfo = (params) => {
return request({
url: '/education/llmModel/getModelInfo',
method: 'post',
params
})
}

View File

@ -9,7 +9,7 @@
<el-icon class="item-icon"><Flag /></el-icon>
<div class="content-header-title">{{item.name}}</div>
<div class="content-header-body">
<div class="content-header-num">6</div>
<div class="content-header-num">{{item.num}}</div>
<div class="content-header-text">分析结果</div>
</div>
</div>
@ -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(() => {
})
</script>
<style lang="scss" scoped>
.model-wrap{

View File

@ -1131,6 +1131,7 @@ export default {
position: absolute;
right: 10px;
top: 4px;
z-index: 10;
}
.prepare-center-jxkj{
height: 100%;

View File

@ -346,7 +346,7 @@ const toRousrceUrl = async(o) => {
if (o?.background?.image) await toRousrceUrl(o.background.image)
if(o?.elements){
for (let element of o.elements) {
await this.toRousrceUrl(element);
await toRousrceUrl(element);
}
}
}