1 |
- import{d as I,P as J,r as d,b as R,a3 as T,o as l,c as W,f as a,A as t,k as s,C as o,D as f,a as p,F as j,_ as z,J as B,U as M,V as U,W as V,X,Y,__tla as q}from"./index-1f518666.js";import{_ as E,__tla as G}from"./ContentWrap.vue_vue_type_script_setup_true_lang-a4de6de9.js";import{d as H,__tla as K}from"./formatTime-a4909bb5.js";import{g as L,d as N,__tla as O}from"./index-bf611ef5.js";import{_ as Q,__tla as Z}from"./DataSourceConfigForm.vue_vue_type_script_setup_true_lang-6b5fa808.js";import{u as $,__tla as aa}from"./useMessage-633c11d2.js";import{__tla as ta}from"./el-card-955661ed.js";import{__tla as ea}from"./Dialog-4c960d8c.js";import"./_plugin-vue_export-helper-1b428a4d.js";let k,ra=Promise.all([(()=>{try{return q}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 R(()=>{i()}),(g,n)=>{const v=z,c=B,x=M,S=U,w=E,e=V,D=X,u=T("hasPermi"),P=Y;return l(),W(j,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};
|