From cd1fc036a2993a9cbb3d632a296e2909b395b59e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Czouyf=E2=80=9D?= <80906036@qq.com> Date: Mon, 25 Nov 2024 11:18:45 +0800 Subject: [PATCH 1/8] 1 --- .../newClassTaskAssign/questionUpload/quesItem/index.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/renderer/src/views/classTask/newClassTaskAssign/questionUpload/quesItem/index.vue b/src/renderer/src/views/classTask/newClassTaskAssign/questionUpload/quesItem/index.vue index d1a8f5d..952a816 100644 --- a/src/renderer/src/views/classTask/newClassTaskAssign/questionUpload/quesItem/index.vue +++ b/src/renderer/src/views/classTask/newClassTaskAssign/questionUpload/quesItem/index.vue @@ -1698,7 +1698,7 @@ watch(() => props.bookobj.levelSecondId, async (newVal, oldVal) => { * 2. 其他: 获取当前章节下的所有知识点 */ let id = props.bookobj.levelSecondId; - if(props.bookobj.node.edusubject == '语文' || props.bookobj.node.edusubject == '英语'){ + if( props.bookobj.node.edustage == '高中' && (props.bookobj.node.edusubject == '语文' || props.bookobj.node.edusubject == '英语') ){ id = props.bookobj.node.rootid; const res = await listEvaluation({ edusubject: props.bookobj.node.edusubject, edustage: props.bookobj.node.edustage, itemkey: "subject", pageSize: 10 }); id = res.rows[0]?.id; From d26af6446a0154ffabc6373a568700e87db485dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Czouyf=E2=80=9D?= <80906036@qq.com> Date: Mon, 25 Nov 2024 15:19:15 +0800 Subject: [PATCH 2/8] =?UTF-8?q?=E8=AF=95=E9=A2=98=E7=BC=96=E8=BE=91-?= =?UTF-8?q?=E5=9B=9E=E6=98=BE=E7=9F=A5=E8=AF=86=E7=82=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../classTask/newClassTaskAssign/index.vue | 2 +- .../questionUpload/quesItem/index.vue | 26 +++++++++++++------ 2 files changed, 19 insertions(+), 9 deletions(-) diff --git a/src/renderer/src/views/classTask/newClassTaskAssign/index.vue b/src/renderer/src/views/classTask/newClassTaskAssign/index.vue index 6adcd64..3f39eea 100644 --- a/src/renderer/src/views/classTask/newClassTaskAssign/index.vue +++ b/src/renderer/src/views/classTask/newClassTaskAssign/index.vue @@ -104,7 +104,7 @@
From 1882fd0daec9ba08f9b152aa75e7555bd5c73c6e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E6=9D=A8?= <666> Date: Tue, 26 Nov 2024 10:36:41 +0800 Subject: [PATCH 5/8] =?UTF-8?q?fix=EF=BC=9A=E4=BF=AE=E6=94=B9=E4=B8=AA?= =?UTF-8?q?=E4=BA=BA=E4=B8=AD=E5=BF=83=E4=BF=AE=E6=94=B9=E5=AD=A6=E7=A7=91?= =?UTF-8?q?=E7=9A=84=E6=97=B6=E5=80=99=E4=B8=8D=E7=94=9F=E6=95=88=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98=EF=BC=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/renderer/src/views/profile/components/selectClass.vue | 3 +++ src/renderer/src/views/profile/userInfo.vue | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/renderer/src/views/profile/components/selectClass.vue b/src/renderer/src/views/profile/components/selectClass.vue index 24e3d48..ada1d13 100644 --- a/src/renderer/src/views/profile/components/selectClass.vue +++ b/src/renderer/src/views/profile/components/selectClass.vue @@ -42,6 +42,7 @@ import useUserStore from '@/store/modules/user' import {ArrowDown} from '@element-plus/icons-vue' import { onMounted,ref } from 'vue'; import { listEvaluation } from '@/api/subject/index' +import {sessionStore} from '@/utils/store' const userStore = useUserStore().user const subjectList = ref([]) // 获取基础的学科 @@ -58,6 +59,7 @@ const getSubject = () => { // 选择学段 const handleUserEduStage = (item) => { userStore.edustage = item + sessionStore.set('edustage',item) if(item === '幼儿园'){ // 默认语文 userStore.edusubject = '语文' @@ -74,6 +76,7 @@ const handleUserEduStage = (item) => { // 选择学科 const handleUserEduSubject = (item) => { userStore.edusubject = item; + sessionStore.set('edusubject',item) } onMounted(() => { getSubject() diff --git a/src/renderer/src/views/profile/userInfo.vue b/src/renderer/src/views/profile/userInfo.vue index 6216179..b927274 100644 --- a/src/renderer/src/views/profile/userInfo.vue +++ b/src/renderer/src/views/profile/userInfo.vue @@ -162,7 +162,8 @@ setTimeout(() => { function submit() { proxy.$refs.userRef.validate((valid) => { if (valid) { - userStore.user.avatar = userStore.user.avatar + userStore.user.edusubject = sessionStore.get('edusubject') + userStore.user.edustage = sessionStore.get('edustage') updateUserInfo(userStore.user).then((response) => { if(response.code == 200){ userStore.login({username:userStore.user.userName,password:userStore.user.plainpwd}).then(() => { From 393587848f5d15d5c0736550b9dd480f078526e4 Mon Sep 17 00:00:00 2001 From: lyc Date: Tue, 26 Nov 2024 14:52:52 +0800 Subject: [PATCH 6/8] =?UTF-8?q?=E6=A8=A1=E6=9D=BF=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../container/adjust-dialog.vue | 6 +- .../template-study/container/edit-dialog.vue | 5 +- .../template-study/container/header.vue | 149 ------ .../container/keyword-dialog.vue | 17 +- .../container/{dialog.vue => left-dialog.vue} | 0 .../template-study/container/left.vue | 60 +++ .../template-study/container/pdf.vue | 28 - .../template-study/container/result.vue | 505 ------------------ .../template-study/container/right.vue | 451 ++++++++++++++++ .../src/components/template-study/index.vue | 39 +- 10 files changed, 542 insertions(+), 718 deletions(-) delete mode 100644 src/renderer/src/components/template-study/container/header.vue rename src/renderer/src/components/template-study/container/{dialog.vue => left-dialog.vue} (100%) create mode 100644 src/renderer/src/components/template-study/container/left.vue delete mode 100644 src/renderer/src/components/template-study/container/pdf.vue delete mode 100644 src/renderer/src/components/template-study/container/result.vue create mode 100644 src/renderer/src/components/template-study/container/right.vue diff --git a/src/renderer/src/components/template-study/container/adjust-dialog.vue b/src/renderer/src/components/template-study/container/adjust-dialog.vue index 0258471..3ac07da 100644 --- a/src/renderer/src/components/template-study/container/adjust-dialog.vue +++ b/src/renderer/src/components/template-study/container/adjust-dialog.vue @@ -45,6 +45,7 @@ import { conversation, completion } from '@/api/mode/index' import { sessionStore } from '@/utils/store' import { ElMessage } from 'element-plus' import { dataSetJson } from '@/utils/comm.js' +import emitter from '@/utils/mitt'; const textarea = ref('') @@ -109,13 +110,16 @@ const getCompletion = async (val) => { } const saveAdjust = (item) =>{ - emit('saveAdjust', item.msg) + isDialog.value = false ElMessage.success('操作成功') + emitter.on('saveAdjust', item.msg) + } onMounted(() => { let data = sessionStore.get('subject.curNode') + Object.assign(curNode, data); let text = props.modeType == 1 ? '课标': props.modeType == 2 ? '教材' : '考试' diff --git a/src/renderer/src/components/template-study/container/edit-dialog.vue b/src/renderer/src/components/template-study/container/edit-dialog.vue index fa7ff5d..97dda43 100644 --- a/src/renderer/src/components/template-study/container/edit-dialog.vue +++ b/src/renderer/src/components/template-study/container/edit-dialog.vue @@ -29,6 +29,7 @@ import { ref, watch} from 'vue' import { ElMessage } from 'element-plus' import { editTempResult } from '@/api/mode/index.js' +import emitter from '@/utils/mitt'; const textarea = ref('') @@ -49,12 +50,12 @@ watch(() => props.item.answer, (newVal) => { } },{ deep: true }) -const emit = defineEmits(['saveEdit']) + const onSave = () =>{ editTempResult({id: props.item.reultId, content: textarea.value}).then( res =>{ isDialog.value = false ElMessage.success('操作成功') - emit('saveEdit', textarea.value) + emitter.emit('onGetChild', textarea.value) }) } diff --git a/src/renderer/src/components/template-study/container/header.vue b/src/renderer/src/components/template-study/container/header.vue deleted file mode 100644 index b6b368b..0000000 --- a/src/renderer/src/components/template-study/container/header.vue +++ /dev/null @@ -1,149 +0,0 @@ - - - - - \ No newline at end of file diff --git a/src/renderer/src/components/template-study/container/keyword-dialog.vue b/src/renderer/src/components/template-study/container/keyword-dialog.vue index 4821d6e..a9888ed 100644 --- a/src/renderer/src/components/template-study/container/keyword-dialog.vue +++ b/src/renderer/src/components/template-study/container/keyword-dialog.vue @@ -1,5 +1,5 @@