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

This commit is contained in:
648540858 2022-08-31 18:07:53 +08:00
parent 275b272160
commit 703c2e292a
5 changed files with 19 additions and 14 deletions

View File

@ -2,25 +2,18 @@ package com.genersoft.iot.vmp.gb28181;
import com.genersoft.iot.vmp.conf.SipConfig; import com.genersoft.iot.vmp.conf.SipConfig;
import com.genersoft.iot.vmp.gb28181.transmit.ISIPProcessorObserver; import com.genersoft.iot.vmp.gb28181.transmit.ISIPProcessorObserver;
import com.genersoft.iot.vmp.utils.DateUtil;
import gov.nist.javax.sip.SipProviderImpl; import gov.nist.javax.sip.SipProviderImpl;
import gov.nist.javax.sip.SipStackImpl; import gov.nist.javax.sip.SipStackImpl;
import org.apache.commons.lang3.time.DateFormatUtils;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration; import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.DependsOn; import org.springframework.context.annotation.DependsOn;
import org.springframework.stereotype.Component;
import javax.sip.*; import javax.sip.*;
import java.text.DateFormat;
import java.util.Properties; import java.util.Properties;
import java.util.TooManyListenersException; import java.util.TooManyListenersException;
import java.util.concurrent.LinkedBlockingQueue;
import java.util.concurrent.ThreadPoolExecutor;
import java.util.concurrent.TimeUnit;
@Configuration @Configuration
public class SipLayer{ public class SipLayer{

View File

@ -102,7 +102,7 @@ public class PlatformServiceImpl implements IPlatformService {
@Override @Override
public void online(ParentPlatform parentPlatform) { public void online(ParentPlatform parentPlatform) {
logger.info("[国标级联]{}, 平台上线", parentPlatform.getServerGBId()); logger.info("[国标级联]{}, 平台上线/更新注册", parentPlatform.getServerGBId());
platformMapper.updateParentPlatformStatus(parentPlatform.getServerGBId(), true); platformMapper.updateParentPlatformStatus(parentPlatform.getServerGBId(), true);
ParentPlatformCatch parentPlatformCatch = redisCatchStorage.queryPlatformCatchInfo(parentPlatform.getServerGBId()); ParentPlatformCatch parentPlatformCatch = redisCatchStorage.queryPlatformCatchInfo(parentPlatform.getServerGBId());
if (parentPlatformCatch != null) { if (parentPlatformCatch != null) {

View File

@ -1,7 +1,11 @@
<template> <template>
<div id="app" style="width: 100%"> <div id="app" style="width: 100%">
<div class="page-header"> <div class="page-header">
<div class="page-title">云端录像</div> <div class="page-title">
<el-page-header v-if="recordDetail" @back="backToList" content="云端录像"></el-page-header>
<div v-if="!recordDetail">云端录像</div>
</div>
<div class="page-header-btn"> <div class="page-header-btn">
节点选择: 节点选择:
<el-select size="mini" @change="chooseMediaChange" style="width: 16rem; margin-right: 1rem;" v-model="mediaServerId" placeholder="请选择" :disabled="recordDetail"> <el-select size="mini" @change="chooseMediaChange" style="width: 16rem; margin-right: 1rem;" v-model="mediaServerId" placeholder="请选择" :disabled="recordDetail">
@ -183,7 +187,7 @@
}).catch(function (error) { }).catch(function (error) {
console.log(error); console.log(error);
}); });
} },
} }

View File

@ -1,7 +1,9 @@
<template> <template>
<div id="recordDetail"> <div id="recordDetail">
<el-container> <el-container>
<el-aside width="300px"> <el-aside width="300px">
<div class="record-list-box-box"> <div class="record-list-box-box">
<el-date-picker size="mini" v-model="chooseDate" :picker-options="pickerOptions" type="date" value-format="yyyy-MM-dd" placeholder="日期" @change="dateChange()"></el-date-picker> <el-date-picker size="mini" v-model="chooseDate" :picker-options="pickerOptions" type="date" value-format="yyyy-MM-dd" placeholder="日期" @change="dateChange()"></el-date-picker>
<div class="record-list-box" :style="recordListStyle"> <div class="record-list-box" :style="recordListStyle">
@ -423,6 +425,9 @@
}).catch(function (error) { }).catch(function (error) {
console.log(error); console.log(error);
}); });
},
goBack(){
this.$router.push('/cloudRecord');
} }
} }
}; };

View File

@ -66,10 +66,6 @@ export default {
// //
toLogin(){ toLogin(){
//
//./js/sha1.min.js
// //
let loginParam = { let loginParam = {
username: this.username, username: this.username,
@ -78,12 +74,17 @@ export default {
var that = this; var that = this;
// //
this.isLoging = true; this.isLoging = true;
let timeoutTask = setTimeout(()=>{
that.$message.error("登录超时");
that.isLoging = false;
}, 1000)
this.$axios({ this.$axios({
method: 'get', method: 'get',
url:"/api/user/login", url:"/api/user/login",
params: loginParam params: loginParam
}).then(function (res) { }).then(function (res) {
window.clearTimeout(timeoutTask)
console.log(JSON.stringify(res)); console.log(JSON.stringify(res));
if (res.data.code === 0 ) { if (res.data.code === 0 ) {
that.$cookies.set("session", {"username": that.username,"roleId":res.data.data.role.id}) ; that.$cookies.set("session", {"username": that.username,"roleId":res.data.data.role.id}) ;
@ -99,6 +100,8 @@ export default {
}); });
} }
}).catch(function (error) { }).catch(function (error) {
console.log(error)
window.clearTimeout(timeoutTask)
that.$message.error(error.response.data.msg); that.$message.error(error.response.data.msg);
that.isLoging = false; that.isLoging = false;
}); });