| | |
| | | .el-tabs__item:hover { |
| | | color: #5d5d5d; |
| | | } |
| | | |
| | | video::-webkit-media-controls-timeline { |
| | | display: none; |
| | | } |
| | | </style> |
| | | </head> |
| | | |
| | |
| | | // console.log(imgD) |
| | | var imgdatas = []; |
| | | if (imgD.data.length != 0) { |
| | | if (imgD.data[0].paddress.length != 0) { |
| | | imgdatas = imgD.data[0].paddress.split(','); |
| | | } else { |
| | | my.imgsl = imgdatas.length == 0 ? ['no'] : imgdatas; |
| | | } |
| | | } else { |
| | | |
| | | } |
| | |
| | | dom.play(); |
| | | }); |
| | | that.hls.on(Hls.Events.ERROR, function (event, data) { |
| | | console.log(data, 4566824159, "视频播放有问题!!!"); |
| | | // console.log(data, 4566824159, "视频播放有问题!!!"); |
| | | if (data.fatal) { |
| | | switch (data.type) { |
| | | case Hls.ErrorTypes.NETWORK_ERROR: |
| | |
| | | var shapeCenter = this._getShapeCenter(cluster.graphicShape); |
| | | var textShape = groupShape.createText({ |
| | | x: shapeCenter.x, |
| | | y: shapeCenter.y + (this.textSymbol.font.size / 2 - 2), |
| | | y: shapeCenter.y + (this.textSymbol.font.size / 2 - 6),//聚合文字设置 |
| | | text: cluster.clusterCount, |
| | | align: 'middle' |
| | | }) |
| | |
| | | margin-bottom: 0; |
| | | width: 50%; |
| | | } |
| | | video::-webkit-media-controls-timeline { |
| | | display: none; |
| | | } |
| | | </style> |
| | |
| | | @current-change="currentChanges" |
| | | @size-change="sizeChanges" |
| | | > |
| | | <template slot="states" slot-scope="scope"> |
| | | <el-tag |
| | | :class="[ |
| | | scope.row.states == '掉线' |
| | | ? 'diaoxianl' |
| | | : scope.row.states == '在线' |
| | | ? 'zaixianl' |
| | | : scope.row.states == '故障' |
| | | ? 'guzhagnl' |
| | | : scope.row.states == '预警' |
| | | ? 'baojinl' |
| | | : '', |
| | | ]" |
| | | >{{ scope.row.states }}</el-tag |
| | | > |
| | | </template> |
| | | </avue-crud> |
| | | </div> |
| | | </el-dialog> |
| | |
| | | label: "设备状态", |
| | | prop: "states", |
| | | width: 90, |
| | | slot: true, |
| | | // className: "cityClass1", |
| | | }, |
| | | ], |
| | | }, |
| | |
| | | }, |
| | | changeDataOpen(dat) { |
| | | //处理弹出框数据 |
| | | console.log(dat); |
| | | if (dat.length > 0) { |
| | | for (var key in dat) { |
| | | let states; |
| | |
| | | this.loadings = false; |
| | | } |
| | | ); |
| | | |
| | | }, |
| | | }, |
| | | mounted() {}, |
| | |
| | | overflow: auto; |
| | | } |
| | | } |
| | | .diaoxianl { |
| | | border: 1px solid #fff; |
| | | color: #fff; |
| | | background-color: #cdcdcd; |
| | | } |
| | | .zaixianl { |
| | | border: 1px solid #fff; |
| | | color: #fff; |
| | | background-color: #32c1a2; |
| | | } |
| | | .guzhagnl { |
| | | border: 1px solid #fff; |
| | | color: #fff; |
| | | background-color: #f49966; |
| | | } |
| | | .baojinl { |
| | | border: 1px solid #fff; |
| | | color: #fff; |
| | | background-color: #f35b5b; |
| | | } |
| | | </style> |