1 |
- import{d as M,h as K,r as f,e as Q,k as j,P as J,o as n,c as I,f as a,w as l,a as t,Q as W,F as D,n as X,q as u,m as c,v as y,U as Z,z as $,x as aa,y as ea,A as la,_ as ta,B as ra,C as oa,D as na,G as sa,H as ia,__tla as ca}from"./index-2eab2d23.js";import{_ as _a,__tla as pa}from"./index.vue_vue_type_script_setup_true_lang-5730b053.js";import{_ as ua,__tla as ma}from"./DictTag.vue_vue_type_script_lang-cb1e47ff.js";import{_ as da,__tla as fa}from"./ContentWrap.vue_vue_type_script_setup_true_lang-5a63038a.js";import{F as ya,g as ga,d as ha,u as wa,t as ka,__tla as ba}from"./FileConfigForm-f576891a.js";import{a as va,D as C,__tla as Ca}from"./dict-1ad71b6f.js";import{d as xa,__tla as Fa}from"./formatTime-41155543.js";import{u as Na,__tla as Ra}from"./useMessage-171aa63e.js";import{__tla as Sa}from"./index-cc63c3c4.js";import"./color-6e929987.js";import{__tla as Va}from"./el-card-c558f0ec.js";import{__tla as Ta}from"./Dialog-c2716df6.js";import"./_plugin-vue_export-helper-1b428a4d.js";let U,Aa=Promise.all([(()=>{try{return ca}catch{}})(),(()=>{try{return pa}catch{}})(),(()=>{try{return ma}catch{}})(),(()=>{try{return fa}catch{}})(),(()=>{try{return ba}catch{}})(),(()=>{try{return Ca}catch{}})(),(()=>{try{return Fa}catch{}})(),(()=>{try{return Ra}catch{}})(),(()=>{try{return Sa}catch{}})(),(()=>{try{return Va}catch{}})(),(()=>{try{return Ta}catch{}})()]).then(async()=>{U=M({name:"InfraFileConfig",__name:"index",setup(Ia){const m=Na(),{t:x}=K(),w=f(!0),F=f(0),N=f([]),o=Q({pageNo:1,pageSize:10,name:void 0,storage:void 0,createTime:[]}),R=f(),_=async()=>{w.value=!0;try{const d=await ga(o);N.value=d.list,F.value=d.total}finally{w.value=!1}},k=()=>{o.pageNo=1,_()},E=()=>{R.value.resetFields(),k()},S=f(),V=(d,r)=>{S.value.open(d,r)};return j(()=>{_()}),(d,r)=>{const G=Z,g=$,z=aa,L=ea,O=la,b=ta,s=ra,P=oa,T=da,i=na,A=ua,Y=sa,H=_a,h=J("hasPermi"),q=ia;return n(),I(D,null,[a(T,null,{default:l(()=>[a(P,{class:"-mb-15px",model:t(o),ref_key:"queryFormRef",ref:R,inline:!0,"label-width":"68px"},{default:l(()=>[a(g,{label:"\u914D\u7F6E\u540D",prop:"name"},{default:l(()=>[a(G,{modelValue:t(o).name,"onUpdate:modelValue":r[0]||(r[0]=e=>t(o).name=e),placeholder:"\u8BF7\u8F93\u5165\u914D\u7F6E\u540D",clearable:"",onKeyup:W(k,["enter"]),class:"!w-240px"},null,8,["modelValue"])]),_:1}),a(g,{label:"\u5B58\u50A8\u5668",prop:"storage"},{default:l(()=>[a(L,{modelValue:t(o).storage,"onUpdate:modelValue":r[1]||(r[1]=e=>t(o).storage=e),placeholder:"\u8BF7\u9009\u62E9\u5B58\u50A8\u5668",clearable:"",class:"!w-240px"},{default:l(()=>[(n(!0),I(D,null,X(t(va)(t(C).INFRA_FILE_STORAGE),e=>(n(),u(z,{key:e.value,label:e.label,value:e.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),a(g,{label:"\u521B\u5EFA\u65F6\u95F4",prop:"createTime"},{default:l(()=>[a(O,{modelValue:t(o).createTime,"onUpdate:modelValue":r[2]||(r[2]=e=>t(o).createTime=e),"value-format":"YYYY-MM-DD HH:mm:ss",type:"daterange","start-placeholder":"\u5F00\u59CB\u65E5\u671F","end-placeholder":"\u7ED3\u675F\u65E5\u671F","default-time":[new Date("1 00:00:00"),new Date("1 23:59:59")],class:"!w-240px"},null,8,["modelValue","default-time"])]),_:1}),a(g,null,{default:l(()=>[a(s,{onClick:k},{default:l(()=>[a(b,{icon:"ep:search",class:"mr-5px"}),c(" \u641C\u7D22")]),_:1}),a(s,{onClick:E},{default:l(()=>[a(b,{icon:"ep:refresh",class:"mr-5px"}),c(" \u91CD\u7F6E")]),_:1}),y((n(),u(s,{type:"primary",plain:"",onClick:r[3]||(r[3]=e=>V("create"))},{default:l(()=>[a(b,{icon:"ep:plus",class:"mr-5px"}),c(" \u65B0\u589E ")]),_:1})),[[h,["infra:file-config:create"]]])]),_:1})]),_:1},8,["model"])]),_:1}),a(T,null,{default:l(()=>[y((n(),u(Y,{data:t(N)},{default:l(()=>[a(i,{label:"\u7F16\u53F7",align:"center",prop:"id"}),a(i,{label:"\u914D\u7F6E\u540D",align:"center",prop:"name"}),a(i,{label:"\u5B58\u50A8\u5668",align:"center",prop:"storage"},{default:l(e=>[a(A,{type:t(C).INFRA_FILE_STORAGE,value:e.row.storage},null,8,["type","value"])]),_:1}),a(i,{label:"\u5907\u6CE8",align:"center",prop:"remark"}),a(i,{label:"\u4E3B\u914D\u7F6E",align:"center",prop:"primary"},{default:l(e=>[a(A,{type:t(C).INFRA_BOOLEAN_STRING,value:e.row.master},null,8,["type","value"])]),_:1}),a(i,{label:"\u521B\u5EFA\u65F6\u95F4",align:"center",prop:"createTime",width:"180",formatter:t(xa)},null,8,["formatter"]),a(i,{label:"\u64CD\u4F5C",align:"center",width:"240px"},{default:l(e=>[y((n(),u(s,{link:"",type:"primary",onClick:v=>V("update",e.row.id)},{default:l(()=>[c(" \u7F16\u8F91 ")]),_:2},1032,["onClick"])),[[h,["infra:file-config:update"]]]),y((n(),u(s,{link:"",type:"primary",disabled:e.row.master,onClick:v=>(async p=>{try{await m.confirm('\u662F\u5426\u786E\u8BA4\u4FEE\u6539\u914D\u7F6E\u7F16\u53F7\u4E3A"'+p+'"\u7684\u6570\u636E\u9879\u4E3A\u4E3B\u914D\u7F6E?'),await wa(p),m.success(x("common.updateSuccess")),await _()}catch{}})(e.row.id)},{default:l(()=>[c(" \u4E3B\u914D\u7F6E ")]),_:2},1032,["disabled","onClick"])),[[h,["infra:file-config:update"]]]),a(s,{link:"",type:"primary",onClick:v=>(async p=>{try{const B=await ka(p);m.alert("\u6D4B\u8BD5\u901A\u8FC7\uFF0C\u4E0A\u4F20\u6587\u4EF6\u6210\u529F\uFF01\u8BBF\u95EE\u5730\u5740\uFF1A"+B)}catch{}})(e.row.id)},{default:l(()=>[c(" \u6D4B\u8BD5 ")]),_:2},1032,["onClick"]),y((n(),u(s,{link:"",type:"danger",onClick:v=>(async p=>{try{await m.delConfirm(),await ha(p),m.success(x("common.delSuccess")),await _()}catch{}})(e.row.id)},{default:l(()=>[c(" \u5220\u9664 ")]),_:2},1032,["onClick"])),[[h,["infra:config:delete"]]])]),_:1})]),_:1},8,["data"])),[[q,t(w)]]),a(H,{total:t(F),page:t(o).pageNo,"onUpdate:page":r[4]||(r[4]=e=>t(o).pageNo=e),limit:t(o).pageSize,"onUpdate:limit":r[5]||(r[5]=e=>t(o).pageSize=e),onPagination:_},null,8,["total","page","limit"])]),_:1}),a(ya,{ref_key:"formRef",ref:S,onSuccess:_},null,512)],64)}}})});export{Aa as __tla,U as default};
|