|
@@ -209,29 +209,7 @@ export default ({
|
209
|
209
|
let interDevice = ref([])
|
210
|
210
|
// 智慧教室
|
211
|
211
|
let carouselData = ref([
|
212
|
|
- {
|
213
|
|
- activeMonitor:{
|
214
|
|
- "array": [
|
215
|
|
- {
|
216
|
|
- "src": "http://kbs-dokdo.gscdn.com/dokdo_300/_definst_/dokdo_300.stream/playlist.m3u8",
|
217
|
|
- "title": "录播设备"
|
218
|
|
- },
|
219
|
|
-
|
220
|
|
- ],
|
221
|
|
- "title1": "010431",
|
222
|
|
- "array1": [
|
223
|
|
- {
|
224
|
|
- "src": "http://kbs-dokdo.gscdn.com/dokdo_300/_definst_/dokdo_300.stream/playlist.m3u8",
|
225
|
|
- "title": "录播设备"
|
226
|
|
- },
|
227
|
|
- {
|
228
|
|
- "src": "http://kbs-dokdo.gscdn.com/dokdo_300/_definst_/dokdo_300.stream/playlist.m3u8",
|
229
|
|
- "title": "录播设备"
|
230
|
|
- }
|
231
|
|
- ],
|
232
|
|
- "title": "010429"
|
233
|
|
-}
|
234
|
|
- }
|
|
212
|
+
|
235
|
213
|
])
|
236
|
214
|
|
237
|
215
|
//获取页面数据
|
|
@@ -254,50 +232,50 @@ export default ({
|
254
|
232
|
// 物联设备类型数据
|
255
|
233
|
console.log('sadui12u31',category);
|
256
|
234
|
//截取数组前6项
|
257
|
|
- interDevice.value = category.slice(0,6);
|
|
235
|
+ interDevice.value = category;
|
258
|
236
|
|
259
|
|
- // // 互动教室
|
260
|
|
- // carouselData.value = monitor;
|
|
237
|
+ // 互动教室
|
|
238
|
+ carouselData.value = monitor;
|
261
|
239
|
|
262
|
|
- // carouselData.value.map((res)=>{
|
263
|
|
- // console.log('sadhi2',res.activeMonitor);
|
|
240
|
+ carouselData.value.map((res)=>{
|
|
241
|
+ console.log('sadhi2',res.activeMonitor);
|
264
|
242
|
|
265
|
|
- // res.activeMonitor.array.map(array =>{
|
|
243
|
+ res.activeMonitor.array.map(array =>{
|
266
|
244
|
|
267
|
|
- // //视频转码
|
268
|
|
- // getvideo({
|
269
|
|
- // "rtsp": array.src,
|
270
|
|
- // }).then((res)=>{
|
271
|
|
- // console.log('sadnuq21',res.data);
|
272
|
|
- // console.log('sadnuq2121',res.data.httpFlv);
|
273
|
|
- // array.src='http://kbs-dokdo.gscdn.com/dokdo_300/_definst_/dokdo_300.stream/playlist.m3u8'
|
274
|
|
- // // array.src=res.data.httpFlv
|
275
|
|
- // })
|
|
245
|
+ //视频转码
|
|
246
|
+ getvideo({
|
|
247
|
+ "rtsp": array.src,
|
|
248
|
+ }).then((res)=>{
|
|
249
|
+ console.log('sadnuq21',res.data);
|
|
250
|
+ console.log('sadnuq2121',res.data.httpFlv);
|
|
251
|
+
|
|
252
|
+ array.src=res.data.httpFlv
|
|
253
|
+ })
|
276
|
254
|
|
277
|
255
|
|
278
|
|
- // })
|
279
|
|
- // res.activeMonitor.array1.map(array1 =>{
|
280
|
|
- // console.log('asdui1231',array1);
|
281
|
|
- // //视频转码
|
282
|
|
- // getvideo({
|
283
|
|
- // "rtsp": array1.src,
|
284
|
|
- // }).then((res)=>{
|
285
|
|
- // console.log('sadnuq212123s2',res.data);
|
286
|
|
- // array1.src='http://kbs-dokdo.gscdn.com/dokdo_300/_definst_/dokdo_300.stream/playlist.m3u8'
|
287
|
|
- // // array.src=res.data.httpFlv
|
288
|
|
- // })
|
289
|
|
- // })
|
|
256
|
+ })
|
|
257
|
+ res.activeMonitor.array1.map(array1 =>{
|
|
258
|
+ console.log('asdui1231',array1);
|
|
259
|
+ //视频转码
|
|
260
|
+ getvideo({
|
|
261
|
+ "rtsp": array1.src,
|
|
262
|
+ }).then((res)=>{
|
|
263
|
+ console.log('sadnuq212123s2',res.data);
|
|
264
|
+
|
|
265
|
+ array.src=res.data.httpFlv
|
|
266
|
+ })
|
|
267
|
+ })
|
290
|
268
|
|
291
|
269
|
|
292
|
|
- // })
|
|
270
|
+ })
|
293
|
271
|
|
294
|
272
|
|
295
|
273
|
|
296
|
274
|
|
297
|
275
|
|
298
|
|
- setTimeout(() => {
|
299
|
|
- console.log('处理后监控视频数据===',carouselData.value);
|
300
|
|
- }, 2000);
|
|
276
|
+ // setTimeout(() => {
|
|
277
|
+ // console.log('处理后监控视频数据===',carouselData.value);
|
|
278
|
+ // }, 2000);
|
301
|
279
|
|
302
|
280
|
//物联设备统计
|
303
|
281
|
equipmentTotal.value = status
|