1 |
- import{d as M,h as K,r as f,e as Q,k as j,Q as J,o,c as A,f as a,w as l,a as t,R as W,F as D,q as X,v as p,m as c,x as y,V as Z,A as $,y as aa,z as ea,B as la,n as ta,C as ra,D as na,G as oa,H as ia,I as sa,_ as ca,__tla as _a}from"./index-430b3151.js";import{_ as ua,__tla as pa}from"./index-c425c88f.js";import{_ as ma,__tla as da}from"./DictTag-c94c3188.js";import{_ as fa,__tla as ya}from"./ContentWrap-60842994.js";import{F as ga,g as ha,d as wa,u as ka,t as va,__tla as ba}from"./FileConfigForm-55e1610b.js";import{a as xa,D as x,__tla as Ca}from"./dict-603b6a58.js";import{d as Fa,__tla as Sa}from"./formatTime-00eecbb7.js";import{u as Va,__tla as Ia}from"./useMessage-d226ba89.js";import{__tla as Na}from"./index-555139e7.js";import"./color-6e929987.js";import{__tla as Ra}from"./el-card-dee5b36b.js";import{__tla as Ta}from"./Dialog-cd42c639.js";let z,Aa=Promise.all([(()=>{try{return _a}catch{}})(),(()=>{try{return pa}catch{}})(),(()=>{try{return da}catch{}})(),(()=>{try{return ya}catch{}})(),(()=>{try{return ba}catch{}})(),(()=>{try{return Ca}catch{}})(),(()=>{try{return Sa}catch{}})(),(()=>{try{return Ia}catch{}})(),(()=>{try{return Na}catch{}})(),(()=>{try{return Ra}catch{}})(),(()=>{try{return Ta}catch{}})()]).then(async()=>{z=ca(M({name:"InfraFileConfig",__name:"index",setup(Da){const m=Va(),{t:C}=K(),w=f(!0),F=f(0),S=f([]),n=Q({pageNo:1,pageSize:10,name:void 0,storage:void 0,createTime:[]}),V=f(),_=async()=>{w.value=!0;try{const d=await ha(n);S.value=d.list,F.value=d.total}finally{w.value=!1}},k=()=>{n.pageNo=1,_()},E=()=>{V.value.resetFields(),k()},I=f(),N=(d,r)=>{I.value.open(d,r)};return j(()=>{_()}),(d,r)=>{const U=Z,g=$,Y=aa,G=ea,H=la,v=ta,i=ra,O=na,R=fa,s=oa,T=ma,L=ia,P=ua,h=J("hasPermi"),q=sa;return o(),A(D,null,[a(R,null,{default:l(()=>[a(O,{class:"-mb-15px",model:t(n),ref_key:"queryFormRef",ref:V,inline:!0,"label-width":"68px"},{default:l(()=>[a(g,{label:"\u914D\u7F6E\u540D",prop:"name"},{default:l(()=>[a(U,{modelValue:t(n).name,"onUpdate:modelValue":r[0]||(r[0]=e=>t(n).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(G,{modelValue:t(n).storage,"onUpdate:modelValue":r[1]||(r[1]=e=>t(n).storage=e),placeholder:"\u8BF7\u9009\u62E9\u5B58\u50A8\u5668",clearable:"",class:"!w-240px"},{default:l(()=>[(o(!0),A(D,null,X(t(xa)(t(x).INFRA_FILE_STORAGE),e=>(o(),p(Y,{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(H,{modelValue:t(n).createTime,"onUpdate:modelValue":r[2]||(r[2]=e=>t(n).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(i,{onClick:k},{default:l(()=>[a(v,{icon:"ep:search",class:"mr-5px"}),c(" \u641C\u7D22")]),_:1}),a(i,{onClick:E},{default:l(()=>[a(v,{icon:"ep:refresh",class:"mr-5px"}),c(" \u91CD\u7F6E")]),_:1}),y((o(),p(i,{type:"primary",plain:"",onClick:r[3]||(r[3]=e=>N("create"))},{default:l(()=>[a(v,{icon:"ep:plus",class:"mr-5px"}),c(" \u65B0\u589E ")]),_:1})),[[h,["infra:file-config:create"]]])]),_:1})]),_:1},8,["model"])]),_:1}),a(R,null,{default:l(()=>[y((o(),p(L,{data:t(S)},{default:l(()=>[a(s,{label:"\u7F16\u53F7",align:"center",prop:"id"}),a(s,{label:"\u914D\u7F6E\u540D",align:"center",prop:"name"}),a(s,{label:"\u5B58\u50A8\u5668",align:"center",prop:"storage"},{default:l(e=>[a(T,{type:t(x).INFRA_FILE_STORAGE,value:e.row.storage},null,8,["type","value"])]),_:1}),a(s,{label:"\u5907\u6CE8",align:"center",prop:"remark"}),a(s,{label:"\u4E3B\u914D\u7F6E",align:"center",prop:"primary"},{default:l(e=>[a(T,{type:t(x).INFRA_BOOLEAN_STRING,value:e.row.master},null,8,["type","value"])]),_:1}),a(s,{label:"\u521B\u5EFA\u65F6\u95F4",align:"center",prop:"createTime",width:"180",formatter:t(Fa)},null,8,["formatter"]),a(s,{label:"\u64CD\u4F5C",align:"center",width:"240px"},{default:l(e=>[y((o(),p(i,{link:"",type:"primary",onClick:b=>N("update",e.row.id)},{default:l(()=>[c(" \u7F16\u8F91 ")]),_:2},1032,["onClick"])),[[h,["infra:file-config:update"]]]),y((o(),p(i,{link:"",type:"primary",disabled:e.row.master,onClick:b=>(async u=>{try{await m.confirm('\u662F\u5426\u786E\u8BA4\u4FEE\u6539\u914D\u7F6E\u7F16\u53F7\u4E3A"'+u+'"\u7684\u6570\u636E\u9879\u4E3A\u4E3B\u914D\u7F6E?'),await ka(u),m.success(C("common.updateSuccess")),await _()}catch{}})(e.row.id)},{default:l(()=>[c(" \u4E3B\u914D\u7F6E ")]),_:2},1032,["disabled","onClick"])),[[h,["infra:file-config:update"]]]),a(i,{link:"",type:"primary",onClick:b=>(async u=>{try{const B=await va(u);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((o(),p(i,{link:"",type:"danger",onClick:b=>(async u=>{try{await m.delConfirm(),await wa(u),m.success(C("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(P,{total:t(F),page:t(n).pageNo,"onUpdate:page":r[4]||(r[4]=e=>t(n).pageNo=e),limit:t(n).pageSize,"onUpdate:limit":r[5]||(r[5]=e=>t(n).pageSize=e),onPagination:_},null,8,["total","page","limit"])]),_:1}),a(ga,{ref_key:"formRef",ref:I,onSuccess:_},null,512)],64)}}}),[["__file","D:/zx/mall-newfeifan-zx-admin/src/views/infra/fileConfig/index.vue"]])});export{Aa as __tla,z as default};
|