import{u as g}from"./swipe.1d6b71cb.js";import{M as C}from"./index.dfdc0704.js";import{d as h,b as B,p as D,c as s,e as I,k as v,i as t,h as e,u as o,a2 as w,m,g as A,E as U}from"./index.0308b213.js";const x=m("\u6574\u67DC"),y=m("\u5355\u683C\u53E3"),k=A("div",{class:"txt-div",style:{color:"red"}},"\uFF08\u6574\u67DC\u52A0\u70ED\u9ED8\u8BA4\u4F7F\u7528\u6BCF\u5757\u677F\u7684\u7B2C25\u53F7\u901A\u9053\uFF09",-1),N=m("\u63D0\u4EA4"),M=m("\u53D6\u6D88"),q=h({props:{show:{type:Boolean,default:!1},EditIds:{type:Number,default:0}},emits:["hideEdit","refresh"],setup(i,{emit:c}){const _=i,l=B({EditIds:[],name:"",deviceId:"",ccid:"",device_sn:"",bgImage:"",is_hot:!1,hot_method:"all",hot_seconds:0}),V=()=>{g(l).then(()=>{U({message:"\u6279\u91CF\u8BBE\u7F6E\u6210\u529F",type:"success"})})},r=()=>{c("hideEdit")};return D(()=>_.EditIds,()=>{l.EditIds=_.EditIds},{immediate:!0}),(z,u)=>{const n=s("el-input"),a=s("el-form-item"),F=s("el-switch"),p=s("el-radio"),E=s("el-radio-group"),f=s("el-button"),b=s("el-dialog");return I(),v(b,{modelValue:i.show,title:"\u6279\u91CF\u8BBE\u7F6E",width:"50%",onClose:r},{default:t(()=>[e(o(w),{model:o(l),"label-width":"120px"},{default:t(()=>[e(a,{label:"\u540D\u79F0"},{default:t(()=>[e(n,{modelValue:o(l).name,"onUpdate:modelValue":u[0]||(u[0]=d=>o(l).name=d)},null,8,["modelValue"])]),_:1}),e(a,{label:"\u677F\u5B50ID"},{default:t(()=>[e(n,{modelValue:o(l).deviceId,"onUpdate:modelValue":u[1]||(u[1]=d=>o(l).deviceId=d)},null,8,["modelValue"])]),_:1}),e(a,{label:"\u6D41\u91CF\u5361\u53F7"},{default:t(()=>[e(n,{modelValue:o(l).ccid,"onUpdate:modelValue":u[2]||(u[2]=d=>o(l).ccid=d)},null,8,["modelValue"])]),_:1}),e(a,{label:"\u8BBE\u5907\u53F7"},{default:t(()=>[e(n,{modelValue:o(l).device_sn,"onUpdate:modelValue":u[3]||(u[3]=d=>o(l).device_sn=d)},null,8,["modelValue"])]),_:1}),e(a,{label:"\u80CC\u666F\u56FE\u7247",prop:"image"},{default:t(()=>[e(C,{modelValue:o(l).bgImage,"onUpdate:modelValue":u[4]||(u[4]=d=>o(l).bgImage=d),limit:1},null,8,["modelValue"])]),_:1}),e(a,{label:"\u52A0\u70ED\u5F00\u5173"},{default:t(()=>[e(F,{modelValue:o(l).is_hot,"onUpdate:modelValue":u[5]||(u[5]=d=>o(l).is_hot=d)},null,8,["modelValue"])]),_:1}),e(a,{label:"\u52A0\u70ED\u65B9\u5F0F"},{default:t(()=>[e(E,{modelValue:o(l).hot_method,"onUpdate:modelValue":u[6]||(u[6]=d=>o(l).hot_method=d)},{default:t(()=>[e(p,{label:"all",size:"large"},{default:t(()=>[x]),_:1}),e(p,{label:"single",size:"large"},{default:t(()=>[y]),_:1})]),_:1},8,["modelValue"]),k]),_:1}),e(a,{label:"\u52A0\u70ED\u65F6\u957F(\u79D2)"},{default:t(()=>[e(n,{modelValue:o(l).hot_seconds,"onUpdate:modelValue":u[7]||(u[7]=d=>o(l).hot_seconds=d)},null,8,["modelValue"])]),_:1}),e(a,null,{default:t(()=>[e(f,{type:"primary",onClick:V},{default:t(()=>[N]),_:1}),e(f,{onClick:r},{default:t(()=>[M]),_:1})]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"])}}});export{q as _};
