account.9752d4a4.js 2.2 KB

1
  1. import{F as B}from"./index.8bb06e66.js";import{d as V,b as C,c as s,e as g,f as D,h as t,i as u,u as o,m as b,dT as v,dU as A,E as I,R as h,S as x,g as p,_ as y}from"./index.76214426.js";const d=c=>(h("data-v-c233e61f"),c=c(),x(),c),S=d(()=>p("span",null,"\u516C\u4F17\u53F7\u8BBE\u7F6E",-1)),w=d(()=>p("div",{class:"tn-form-item__tips"},"\u586B\u5199\u516C\u4F17\u53F7\u7684\u8D26\u53F7,\u4E00\u822C\u4E3A\u82F1\u6587\u8D26\u53F7",-1)),U=d(()=>p("div",{class:"tn-form-item__tips"},"\u539F\u59CBID\u4E0D\u80FD\u4FEE\u6539,\u8BF7\u8C28\u614E\u586B\u5199",-1)),k=d(()=>p("div",{class:"tn-form-item__tips"},"\u8BF7\u586B\u5199\u5FAE\u4FE1\u516C\u4F17\u5E73\u53F0\u540E\u53F0\u7684AppId",-1)),N=d(()=>p("div",{class:"tn-form-item__tips"},"\u8BF7\u586B\u5199\u5FAE\u4FE1\u516C\u4F17\u5E73\u53F0\u540E\u53F0\u7684AppSecret",-1)),R=b("\u4FDD\u5B58"),T=V({setup(c){const e=C({account:"",appid:"",original:"",appsecret:""}),m=()=>{v().then(l=>{e.account=l.account||"",e.appid=l.appid||"",e.original=l.original||"",e.appsecret=l.appsecret||""})},r=()=>{A(e).then(l=>{l&&I({message:"\u4FDD\u5B58\u6210\u529F",type:"success"}),m()})};return m(),(l,a)=>{const i=s("el-input"),_=s("el-form-item"),f=s("el-card"),F=s("el-form"),E=s("el-button");return g(),D("div",null,[t(F,{ref:"formRef",model:o(e),"label-width":"160px",size:"default","label-position":"left"},{default:u(()=>[t(f,{shadow:"always","body-style":{padding:"30px"}},{header:u(()=>[S]),default:u(()=>[t(_,{label:"\u516C\u4F17\u53F7\u8D26\u53F7"},{default:u(()=>[t(i,{modelValue:o(e).account,"onUpdate:modelValue":a[0]||(a[0]=n=>o(e).account=n)},null,8,["modelValue"]),w]),_:1}),t(_,{label:"\u539F\u59CBID"},{default:u(()=>[t(i,{modelValue:o(e).original,"onUpdate:modelValue":a[1]||(a[1]=n=>o(e).original=n)},null,8,["modelValue"]),U]),_:1}),t(_,{label:"AppId"},{default:u(()=>[t(i,{modelValue:o(e).appid,"onUpdate:modelValue":a[2]||(a[2]=n=>o(e).appid=n)},null,8,["modelValue"]),k]),_:1}),t(_,{label:"AppSecret"},{default:u(()=>[t(i,{modelValue:o(e).appsecret,"onUpdate:modelValue":a[3]||(a[3]=n=>o(e).appsecret=n)},null,8,["modelValue"]),N]),_:1})]),_:1})]),_:1},8,["model"]),t(B,null,{default:u(()=>[t(E,{type:"primary",onClick:r},{default:u(()=>[R]),_:1})]),_:1})])}}});const M=y(T,[["__scopeId","data-v-c233e61f"]]);export{M as default};