import{c as b,s as g}from"./index.289eb9c3.js";import{d as y,b as V,c as i,e as k,f as v,g as p,h as t,i as u,u as o,m as C,E as x,R as F,S as A,_ as B}from"./index.0308b213.js";const E=_=>(F("data-v-994a5a97"),_=_(),A(),_),h={class:"area-config"},S=E(()=>p("h1",{style:{"font-size":"20px"}},"\u57FA\u672C\u8BBE\u7F6E",-1)),D={class:"config-form"},I=C("\u63D0\u4EA4"),U=y({setup(_){const e=V({customer_number:"",org_id:"",public_key:"",private_key:""}),m=()=>{b().then(s=>{e.customer_number=s.data.customer_number,e.org_id=s.data.org_id,e.public_key=s.data.public_key,e.private_key=s.data.private_key})};m();const r=()=>{g(e).then(s=>{x.success("\u4FDD\u5B58\u6210\u529F"),m()})};return(s,a)=>{const d=i("el-input"),n=i("el-form-item"),c=i("el-button"),f=i("el-form");return k(),v("div",h,[S,p("div",D,[t(f,{model:o(e),"label-width":"160px"},{default:u(()=>[t(n,{label:"\u5546\u6237\u7F16\u53F7"},{default:u(()=>[t(d,{modelValue:o(e).customer_number,"onUpdate:modelValue":a[0]||(a[0]=l=>o(e).customer_number=l)},null,8,["modelValue"])]),_:1}),t(n,{label:"\u673A\u6784\u7F16\u53F7"},{default:u(()=>[t(d,{modelValue:o(e).org_id,"onUpdate:modelValue":a[1]||(a[1]=l=>o(e).org_id=l)},null,8,["modelValue"])]),_:1}),t(n,{label:"\u516C\u94A5"},{default:u(()=>[t(d,{modelValue:o(e).public_key,"onUpdate:modelValue":a[2]||(a[2]=l=>o(e).public_key=l)},null,8,["modelValue"])]),_:1}),t(n,{label:"\u79C1\u94A5"},{default:u(()=>[t(d,{modelValue:o(e).private_key,"onUpdate:modelValue":a[3]||(a[3]=l=>o(e).private_key=l)},null,8,["modelValue"])]),_:1}),t(n,null,{default:u(()=>[t(c,{type:"primary",onClick:r},{default:u(()=>[I]),_:1})]),_:1})]),_:1},8,["model"])])])}}});const z=B(U,[["__scopeId","data-v-994a5a97"]]);export{z as default};
