import{aa as f,d as A,b as g,c as d,e as p,f as B,h as o,i as l,g as D,u,k as F,A as x,m as a,E as w,_ as h}from"./index.0308b213.js";import{M as S}from"./index.dfdc0704.js";import"./index.vue_vue_type_style_index_0_scoped_f00ed21d_lang.2c48f49b.js";import"./vuedraggable.umd.405b1bec.js";import"./index.35b8c9ab.js";import"./index.9e8820cd.js";import"./sort_out.2008c10d.js";const v=()=>f.request({url:"agent/agentset.Scene/detail",method:"GET"}),y=m=>f({url:"agent/agentset.Scene/save",method:"POST",data:m}),C={class:"wrapper"},U=a("\u4FDD\u5B58\u4FEE\u6539"),k={class:"form"},I=a("\u5173\u95ED"),N=a("\u4F01\u4E1A\u5FAE\u4FE1\u5BA2\u670D"),M=a("\u5C0F\u7A0B\u5E8F\u5BA2\u670D"),T=a("\u4E0D\u663E\u793A"),q=a("\u663E\u793A"),G=A({setup(m){const e=g({is_scene:0,plugid:"",scene:"",tnt_inst_id:"",mobile:"",is_index_show:0,icon:""});(()=>{v().then(r=>{const{sceneInfo:t}=r;e.is_scene=Number(t.is_scene),e.plugid=t.plugid,e.scene=t.scene,e.tnt_inst_id=t.tnt_inst_id,e.mobile=(t==null?void 0:t.mobile)||"",e.is_index_show=t.is_index_show,e.icon=t.icon})})();const b=()=>{y(e).then(r=>{w.success("\u66F4\u65B0\u6570\u636E\u6210\u529F")})};return(r,t)=>{const V=d("el-button"),i=d("el-radio"),c=d("el-radio-group"),s=d("el-form-item"),_=d("el-input"),E=d("el-form");return p(),B("div",C,[o(V,{type:"primary",onClick:b},{default:l(()=>[U]),_:1}),D("div",k,[o(E,{model:u(e),"label-width":"170px","label-position":"left"},{default:l(()=>[o(s,{class:"form-item form-item--center",label:"\u5F00\u542F\u5BA2\u670D"},{default:l(()=>[o(c,{modelValue:u(e).is_scene,"onUpdate:modelValue":t[0]||(t[0]=n=>u(e).is_scene=n),style:{width:"100%"}},{default:l(()=>[o(i,{border:!0,label:0},{default:l(()=>[I]),_:1}),o(i,{border:!0,label:1},{default:l(()=>[N]),_:1}),o(i,{border:!0,label:2},{default:l(()=>[M]),_:1})]),_:1},8,["modelValue"])]),_:1}),o(s,{label:"\u9996\u9875\u60AC\u6D6E\u6309\u94AE\u662F\u5426\u663E\u793A"},{default:l(()=>[o(c,{modelValue:u(e).is_index_show,"onUpdate:modelValue":t[1]||(t[1]=n=>u(e).is_index_show=n),style:{width:"100%"}},{default:l(()=>[o(i,{border:!0,label:0},{default:l(()=>[T]),_:1}),o(i,{border:!0,label:1},{default:l(()=>[q]),_:1})]),_:1},8,["modelValue"])]),_:1}),o(s,{label:"\u5BA2\u670D\u6309\u94AE\u56FE\u6807"},{default:l(()=>[o(S,{modelValue:u(e).icon,"onUpdate:modelValue":t[2]||(t[2]=n=>u(e).icon=n),limit:1,show_type:"all"},null,8,["modelValue"])]),_:1}),o(s,{label:"\u8054\u7CFB\u65B9\u5F0F"},{default:l(()=>[o(_,{modelValue:u(e).mobile,"onUpdate:modelValue":t[3]||(t[3]=n=>u(e).mobile=n)},null,8,["modelValue"])]),_:1}),u(e).is_scene==1?(p(),F(s,{key:0,label:"\u5BA2\u670DID"},{default:l(()=>[o(_,{modelValue:u(e).plugid,"onUpdate:modelValue":t[4]||(t[4]=n=>u(e).plugid=n)},null,8,["modelValue"])]),_:1})):x("",!0),o(s,{label:"\u652F\u4ED8\u5B9D\u5BA2\u670Dscene"},{default:l(()=>[o(_,{modelValue:u(e).scene,"onUpdate:modelValue":t[5]||(t[5]=n=>u(e).scene=n)},null,8,["modelValue"])]),_:1}),o(s,{label:"\u652F\u4ED8\u5B9D\u5BA2\u670Dtnt-inst-id"},{default:l(()=>[o(_,{modelValue:u(e).tnt_inst_id,"onUpdate:modelValue":t[6]||(t[6]=n=>u(e).tnt_inst_id=n)},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])])])}}});const Q=h(G,[["__scopeId","data-v-f271304c"]]);export{Q as default};
