index-a1b528fb.js 2.7 KB

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