1 |
- import{d as B,h as K,r as f,e as j,q as J,M as X,o as n,c as A,f as a,w as l,a as t,N as Q,F as D,v as W,x as p,y as c,z as y,R as Z,C as $,A as aa,B as ea,D as la,j as ta,G as ra,H as oa,I as na,J as sa,K as ia,_ as ca,__tla as _a}from"./index-8dc1e40a.js";import{_ as ua,__tla as pa}from"./index-64aeaa78.js";import{_ as ma,__tla as da}from"./DictTag-85aade2b.js";import{_ as fa,__tla as ya}from"./ContentWrap-0aca5216.js";import{F as ga,g as ha,d as wa,u as ka,t as va,__tla as ba}from"./FileConfigForm-e9565bc2.js";import{a as Ca,D as C,__tla as xa}from"./dict-f13a3c8f.js";import{d as Fa,__tla as Na}from"./formatTime-8a155b2e.js";import{u as Ra,__tla as Ia}from"./useMessage-7a27dd80.js";import{__tla as Sa}from"./index-803dbf9a.js";import"./color-6e929987.js";import{__tla as Ta}from"./el-card-18df90f0.js";import{__tla as Va}from"./Dialog-41802231.js";let U,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 xa}catch{}})(),(()=>{try{return Na}catch{}})(),(()=>{try{return Ia}catch{}})(),(()=>{try{return Sa}catch{}})(),(()=>{try{return Ta}catch{}})(),(()=>{try{return Va}catch{}})()]).then(async()=>{U=ca(B({name:"InfraFileConfig",__name:"index",setup(Da){const m=Ra(),{t:x}=K(),w=f(!0),F=f(0),N=f([]),o=j({pageNo:1,pageSize:10,name:void 0,storage:void 0,createTime:[]}),R=f(),_=async()=>{w.value=!0;try{const d=await ha(o);N.value=d.list,F.value=d.total}finally{w.value=!1}},k=()=>{o.pageNo=1,_()},z=()=>{R.value.resetFields(),k()},I=f(),S=(d,r)=>{I.value.open(d,r)};return J(()=>{_()}),(d,r)=>{const E=Z,g=$,H=aa,G=ea,M=la,v=ta,s=ra,O=oa,T=fa,i=na,V=ma,Y=sa,L=ua,h=X("hasPermi"),P=ia;return n(),A(D,null,[a(T,null,{default:l(()=>[a(O,{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(E,{modelValue:t(o).name,"onUpdate:modelValue":r[0]||(r[0]=e=>t(o).name=e),placeholder:"\u8BF7\u8F93\u5165\u914D\u7F6E\u540D",clearable:"",onKeyup:Q(k,["enter"]),class:"!w-240px"},null,8,["modelValue"])]),_:1}),a(g,{label:"\u5B58\u50A8\u5668",prop:"storage"},{default:l(()=>[a(G,{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),A(D,null,W(t(Ca)(t(C).INFRA_FILE_STORAGE),e=>(n(),p(H,{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(M,{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(v,{icon:"ep:search",class:"mr-5px"}),c(" \u641C\u7D22")]),_:1}),a(s,{onClick:z},{default:l(()=>[a(v,{icon:"ep:refresh",class:"mr-5px"}),c(" \u91CD\u7F6E")]),_:1}),y((n(),p(s,{type:"primary",plain:"",onClick:r[3]||(r[3]=e=>S("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(T,null,{default:l(()=>[y((n(),p(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(V,{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(V,{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(Fa)},null,8,["formatter"]),a(i,{label:"\u64CD\u4F5C",align:"center",width:"240px"},{default:l(e=>[y((n(),p(s,{link:"",type:"primary",onClick:b=>S("update",e.row.id)},{default:l(()=>[c(" \u7F16\u8F91 ")]),_:2},1032,["onClick"])),[[h,["infra:file-config:update"]]]),y((n(),p(s,{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(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:b=>(async u=>{try{const q=await va(u);m.alert("\u6D4B\u8BD5\u901A\u8FC7\uFF0C\u4E0A\u4F20\u6587\u4EF6\u6210\u529F\uFF01\u8BBF\u95EE\u5730\u5740\uFF1A"+q)}catch{}})(e.row.id)},{default:l(()=>[c(" \u6D4B\u8BD5 ")]),_:2},1032,["onClick"]),y((n(),p(s,{link:"",type:"danger",onClick:b=>(async u=>{try{await m.delConfirm(),await wa(u),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"])),[[P,t(w)]]),a(L,{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(ga,{ref_key:"formRef",ref:I,onSuccess:_},null,512)],64)}}}),[["__file","/Users/RuHu.Xu/Desktop/mall-newfeifan-zx-admin/src/views/infra/fileConfig/index.vue"]])});export{Aa as __tla,U as default};
|