作业批改页:已交未交选择背景颜色缺失修复
This commit is contained in:
parent
78eb65d532
commit
fbbd84df93
|
@ -499,7 +499,7 @@ function Apis(key) {
|
||||||
// 年份
|
// 年份
|
||||||
yearStr: entpCourseWorkQueryParams.yearStr !== '-1' ? entpCourseWorkQueryParams.yearStr:'',
|
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:'',
|
keyword: entpCourseWorkQueryParams.keyWord && entpCourseWorkQueryParams.keyWord !== '' ? entpCourseWorkQueryParams.keyWord:'',
|
||||||
|
|
||||||
|
|
|
@ -57,8 +57,8 @@
|
||||||
style="margin-bottom: 1px"
|
style="margin-bottom: 1px"
|
||||||
@change="tableRadioChange"
|
@change="tableRadioChange"
|
||||||
>
|
>
|
||||||
<el-radio-button :value="1" :label="'已交' + '(' + tableRadio.num1 + ')'" />
|
<el-radio-button :value="1" :label="'已交' + '(' + tableRadio.num1 + ')'"/>
|
||||||
<el-radio-button :value="0" :label="'未交' + '(' + tableRadio.num0 + ')'" />
|
<el-radio-button :value="0" :label="'未交' + '(' + tableRadio.num0 + ')'"/>
|
||||||
</el-radio-group>
|
</el-radio-group>
|
||||||
<!-- 学生列表:classWorkAnalysis.classworkdata; 已交未交:tableRadio.list -->
|
<!-- 学生列表:classWorkAnalysis.classworkdata; 已交未交:tableRadio.list -->
|
||||||
<el-table
|
<el-table
|
||||||
|
@ -179,7 +179,7 @@ const classWorkAnalysis = reactive({
|
||||||
entpcourseworklistarray: [], // 当前学习任务所包含的试题ID
|
entpcourseworklistarray: [], // 当前学习任务所包含的试题ID
|
||||||
})
|
})
|
||||||
const tableRadio = reactive({
|
const tableRadio = reactive({
|
||||||
value: '1', // 已交
|
value: 1, // 已交
|
||||||
list: [], // 已交list
|
list: [], // 已交list
|
||||||
num1: 0, // 已交人数
|
num1: 0, // 已交人数
|
||||||
num0: 0 // 未交人数
|
num0: 0 // 未交人数
|
||||||
|
@ -219,7 +219,7 @@ const openDialog = (data, isInit=true) => {
|
||||||
classWorkAnalysis.workclass = data.workclass
|
classWorkAnalysis.workclass = data.workclass
|
||||||
// 重置学生列表
|
// 重置学生列表
|
||||||
tableRadio.list = []
|
tableRadio.list = []
|
||||||
tableRadio.value = '1'
|
tableRadio.value = 1
|
||||||
tableRadio.num0 = 0
|
tableRadio.num0 = 0
|
||||||
tableRadio.num1 = 0
|
tableRadio.num1 = 0
|
||||||
|
|
||||||
|
@ -401,7 +401,7 @@ const getClassWorkStudentList = (rowId) => {
|
||||||
tableRadio.list =
|
tableRadio.list =
|
||||||
classWorkAnalysis.classworkdata &&
|
classWorkAnalysis.classworkdata &&
|
||||||
classWorkAnalysis.classworkdata.filter((item) => item.finishtimelength != '0')
|
classWorkAnalysis.classworkdata.filter((item) => item.finishtimelength != '0')
|
||||||
tableRadio.value = '1'
|
tableRadio.value = 1
|
||||||
tableRadio.num0 = classWorkAnalysis.classworkdata.length - tableRadio.list.length
|
tableRadio.num0 = classWorkAnalysis.classworkdata.length - tableRadio.list.length
|
||||||
tableRadio.num1 = tableRadio.list.length
|
tableRadio.num1 = tableRadio.list.length
|
||||||
// 自动批阅判断
|
// 自动批阅判断
|
||||||
|
@ -417,7 +417,7 @@ const getClassWorkStudentList = (rowId) => {
|
||||||
*/
|
*/
|
||||||
const teacherCriticism = ()=>{
|
const teacherCriticism = ()=>{
|
||||||
// 已交的list才自动批阅判断
|
// 已交的list才自动批阅判断
|
||||||
if(tableRadio.value == '1'&& classWorkAnalysis.worktype == '习题训练'){
|
if(tableRadio.value == 1 && classWorkAnalysis.worktype == '习题训练'){
|
||||||
// 只有习题训练才会自动批阅
|
// 只有习题训练才会自动批阅
|
||||||
tableRadio.list = tableRadio.list.map((item) => {
|
tableRadio.list = tableRadio.list.map((item) => {
|
||||||
return {
|
return {
|
||||||
|
@ -572,16 +572,16 @@ const tableRadioChange = (e) => {
|
||||||
isopen_dtwk_table.value = false;
|
isopen_dtwk_table.value = false;
|
||||||
console.log(e,'??????')
|
console.log(e,'??????')
|
||||||
console.log("学生列表:", classWorkAnalysis.classworkdata)
|
console.log("学生列表:", classWorkAnalysis.classworkdata)
|
||||||
if(e=='1'){
|
if(e==1){
|
||||||
tableRadio.list = classWorkAnalysis.classworkdata.filter(item => item.finishtimelength != '0')
|
tableRadio.list = classWorkAnalysis.classworkdata.filter(item => item.finishtimelength != '0')
|
||||||
tableRadio.value = '1';
|
tableRadio.value = 1;
|
||||||
tableRadio.num0 = classWorkAnalysis.classworkdata.length - tableRadio.list.length;
|
tableRadio.num0 = classWorkAnalysis.classworkdata.length - tableRadio.list.length;
|
||||||
tableRadio.num1 = tableRadio.list.length;
|
tableRadio.num1 = tableRadio.list.length;
|
||||||
// 自动批阅判断
|
// 自动批阅判断
|
||||||
teacherCriticism();
|
teacherCriticism();
|
||||||
}else if(e=='0'){
|
}else if(e==0){
|
||||||
tableRadio.list = classWorkAnalysis.classworkdata.filter(item => item.finishtimelength == '0')
|
tableRadio.list = classWorkAnalysis.classworkdata.filter(item => item.finishtimelength == '0')
|
||||||
tableRadio.value = '0';
|
tableRadio.value = 0;
|
||||||
tableRadio.num0 = tableRadio.list.length;
|
tableRadio.num0 = tableRadio.list.length;
|
||||||
tableRadio.num1 = classWorkAnalysis.classworkdata.length - tableRadio.list.length;
|
tableRadio.num1 = classWorkAnalysis.classworkdata.length - tableRadio.list.length;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue