import{s as F,i as w}from"./setting.644fa418.js";import{d as V,b as E,c as d,e as A,f as B,h as o,i as a,u as t,g as m,m as i,E as C,R as v,S as D,_ as x}from"./index.0308b213.js";const g=n=>(v("data-v-0c6374e3"),n=n(),D(),n),S={class:"setting-form"},h=i("\u9AD8\u5FB7\u5730\u56FE"),M=i("\u8C37\u6B4C\u5730\u56FE"),U=g(()=>m("div",{class:"tn-form-item__tips"},"\u683C\u5F0F: web\u670D\u52A1,\u5B89\u5168\u5BC6\u94A5,webjsapi \u591A\u4E2A\u6362\u884C",-1)),I=g(()=>m("div",{class:"tn-form-item__tips"},null,-1)),N={class:"operation-btn"},j=i("\u63D0\u4EA4"),R=V({setup(n){const e=E({map_type:1,gaode_key_web:"",gaode_secret_web:"",gaode_key:"",google_key:""}),b=()=>{F(e).then(()=>{r(),C.success("\u5730\u56FE\u914D\u7F6E\u4FDD\u5B58\u6210\u529F")})},r=()=>{w().then(_=>{e.map_type=_.map_type||1,e.gaode_key_web=_.gaode_key_web,e.gaode_secret_web=_.gaode_secret_web,e.gaode_key=_.gaode_key,e.google_key=_.google_key})};return r(),(_,u)=>{const c=d("el-radio"),y=d("el-radio-group"),s=d("el-form-item"),p=d("el-input"),f=d("el-form"),k=d("el-button");return A(),B("div",S,[o(f,{model:t(e),"label-width":"170px"},{default:a(()=>[o(s,{label:"\u5730\u56FE"},{default:a(()=>[o(y,{modelValue:t(e).map_type,"onUpdate:modelValue":u[0]||(u[0]=l=>t(e).map_type=l)},{default:a(()=>[o(c,{border:"",label:1},{default:a(()=>[h]),_:1}),o(c,{border:"",label:2},{default:a(()=>[M]),_:1})]),_:1},8,["modelValue"])]),_:1}),o(s,{label:"\u9AD8\u5FB7\u5730\u56FEweb\u7AEFkey"},{default:a(()=>[o(p,{modelValue:t(e).gaode_key_web,"onUpdate:modelValue":u[1]||(u[1]=l=>t(e).gaode_key_web=l)},null,8,["modelValue"])]),_:1}),o(s,{label:"\u9AD8\u5FB7\u5730\u56FEweb\u7AEF\u5B89\u5168\u5BC6\u94A5"},{default:a(()=>[o(p,{modelValue:t(e).gaode_secret_web,"onUpdate:modelValue":u[2]||(u[2]=l=>t(e).gaode_secret_web=l)},null,8,["modelValue"])]),_:1}),o(s,{label:"\u9AD8\u5FB7\u5730\u56FE\u5BC6\u94A5"},{default:a(()=>[o(p,{modelValue:t(e).gaode_key,"onUpdate:modelValue":u[3]||(u[3]=l=>t(e).gaode_key=l),type:"textarea",rows:7},null,8,["modelValue"]),U]),_:1}),o(s,{label:"\u8C37\u6B4C\u5730\u56FEkey"},{default:a(()=>[o(p,{modelValue:t(e).google_key,"onUpdate:modelValue":u[4]||(u[4]=l=>t(e).google_key=l)},null,8,["modelValue"]),I]),_:1})]),_:1},8,["model"]),m("div",N,[o(k,{type:"primary",onClick:b},{default:a(()=>[j]),_:1})])])}}});const z=x(R,[["__scopeId","data-v-0c6374e3"]]);export{z as default};
