diff --git a/src/renderer/src/assets/iconfont/iconfont.css b/src/renderer/src/assets/iconfont/iconfont.css index c157cc6..2ed596e 100644 --- a/src/renderer/src/assets/iconfont/iconfont.css +++ b/src/renderer/src/assets/iconfont/iconfont.css @@ -1,8 +1,8 @@ @font-face { font-family: "iconfont"; /* Project id 4723712 */ - src: url('iconfont.woff2?t=1730356699416') format('woff2'), - url('iconfont.woff?t=1730356699416') format('woff'), - url('iconfont.ttf?t=1730356699416') format('truetype'); + src: url('iconfont.woff2?t=1730448425319') format('woff2'), + url('iconfont.woff?t=1730448425319') format('woff'), + url('iconfont.ttf?t=1730448425319') format('truetype'); } .iconfont { @@ -13,6 +13,34 @@ -moz-osx-font-smoothing: grayscale; } +.icon-xiaoxi:before { + content: "\e677"; +} + +.icon-fuzhi:before { + content: "\e6f6"; +} + +.icon-tianjia:before { + content: "\e675"; +} + +.icon-bianji-gangbi:before { + content: "\e6d8"; +} + +.icon-rss-line:before { + content: "\e782"; +} + +.icon-touxiang:before { + content: "\e655"; +} + +.icon-xiangxia:before { + content: "\e85d"; +} + .icon--kejian:before { content: "\e6a3"; } diff --git a/src/renderer/src/assets/iconfont/iconfont.js b/src/renderer/src/assets/iconfont/iconfont.js index 93a8aea..19c4023 100644 --- a/src/renderer/src/assets/iconfont/iconfont.js +++ b/src/renderer/src/assets/iconfont/iconfont.js @@ -1 +1 @@ -window._iconfont_svg_string_4723712='',(l=>{var h=(c=(c=document.getElementsByTagName("script"))[c.length-1]).getAttribute("data-injectcss"),c=c.getAttribute("data-disable-injectsvg");if(!c){var a,v,t,i,z,p=function(h,c){c.parentNode.insertBefore(h,c)};if(h&&!l.__iconfont__svg__cssinject__){l.__iconfont__svg__cssinject__=!0;try{document.write("")}catch(h){console&&console.log(h)}}a=function(){var h,c=document.createElement("div");c.innerHTML=l._iconfont_svg_string_4723712,(c=c.getElementsByTagName("svg")[0])&&(c.setAttribute("aria-hidden","true"),c.style.position="absolute",c.style.width=0,c.style.height=0,c.style.overflow="hidden",c=c,(h=document.body).firstChild?p(c,h.firstChild):h.appendChild(c))},document.addEventListener?~["complete","loaded","interactive"].indexOf(document.readyState)?setTimeout(a,0):(v=function(){document.removeEventListener("DOMContentLoaded",v,!1),a()},document.addEventListener("DOMContentLoaded",v,!1)):document.attachEvent&&(t=a,i=l.document,z=!1,o(),i.onreadystatechange=function(){"complete"==i.readyState&&(i.onreadystatechange=null,M())})}function M(){z||(z=!0,t())}function o(){try{i.documentElement.doScroll("left")}catch(h){return void setTimeout(o,50)}M()}})(window); \ No newline at end of file +window._iconfont_svg_string_4723712='',(l=>{var h=(c=(c=document.getElementsByTagName("script"))[c.length-1]).getAttribute("data-injectcss"),c=c.getAttribute("data-disable-injectsvg");if(!c){var a,v,t,i,z,p=function(h,c){c.parentNode.insertBefore(h,c)};if(h&&!l.__iconfont__svg__cssinject__){l.__iconfont__svg__cssinject__=!0;try{document.write("")}catch(h){console&&console.log(h)}}a=function(){var h,c=document.createElement("div");c.innerHTML=l._iconfont_svg_string_4723712,(c=c.getElementsByTagName("svg")[0])&&(c.setAttribute("aria-hidden","true"),c.style.position="absolute",c.style.width=0,c.style.height=0,c.style.overflow="hidden",c=c,(h=document.body).firstChild?p(c,h.firstChild):h.appendChild(c))},document.addEventListener?~["complete","loaded","interactive"].indexOf(document.readyState)?setTimeout(a,0):(v=function(){document.removeEventListener("DOMContentLoaded",v,!1),a()},document.addEventListener("DOMContentLoaded",v,!1)):document.attachEvent&&(t=a,i=l.document,z=!1,o(),i.onreadystatechange=function(){"complete"==i.readyState&&(i.onreadystatechange=null,M())})}function M(){z||(z=!0,t())}function o(){try{i.documentElement.doScroll("left")}catch(h){return void setTimeout(o,50)}M()}})(window); \ No newline at end of file diff --git a/src/renderer/src/assets/iconfont/iconfont.json b/src/renderer/src/assets/iconfont/iconfont.json index bfd7035..1542e47 100644 --- a/src/renderer/src/assets/iconfont/iconfont.json +++ b/src/renderer/src/assets/iconfont/iconfont.json @@ -5,6 +5,55 @@ "css_prefix_text": "icon-", "description": "", "glyphs": [ + { + "icon_id": "2158298", + "name": "消息", + "font_class": "xiaoxi", + "unicode": "e677", + "unicode_decimal": 58999 + }, + { + "icon_id": "12024469", + "name": "复制", + "font_class": "fuzhi", + "unicode": "e6f6", + "unicode_decimal": 59126 + }, + { + "icon_id": "17887886", + "name": "添加", + "font_class": "tianjia", + "unicode": "e675", + "unicode_decimal": 58997 + }, + { + "icon_id": "24268380", + "name": "编辑-钢笔", + "font_class": "bianji-gangbi", + "unicode": "e6d8", + "unicode_decimal": 59096 + }, + { + "icon_id": "42198021", + "name": "rss-line", + "font_class": "rss-line", + "unicode": "e782", + "unicode_decimal": 59266 + }, + { + "icon_id": "700853", + "name": "头像", + "font_class": "touxiang", + "unicode": "e655", + "unicode_decimal": 58965 + }, + { + "icon_id": "16398985", + "name": "向下", + "font_class": "xiangxia", + "unicode": "e85d", + "unicode_decimal": 59485 + }, { "icon_id": "6571029", "name": "60-课件", diff --git a/src/renderer/src/assets/iconfont/iconfont.ttf b/src/renderer/src/assets/iconfont/iconfont.ttf index e20139b..e9417dd 100644 Binary files a/src/renderer/src/assets/iconfont/iconfont.ttf and b/src/renderer/src/assets/iconfont/iconfont.ttf differ diff --git a/src/renderer/src/assets/iconfont/iconfont.woff b/src/renderer/src/assets/iconfont/iconfont.woff index 483da44..7d3e222 100644 Binary files a/src/renderer/src/assets/iconfont/iconfont.woff and b/src/renderer/src/assets/iconfont/iconfont.woff differ diff --git a/src/renderer/src/assets/iconfont/iconfont.woff2 b/src/renderer/src/assets/iconfont/iconfont.woff2 index 899d32d..bf9da5f 100644 Binary files a/src/renderer/src/assets/iconfont/iconfont.woff2 and b/src/renderer/src/assets/iconfont/iconfont.woff2 differ diff --git a/src/renderer/src/components/PdfJs/index.vue b/src/renderer/src/components/PdfJs/index.vue index 0973e5e..f99aa83 100644 --- a/src/renderer/src/components/PdfJs/index.vue +++ b/src/renderer/src/components/PdfJs/index.vue @@ -16,6 +16,10 @@ const props = defineProps({ isWin: { type: Boolean, default: false + }, + showCatalog: { + type: Boolean, + default: true } }) /**pdf文件地址 */ @@ -25,7 +29,15 @@ const fileUrl = props.isWin ? props.url : getAppInstallUrl('pdfjs-dist/web/viewe onMounted(() => { /** 将传入的pdf地址进行编码,防止中文识别错误 */ if(props.isWin) pdfUrl.value = fileUrl - else pdfUrl.value = fileUrl + encodeURIComponent(props.url) + '#pageMode=outline' + else{ + let url = fileUrl + encodeURIComponent(props.url) + if(props.showCatalog){ + pdfUrl.value = url + '#pageMode=outline' + } + else{ + pdfUrl.value = url + } + } }) diff --git a/src/renderer/src/hooks/useGetSubject.js b/src/renderer/src/hooks/useGetSubject.js index 2b61a08..b25b4b1 100644 --- a/src/renderer/src/hooks/useGetSubject.js +++ b/src/renderer/src/hooks/useGetSubject.js @@ -51,6 +51,7 @@ export const useGetSubject = async () =>{ } const { rows } = await listEvaluation(subjectParams) subjectList = rows + sessionStore.set('subject.curBook', rows[0]) sessionStore.set('subject.bookList', rows) treeData = getTreeData(subjectList[0].id) // 设置一个默认的curNode diff --git a/src/renderer/src/layout/components/Aside.vue b/src/renderer/src/layout/components/Aside.vue index 7ef4218..75880b5 100644 --- a/src/renderer/src/layout/components/Aside.vue +++ b/src/renderer/src/layout/components/Aside.vue @@ -75,7 +75,7 @@ const headerMenus = [ name: '教学大模型', id: 1, icon: 'icon-shouye', - path: '/index' + path: '/model/index' }, { name: '教学工作台', diff --git a/src/renderer/src/layout/components/Header.vue b/src/renderer/src/layout/components/Header.vue index d827775..bc94c34 100644 --- a/src/renderer/src/layout/components/Header.vue +++ b/src/renderer/src/layout/components/Header.vue @@ -1,232 +1,63 @@ \ No newline at end of file diff --git a/src/renderer/src/views/curriculum-standards/container/question-answer.vue b/src/renderer/src/views/curriculum-standards/container/question-answer.vue new file mode 100644 index 0000000..1a99ab2 --- /dev/null +++ b/src/renderer/src/views/curriculum-standards/container/question-answer.vue @@ -0,0 +1,153 @@ + + + + + \ No newline at end of file diff --git a/src/renderer/src/views/curriculum-standards/container/read-result.vue b/src/renderer/src/views/curriculum-standards/container/read-result.vue new file mode 100644 index 0000000..83e7a1f --- /dev/null +++ b/src/renderer/src/views/curriculum-standards/container/read-result.vue @@ -0,0 +1,210 @@ + + + + + \ No newline at end of file diff --git a/src/renderer/src/views/curriculum-standards/container/read-template.vue b/src/renderer/src/views/curriculum-standards/container/read-template.vue new file mode 100644 index 0000000..2b77e72 --- /dev/null +++ b/src/renderer/src/views/curriculum-standards/container/read-template.vue @@ -0,0 +1,126 @@ + + + + + \ No newline at end of file diff --git a/src/renderer/src/views/curriculum-standards/index.vue b/src/renderer/src/views/curriculum-standards/index.vue new file mode 100644 index 0000000..61fa22a --- /dev/null +++ b/src/renderer/src/views/curriculum-standards/index.vue @@ -0,0 +1,178 @@ + + + + + \ No newline at end of file diff --git a/src/renderer/src/views/examination-analysis/container/pdf-template.vue b/src/renderer/src/views/examination-analysis/container/pdf-template.vue new file mode 100644 index 0000000..ceba60f --- /dev/null +++ b/src/renderer/src/views/examination-analysis/container/pdf-template.vue @@ -0,0 +1,28 @@ + + + + + \ No newline at end of file diff --git a/src/renderer/src/views/examination-analysis/container/question-answer.vue b/src/renderer/src/views/examination-analysis/container/question-answer.vue new file mode 100644 index 0000000..1a99ab2 --- /dev/null +++ b/src/renderer/src/views/examination-analysis/container/question-answer.vue @@ -0,0 +1,153 @@ + + + + + \ No newline at end of file diff --git a/src/renderer/src/views/examination-analysis/container/read-result.vue b/src/renderer/src/views/examination-analysis/container/read-result.vue new file mode 100644 index 0000000..aa3bd2d --- /dev/null +++ b/src/renderer/src/views/examination-analysis/container/read-result.vue @@ -0,0 +1,174 @@ + + + + + \ No newline at end of file diff --git a/src/renderer/src/views/examination-analysis/container/read-template.vue b/src/renderer/src/views/examination-analysis/container/read-template.vue new file mode 100644 index 0000000..0b2c218 --- /dev/null +++ b/src/renderer/src/views/examination-analysis/container/read-template.vue @@ -0,0 +1,116 @@ + + + + + \ No newline at end of file diff --git a/src/renderer/src/views/examination-analysis/index.vue b/src/renderer/src/views/examination-analysis/index.vue new file mode 100644 index 0000000..9d0044d --- /dev/null +++ b/src/renderer/src/views/examination-analysis/index.vue @@ -0,0 +1,177 @@ + + + + + \ No newline at end of file diff --git a/src/renderer/src/views/index/index.vue b/src/renderer/src/views/index/index.vue deleted file mode 100644 index de8888f..0000000 --- a/src/renderer/src/views/index/index.vue +++ /dev/null @@ -1,13 +0,0 @@ - - - - - \ No newline at end of file diff --git a/src/renderer/src/views/model/index.vue b/src/renderer/src/views/model/index.vue new file mode 100644 index 0000000..50f7a7c --- /dev/null +++ b/src/renderer/src/views/model/index.vue @@ -0,0 +1,21 @@ + + + + + \ No newline at end of file diff --git a/src/renderer/src/views/teaching-material/container/pdf-template.vue b/src/renderer/src/views/teaching-material/container/pdf-template.vue new file mode 100644 index 0000000..ceba60f --- /dev/null +++ b/src/renderer/src/views/teaching-material/container/pdf-template.vue @@ -0,0 +1,28 @@ + + + + + \ No newline at end of file diff --git a/src/renderer/src/views/teaching-material/container/question-answer.vue b/src/renderer/src/views/teaching-material/container/question-answer.vue new file mode 100644 index 0000000..bb27c86 --- /dev/null +++ b/src/renderer/src/views/teaching-material/container/question-answer.vue @@ -0,0 +1,152 @@ + + + + + \ No newline at end of file diff --git a/src/renderer/src/views/teaching-material/container/read-result.vue b/src/renderer/src/views/teaching-material/container/read-result.vue new file mode 100644 index 0000000..d5729c4 --- /dev/null +++ b/src/renderer/src/views/teaching-material/container/read-result.vue @@ -0,0 +1,193 @@ + + + + + \ No newline at end of file diff --git a/src/renderer/src/views/teaching-material/container/read-template.vue b/src/renderer/src/views/teaching-material/container/read-template.vue new file mode 100644 index 0000000..1972c09 --- /dev/null +++ b/src/renderer/src/views/teaching-material/container/read-template.vue @@ -0,0 +1,157 @@ + + + + + \ No newline at end of file diff --git a/src/renderer/src/views/teaching-material/index.vue b/src/renderer/src/views/teaching-material/index.vue new file mode 100644 index 0000000..ba787fb --- /dev/null +++ b/src/renderer/src/views/teaching-material/index.vue @@ -0,0 +1,178 @@ + + + + + \ No newline at end of file