1 |
- import{d as F,P as I,r as d,b as J,a4 as T,o as l,c as W,f as a,A as t,k as s,C as i,D as f,a as m,F as Y,Q as j,J as B,V as H,W as Q,X as R,Y as V,Z as X,_ as Z,__tla as q}from"./index-286756b9.js";import{_ as E,__tla as G}from"./ContentWrap-83998678.js";import{d as K,__tla as L}from"./formatTime-83e416ef.js";import{g as M,d as N,__tla as O}from"./index-127a98e5.js";import U,{__tla as $}from"./DataSourceConfigForm-5da8df68.js";import{u as aa,__tla as ta}from"./useMessage-084b1e70.js";import{__tla as ea}from"./el-card-d3d5a654.js";import{__tla as ra}from"./Dialog-4c2de357.js";let k,la=Promise.all([(()=>{try{return q}catch{}})(),(()=>{try{return G}catch{}})(),(()=>{try{return L}catch{}})(),(()=>{try{return O}catch{}})(),(()=>{try{return $}catch{}})(),(()=>{try{return ta}catch{}})(),(()=>{try{return ea}catch{}})(),(()=>{try{return ra}catch{}})()]).then(async()=>{k=Z(F({name:"InfraDataSourceConfig",__name:"index",setup(na){const p=aa(),{t:C}=I(),o=d(!0),y=d([]),_=async()=>{o.value=!0;try{y.value=await M()}finally{o.value=!1}},h=d(),g=(w,n)=>{h.value.open(w,n)};return J(()=>{_()}),(w,n)=>{const v=j,c=B,x=H,S=Q,b=E,e=R,z=V,u=T("hasPermi"),D=X;return l(),W(Y,null,[a(b,null,{default:t(()=>[a(S,{class:"-mb-15px",inline:!0},{default:t(()=>[a(x,null,{default:t(()=>[s((l(),i(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(),i(z,{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(K)},null,8,["formatter"]),a(e,{label:"\u64CD\u4F5C",align:"center"},{default:t(r=>[s((l(),i(c,{link:"",type:"primary",onClick:P=>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(),i(c,{link:"",type:"danger",onClick:P=>(async A=>{try{await p.delConfirm(),await N(A),p.success(C("common.delSuccess")),await _()}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"])),[[D,m(o)]])]),_:1}),a(U,{ref_key:"formRef",ref:h,onSuccess:_},null,512)],64)}}}),[["__file","D:/zx/mall-newfeifan-zx-admin/src/views/infra/dataSourceConfig/index.vue"]])});export{la as __tla,k as default};
|