Commit 703c2e292a812f80d9a1a7551c18c2cf457f58ba
1 parent
275b2721
云端录像详情页添加返回按钮
Showing
5 changed files
with
19 additions
and
14 deletions
src/main/java/com/genersoft/iot/vmp/gb28181/SipLayer.java
| @@ -2,25 +2,18 @@ package com.genersoft.iot.vmp.gb28181; | @@ -2,25 +2,18 @@ package com.genersoft.iot.vmp.gb28181; | ||
| 2 | 2 | ||
| 3 | import com.genersoft.iot.vmp.conf.SipConfig; | 3 | import com.genersoft.iot.vmp.conf.SipConfig; |
| 4 | import com.genersoft.iot.vmp.gb28181.transmit.ISIPProcessorObserver; | 4 | import com.genersoft.iot.vmp.gb28181.transmit.ISIPProcessorObserver; |
| 5 | -import com.genersoft.iot.vmp.utils.DateUtil; | ||
| 6 | import gov.nist.javax.sip.SipProviderImpl; | 5 | import gov.nist.javax.sip.SipProviderImpl; |
| 7 | import gov.nist.javax.sip.SipStackImpl; | 6 | import gov.nist.javax.sip.SipStackImpl; |
| 8 | -import org.apache.commons.lang3.time.DateFormatUtils; | ||
| 9 | import org.slf4j.Logger; | 7 | import org.slf4j.Logger; |
| 10 | import org.slf4j.LoggerFactory; | 8 | import org.slf4j.LoggerFactory; |
| 11 | import org.springframework.beans.factory.annotation.Autowired; | 9 | import org.springframework.beans.factory.annotation.Autowired; |
| 12 | import org.springframework.context.annotation.Bean; | 10 | import org.springframework.context.annotation.Bean; |
| 13 | import org.springframework.context.annotation.Configuration; | 11 | import org.springframework.context.annotation.Configuration; |
| 14 | import org.springframework.context.annotation.DependsOn; | 12 | import org.springframework.context.annotation.DependsOn; |
| 15 | -import org.springframework.stereotype.Component; | ||
| 16 | 13 | ||
| 17 | import javax.sip.*; | 14 | import javax.sip.*; |
| 18 | -import java.text.DateFormat; | ||
| 19 | import java.util.Properties; | 15 | import java.util.Properties; |
| 20 | import java.util.TooManyListenersException; | 16 | import java.util.TooManyListenersException; |
| 21 | -import java.util.concurrent.LinkedBlockingQueue; | ||
| 22 | -import java.util.concurrent.ThreadPoolExecutor; | ||
| 23 | -import java.util.concurrent.TimeUnit; | ||
| 24 | 17 | ||
| 25 | @Configuration | 18 | @Configuration |
| 26 | public class SipLayer{ | 19 | public class SipLayer{ |
src/main/java/com/genersoft/iot/vmp/service/impl/PlatformServiceImpl.java
| @@ -102,7 +102,7 @@ public class PlatformServiceImpl implements IPlatformService { | @@ -102,7 +102,7 @@ public class PlatformServiceImpl implements IPlatformService { | ||
| 102 | 102 | ||
| 103 | @Override | 103 | @Override |
| 104 | public void online(ParentPlatform parentPlatform) { | 104 | public void online(ParentPlatform parentPlatform) { |
| 105 | - logger.info("[国标级联]:{}, 平台上线", parentPlatform.getServerGBId()); | 105 | + logger.info("[国标级联]:{}, 平台上线/更新注册", parentPlatform.getServerGBId()); |
| 106 | platformMapper.updateParentPlatformStatus(parentPlatform.getServerGBId(), true); | 106 | platformMapper.updateParentPlatformStatus(parentPlatform.getServerGBId(), true); |
| 107 | ParentPlatformCatch parentPlatformCatch = redisCatchStorage.queryPlatformCatchInfo(parentPlatform.getServerGBId()); | 107 | ParentPlatformCatch parentPlatformCatch = redisCatchStorage.queryPlatformCatchInfo(parentPlatform.getServerGBId()); |
| 108 | if (parentPlatformCatch != null) { | 108 | if (parentPlatformCatch != null) { |
web_src/src/components/CloudRecord.vue
| 1 | <template> | 1 | <template> |
| 2 | <div id="app" style="width: 100%"> | 2 | <div id="app" style="width: 100%"> |
| 3 | <div class="page-header"> | 3 | <div class="page-header"> |
| 4 | - <div class="page-title">云端录像</div> | 4 | + <div class="page-title"> |
| 5 | + <el-page-header v-if="recordDetail" @back="backToList" content="云端录像"></el-page-header> | ||
| 6 | + <div v-if="!recordDetail">云端录像</div> | ||
| 7 | + </div> | ||
| 8 | + | ||
| 5 | <div class="page-header-btn"> | 9 | <div class="page-header-btn"> |
| 6 | 节点选择: | 10 | 节点选择: |
| 7 | <el-select size="mini" @change="chooseMediaChange" style="width: 16rem; margin-right: 1rem;" v-model="mediaServerId" placeholder="请选择" :disabled="recordDetail"> | 11 | <el-select size="mini" @change="chooseMediaChange" style="width: 16rem; margin-right: 1rem;" v-model="mediaServerId" placeholder="请选择" :disabled="recordDetail"> |
| @@ -183,7 +187,7 @@ | @@ -183,7 +187,7 @@ | ||
| 183 | }).catch(function (error) { | 187 | }).catch(function (error) { |
| 184 | console.log(error); | 188 | console.log(error); |
| 185 | }); | 189 | }); |
| 186 | - } | 190 | + }, |
| 187 | 191 | ||
| 188 | 192 | ||
| 189 | } | 193 | } |
web_src/src/components/CloudRecordDetail.vue
| 1 | <template> | 1 | <template> |
| 2 | <div id="recordDetail"> | 2 | <div id="recordDetail"> |
| 3 | <el-container> | 3 | <el-container> |
| 4 | + | ||
| 4 | <el-aside width="300px"> | 5 | <el-aside width="300px"> |
| 6 | + | ||
| 5 | <div class="record-list-box-box"> | 7 | <div class="record-list-box-box"> |
| 6 | <el-date-picker size="mini" v-model="chooseDate" :picker-options="pickerOptions" type="date" value-format="yyyy-MM-dd" placeholder="日期" @change="dateChange()"></el-date-picker> | 8 | <el-date-picker size="mini" v-model="chooseDate" :picker-options="pickerOptions" type="date" value-format="yyyy-MM-dd" placeholder="日期" @change="dateChange()"></el-date-picker> |
| 7 | <div class="record-list-box" :style="recordListStyle"> | 9 | <div class="record-list-box" :style="recordListStyle"> |
| @@ -423,6 +425,9 @@ | @@ -423,6 +425,9 @@ | ||
| 423 | }).catch(function (error) { | 425 | }).catch(function (error) { |
| 424 | console.log(error); | 426 | console.log(error); |
| 425 | }); | 427 | }); |
| 428 | + }, | ||
| 429 | + goBack(){ | ||
| 430 | + this.$router.push('/cloudRecord'); | ||
| 426 | } | 431 | } |
| 427 | } | 432 | } |
| 428 | }; | 433 | }; |
web_src/src/components/Login.vue
| @@ -66,10 +66,6 @@ export default { | @@ -66,10 +66,6 @@ export default { | ||
| 66 | 66 | ||
| 67 | //登录请求 | 67 | //登录请求 |
| 68 | toLogin(){ | 68 | toLogin(){ |
| 69 | - | ||
| 70 | - //一般要跟后端了解密码的加密规则 | ||
| 71 | - //这里例子用的哈希算法来自./js/sha1.min.js | ||
| 72 | - | ||
| 73 | //需要想后端发送的登录参数 | 69 | //需要想后端发送的登录参数 |
| 74 | let loginParam = { | 70 | let loginParam = { |
| 75 | username: this.username, | 71 | username: this.username, |
| @@ -78,12 +74,17 @@ export default { | @@ -78,12 +74,17 @@ export default { | ||
| 78 | var that = this; | 74 | var that = this; |
| 79 | //设置在登录状态 | 75 | //设置在登录状态 |
| 80 | this.isLoging = true; | 76 | this.isLoging = true; |
| 77 | + let timeoutTask = setTimeout(()=>{ | ||
| 78 | + that.$message.error("登录超时"); | ||
| 79 | + that.isLoging = false; | ||
| 80 | + }, 1000) | ||
| 81 | 81 | ||
| 82 | this.$axios({ | 82 | this.$axios({ |
| 83 | method: 'get', | 83 | method: 'get', |
| 84 | url:"/api/user/login", | 84 | url:"/api/user/login", |
| 85 | params: loginParam | 85 | params: loginParam |
| 86 | }).then(function (res) { | 86 | }).then(function (res) { |
| 87 | + window.clearTimeout(timeoutTask) | ||
| 87 | console.log(JSON.stringify(res)); | 88 | console.log(JSON.stringify(res)); |
| 88 | if (res.data.code === 0 ) { | 89 | if (res.data.code === 0 ) { |
| 89 | that.$cookies.set("session", {"username": that.username,"roleId":res.data.data.role.id}) ; | 90 | that.$cookies.set("session", {"username": that.username,"roleId":res.data.data.role.id}) ; |
| @@ -99,6 +100,8 @@ export default { | @@ -99,6 +100,8 @@ export default { | ||
| 99 | }); | 100 | }); |
| 100 | } | 101 | } |
| 101 | }).catch(function (error) { | 102 | }).catch(function (error) { |
| 103 | + console.log(error) | ||
| 104 | + window.clearTimeout(timeoutTask) | ||
| 102 | that.$message.error(error.response.data.msg); | 105 | that.$message.error(error.response.data.msg); |
| 103 | that.isLoging = false; | 106 | that.isLoging = false; |
| 104 | }); | 107 | }); |