index-16f6e8f3.js 2.7 KB

1
  1. import{d as T,B,r as d,z as F,T as J,o as l,c as K,i as a,w as t,D as s,k as i,l as f,a as m,F as L,n as M,s as R,I as j,J as q,K as A,L as E,M as G,_ as H,__tla as N}from"./index-2f799233.js";import{_ as O,__tla as Q}from"./ContentWrap-9da801df.js";import{d as U,__tla as V}from"./formatTime-2157894c.js";import{g as W,d as X,__tla as Y}from"./index-057d9f7f.js";import Z,{__tla as $}from"./DataSourceConfigForm-3bf80b21.js";import{u as aa,__tla as ta}from"./useMessage-e567ad40.js";import{__tla as ea}from"./el-card-c64c83d1.js";import{__tla as ra}from"./Dialog-6fd39e06.js";let k,la=Promise.all([(()=>{try{return N}catch{}})(),(()=>{try{return Q}catch{}})(),(()=>{try{return V}catch{}})(),(()=>{try{return Y}catch{}})(),(()=>{try{return $}catch{}})(),(()=>{try{return ta}catch{}})(),(()=>{try{return ea}catch{}})(),(()=>{try{return ra}catch{}})()]).then(async()=>{k=H(T({name:"InfraDataSourceConfig",__name:"index",setup(na){const p=aa(),{t:v}=B(),o=d(!0),y=d([]),_=async()=>{o.value=!0;try{y.value=await W()}finally{o.value=!1}},h=d(),w=(g,n)=>{h.value.open(g,n)};return F(()=>{_()}),(g,n)=>{const C=M,c=R,x=j,z=q,b=O,e=A,S=E,u=J("hasPermi"),D=G;return l(),K(L,null,[a(b,null,{default:t(()=>[a(z,{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=>w("create"))},{default:t(()=>[a(C,{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(S,{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(U)},null,8,["formatter"]),a(e,{label:"\u64CD\u4F5C",align:"center"},{default:t(r=>[s((l(),i(c,{link:"",type:"primary",onClick:I=>w("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:I=>(async P=>{try{await p.delConfirm(),await X(P),p.success(v("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(Z,{ref_key:"formRef",ref:h,onSuccess:_},null,512)],64)}}}),[["__file","D:/zx/mall-newfeifan-zx-business/src/views/infra/dataSourceConfig/index.vue"]])});export{la as __tla,k as default};