From fbbd84df932ee65c2c4a6054c1ed39eb2e1e8e2e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=99=BD=E4=BA=86=E4=B8=AA=E7=99=BD?= <543593352@qq.com> Date: Tue, 12 Nov 2024 16:45:56 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BD=9C=E4=B8=9A=E6=89=B9=E6=94=B9=E9=A1=B5?= =?UTF-8?q?=EF=BC=9A=E5=B7=B2=E4=BA=A4=E6=9C=AA=E4=BA=A4=E9=80=89=E6=8B=A9?= =?UTF-8?q?=E8=83=8C=E6=99=AF=E9=A2=9C=E8=89=B2=E7=BC=BA=E5=A4=B1=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../container/newTask/taskTypeView.vue | 2 +- .../src/views/classTask/teachClassTask.vue | 20 +++++++++---------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/renderer/src/views/classTask/container/newTask/taskTypeView.vue b/src/renderer/src/views/classTask/container/newTask/taskTypeView.vue index 84550c1..04ff553 100644 --- a/src/renderer/src/views/classTask/container/newTask/taskTypeView.vue +++ b/src/renderer/src/views/classTask/container/newTask/taskTypeView.vue @@ -499,7 +499,7 @@ function Apis(key) { // 年份 yearStr: entpCourseWorkQueryParams.yearStr !== '-1' ? entpCourseWorkQueryParams.yearStr:'', // 知识点 - thirdId: entpCourseWorkQueryParams.point.length > 0 ? entpCourseWorkQueryParams.point[0]:'', + thirdId: entpCourseWorkQueryParams.point&&entpCourseWorkQueryParams.point.length > 0 ? entpCourseWorkQueryParams.point[0]:'', // 关键字 keyword: entpCourseWorkQueryParams.keyWord && entpCourseWorkQueryParams.keyWord !== '' ? entpCourseWorkQueryParams.keyWord:'', diff --git a/src/renderer/src/views/classTask/teachClassTask.vue b/src/renderer/src/views/classTask/teachClassTask.vue index fb69948..fb44c02 100644 --- a/src/renderer/src/views/classTask/teachClassTask.vue +++ b/src/renderer/src/views/classTask/teachClassTask.vue @@ -57,8 +57,8 @@ style="margin-bottom: 1px" @change="tableRadioChange" > - - + + { classWorkAnalysis.workclass = data.workclass // 重置学生列表 tableRadio.list = [] - tableRadio.value = '1' + tableRadio.value = 1 tableRadio.num0 = 0 tableRadio.num1 = 0 @@ -401,7 +401,7 @@ const getClassWorkStudentList = (rowId) => { tableRadio.list = classWorkAnalysis.classworkdata && classWorkAnalysis.classworkdata.filter((item) => item.finishtimelength != '0') - tableRadio.value = '1' + tableRadio.value = 1 tableRadio.num0 = classWorkAnalysis.classworkdata.length - tableRadio.list.length tableRadio.num1 = tableRadio.list.length // 自动批阅判断 @@ -417,7 +417,7 @@ const getClassWorkStudentList = (rowId) => { */ const teacherCriticism = ()=>{ // 已交的list才自动批阅判断 - if(tableRadio.value == '1'&& classWorkAnalysis.worktype == '习题训练'){ + if(tableRadio.value == 1 && classWorkAnalysis.worktype == '习题训练'){ // 只有习题训练才会自动批阅 tableRadio.list = tableRadio.list.map((item) => { return { @@ -572,16 +572,16 @@ const tableRadioChange = (e) => { isopen_dtwk_table.value = false; console.log(e,'??????') console.log("学生列表:", classWorkAnalysis.classworkdata) - if(e=='1'){ + if(e==1){ tableRadio.list = classWorkAnalysis.classworkdata.filter(item => item.finishtimelength != '0') - tableRadio.value = '1'; + tableRadio.value = 1; tableRadio.num0 = classWorkAnalysis.classworkdata.length - tableRadio.list.length; tableRadio.num1 = tableRadio.list.length; // 自动批阅判断 teacherCriticism(); - }else if(e=='0'){ + }else if(e==0){ tableRadio.list = classWorkAnalysis.classworkdata.filter(item => item.finishtimelength == '0') - tableRadio.value = '0'; + tableRadio.value = 0; tableRadio.num0 = tableRadio.list.length; tableRadio.num1 = classWorkAnalysis.classworkdata.length - tableRadio.list.length; }