diff --git a/src/views/kc/jiaoshi/index.vue b/src/views/kc/jiaoshi/index.vue
index c1a1f01..566dc70 100644
--- a/src/views/kc/jiaoshi/index.vue
+++ b/src/views/kc/jiaoshi/index.vue
@@ -3,11 +3,15 @@
-
-
+
+
+
+ 教室情况
+
+
-
+
{{ allClassNum }}
@@ -16,7 +20,7 @@
-
+
{{ leftList.length }}
@@ -25,34 +29,7 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
{{ (leftList.filter(x => x?.nowIsClass).length || 0) }}
-
-
- 正在上课
-
-
-
-
+
{{ getSysConfig().flag5 == 0?'否':'是' }}
@@ -61,7 +38,36 @@
-
+
+
+
未检测
+
{{ statusLogList.filter(x => x.type != 'green' ).length }}
+
+
+ 设备异常
+
+
{{ statusLogList[0]?.createTime }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
{{ (leftList.filter(x => x?.nowIsClass).length || 0) }}
+
+
+ 正在上课
+
+
+
+
{{ (leftList.filter(x => x?.nowIsClass && x?.child['教师近景']?.isOnLine).length || 0) }}
@@ -70,7 +76,7 @@
-
+
{{ (leftList.filter(x => x?.nowIsClass && !x?.child['教师近景']?.isOnLine).length || 0) }}
@@ -93,23 +99,41 @@
- {{ item.jxlName }}
+ {{ item.jxlName }}
+
- {{ item.jsNum }}
- {{ item.child.length }}
- {{ item.child.filter(x => x.allIsOnLine == 4).length || 0 }}
- 总数
- 可直播
- 数量
+ {{ item.jsNum }}
+ {{ item.child.length }}
+ {{ item.child.filter(x => x.allIsOnLine == 4).length || 0 }}
+ 未检测
+ {{ statusLogList.filter(x => x.jxlName == item.jxlName && x.type != 'green' ).length }}
+ 总数
+ 可直播
+ 开放听课
+
+ 设备异常
+ {{ statusLogList[0]?.createTime }}
+
+
+
+
+
- {{ item.child.filter(x => x?.nowIsClass).length || 0}}间
- {{ item.child.filter(x => x?.nowIsClass && x?.child['教师近景']?.isOnLine).length || 0}}间
- {{ item.child.filter(x => x?.nowIsClass && !x?.child['教师近景']?.isOnLine).length || 0 }}间
- 正在上课
- 正在直播
- 直播异常
+ {{ item.child.filter(x => x?.nowIsClass).length || 0}}间
+ {{ item.child.filter(x => x?.nowIsClass && x?.child['教师近景']?.isOnLine).length || 0}}间
+ {{ item.child.filter(x => x?.nowIsClass && !x?.child['教师近景']?.isOnLine).length || 0 }}间
+
+ 正在上课
+ 正在直播
+ 直播异常
+
@@ -337,6 +361,7 @@ const leftList:Ref
= ref([]);
const cardList:Ref = ref([]);
const selectedRowKeys :Ref = ref([]);
const currentItem:Ref = ref({});
+const statusLogList:Ref = ref([]);
const currentCardIndex:Ref = ref(0);
const allClassNum:Ref = ref(0);
// const topWidth:any = ref('0');
@@ -369,6 +394,7 @@ enum Api {
updateAllLive = '/jiaoshi/kcZhihuijiaoshi/updateAllLive',
changeAvyLiveApi = '/httpinterface/runAvyApiByIds',
xxhbjsjbxxList = '/xxhbjsjbxx/xxhbjsjbxx/list',
+ getRefreshLogList = '/jiaoshi/kcZhihuijiaoshiStateLog/list',
refreshLogs = '/jiaoshi/kcZhihuijiaoshi/refreshLogs',
}
/**
@@ -380,6 +406,7 @@ const updateAllLive = (params) => defHttp.get({ url: Api.updateAllLive, params }
const changeAvyLiveApi = (params) => defHttp.get({ url: Api.changeAvyLiveApi, params,timeout: 9000000 });
const jsjbxxList = (params) => defHttp.get({ url: Api.xxhbjsjbxxList, params,timeout: 9000000 });
const refreshLogs = (params) => defHttp.get({ url: Api.refreshLogs, params,timeout: 9000000 });
+const getRefreshLogList = (params) => defHttp.get({ url: Api.getRefreshLogList, params,timeout: 9000000 });
const shangXianQuartz = ref({});
@@ -511,6 +538,8 @@ function loadData(){
getAutoShangXianQuartz();
getJsjbxxList();
+
+ getRefreshLogListFn();
}
function openDetail(param){
@@ -528,6 +557,28 @@ function getJsjbxxList(){
});
}
+function refreshLogsFn(jxlName?){
+ createInfoModal({ title: '结果',content: '执行中请等待3~5分钟后刷新页面' });
+ refreshLogs({ jxlName }).then(res => {
+ let list = (res?.records) ?? (res) ?? [];
+ console.log(`🚀 ----------------------------------------------------------🚀`);
+ console.log(`🚀 ~ file: index.vue:539 ~ refreshLogsFn ~ list:`, list);
+ console.log(`🚀 ----------------------------------------------------------🚀`);
+ statusLogList.value = list;
+ })
+
+}
+
+function getRefreshLogListFn(){
+ getRefreshLogList({ pageSize: -1 }).then(res => {
+ let list = (res?.records) ?? [];
+ console.log(`🚀 ----------------------------------------------------------🚀`);
+ console.log(`🚀 ~ file: index.vue:539 ~ getRefreshLogList ~ list:`, list);
+ console.log(`🚀 ----------------------------------------------------------🚀`);
+ statusLogList.value = list;
+ })
+}
+
//获取class样式
function getIsOnLineClass(record){
let resClas = 'red';