const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["js/form10.js?v=1753954525509","js/index.vue_vue_type_script_setup_true_lang.js?v=1753954525509","js/naive.js?v=1753954525509","js/vue.js?v=1753954525509","js/__commonjsHelpers__.js?v=1753954525509","js/common.js?v=1753954525509","js/page_layout.js?v=1753954525509","js/public.js?v=1753954525509","css/public.css?v=1753954525509","css/page_layout.css?v=1753954525509"])))=>i.map(i=>d[i]);
import{gr as a,gs as t,c as s,a as e}from"./page_layout.js?v=1753954525509";import{_ as o}from"./index.js?v=1753954525509";import{_ as n}from"./index.vue_vue_type_script_setup_true_lang4.js?v=1753954525509";import{b as i,h as l,d as c,c as r,e as d,f as _}from"./public.js?v=1753954525509";import{ay as m,cD as p}from"./naive.js?v=1753954525509";import{k as u,P as b,U as y,a1 as f,a2 as g,Q as h,X as j,j as x,a3 as w,_ as D}from"./vue.js?v=1753954525509";import"./common.js?v=1753954525509";import"./__commonjsHelpers__.js?v=1753954525509";import"./index.vue_vue_type_script_setup_true_lang7.js?v=1753954525509";const k=u({__name:"index",props:{data:{}},setup(u){const k=D((()=>e((()=>import("./form10.js?v=1753954525509")),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9])))),v=u,{params:q}=v.data,{t:M}=b(),{keys:P,table:L,columns:C}=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}=r(),H=async()=>{try{E(!0);const{message:a}=await t(q);s(a)&&(L.data=a.data)}finally{E(!1),P.value=[]}};H();const T=d(M("Database.Mysql.index_21"),{getList:H,params:q});return(a,t)=>{const s=m,e=_,i=n,l=o,c=p;return y(),f(c,{class:"p-16px"},{default:g((()=>[h(i,null,{toolsLeft:g((()=>[h(s,{type:"primary",onClick:t[0]||(t[0]=a=>j(T).show=!0)},{default:g((()=>[x(w(a.$t("Database.Mysql.index_21")),1)])),_:1})])),table:g((()=>[h(e,{loading:j(B),data:j(L).data,"max-height":500,columns:j(C)},null,8,["loading","data","columns"])])),_:1}),h(l,{show:j(T).show,"onUpdate:show":t[1]||(t[1]=a=>j(T).show=a),title:j(T).title,data:j(T).data,width:600,"min-height":250,footer:!0,component:j(k)},null,8,["show","title","data","component"])])),_:1})}}});export{k as default};
