diff --git a/SafeCampus.WEB/src/api/modules/usermanage/classManage.ts b/SafeCampus.WEB/src/api/modules/usermanage/classManage.ts index 7c233af..1194b81 100644 --- a/SafeCampus.WEB/src/api/modules/usermanage/classManage.ts +++ b/SafeCampus.WEB/src/api/modules/usermanage/classManage.ts @@ -26,6 +26,9 @@ const userManageClassManageApi = { page(params: SysUserPersonnel.ClassPage) { return http.get("queryAll", params); }, + getPageList(params: SysUserPersonnel.ClassPage) { + return http.get("getPageList", params); + }, /** 删除底库 */ delete(params: ReqId) { return http.delete("deleteDfieldD", params); diff --git a/SafeCampus.WEB/src/api/modules/usermanage/dormitory.ts b/SafeCampus.WEB/src/api/modules/usermanage/dormitory.ts index 5b8f83d..aec6ee6 100644 --- a/SafeCampus.WEB/src/api/modules/usermanage/dormitory.ts +++ b/SafeCampus.WEB/src/api/modules/usermanage/dormitory.ts @@ -78,6 +78,10 @@ const userManageDormitoryApi = { /** 获取归寝时间 */ getReturnTime() { return httpChamber.get("getReturnTime"); + }, + // 获取宿舍楼摄像头列表 + getBuildCameraList() { + return http.get("getBuildCameraList"); } }; diff --git a/SafeCampus.WEB/src/api/modules/warn/zjrq.ts b/SafeCampus.WEB/src/api/modules/warn/zjrq.ts index fe9d0e3..6ed6a6c 100644 --- a/SafeCampus.WEB/src/api/modules/warn/zjrq.ts +++ b/SafeCampus.WEB/src/api/modules/warn/zjrq.ts @@ -45,6 +45,14 @@ const warnZJRQApi = { /** 处理预警 */ handWarn(params: ReqId) { return http.post("handWarn", params); + }, + // 首页基础数据 + basicInfo() { + return http.get("getBaseStatistics"); + }, + // 首页高危预警 + highWarn() { + return http.get("getHighRisk"); } }; diff --git a/SafeCampus.WEB/src/components/Selectors/ClassUserselector/index.vue b/SafeCampus.WEB/src/components/Selectors/ClassUserselector/index.vue index 68366db..8c4b222 100644 --- a/SafeCampus.WEB/src/components/Selectors/ClassUserselector/index.vue +++ b/SafeCampus.WEB/src/components/Selectors/ClassUserselector/index.vue @@ -67,7 +67,7 @@ [] = [ { prop: "dormitoryName", label: "寝室" }, ]; - +const columns2: ColumnProps[] = [ + { type: "selection", fixed: "left", width: 50 }, + { prop: "operation", label: "操作", width: 80, fixed: "left" }, + { + prop: "faceUrl", + label: "人脸", + render: scope => { + return ( + 0 ? scope.row.faces[0].faceUrl : ''} onClick={() => viewHeadImage(scope)} style='width:30px;height:30px;' alt=''/> + ); + } + }, + { + prop: "personName", + label: "姓名", + render: row => { + return row.row.name; + }, + search: { el: "input", span: 2 } + }, + { prop: "personSetName", label: "班级" }, + // { prop: "dormitoryName", label: "寝室" }, + +]; /** 显示选择器 */ function showSelector(data: SysUser.SysUserInfo[] = []) { visible.value = true; diff --git a/SafeCampus.WEB/src/views/home/index.vue b/SafeCampus.WEB/src/views/home/index.vue index f63b5d0..7948175 100644 --- a/SafeCampus.WEB/src/views/home/index.vue +++ b/SafeCampus.WEB/src/views/home/index.vue @@ -16,7 +16,7 @@
摄像头数量
-
3
+
{{ basicInfo.cameraCount }}
@@ -27,7 +27,7 @@
预警信息总量
-
1972
+
{{ basicInfo.warnCount }}
@@ -38,7 +38,7 @@
处理意见提交
-
40
+
{{ basicInfo.handCount }}
@@ -49,7 +49,7 @@
参与安防教师
-
22
+
{{ basicInfo.teacherCount }}
@@ -86,7 +86,7 @@
高危预警信息统计
- +
@@ -108,7 +108,7 @@ diff --git a/SafeCampus.WEB/src/views/monitor/live/index.vue b/SafeCampus.WEB/src/views/monitor/live/index.vue index 19c14d6..a442cd2 100644 --- a/SafeCampus.WEB/src/views/monitor/live/index.vue +++ b/SafeCampus.WEB/src/views/monitor/live/index.vue @@ -107,12 +107,12 @@
-
+
@@ -436,7 +436,7 @@ function onDetail(row: any) { visible.value = true; detailData.sensorId = row.sensorId; detailData.title = row.sensorName + "(" + row.sensorId + ")"; - getUrl(); + getUrl(row.sensorId); } // 刷新 const showVideo = ref(false); @@ -449,7 +449,8 @@ function refreshUrl() { }, 1000); } let num = 1; -function getUrl() { + +function getUrl(sensorId:any) { detailData.videoType = "m3u8"; setTimeout(async () => { await monitorLIVEApi.detail({ sensorId: detailData.sensorId }).then((res:any) => { @@ -463,7 +464,18 @@ function getUrl() { detailData.streamId = data.streamId; detailData.videoToken = data.videoToken; // getvideo1() - getvideo2(); + let localurl = '' + if(sensorId == 'SXT001') { + localurl = 'http://123.57.209.16:8004/video/1.mp4' + getvideo2(localurl); + } else if(sensorId == 'SXT002'){ + localurl = 'http://123.57.209.16:8004/video/5.mp4' + getvideo2(localurl); + } else if(sensorId == 'SXT003') { + localurl = 'http://123.57.209.16:8004/video/2.mp4' + getvideo2(localurl); + } + } }); }); @@ -500,10 +512,10 @@ function getvideo1() { // aliRts.startLiveStream(pullStreamUrl, mediaEle); } let player = ref(null); -function getvideo2() { +function getvideo2(url:any) { var options = { id: "player-con", - source: detailData.videoUrl + "&subaudio=no&jitterbuffer=6000", + source: url, // "rtsFallbackSource": "降级地址,如HLS", width: "100%", height: "500px", @@ -549,7 +561,7 @@ const handleClose = () => { visible.value = false; detailData.videoUrl = ""; detailData.videoType = ""; - stopUrl(); + // stopUrl(); if (player.value) { player.value.dispose(); } diff --git a/SafeCampus.WEB/src/views/monitor/live/index1.vue b/SafeCampus.WEB/src/views/monitor/live/index1.vue new file mode 100644 index 0000000..19c14d6 --- /dev/null +++ b/SafeCampus.WEB/src/views/monitor/live/index1.vue @@ -0,0 +1,600 @@ + + + + + diff --git a/SafeCampus.WEB/src/views/userManage/classManage/index.vue b/SafeCampus.WEB/src/views/userManage/classManage/index.vue index 88940d4..6db656d 100644 --- a/SafeCampus.WEB/src/views/userManage/classManage/index.vue +++ b/SafeCampus.WEB/src/views/userManage/classManage/index.vue @@ -6,14 +6,7 @@