diff --git a/src/views/kc/jiaoshi/index.vue b/src/views/kc/jiaoshi/index.vue index 774c0d1..7c44035 100644 --- a/src/views/kc/jiaoshi/index.vue +++ b/src/views/kc/jiaoshi/index.vue @@ -63,7 +63,7 @@
-
{{ (leftList.filter(x => x?.child['教师近景']?.isOnLine).length || 0) }}
+
{{ (leftList.filter(x => x?.nowIsClass && x?.child['教师近景']?.isOnLine).length || 0) }}
正在直播 @@ -72,7 +72,7 @@
-
{{ (leftList.filter(x => !x?.child['教师近景']?.isOnLine).length || 0) }}
+
{{ (leftList.filter(x => x?.nowIsClass && !x?.child['教师近景']?.isOnLine).length || 0) }}
直播异常 @@ -90,8 +90,11 @@
- -
{{ item.jxlName }}
+ + + {{ item.jsNum }} {{ item.child.length }} @@ -102,8 +105,8 @@ {{ item.child.filter(x => x?.nowIsClass).length || 0}}间 - {{ item.child.filter(x => x?.child['教师近景']?.isOnLine).length || 0}}间 - {{ item.child.filter(x => !x?.child['教师近景']?.isOnLine).length || 0 }}间 + {{ item.child.filter(x => x?.nowIsClass && x?.child['教师近景']?.isOnLine).length || 0}}间 + {{ item.child.filter(x => x?.nowIsClass && !x?.child['教师近景']?.isOnLine).length || 0 }}间 正在上课 正在直播 直播异常 @@ -119,7 +122,11 @@ - + + + 全部 + {{jxl.jxlName}} + @@ -233,7 +240,7 @@ @@ -341,6 +348,12 @@ const { createMessage, createInfoModal, createErrorModal } = useMessage(); const route = useRouter(); const queryParam:Ref = ref({}); +const onLineTitle:Ref = ref({ + 'green':'直播正常', + 'yellow':'部分异常', + 'red':'设备异常', +}); + onMounted(() => { loadData(); }); @@ -743,7 +756,6 @@ function filterDataSource() { console.log('->',qw, qw.nowIsClass); - list.forEach(x => { let isReturn = true; if(qw.jxlName){