index-da2997d7.js 5.6 KB

1
  1. import{d as B,P as J,r as f,x as K,b as Q,a4 as W,o as n,c as A,f as a,A as l,a as t,a5 as X,F as D,R as Z,C as p,D as c,k as y,a9 as j,V as $,S as aa,U as ea,I as la,Q as ta,J as ra,W as oa,X as na,Y as ia,Z as sa,_ as ca,__tla as _a}from"./index-286756b9.js";import{_ as ua,__tla as pa}from"./index-ed6c67a8.js";import{_ as ma,__tla as da}from"./DictTag-f72b04ca.js";import{_ as fa,__tla as ya}from"./ContentWrap-83998678.js";import{F as ga,g as ha,d as wa,u as ba,t as ka,__tla as va}from"./FileConfigForm-cc83dd39.js";import{a as xa,D as x,__tla as Ca}from"./dict-82dca549.js";import{d as Fa,__tla as Ra}from"./formatTime-83e416ef.js";import{u as Sa,__tla as Va}from"./useMessage-084b1e70.js";import{__tla as Na}from"./index-fb47c94c.js";import"./color-6e929987.js";import{__tla as Ta}from"./el-card-d3d5a654.js";import{__tla as Ia}from"./Dialog-4c2de357.js";let U,Aa=Promise.all([(()=>{try{return _a}catch{}})(),(()=>{try{return pa}catch{}})(),(()=>{try{return da}catch{}})(),(()=>{try{return ya}catch{}})(),(()=>{try{return va}catch{}})(),(()=>{try{return Ca}catch{}})(),(()=>{try{return Ra}catch{}})(),(()=>{try{return Va}catch{}})(),(()=>{try{return Na}catch{}})(),(()=>{try{return Ta}catch{}})(),(()=>{try{return Ia}catch{}})()]).then(async()=>{U=ca(B({name:"InfraFileConfig",__name:"index",setup(Da){const m=Sa(),{t:C}=J(),w=f(!0),F=f(0),R=f([]),o=K({pageNo:1,pageSize:10,name:void 0,storage:void 0,createTime:[]}),S=f(),_=async()=>{w.value=!0;try{const d=await ha(o);R.value=d.list,F.value=d.total}finally{w.value=!1}},b=()=>{o.pageNo=1,_()},z=()=>{S.value.resetFields(),b()},V=f(),N=(d,r)=>{V.value.open(d,r)};return Q(()=>{_()}),(d,r)=>{const E=j,g=$,O=aa,Y=ea,L=la,k=ta,i=ra,P=oa,T=fa,s=na,I=ma,G=ia,H=ua,h=W("hasPermi"),M=sa;return n(),A(D,null,[a(T,null,{default:l(()=>[a(P,{class:"-mb-15px",model:t(o),ref_key:"queryFormRef",ref:S,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:X(b,["enter"]),class:"!w-240px"},null,8,["modelValue"])]),_:1}),a(g,{label:"\u5B58\u50A8\u5668",prop:"storage"},{default:l(()=>[a(Y,{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,Z(t(xa)(t(x).INFRA_FILE_STORAGE),e=>(n(),p(O,{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(L,{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(i,{onClick:b},{default:l(()=>[a(k,{icon:"ep:search",class:"mr-5px"}),c(" \u641C\u7D22")]),_:1}),a(i,{onClick:z},{default:l(()=>[a(k,{icon:"ep:refresh",class:"mr-5px"}),c(" \u91CD\u7F6E")]),_:1}),y((n(),p(i,{type:"primary",plain:"",onClick:r[3]||(r[3]=e=>N("create"))},{default:l(()=>[a(k,{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(G,{data:t(R)},{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(I,{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(I,{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((n(),p(i,{link:"",type:"primary",onClick:v=>N("update",e.row.id)},{default:l(()=>[c(" \u7F16\u8F91 ")]),_:2},1032,["onClick"])),[[h,["infra:file-config:update"]]]),y((n(),p(i,{link:"",type:"primary",disabled:e.row.master,onClick:v=>(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 ba(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:v=>(async u=>{try{const q=await ka(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(i,{link:"",type:"danger",onClick:v=>(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"])),[[M,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(ga,{ref_key:"formRef",ref:V,onSuccess:_},null,512)],64)}}}),[["__file","D:/zx/mall-newfeifan-zx-admin/src/views/infra/fileConfig/index.vue"]])});export{Aa as __tla,U as default};