diff --git a/public/config.js b/public/config.js index 8ef0047..9ea8f02 100644 --- a/public/config.js +++ b/public/config.js @@ -1,5 +1,5 @@ window.GLOBAL_CONFIG = { - apiURL: "http://192.168.1.109:8889/face", + apiURL: "http://127.0.0.1:8889/face", IMG_SERVER_URL: "http://192.168.1.133:9000", SOCKET_URL: "ws://192.168.1.109:8889/face/webSocketServer", rtspApi_URL: window.location.protocol + '//' + window.location.hostname + ':' + window.location.port, diff --git a/src/i18n/zh-CN.js b/src/i18n/zh-CN.js index a9261cb..a0ce26e 100644 --- a/src/i18n/zh-CN.js +++ b/src/i18n/zh-CN.js @@ -4,7 +4,7 @@ t.loading = '加载中...' t.brand = {} t.brand.lg = '室外图像采集平台' -t.brand.mini = '人像' +t.brand.mini = '图像' t.add = '新增' t.delete = '删除' @@ -364,6 +364,7 @@ t.role = {} t.role.name = '名称' t.role.remark = '备注' t.role.createDate = '创建时间' +t.role.updateDate = '更新时间' t.role.menuList = '菜单授权' t.role.deptList = '数据授权' diff --git a/src/store/index.js b/src/store/index.js index e80e2b8..955bbb7 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -23,11 +23,11 @@ export default new Vuex.Store({ contentTabs: [ { ...window.SITE_CONFIG['contentTabDefault'], - 'name': 'monitoring-home', + 'name': 'monitoring-chart-test2', 'title': '首页' } ], - contentTabsActiveName: 'monitoring-home', + contentTabsActiveName: 'monitoring-chart-test2', //人像库 跳转页面 数据 libraryurl:'' }, diff --git a/src/views/main-content.vue b/src/views/main-content.vue index f90b8db..4966a0b 100644 --- a/src/views/main-content.vue +++ b/src/views/main-content.vue @@ -12,7 +12,7 @@ + :closable="item.name !== 'monitoring-chart-test2'" :class="{ 'is-iframe': tabIsIframe(item.iframeURL) }"> -
-
- 人脸比中 - 查看全部 - - - -
-
-
- - {{"十楼工位"}} - {{item.time}} -
-
-
- - -
-
- - -
- 测试库 -
-
-
-
- - 性别:未知 - 来源:测试库 - 相似度: - {{item.xsd+"%"}} -
-
- 监控 - 提示 - 监控 - 抓捕 -
-
-
-
- - -
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -
+ +
卡口切换 @@ -65,7 +66,7 @@ {{barrierName}} - 布控任务:{{taskName}} +
--> -
- +
+
- +
-
- - 今日抓拍 - {{toDaySnapShot}} - /累计抓拍 - {{totalSnapShot}} - - 查看全部 - - - -
+ + + + + + + + + + + + + + -
-
- -
-
+ + + + + + + @@ -220,14 +221,21 @@ flag : false, //布控阈值,默认为70 textStyle : 70.00, + // websock: null } }, mounted() { //this.timer = setInterval(this.get, 1000); // this.get() }, - beforeDestroy() {}, - created() { + beforeDestroy() { + }, + destroyed() { + //this.websocketclose(); + //页面销毁时关闭ws连接 + this.websock.close() // 关闭websocket + }, + created() { // 初始化选择默认卡口 this.initGetCameraId() //初始化获取今日抓拍 @@ -265,10 +273,10 @@ this.getCurrentTime() } }, - // plays(){ - // // this.cameraList.pop(); - // this.cameraList.push({rtspUrl: "rtsp://admin:123uestc@192.168.1.32:554"}); - // }, + plays(){ + // this.cameraList.pop(); + this.cameraList.push({rtspUrl: "rtsp://admin:123uestc@192.168.1.32:554"}); + }, // 初始化4条预警数据 initGetWarningPicture() { this.$http.post("/faces/compareList", { diff --git a/src/views/modules/monitoring/camera-add-update.vue b/src/views/modules/monitoring/camera-add-update.vue index 0aa830a..2c5d9a0 100644 --- a/src/views/modules/monitoring/camera-add-update.vue +++ b/src/views/modules/monitoring/camera-add-update.vue @@ -41,9 +41,9 @@ - - - + + + - - - + + + + + + + + + { + let userName =this.$store.state.user.name; + this.$http.post(`/camera/getList?userName=${userName}`, pageObj).then(res => { if (res.data.code === 0) { this.cameraList = res.data.data.records; this.total = Number(res.data.data.total); @@ -276,7 +277,7 @@ export default { console.log(res); } }); - this.$http.get("/camera/getAllList").then(res => { + this.$http.get("/camera/getAllList",{params:{userName:this.$store.state.user.name}}).then(res => { this.mapList = res.data.data; this.mapList.forEach(item => { item.displayCss = "block"; diff --git a/src/views/modules/monitoring/home.vue b/src/views/modules/monitoring/home.vue index 8be5beb..7fda331 100644 --- a/src/views/modules/monitoring/home.vue +++ b/src/views/modules/monitoring/home.vue @@ -4,7 +4,7 @@
-

欢迎登录,{{$store.state.user.name}} !

+

欢迎登录,{{$store.state.user.name}}用户,好久不见!

采集平台已经安全运行 {{homeData.daysOfOperation}} 

@@ -40,7 +40,9 @@