/* empty css                                              */import{m as T,n as g}from"./index.382339dd.js";import{a3 as h,y as N,r as a,o as v,a as y,b as o,d as l,e as s,C as p,g as V}from"./vendor.475775fc.js";import"./index.e07f9e9c.js";const k={class:"padding-sm"},B={__name:"ntpTimeConfiguration",setup(C){const{proxy:m}=V(),r=h({ntpTimeInfo:{}}),{ntpTimeInfo:t}=N(r),_=function(){m.$modal.confirm("\u786E\u8BA4\u662F\u5426\u4FEE\u6539NTP\u65F6\u95F4\u914D\u7F6E\uFF1F").then(function(){g(t.value).then(n=>{n.code==200&&(c(),m.$modal.msgSuccess("\u64CD\u4F5C\u6210\u529F\uFF01"))})}).catch(()=>{})},c=function(){T().then(n=>{if(n.code==200){let e=n.data[1];e.ntp=JSON.parse(e.ntp),t.value=e}})};return c(),(n,e)=>{const u=a("el-checkbox"),d=a("el-form-item"),f=a("el-date-picker"),b=a("el-button"),x=a("el-form");return v(),y("div",k,[o(x,{"label-position":"right","label-width":"120px"},{default:l(()=>[o(d,{label:"NTP\u6821\u65F6\uFF1A"},{default:l(()=>[o(u,{modelValue:s(t).ntp,"onUpdate:modelValue":e[0]||(e[0]=i=>s(t).ntp=i)},{default:l(()=>[p("NTP\u6821\u65F6")]),_:1},8,["modelValue"])]),_:1}),o(d,{label:""},{default:l(()=>[o(f,{disabled:s(t).ntp,type:"datetime",placeholder:"\u8BF7\u8F93\u5165\u81EA\u5B9A\u4E49\u65F6\u95F4",modelValue:s(t).boxTime,"onUpdate:modelValue":e[1]||(e[1]=i=>s(t).boxTime=i),style:{width:"400px"}},null,8,["disabled","modelValue"]),o(b,{class:"margin-left",type:"primary",onClick:_},{default:l(()=>[p("\u786E\u5B9A")]),_:1})]),_:1})]),_:1})])}}};export{B as default};
