Commit e679940b authored by 张牧越's avatar 张牧越

styleFix

parent 9679f44d
NODE_ENV = "development" NODE_ENV = "development"
Mock: true Mock: true
VUE_APP_API_URL = "http://www.ythplat.com:8002/" VUE_APP_API_URL = "http://qjwl.ythplan.com/"
File added
...@@ -112,6 +112,13 @@ export function getVideoLiveAddressUrl(cameraId) { ...@@ -112,6 +112,13 @@ export function getVideoLiveAddressUrl(cameraId) {
method: 'get', method: 'get',
}) })
} }
export function getAllVideoUrl(params) {
return request({
url: `/pweb/s/camera/liveurls`,
method: 'get',
params
})
}
......
...@@ -2,9 +2,20 @@ ...@@ -2,9 +2,20 @@
<div :style="{ zoom: zoom }"> <div :style="{ zoom: zoom }">
<div class="nav-header"> <div class="nav-header">
<div class="left-nav"> <div class="left-nav">
<span style="font-size: 14px; cursor: pointer" @click="jumpBack" <div class="weather">
>工程项目后台管理系统</span <img
> class="weather-img"
:src="screenDetail.weather_code_url"
alt=""
/>
<div class="weather-text">
<div class="temperature">
{{ screenDetail.temperature }}
<span style="font-size: 14px"></span>
</div>
<div class="condition">{{ screenDetail.weather_condition }}</div>
</div>
</div>
<router-link <router-link
v-for="(router, index) in leftNav" v-for="(router, index) in leftNav"
:key="index" :key="index"
...@@ -254,4 +265,21 @@ a { ...@@ -254,4 +265,21 @@ a {
white-space: nowrap; white-space: nowrap;
padding: 0 30px; padding: 0 30px;
} }
.weather {
display: inline-block;
line-height: 24px;
vertical-align: top;
margin-right: 20px;
margin-top: 8px;
.weather-text {
color: #fff;
font-size: 18px;
display: inline-block;
}
.weather-img {
vertical-align: top;
width: 50px;
margin-right: 6px;
}
}
</style> </style>
\ No newline at end of file
This diff is collapsed.
...@@ -43,6 +43,7 @@ ...@@ -43,6 +43,7 @@
>九分屏</el-button >九分屏</el-button
> >
<el-button @click="closeAll">全部关闭</el-button> <el-button @click="closeAll">全部关闭</el-button>
<el-button @click="viewAll">全部预览</el-button>
</div> </div>
<div class="video-area"> <div class="video-area">
<div <div
...@@ -73,7 +74,11 @@ ...@@ -73,7 +74,11 @@
</div> </div>
</template> </template>
<script> <script>
import { getVideoTreeData, getVideoLiveAddressUrl } from "@/api/index"; import {
getVideoTreeData,
getVideoLiveAddressUrl,
getAllVideoUrl,
} from "@/api/index";
require("vue-video-player/node_modules/video.js/dist/video-js.css"); require("vue-video-player/node_modules/video.js/dist/video-js.css");
import videojs from "video.js"; import videojs from "video.js";
import "videojs-contrib-hls"; import "videojs-contrib-hls";
...@@ -240,6 +245,25 @@ export default { ...@@ -240,6 +245,25 @@ export default {
this.cameraList[index].id = ""; this.cameraList[index].id = "";
this.$forceUpdate(); this.$forceUpdate();
}, },
viewAll() {
this.cameraList.map((item) => {
item.player.dispose();
item.player = null;
item.id = "";
item.live_address_url = "";
});
const allVideoIdArray = this.treeData
.map((item) => {
return item.children.map((child) => {
return child.id;
});
})
.flat();
getAllVideoUrl({ ids: allVideoIdArray.join(",") }).then((res) => {
console.log(res);
});
},
}, },
watch: { watch: {
filterText(val) { filterText(val) {
......
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
title="设备详情" title="设备详情"
append-to-body append-to-body
@opened="openedEvents" @opened="openedEvents"
width="1100px"
> >
<div> <div>
<div class="title-label"> <div class="title-label">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment