diff --git a/package.json b/package.json index b43d760..80f69fc 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "aix-win", - "version": "1.2.0", + "version": "1.2.2", "description": "An Electron application with Vue", "main": "./out/main/index.js", "author": "example.com", diff --git a/src/main/index.js b/src/main/index.js index e4559b2..a4875ac 100644 --- a/src/main/index.js +++ b/src/main/index.js @@ -53,7 +53,7 @@ function createLoginWindow() { updateInit(loginWindow) } - // loginWindow.webContents.openDevTools() + loginWindow.webContents.openDevTools() loginWindow.once('ready-to-show', () => { loginWindow.show() }) @@ -297,4 +297,4 @@ function appWatchError() { app.on('child-process-gone', async (event, details) => { console.error(`APP-ERROR:child-process-gone; event: ${JSON.stringify(event)}; details:${JSON.stringify(details)}`) }) -} \ No newline at end of file +} diff --git a/src/renderer/src/components/choose-textbook/index.vue b/src/renderer/src/components/choose-textbook/index.vue index 007f9a0..94b9e2b 100644 --- a/src/renderer/src/components/choose-textbook/index.vue +++ b/src/renderer/src/components/choose-textbook/index.vue @@ -264,7 +264,7 @@ const transData = (data) => { //获取教材 const getSubject = async () => { - const { rows } = await listEvaluation({ itemkey: "version", edusubject, edustage, pageSize: 10000 }) + const { rows } = await listEvaluation({ itemkey: "version", edusubject, edustage, pageSize: 10000,orderby: 'orderidx asc', }) // subjectList.value = rows.filter(item => item.edustage == edustage && item.edusubject == edusubject) subjectList.value = rows diff --git a/src/renderer/src/components/choose-textbook/third/index.vue b/src/renderer/src/components/choose-textbook/third/index.vue index 2b7a6a2..dc5fd9e 100644 --- a/src/renderer/src/components/choose-textbook/third/index.vue +++ b/src/renderer/src/components/choose-textbook/third/index.vue @@ -41,7 +41,9 @@ const getSubject = (value) => { gradeName:gradeList[currentIndex].label } }) - const nameIndex = subjectList.value.findIndex(item => item.subjectName === useStore.user.edusubject) + //判断是否有名称或者包括名称就对应哪个学科 + const nameIndex = subjectList.value.findIndex(item => item.subjectName === useStore.user.edusubject || item.subjectName.includes(useStore.user.edusubject)) + if(nameIndex === -1) return; getTagId({subjectId:subjectList.value[nameIndex].subjectId,subjectName:subjectList.value[nameIndex].subjectName}) if(textbookVersionId.value === 0){ getTagId(subjectList.value[0]) diff --git a/src/renderer/src/views/classManage/aside.vue b/src/renderer/src/views/classManage/aside.vue index 32bb0d2..f7ee23f 100644 --- a/src/renderer/src/views/classManage/aside.vue +++ b/src/renderer/src/views/classManage/aside.vue @@ -34,7 +34,6 @@ const emits = defineEmits(['handleSelect']) //点击跳转路由 const handleSelect = (itemDom,pathKey) => { - console.log(itemDom,pathKey) const parts = pathKey[1].split("-") const result = parts.slice(0, 2).join("-") const index = props.menuItems.findIndex(item=>item.index===result) diff --git a/src/renderer/src/views/classManage/index.vue b/src/renderer/src/views/classManage/index.vue index 4fd66be..8ef42c2 100644 --- a/src/renderer/src/views/classManage/index.vue +++ b/src/renderer/src/views/classManage/index.vue @@ -2,8 +2,8 @@