1 |
- import{d as F,P as I,r as d,b as J,a3 as R,o as l,c as T,f as a,A as t,k as s,C as o,D as f,a as p,F as W,_ as q,J as L,U as M,V as U,W as V,X,Y,__tla as z}from"./index-a9d538d5.js";import{_ as B,__tla as E}from"./ContentWrap.vue_vue_type_script_setup_true_lang-6b7b4656.js";import{d as G,__tla as H}from"./formatTime-8985a9d0.js";import{g as K,d as N,__tla as O}from"./index-ea7c41bc.js";import{_ as Q,__tla as Z}from"./DataSourceConfigForm.vue_vue_type_script_setup_true_lang-74c4b722.js";import{u as $,__tla as aa}from"./useMessage-d5cbbfad.js";import{__tla as ta}from"./el-card-0ea446a3.js";import{__tla as ea}from"./Dialog-f354f369.js";import"./_plugin-vue_export-helper-1b428a4d.js";let k,ra=Promise.all([(()=>{try{return z}catch{}})(),(()=>{try{return E}catch{}})(),(()=>{try{return H}catch{}})(),(()=>{try{return O}catch{}})(),(()=>{try{return Z}catch{}})(),(()=>{try{return aa}catch{}})(),(()=>{try{return ta}catch{}})(),(()=>{try{return ea}catch{}})()]).then(async()=>{k=F({name:"InfraDataSourceConfig",__name:"index",setup(la){const m=$(),{t:C}=I(),_=d(!0),y=d([]),i=async()=>{_.value=!0;try{y.value=await K()}finally{_.value=!1}},h=d(),b=(g,n)=>{h.value.open(g,n)};return J(()=>{i()}),(g,n)=>{const v=q,c=L,x=M,S=U,w=B,e=V,D=X,u=R("hasPermi"),P=Y;return l(),T(W,null,[a(w,null,{default:t(()=>[a(S,{class:"-mb-15px",inline:!0},{default:t(()=>[a(x,null,{default:t(()=>[s((l(),o(c,{type:"primary",plain:"",onClick:n[0]||(n[0]=r=>b("create"))},{default:t(()=>[a(v,{icon:"ep:plus",class:"mr-5px"}),f(" \u65B0\u589E ")]),_:1})),[[u,["infra:data-source-config:create"]]])]),_:1})]),_:1})]),_:1}),a(w,null,{default:t(()=>[s((l(),o(D,{data:p(y)},{default:t(()=>[a(e,{label:"\u4E3B\u952E\u7F16\u53F7",align:"center",prop:"id"}),a(e,{label:"\u6570\u636E\u6E90\u540D\u79F0",align:"center",prop:"name"}),a(e,{label:"\u6570\u636E\u6E90\u8FDE\u63A5",align:"center",prop:"url","show-overflow-tooltip":!0}),a(e,{label:"\u7528\u6237\u540D",align:"center",prop:"username"}),a(e,{label:"\u521B\u5EFA\u65F6\u95F4",align:"center",prop:"createTime",width:"180",formatter:p(G)},null,8,["formatter"]),a(e,{label:"\u64CD\u4F5C",align:"center"},{default:t(r=>[s((l(),o(c,{link:"",type:"primary",onClick:j=>b("update",r.row.id),disabled:r.row.id===0},{default:t(()=>[f(" \u7F16\u8F91 ")]),_:2},1032,["onClick","disabled"])),[[u,["infra:data-source-config:update"]]]),s((l(),o(c,{link:"",type:"danger",onClick:j=>(async A=>{try{await m.delConfirm(),await N(A),m.success(C("common.delSuccess")),await i()}catch{}})(r.row.id),disabled:r.row.id===0},{default:t(()=>[f(" \u5220\u9664 ")]),_:2},1032,["onClick","disabled"])),[[u,["infra:data-source-config:delete"]]])]),_:1})]),_:1},8,["data"])),[[P,p(_)]])]),_:1}),a(Q,{ref_key:"formRef",ref:h,onSuccess:i},null,512)],64)}}})});export{ra as __tla,k as default};
|