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; }