import{r as c,t as f}from"./setting.644fa418.js";import{d as E,b as V,c as u,e as b,f as B,h as t,i as l,u as o,g as D,m as y,E as R,_ as g}from"./index.0308b213.js";const A={class:"setting-form"},K={class:"operation-btn"},U=y("\u63D0\u4EA4"),v=E({setup(x){const e=V({EBusinessID:"",ApiKey:"",ReqURL:""}),m=()=>{c(e).then(()=>{_(),R.success("\u5FEB\u9012\u9E1F\u914D\u7F6E\u4FDD\u5B58\u6210\u529F")})},_=()=>{f().then(a=>{e.EBusinessID=a.EBusinessID,e.ApiKey=a.ApiKey,e.ReqURL=a.ReqURL})};return _(),(a,s)=>{const i=u("el-input"),d=u("el-form-item"),p=u("el-form"),r=u("el-button");return b(),B("div",A,[t(p,{model:o(e),"label-width":"80px"},{default:l(()=>[t(d,{label:"\u7528\u6237ID"},{default:l(()=>[t(i,{modelValue:o(e).EBusinessID,"onUpdate:modelValue":s[0]||(s[0]=n=>o(e).EBusinessID=n)},null,8,["modelValue"])]),_:1}),t(d,{label:"ApiKey"},{default:l(()=>[t(i,{modelValue:o(e).ApiKey,"onUpdate:modelValue":s[1]||(s[1]=n=>o(e).ApiKey=n)},null,8,["modelValue"])]),_:1}),t(d,{label:"\u8BF7\u6C42\u5730\u5740"},{default:l(()=>[t(i,{modelValue:o(e).ReqURL,"onUpdate:modelValue":s[2]||(s[2]=n=>o(e).ReqURL=n)},null,8,["modelValue"])]),_:1})]),_:1},8,["model"]),D("div",K,[t(r,{type:"primary",onClick:m},{default:l(()=>[U]),_:1})])])}}});const k=g(v,[["__scopeId","data-v-ffb13866"]]);export{k as default};
