2 lines
1.8 KiB
JavaScript
2 lines
1.8 KiB
JavaScript
|
import{d as x,r as _,n as E,h as m,c as V,y as C,I as F,w as c,e as r,a,t as i,u as o,N as s,i as B,W as D,X as I,$ as N,Y as S,E as q,a0 as K,_ as M}from"./index-4dcc0234.js";/* empty css *//* empty css *//* empty css *//* empty css */import"./el-form-item-4ed993c7.js";/* empty css */import{V as R,W as T}from"./sys-8ead7f22.js";const W={class:"main-container"},$={class:"panel-title"},L={class:"fixed-footer-wrap"},U={class:"fixed-footer"},X=x({__name:"map",setup(Y){const e=_(!1),d=_(),t=E({key:""});(async()=>{const n=await(await R()).data;t.key=n.key})();const u=async n=>{e.value||!n||T(t).then(()=>{e.value=!1}).catch(()=>{e.value=!1})},f=()=>{window.open("https://www.kancloud.cn/niucloud/niucloud-admin-develop/3214217")},v=()=>{window.open("https://lbs.qq.com/dev/console/key/manage")};return(n,l)=>{const y=D,k=I,w=N,b=S,h=q,g=K;return m(),V("div",W,[C((m(),F(b,{model:t,"label-width":"150px",ref_key:"formRef",ref:d,class:"page-form"},{default:c(()=>[r(w,{class:"box-card !border-none",shadow:"never"},{default:c(()=>[a("h3",$,i(o(s)("mapSetting")),1),r(k,{label:o(s)("mapKey"),prop:"site_name"},{default:c(()=>[r(y,{modelValue:t.key,"onUpdate:modelValue":l[0]||(l[0]=p=>t.key=p),class:"input-width",clearable:""},null,8,["modelValue"]),a("span",{class:"ml-2 cursor-pointer tutorial-btn",onClick:f},i(o(s)("clickTutorial")),1),a("span",{class:"ml-2 cursor-pointer secret-btn",onClick:v},i(o(s)("clickSecretKey")),1)]),_:1},8,["label"])]),_:1})]),_:1},8,["model"])),[[g,e.value]]),a("div",L,[a("div",U,[r(h,{type:"primary",loading:e.value,onClick:l[1]||(l[1]=p=>u(d.value))},{default:c(()=>[B(i(o(s)("save")),1)]),_:1},8,["loading"])])])])}}});const Z=M(X,[["__scopeId","data-v-5ae62c4b"]]);export{Z as default};
|