diff --git a/src/renderer/src/layout/components/AppMain.vue b/src/renderer/src/layout/components/AppMain.vue index 67c3d6b..22cc830 100644 --- a/src/renderer/src/layout/components/AppMain.vue +++ b/src/renderer/src/layout/components/AppMain.vue @@ -67,7 +67,7 @@ const title = reactive([ }, { name: '教材分析', - url: '/teaching/chatwithtextbook', + url: '/textbookAnalysis', img: 'iconfont icon-yanjiushi', child1: [] }, diff --git a/src/renderer/src/router/index.js b/src/renderer/src/router/index.js index 2fa6890..8796063 100644 --- a/src/renderer/src/router/index.js +++ b/src/renderer/src/router/index.js @@ -54,7 +54,13 @@ export const constantRoutes = [ path: '/standardanalysis', component: () => import('@/views/teach/standardAnalysis/index.vue'), name: 'standardanalysis', - meta: {title: '课标分析'}, + meta: {title: '课标分析'} + }, + { + path: '/textbookAnalysis', + component: () => import('@/views/textbookAnalysis/index.vue'), + name: 'textbookAnalysis', + meta: {title: '教材分析'} }, { path: '/profile', diff --git a/src/renderer/src/views/desktop/index.vue b/src/renderer/src/views/desktop/index.vue index 493cf57..c14411a 100644 --- a/src/renderer/src/views/desktop/index.vue +++ b/src/renderer/src/views/desktop/index.vue @@ -66,8 +66,7 @@ const menuList = [{ { name: '教材分析', icon: 'icon-jiaocaixuanze', - isOuter: true, - path: '/teaching/chatwithtextbook', + path: '/textbookAnalysis', id: '1-2' }, { diff --git a/src/renderer/src/views/teach/standardAnalysis/index.vue b/src/renderer/src/views/teach/standardAnalysis/index.vue index e2e2cbe..cc465a1 100644 --- a/src/renderer/src/views/teach/standardAnalysis/index.vue +++ b/src/renderer/src/views/teach/standardAnalysis/index.vue @@ -70,7 +70,10 @@ - {{item.edustage + item.edusubject}} + + + {{item.fileurl.replace('.txt', '')}} + @@ -237,8 +240,6 @@ const getData = (data) => { } sourceStore.handleQuery() getlistEvaluationclue(levelFirstId, levelSecondId) - // 头部 教材分析打开外部链接需要当前章节ID - localStorage.setItem('unitId', JSON.stringify({ levelFirstId, levelSecondId})) } // 获取学科 const getAllSubject = async () => { @@ -252,12 +253,16 @@ const getAllSubject = async () => { bookList.value.push({...item,avartar: import.meta.env.VITE_APP_BUILD_BASE_PATH + item.avartar}) } }) - booksel.value = bookList.value.findIndex(item => item.edustage === edustage && item.edusubject === edusubject) + const textselidx = bookList.value.findIndex(item => item.edustage === edustage && item.edusubject === edusubject) + booksel.value = textselidx + booktitle.value = bookList.value[textselidx].fileurl.replace('.txt','') + const filePath = import.meta.env.VITE_APP_RES_FILE_PATH + bookList.value[textselidx].fileurl.replace('.txt','.pdf') + await loadPdfAnimation(filePath) } const bookChange = async (item, idx) => { booksel.value = idx bookInfo.value = {...item} - booktitle.value = `${item.edustage + item.edusubject}课程标准` + booktitle.value = item.fileurl.replace('.txt','') pdfUrl.value = ''; const filepath = import.meta.env.VITE_APP_RES_FILE_PATH + item.fileurl.replace('.txt','.pdf') await loadPdfAnimation(filepath) @@ -271,10 +276,6 @@ const loadPdfAnimation = (path) => { } onMounted(async () => { await getAllSubject(); - const { edustage, edusubject } = userStore.user; - booktitle.value = `${edustage + edusubject}课程标准` - const filePath = `${import.meta.env.VITE_APP_RES_FILE_PATH}${edustage}-${edusubject}-课标.pdf` - await loadPdfAnimation(filePath) if(cardref.value && headref.value){ const cardH = cardref.value.offsetHeight; const headh = headref.value.offsetHeight; @@ -529,13 +530,22 @@ onMounted(async () => { padding-top: 1px; overflow: auto; .item{ - width: 100%; + width: 162px; height: auto; padding: 8px 16px; background-color: #ffffff; - border-top: 1px solid #f1f1f1; - font-size: 14px; - color: #3b3b3b; + float: left; + .bookimg{ + width: 130px; + height: 180px; + } + .name{ + font-size: 14px; + color: #3b3b3b; + } + } + .item:hover{ + cursor: pointer; } .active{ background-color: #409eff; diff --git a/src/renderer/src/views/textbookAnalysis/index.vue b/src/renderer/src/views/textbookAnalysis/index.vue new file mode 100644 index 0000000..0fbad07 --- /dev/null +++ b/src/renderer/src/views/textbookAnalysis/index.vue @@ -0,0 +1,555 @@ + + + + + + + + + + {{booktitle}} + + + 更新2024.9.10 + + + + + + + + + + + + + + + + + + + {{item.username}} + {{item.childcount}}条 + + + {{ item.userentpname }} + {{ item.timeStr }} + + + + + 加载中... + ~没有更多了~ + + + + + + + 文 + 档 + 加 + 载 + 中 + . + . + . + + + + + + + + {{item.fileurl.replace('.txt', '')}} + + + + + + + \ No newline at end of file
加载中...
~没有更多了~