Commit 703c2e292a812f80d9a1a7551c18c2cf457f58ba

Authored by 648540858
1 parent 275b2721

云端录像详情页添加返回按钮

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