1 |
- import{d as I,P as J,r as d,b as T,a3 as W,o as l,c as j,f as a,A as t,k as s,C as o,D as f,a as p,F as q,_ as z,J as B,U as M,V as R,W as U,X as V,Y as X,__tla as Y}from"./index-6e0fa573.js";import{_ as E,__tla as G}from"./ContentWrap.vue_vue_type_script_setup_true_lang-bed37a76.js";import{d as H,__tla as K}from"./formatTime-4408999b.js";import{g as L,d as N,__tla as O}from"./index-0e296139.js";import{_ as Q,__tla as Z}from"./DataSourceConfigForm.vue_vue_type_script_setup_true_lang-954e8c68.js";import{u as $,__tla as aa}from"./useMessage-7f978edc.js";import{__tla as ta}from"./el-card-f999e23d.js";import{__tla as ea}from"./Dialog-a16029e3.js";import"./_plugin-vue_export-helper-1b428a4d.js";let k,ra=Promise.all([(()=>{try{return Y}catch{}})(),(()=>{try{return G}catch{}})(),(()=>{try{return K}catch{}})(),(()=>{try{return O}catch{}})(),(()=>{try{return Z}catch{}})(),(()=>{try{return aa}catch{}})(),(()=>{try{return ta}catch{}})(),(()=>{try{return ea}catch{}})()]).then(async()=>{k=I({name:"InfraDataSourceConfig",__name:"index",setup(la){const m=$(),{t:C}=J(),_=d(!0),y=d([]),i=async()=>{_.value=!0;try{y.value=await L()}finally{_.value=!1}},h=d(),b=(g,n)=>{h.value.open(g,n)};return T(()=>{i()}),(g,n)=>{const v=z,c=B,x=M,S=R,w=E,e=U,D=V,u=W("hasPermi"),P=X;return l(),j(q,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(H)},null,8,["formatter"]),a(e,{label:"\u64CD\u4F5C",align:"center"},{default:t(r=>[s((l(),o(c,{link:"",type:"primary",onClick:A=>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:A=>(async F=>{try{await m.delConfirm(),await N(F),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};
|