|
@@ -48,7 +48,7 @@
|
|
|
</div>
|
|
|
<div class="sand-table-right" v-if="showPanel">
|
|
|
<PanelSand class="right-panel" title="视频监控">
|
|
|
- <el-row v-for="(pItem, pIndex) in videoArray" :key="pIndex">
|
|
|
+ <!-- <el-row v-for="(pItem, pIndex) in videoArray" :key="pIndex">
|
|
|
<el-col
|
|
|
:span="12"
|
|
|
class="pre-img-box"
|
|
@@ -65,6 +65,32 @@
|
|
|
:src="cItem.url + cItem.token"
|
|
|
v-if="cItem.switch"
|
|
|
/>
|
|
|
+ </el-col> -->
|
|
|
+ <el-row v-for="(pItem, pIndex) in videoArray1" :key="pIndex">
|
|
|
+ <el-col
|
|
|
+ :span="12"
|
|
|
+ class="pre-img-box"
|
|
|
+ v-for="(cItem, cIndex) in pItem"
|
|
|
+ :key="cIndex"
|
|
|
+ @click="openVideoDialog1(cItem)"
|
|
|
+ >
|
|
|
+ <div class="mask"></div>
|
|
|
+ <hlsVideo
|
|
|
+ class="pre-img videoBoxiframe"
|
|
|
+ width="95%"
|
|
|
+ height="8.657vh"
|
|
|
+ :code="cItem.code"
|
|
|
+ :class="cItem.class"
|
|
|
+ v-if="cItem.switch"
|
|
|
+ />
|
|
|
+ <!-- <iframe
|
|
|
+ class="pre-img videoBoxiframe"
|
|
|
+ :class="cItem.class"
|
|
|
+ width="95%"
|
|
|
+ height="8.657vh"
|
|
|
+ src="http://192.168.1.18:1935/hls/NSS_FDC_ZK/index.m3u8"
|
|
|
+ v-if="cItem.switch"
|
|
|
+ /> -->
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
</PanelSand>
|
|
@@ -421,11 +447,17 @@
|
|
|
videoDialogClass = 'modal animated a1 bounceIn';
|
|
|
"
|
|
|
>
|
|
|
- <iframe
|
|
|
+ <!-- <iframe
|
|
|
class="videoBoxiframe"
|
|
|
width="95%"
|
|
|
height="800px"
|
|
|
:src="dialogVideoUrl"
|
|
|
+ /> -->
|
|
|
+ <hlsVideo
|
|
|
+ class="videoBoxiframe"
|
|
|
+ width="95%"
|
|
|
+ height="800px"
|
|
|
+ :code="dialogVideoUrl"
|
|
|
/>
|
|
|
</el-dialog>
|
|
|
</div>
|
|
@@ -445,6 +477,7 @@ import DoubleLineChart from "@com/chart/line/double-line-chart.vue";
|
|
|
import Col from "@com/coms/grid/col.vue";
|
|
|
import Row from "@com/coms/grid/row.vue";
|
|
|
import SvgIcon from "@com/coms/icon/svg-icon.vue";
|
|
|
+import hlsVideo from "./component/hls.vue";
|
|
|
|
|
|
export default {
|
|
|
// 名称
|
|
@@ -464,6 +497,7 @@ export default {
|
|
|
Col,
|
|
|
Row,
|
|
|
SvgIcon,
|
|
|
+ hlsVideo,
|
|
|
},
|
|
|
// 数据
|
|
|
data() {
|
|
@@ -500,6 +534,32 @@ export default {
|
|
|
gxkmap: {},
|
|
|
tableItem: {},
|
|
|
mapSource: {},
|
|
|
+ videoArray1: [
|
|
|
+ // [
|
|
|
+ // { code: "NSS_FDC_ZK", class: "", switch: true },
|
|
|
+ // { code: "NSS_FDC_ZK", class: "", switch: true },
|
|
|
+ // ],
|
|
|
+ // [
|
|
|
+ // { code: "NSS_FDC_ZK", class: "", switch: true },
|
|
|
+ // { code: "QS_FDC_ZK", class: "", switch: true },
|
|
|
+ // ],
|
|
|
+ // [
|
|
|
+ // { code: "QS_FDC_ZK", class: "", switch: true },
|
|
|
+ // { code: "QS_FDC_ZK", class: "", switch: true },
|
|
|
+ // ],
|
|
|
+ [
|
|
|
+ { code: "SBQ_FDC_SC", class: "", switch: true },
|
|
|
+ { code: "NSS_FDC_SC", class: "", switch: true },
|
|
|
+ ],
|
|
|
+ [
|
|
|
+ { code: "QS_FDC_SC", class: "", switch: true },
|
|
|
+ { code: "MHS_FDC_SC", class: "", switch: true },
|
|
|
+ ],
|
|
|
+ [
|
|
|
+ { code: "XS_FDC_SC", class: "", switch: true },
|
|
|
+ { code: "PL_GDC_SC", class: "", switch: true },
|
|
|
+ ],
|
|
|
+ ],
|
|
|
videoArray: [
|
|
|
[
|
|
|
{
|
|
@@ -655,6 +715,13 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
|
|
|
+ openVideoDialog1(item) {
|
|
|
+ if (item.code) {
|
|
|
+ this.dialogVideoUrl = item.code;
|
|
|
+ this.showVideoDialog = true;
|
|
|
+ }
|
|
|
+ },
|
|
|
+
|
|
|
getWtInfo() {
|
|
|
let that = this;
|
|
|
that.API.requestData({
|
|
@@ -743,7 +810,6 @@ export default {
|
|
|
stationid: that.wpId,
|
|
|
},
|
|
|
success(res) {
|
|
|
- console.log(res);
|
|
|
let warnChartData = [];
|
|
|
for (let key in res.data) {
|
|
|
const ele = res.data[key];
|
|
@@ -890,15 +956,31 @@ export default {
|
|
|
// 点击风场或者光伏
|
|
|
clickMapItem(videoArray, wpId) {
|
|
|
this.wpId = wpId;
|
|
|
- this.videoArray.forEach((pEle, pIndex) => {
|
|
|
+ // this.videoArray.forEach((pEle, pIndex) => {
|
|
|
+ // pEle.forEach((cEle, cIndex) => {
|
|
|
+ // setTimeout(() => {
|
|
|
+ // // 设置隐藏动画
|
|
|
+ // cEle.class = "animated a1 flipOutX";
|
|
|
+ // setTimeout(() => {
|
|
|
+ // // 修改 token
|
|
|
+ // cEle.token =
|
|
|
+ // "?token=" + videoArray[pIndex + cIndex] + "&autoplay=true";
|
|
|
+ // setTimeout(() => {
|
|
|
+ // // 设置显示动画
|
|
|
+ // cEle.class = "animated a1 flipInX";
|
|
|
+ // }, 150);
|
|
|
+ // }, 350);
|
|
|
+ // }, (pIndex + cIndex + pIndex) * 150);
|
|
|
+ // });
|
|
|
+ // });
|
|
|
+ this.videoArray1.forEach((pEle, pIndex) => {
|
|
|
pEle.forEach((cEle, cIndex) => {
|
|
|
setTimeout(() => {
|
|
|
// 设置隐藏动画
|
|
|
cEle.class = "animated a1 flipOutX";
|
|
|
setTimeout(() => {
|
|
|
// 修改 token
|
|
|
- cEle.token =
|
|
|
- "?token=" + videoArray[pIndex + cIndex] + "&autoplay=true";
|
|
|
+ cEle.code = videoArray[pIndex + cIndex];
|
|
|
setTimeout(() => {
|
|
|
// 设置显示动画
|
|
|
cEle.class = "animated a1 flipInX";
|