2 lines
12 KiB
JavaScript
2 lines
12 KiB
JavaScript
|
|
import{d as se,r as u,A as be,G as De,a as M,w as le,b as Ve,at as Te,ak as xe,c as g,a5 as oe,S as _,e as I,f as q,h as a,g as n,i as s,z as Ae,y as L,l as V,t as T,T as S,p as ke,F as We,j as Me,E as K,aA as Ie,aB as qe,aC as Ye,q as Je,s as ze,_ as Pe}from"./index-ccab2584.js";import{_ as Ne}from"./\u6293\u62CD-ed15c504.js";import{bC as B,bD as Re,bE as He,bF as Ue}from"./goverment-af43d804.js";import{T as ue}from"./index-5b1885c2.js";import{_ as Le}from"./Pagination.vue_vue_type_script_setup_true_name_Pagination_lang-6796c038.js";import{l as Ke}from"./index-b83cd32d.js";import{f as $e}from"./index-c3163fc1.js";import"./ToolBarRight-ac6e5755.js";import"./notData-cf10628e.js";import"./_commonjs-dynamic-modules-d7dd40bd.js";const Ge=x=>(Je("data-v-38a6752d"),x=x(),ze(),x),Qe={class:"video-box"},Xe={class:"plr-20",style:{display:"flex",height:"calc(100% - 112px)"}},Ze={class:"middle-video"},je={class:"title-video flx-justify-between"},Oe=Ge(()=>n("h3",null,"\u5B9E\u65F6\u89C6\u9891",-1)),et={class:"right-form"},tt={class:"date-form"},at={class:"right-header"},lt={key:0,class:"question-form"},ot={class:"title"},ut={class:"desc"},st={class:"question"},nt={class:"date"},it={class:"title"},rt={class:"desc"},dt={class:"date"},ct=se({name:"governVideo"}),pt=se({...ct,setup(x){const Y=u(),ne=be(),ie=De(),i=M({pageNo:1,pageSize:9,total:0}),A=u("first");u("");const $=u("");u("");const h=u({createTime:"",projectName:"",engineeringName:"",monitorId:"",questionDesc:"",showForm:!1}),d=u({url:"",questionDesc:"",createBy:"",image:""}),G=u(!1),J=u(!1),E=u(!1),Q=u(),X=u(),Z=u(),re=u(null);let z=u(""),P=u(""),j=u(""),k=u(0),l=u(null),b=u([]),w=u({appkey:"",ip:"",secret:"",port:18443,playMode:0,layout:"4x6"});const f=u({dateTime:"",startTime:"",endTime:""}),de=M({questionDesc:[{required:!0,message:"\u8BF7\u8F93\u5165",trigger:"blur"}]}),r=u({createBy:"",createTime:"",image:"",questionDesc:"",solveBy:"",solveImage:"",solveTime:"",state:0}),O=async t=>{if(b.value=[t.data.code],$.value=t.parent.data.title||t.data.title,t.data.code===null)if(b.value=t.data.children.map(e=>e.code),b.value.forEach(e=>{ae(e)}),Y.value=t.data.sn,A.value==="first"){const{result:e}=await B({...i,projectSn:t.data.sn});h.value=e.records,i.total=+e.total}else{const{result:e}=await B({...i,engineeringSn:t.data.sn});h.value=e.records,i.total=+e.total}else{ge(),ae(t.data.code);const{result:e}=await B({...i,deviceCode:t.data.code});h.value=e.records,i.total=+e.total}},ce=async()=>{const{result:t}=await Re({});return Q.value.treeAllData=t,t},pe=async()=>{const{result:t}=await He({});return X.value.treeAllData=t,t},ve=t=>{if(t.showForm=!0,r.value={...t},t.showForm===!0)G.value=!0;else return},me=async()=>{const{result:t}=await B({...i,...f.value});h.value=t.records,i.total=+t.total},ee=async t=>{let e={pageNo:t,pageSize:i.pageSize};A.value==="first"?e.projectSn=Y.value:e.engineeringSn=Y.value;const{result:c}=await B(e);h.value=c.records,i.total=+c.total},fe=t=>{t.showForm=!1,G.value=!1},_e=async()=>{StartCapture()},Fe=()=>{E.value=!0},ye=async t=>{!t||await t.validate(async(e,c)=>{e?(await Ue({...d.value,deviceCode:b.value[0]}),E.value=!1,J.value=!1,K.success("\u63D0\u4EA4\u6210\u529F"),ee(1),d.value=M({url:"",questionDesc:"",createBy:"",image:""})):K({showClose:!0,message:"\u8BF7\u5B8C\u5584\u8868\u5355\u4FE1\u606F\uFF01",type:"error"})})},ge=async()=>{await Ie({cameraIndexCode:b.value})},he=async()=>{const t=await qe({});w.value=M({appkey:t.result.appKey,ip:t.result.ip+":"+t.result.port,secret:t.result.appSecret,port:18443,playMode:0,layout:"4x6"}),w.value},we=()=>{var t,e;f.value.startTime=(t=f.value)==null?void 0:t.dateTime[0],f.value.endTime=(e=f.value)==null?void 0:e.dateTime[1],te()},Ce=()=>{l.value===void 0&&l.JS_HideWnd()},te=()=>{l.value===void 0&&l.JS_ShowWnd()};le(()=>f.value.dateTime,()=>{f.value.dateTime===null&&(f.value.startTime="",f.value.endTime="")}),le(()=>ie.editPassword,t=>{t?l.JS_HideWnd():l.JS_ShowWnd()}),Ve(async()=>{window.addEventListener("setItemEvent",function(v){v.key==="screenImg"&&v.newValue&&(d.value.url=v.newValue,d.value.image=d.value.url,
|