diff --git a/package.json b/package.json index 5e6e438..80f69fc 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "aix-win", - "version": "1.1.8", + "version": "1.2.2", "description": "An Electron application with Vue", "main": "./out/main/index.js", "author": "example.com", @@ -69,6 +69,5 @@ "vite-plugin-windicss": "^1.9.3", "vue": "^3.4.30", "windicss": "^3.5.6" - }, - "packageManager": "pnpm@9.9.0+sha512.60c18acd138bff695d339be6ad13f7e936eea6745660d4cc4a776d5247c540d0edee1a563695c183a66eb917ef88f2b4feb1fc25f32a7adcadc7aaf3438e99c1" + } } 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/api/classTask/index.js b/src/renderer/src/api/classTask/index.js index cd13685..61154ff 100644 --- a/src/renderer/src/api/classTask/index.js +++ b/src/renderer/src/api/classTask/index.js @@ -1,7 +1,22 @@ // 查询evaluation列表 import request from '@/utils/request' -// 查询反馈列表 +// 查询作业列表 +export function listByDeadDate(query) { + return request({ + url: '/education/classwork/listByDeadDate', + method: 'get', + params: query + }) +} +//多个班级学生作业数据 +export function listClassworkdataByDeadDate(query) { + return request({ + url: '/education/classworkdata/listByDeadDate', + method: 'get', + params: query + }) +} // 查询classworkdata列表 班级作业列表 export function listClassworkdata(query) { diff --git a/src/renderer/src/api/login.js b/src/renderer/src/api/login.js index 308e95c..16c03cf 100644 --- a/src/renderer/src/api/login.js +++ b/src/renderer/src/api/login.js @@ -88,6 +88,15 @@ export function signIn(data) { }) } +//登录模块-找回密码 +export function retrievePwd(data) { + return request({ + url: '/smarttalk/register/authRetrievePwd', + method: 'post', + data + }) +} + //注册模块-获取学校 export function deptTree(data) { return request({ diff --git a/src/renderer/src/components/ai-chart/index.vue b/src/renderer/src/components/ai-chart/index.vue index af8e99e..03bb26b 100644 --- a/src/renderer/src/components/ai-chart/index.vue +++ b/src/renderer/src/components/ai-chart/index.vue @@ -3,21 +3,20 @@ - - - - - - - - 教学助手 - - - - - + + + + + + + 教学助手 - + + + + + + @@ -55,12 +54,13 @@ + + + + - - - - - + + @@ -75,7 +75,6 @@ import vDrag from '@/views/tool/directive/drag' const { ipcRenderer } = window.electron || {} - const userStore = useUserStore().user @@ -115,28 +114,28 @@ const outerAi = [ id: 1, title: '生成图片', secondTit: '文生图大模型', - img: '../../../src/assets/images/ai-01.png', + img: new URL('../../../src/assets/images/ai-01.png', import.meta.url).href, path: '/ais/aisd3' }, { id: 2, title: '教学大模型', secondTit: '中小学基础教学大模型', - img: '../../../src/assets/images/ai-02.png', + img: new URL('../../../src/assets/images/ai-02.png', import.meta.url).href, disabled: true, }, { id: 3, title: '育人大模型', secondTit: '全场域育人大模型', - img: '../../../src/assets/images/ai-03.png', + img: new URL('../../../src/assets/images/ai-03.png', import.meta.url).href, path: '/ais/aimodel' }, { id: 4, title: 'ChatTTS', secondTit: '文字转语音大模型', - img: '../../../src/assets/images/ai-04.png', + img: new URL('../../../src/assets/images/ai-04.png', import.meta.url).href, path: '/ais/aiChatTTS' } ] @@ -218,6 +217,7 @@ onMounted(() => { } .page-ai-chart { + .ai-icon { position: fixed; right: 30px; @@ -227,41 +227,38 @@ onMounted(() => { } .chart-card { + background-color: #fff; position: fixed; bottom: 20px; right: 20px; width: 300px; height: calc(100% - 110px); border-radius: 10px; - - :deep(.el-card__header) { - padding: 10px; - } - - :deep(.el-card__body) { - height: calc(100% - 50px); - padding: 10px 15px; - } + z-index: 10; + box-shadow: 0px 0px 12px rgba(0, 0, 0, .12); .chart-body { - height: calc(100% - 60px); + padding: 10px 15px; + height: calc(100% - 110px); + -webkit-app-region: no-drag; } } .card-max { width: 100%; height: 100%; - left: 0; - top: 0; + left: 0 !important; + top: 0 !important; } .chart-header { justify-content: space-between; font-size: 14px; - + padding: 10px; + border-bottom: 1px solid #e4e7ed; + -webkit-app-region: no-drag; .header-name { align-items: center; - .header-icon { font-size: 28px; align-items: center; @@ -354,7 +351,10 @@ onMounted(() => { } .chart-input { - position: relative; + position: absolute; + width: 90%; + left: 5%; + bottom: 15px; display: flex; align-items: center; padding-top: 15px; diff --git a/src/renderer/src/components/choose-textbook/index.vue b/src/renderer/src/components/choose-textbook/index.vue index 38fd5e1..94b9e2b 100644 --- a/src/renderer/src/components/choose-textbook/index.vue +++ b/src/renderer/src/components/choose-textbook/index.vue @@ -100,6 +100,7 @@ const getSubjectContent = async () => { edustage, // entpcourseedituserid: userId, itemgroup: 'textbook', + orderby: 'orderidx asc', pageSize: 10000 } @@ -263,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/components/window-tools/index.vue b/src/renderer/src/components/window-tools/index.vue index a0ea26d..da66f80 100644 --- a/src/renderer/src/components/window-tools/index.vue +++ b/src/renderer/src/components/window-tools/index.vue @@ -51,6 +51,8 @@ const closeWindow = () => { \ No newline at end of file diff --git a/src/renderer/src/views/login/components/Register.vue b/src/renderer/src/views/login/components/Register.vue index 63276dc..2937f36 100644 --- a/src/renderer/src/views/login/components/Register.vue +++ b/src/renderer/src/views/login/components/Register.vue @@ -1,12 +1,12 @@ - + @@ -18,10 +18,10 @@ status-icon ref="ruleFormRef" > - + - + @@ -60,14 +60,14 @@ {{ item.name }}: - + - 下一步 + {{ ['下一步','重置密码'][type-1]||'未知异常' }} @@ -109,7 +109,7 @@ diff --git a/src/renderer/src/views/resource/container/third-list.vue b/src/renderer/src/views/resource/container/third-list.vue index b163266..7021b61 100644 --- a/src/renderer/src/views/resource/container/third-list.vue +++ b/src/renderer/src/views/resource/container/third-list.vue @@ -1,5 +1,5 @@ - +