/* empty css                                              */import{r as $,f as F,t as N,u as O}from"./index.382339dd.js";import{x as C,a3 as S,y as A,r as v,o as d,a as s,b as a,d as o,e as l,G as p,J as c,A as _,C as x,t as D,g as E}from"./vendor.475775fc.js";import"./index.e07f9e9c.js";const G={class:"padding-sm"},J=D("div",{class:"text-bold padding-top-xl margin-bottom"}," \u5F55\u50CF/\u6293\u62CD\u914D\u7F6E\uFF1A ",-1),Q={__name:"pictureConfiguration",setup(L){const{proxy:f}=E(),n=C({}),g=C({}),I=S({pictureOptions:[{value:"0",label:"\u9ED8\u8BA4"},{value:"600",label:"600P\uFF08\u7701\u6D41\u91CF\uFF09"},{value:"720",label:"720P\uFF08\u4E2D\u7EA7\uFF09"},{value:"1080",label:"1080P (\u9AD8\u7EA7)"}],videoCode:[{value:"h264",label:"h264"},{value:"h265",label:"h265"}],resolutionRatio:[{value:"720:480",label:"720*480"},{value:"1024:600",label:"1024*600"},{value:"1280:720",label:"1280*720"},{value:"1920:1080",label:"1920*1080"},{value:"2560:1440",label:"2560*1440"}],videoType:[{value:"mp4",label:"mp4"},{value:"mkv",label:"mkv"}],imageType:[{value:"jpeg",label:"jpeg"},{value:"webp",label:"webp"}]}),{pictureOptions:j,videoCode:U,resolutionRatio:k,videoType:z,imageType:P}=A(I),T=function(){f.$modal.confirm("\u786E\u8BA4\u662F\u5426\u4FEE\u6539\u56FE\u7247\u8D28\u91CF\u914D\u7F6E\uFF1F").then(function(){N(g.value).then(r=>{r.code==200&&(h(),f.$modal.msgSuccess("\u64CD\u4F5C\u6210\u529F\uFF01"))})}).catch(()=>{})},w=function(){f.$modal.confirm("\u786E\u8BA4\u662F\u5426\u4FEE\u6539\u5F55\u50CF/\u6293\u62CD\u914D\u7F6E\uFF1F").then(function(){n.value.nvr_time=f.parseTime(n.value.nvr_time,"{h}:{i}:{s}"),O(n.value).then(r=>{r.code==200&&(V(),f.$modal.msgSuccess("\u64CD\u4F5C\u6210\u529F\uFF01"))})}).catch(()=>{})},h=function(){$().then(r=>{r.code==200&&(g.value=r.data[1])})},V=function(){F().then(r=>{if(r.code==200){let t=r.data[1],u=(t.nvr_time+"").split(":");t.nvr_time=new Date(2016,9,10,u.length>2?u[0]:"00",u.length>2?u[1]:"00",u.length>2?u[2]:"00"),n.value=t}})};return h(),V(),(r,t)=>{const u=v("el-option"),m=v("el-select"),y=v("el-button"),i=v("el-form-item"),R=v("el-time-picker"),B=v("el-form");return d(),s("div",G,[a(B,{"label-position":"right","label-width":"120px"},{default:o(()=>[a(i,{label:"\u56FE\u7247\u8D28\u91CF\u914D\u7F6E\uFF1A"},{default:o(()=>[a(m,{modelValue:l(g).image_out_size,"onUpdate:modelValue":t[0]||(t[0]=e=>l(g).image_out_size=e),placeholder:"\u8BF7\u9009\u62E9"},{default:o(()=>[(d(!0),s(p,null,c(l(j),(e,b)=>(d(),_(u,{key:e.value,label:e.label,value:e.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),a(y,{class:"margin-left",type:"primary",onClick:T},{default:o(()=>[x("\u786E\u5B9A")]),_:1})]),_:1}),J,a(i,{label:"\u5F55\u50CF\u7F16\u7801\uFF1A"},{default:o(()=>[a(m,{modelValue:l(n).nvr_code,"onUpdate:modelValue":t[1]||(t[1]=e=>l(n).nvr_code=e),placeholder:"\u8BF7\u9009\u62E9"},{default:o(()=>[(d(!0),s(p,null,c(l(U),(e,b)=>(d(),_(u,{key:e.value,label:e.label,value:e.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),a(i,{label:"\u5F55\u50CF\u5206\u8FA8\u7387\uFF1A"},{default:o(()=>[a(m,{modelValue:l(n).nvr_size,"onUpdate:modelValue":t[2]||(t[2]=e=>l(n).nvr_size=e),placeholder:"\u8BF7\u9009\u62E9"},{default:o(()=>[(d(!0),s(p,null,c(l(k),(e,b)=>(d(),_(u,{key:e.value,label:e.label,value:e.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),a(i,{label:"\u5F55\u50CF\u65F6\u957F\uFF1A"},{default:o(()=>[a(R,{modelValue:l(n).nvr_time,"onUpdate:modelValue":t[3]||(t[3]=e=>l(n).nvr_time=e),"picker-options":{selectableRange:"00:00:00 - 23:59:59"},clearable:!1,placeholder:"\u9009\u62E9\u65F6\u95F4"},null,8,["modelValue"])]),_:1}),a(i,{label:"\u5F55\u50CF\u6587\u4EF6\uFF1A"},{default:o(()=>[a(m,{modelValue:l(n).nvr_type,"onUpdate:modelValue":t[4]||(t[4]=e=>l(n).nvr_type=e),placeholder:"\u8BF7\u9009\u62E9"},{default:o(()=>[(d(!0),s(p,null,c(l(z),(e,b)=>(d(),_(u,{key:e.value,label:e.label,value:e.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),a(i,{label:"\u56FE\u7247\u7C7B\u578B\uFF1A"},{default:o(()=>[a(m,{modelValue:l(n).img_type,"onUpdate:modelValue":t[5]||(t[5]=e=>l(n).img_type=e),placeholder:"\u8BF7\u9009\u62E9"},{default:o(()=>[(d(!0),s(p,null,c(l(P),(e,b)=>(d(),_(u,{key:e.value,label:e.label,value:e.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),a(i,{label:"\u56FE\u7247\u5927\u5C0F\uFF1A"},{default:o(()=>[a(m,{modelValue:l(n).img_size,"onUpdate:modelValue":t[6]||(t[6]=e=>l(n).img_size=e),placeholder:"\u8BF7\u9009\u62E9"},{default:o(()=>[(d(!0),s(p,null,c(l(k),(e,b)=>(d(),_(u,{key:e.value,label:e.label,value:e.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),a(i,{label:""},{default:o(()=>[a(y,{icon:"Refresh",onClick:V},{default:o(()=>[x("\u91CD\u7F6E")]),_:1}),a(y,{class:"margin-left",type:"primary",onClick:w},{default:o(()=>[x("\u786E\u5B9A")]),_:1})]),_:1})]),_:1})])}}};export{Q as default};
