const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["js/form10.js?v=1763625242172","js/index.vue_vue_type_script_setup_true_lang.js?v=1763625242172","js/vue.js?v=1763625242172","js/__commonjsHelpers__.js?v=1763625242172","js/naive.js?v=1763625242172","js/common.js?v=1763625242172","js/page_layout.js?v=1763625242172","js/public.js?v=1763625242172","css/public.css?v=1763625242172","css/page_layout.css?v=1763625242172"])))=>i.map(i=>d[i]);
import{hy as a,hz as t,c as s,a as e}from"./page_layout.js?v=1763625242172";import{_ as o}from"./index.js?v=1763625242172";import{_ as n}from"./index.vue_vue_type_script_setup_true_lang5.js?v=1763625242172";import{c as i,f as l,a as c,d,e as r,h as _}from"./public.js?v=1763625242172";import{aC as m,dS as p}from"./naive.js?v=1763625242172";import{k as u,P as b,R as y,a2 as h,a3 as f,X as j,V as x,j as g,a4 as w,_ as D}from"./vue.js?v=1763625242172";import"./common.js?v=1763625242172";import"./__commonjsHelpers__.js?v=1763625242172";import"./index.vue_vue_type_script_setup_true_lang6.js?v=1763625242172";const k=u({__name:"index",props:{data:{}},setup(u){const k=D((()=>e((()=>import("./form10.js?v=1763625242172")),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9])))),v=u,{params:q}=v.data,{t:M}=b(),{keys:P,table:C,columns:L}=i([{key:"database",title:M("Site.PHP.add_site_16"),render:a=>"*"===a.database?"* -".concat(M("Database.Mysql.index_22")):a.database},{key:"table",title:"Table",render:a=>"*"===a.table?"* -".concat(M("Database.Mysql.index_23")):a.table},{key:"user",title:M("Database.index_21"),render:a=>"".concat(M("Database.Mysql.index_24"),": ").concat(a.access.map((a=>a.access)).join(",")),ellipsis:{tooltip:!0}},l({width:80,options:t=>[{label:M("Public.Btn.Del"),onClick:async()=>{c({title:M("Public.Btn.Del"),content:M("Database.Mysql.index_25",[t.database]),onConfirm:async()=>{let s={...q,db_name:t.database,tb_name:t.table,access:t.access.map((a=>a.access)).join(","),with_grant:0};await a(s),H()}})}}]})]),{loading:B,setLoading:E}=d(),H=async()=>{try{E(!0);const{message:a}=await t(q);s(a)&&(C.data=a.data)}finally{E(!1),P.value=[]}};H();const R=r(M("Database.Mysql.index_21"),{getList:H,params:q});return(a,t)=>{const s=m,e=_,i=n,l=o,c=p;return y(),h(c,{class:"p-16px"},{default:f((()=>[j(i,null,{toolsLeft:f((()=>[j(s,{type:"primary",onClick:t[0]||(t[0]=a=>x(R).show=!0)},{default:f((()=>[g(w(a.$t("Database.Mysql.index_21")),1)])),_:1})])),table:f((()=>[j(e,{loading:x(B),data:x(C).data,"max-height":500,columns:x(L)},null,8,["loading","data","columns"])])),_:1}),j(l,{show:x(R).show,"onUpdate:show":t[1]||(t[1]=a=>x(R).show=a),title:x(R).title,data:x(R).data,width:600,"min-height":250,footer:!0,component:x(k)},null,8,["show","title","data","component"])])),_:1})}}});export{k as default};
