视频回放添加存储方式 配置

This commit is contained in:
jiayu 2024-12-07 16:35:17 +08:00
parent 630a7dc6cb
commit f15b59b857
3 changed files with 23 additions and 5 deletions

View File

@ -46,6 +46,8 @@ export default new Vuex.Store({
state: {
PAGESIZRS: [10, 20, 30, 50],
// UPLOADURL: 'http://183.249.224.118:9000/upload/image/', // 嘉兴王江泾
// FILEURL: ' http://183.249.224.118:9000/image/', // 嘉兴王江泾
// UPLOADURL: 'http://192.168.0.12:9809/upload/image/', // 国维科技
// FILEURL: ' http://192.168.0.12:9809/image/', // 国维科技
// WORKFLOWURL: 'http://192.168.0.12:19998/#/workspace/forms', //国维科技工作流地址

View File

@ -6,7 +6,7 @@
</template>
<script>
export default {
props: ["devList","isReplayNum","startTime","endTime","showVideo"],
props: ["devList","isReplayNum","startTime","endTime","showVideo", "locationValue"],
data() {
return {
videoType:"",
@ -72,6 +72,10 @@ export default {
this.hide();
}
},
locationValue: function(newVal, oldVal) {
console.log('新的值',newVal)
this.startPlayback()
}
},
mounted() {
// this.init();
@ -335,7 +339,7 @@ export default {
var cameraIndexCode = this.pointCode; //
var startTimeStamp = new Date(this.startTime).getTime(); //
var endTimeStamp = new Date(this.endTime).getTime(); //
var recordLocation = 1; //0-1-
var recordLocation = this.locationValue; //0-1-
var transMode = 1; //0-UDP1-TCP
var gpuMode = 0; //GPU0-1-
var wndId = -1; //2x2

View File

@ -85,6 +85,13 @@
</vue-scroll>
</div>
<div class="timeBox">
<div class="time-select">
<span style="width: 30%;">储存方式:</span>
<el-select style="width: 68%;" @change="handleChangeRecordLocation" v-model="locationValue" size="small" placeholder="请选择">
<el-option label="中心存储" :value="0" ></el-option>
<el-option label="设备存储" :value="1" ></el-option>
</el-select>
</div>
<div class="time-select">
<span>回放开始时间</span>
<el-date-picker
@ -121,7 +128,7 @@
</div>
</div>
</div>
<playBack class="playVideoBox" :showVideo="showVideo" :devList="selectList" :isReplayNum="isReplayNum" :startTime="selectDate.startTime" :endTime="selectDate.endTime" v-if="selectList.length > 0"></playBack>
<playBack class="playVideoBox" :showVideo="showVideo" :devList="selectList" :isReplayNum="isReplayNum" :startTime="selectDate.startTime" :endTime="selectDate.endTime" :locationValue="locationValue" v-if="selectList.length > 0"></playBack>
<div class="noVideoContent" v-else></div>
</div>
</div>
@ -151,7 +158,8 @@ export default {
endTime: "",
},
isReplayNum: 1,
showVideo: true
showVideo: true,
locationValue: 0, //
};
},
mounted() {
@ -162,6 +170,7 @@ export default {
// } else {
// this.loadData2()
// }
this.locationValue = Number(localStorage.getItem('recordLocation') || 0)
//
this.selectDate.startTime = dateFormat(new Date(), "yyyy-MM-dd 00:00:00");
this.selectDate.endTime = dateFormat(new Date(), "yyyy-MM-dd hh:mm:ss");
@ -170,6 +179,9 @@ export default {
},
methods: {
handleChangeRecordLocation(val) {
localStorage.setItem("recordLocation", val);
},
//
getVideoTreeGroup() {
getVideoTreeGroupVideoApi({
@ -320,7 +332,7 @@ export default {
height: calc(100% - 22px)
}
// element
/deep/.el-date-editor .el-input__inner {
/deep/.el-date-editor .el-input__inner, /deep/.el-select .el-input__inner {
background: rgba(5, 177, 194, 0.15);
border-radius: 2px 2px 2px 2px;
border: 1px solid #00fdff;