Agriculture-front-end/dist/assets/index.54d73b0e.js

2 lines
24 KiB
JavaScript
Raw Normal View History

import{Q as e,G as t,r as a,x as o,a2 as i,a4 as n,o as l,c as s,l as r,S as c,a8 as A,_ as u,I as d,H as m,d as p,n as h,A as g,f as v,e as y,w as C,J as f,k as I,m as S,O as w,K as b,M as k,q as E,s as x}from"./index.e5c8b0d6.js";import{_ as H}from"./dow.b4b83e88.js";import{b as M,g as B,L as T,i as V,_ as Y,a as D}from"./VideoSurveillance.452e9058.js";import"./index.2809c208.js";import{u as R}from"./useEcharts.31b48034.js";import{v as U}from"./video.vue_vue_type_style_index_1_lang.1cc62507.js";import{h as L}from"./moment.2cad4b18.js";import{d as N}from"./download.57166482.js";import{e as z}from"./element-resize-detector.d4d1cd8d.js";import{ai as j}from"./linkSeriesData.e74eae00.js";import"./browser-detector.d146ab9e.js";function K(t){return e({url:"equipment/meteorologyFtb",method:"get",params:t})}const Z={class:"videoPlay"},J=["src"],P=u(t({__name:"video",props:{videoSrc:null,autoPlay:{type:Boolean,default:!1},sonData:null},setup(e){const t=e,u=a();let d;const m=async()=>{await c();const e={muted:!0,controls:!0,autoplay:!0,loop:!0,language:"zh-CN",techOrder:["html5"],controlBar:{children:[]}};d=U(u.value,e,(()=>{U.log("播放器已经准备好了!"),t.autoPlay&&t.videoSrc&&d.play(),d.on("ended",(()=>{U.log("播放结束了!")})),d.on("error",(()=>{U.log("播放器解析出错!")}))}));const a=U(u.value,e,(function(){const e=U.getComponent("Component"),o=U.extend(e,{constructor:function(t,a){e.apply(this,arguments),this.on("click",this.clickIcon)},createEl:function(){return U.dom.createEl("div",{className:"vjs-my-components",innerHTML:'<img style="width:30px;height:30px;" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAACcSURBVEiJ7ZIxCgIxEEVfREhl5YHco60nUw9jtzZbudW3yUIYFBLZaJF58It8Qh5hBhzH6RZJo6ThH9KV8dfSOaW93EjvKW3lH6Rt5Zl0eiNdM20ql3RJDz6zWOGc+uKF2xe4b+Y8ABFYsu4AXAv/AkCouQwgScAjE0fgGEKoemtXK96K/sTfzngxdaydcclWW87AyXR28x3H6YAXuMLlV+sS9owAAAAASUVORK5CYII=" />',title:"上",style:{cursor:"pointer"}})},clickIcon:function(){M({name:t.sonData}).then((e=>{B({...e.data[0],operation:0,duration:1e3}).then((e=>{"失败"==e?A.error(e):A({message:"成功",type:"success"})}))}))}}),i=U.extend(e,{constructor:function(t,a){e.apply(this,arguments),this.on("click",this.clickIcon)},createEl:function(){return U.dom.createEl("div",{className:"vjs-my-components",innerHTML:'<img style="width:30px;height:30px;" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAACdSURBVEiJ7ZI7DgIxDETHaKU9ExV7tNwMcRi6rRaaVLMFLqIoUTCQCISfZEV2Pq/IAI7j/DpivUAyADhl44uIhN5iAojZeBYR01uTVazcE/msZeLwovht/k/c/ONKikvnzknbTPmz4Vp0jQBu2V7UOmpvDloVkoEPVpLXSq16JnxMnMm3gnTrIm3I+0or8jHSgnycNJEvw6WO43wVO8PZuKKNvIK0AAAAAElFTkSuQmCC" />',title:"下",style:{cursor:"pointer"}})},clickIcon:function(){M({name:t.sonData}).then((e=>{B({...e.data[0],operation:1,duration:1e3}).then((e=>{"失败"==e?A.error(e):A({message:"成功",type:"success"})}))}))}}),n=U.extend(e,{constructor:function(t,a){e.apply(this,arguments),this.on("click",this.clickIcon)},createEl:function(){return U.dom.createEl("div",{className:"vjs-my-components",innerHTML:'<img style="width:30px;height:30px;" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAACjSURBVEiJ7dQxDsIwEAXRWYSUBs4EN8OcLLkMHTShgepT4EgI2YrZIBfgJ23n7BRxAk3T/C1JvaTgfX7tjAZg7426SAp6uknqa0fP1cIv0VHSKYZzwty+onccFx2AaxyAC9Aljm+A3eJwJjq5Z8KzVgVnhpJFn5oNm9kAHIFtnEmXme9KXK5xyeXyxut9Tom4qobf4u6w619tZkGSt9k0zY94AAway9OLwu0SAAAAAElFTkSuQmCC" />',title:"左",style:{cursor:"pointer"}})},clickIcon:function(){M({name:t.sonData}).then((e=>{B({...e.data[0],operation:2,duration:1e3}).then((e=>{"失败"==e?A.error(e):A({message:"成功",type:"success"})}))}))}}),l=U.extend(e,{constructor:function(t,a){e.apply(this,arguments),this.on("click",this.clickIcon)},createEl:function(){return U.dom.createEl("div",{className:"vjs-my-components",innerHTML:'<img style="width:30px;height:30px;" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAAAXNSR0IArs4c6QAAAARzQklUCAgI