index-1102ddd6.js 5.1 KB

1
  1. import{d as G,h as K,r as d,e as Q,u as j,k as I,P as J,o as i,c as V,f as a,w as t,a as l,Q as L,m as _,v as f,q as c,F as N,n as O,U as W,z as X,A as Z,_ as $,B as aa,C as ea,D as ta,G as la,H as ra,__tla as oa}from"./index-2eab2d23.js";import{_ as ia,__tla as na}from"./index.vue_vue_type_script_setup_true_lang-5730b053.js";import{E as sa,__tla as pa}from"./el-image-2171f3ff.js";import{__tla as _a}from"./el-image-viewer-5d14bc77.js";import{_ as ca,__tla as ma}from"./ContentWrap.vue_vue_type_script_setup_true_lang-5a63038a.js";import{d as ua,__tla as da}from"./formatTime-41155543.js";import{d as fa,e as ya,__tla as ha}from"./page-01130ee3.js";import{_ as ga,__tla as wa}from"./DiyPageForm.vue_vue_type_script_setup_true_lang-09d5cf33.js";import{u as ka,__tla as va}from"./useMessage-171aa63e.js";import{__tla as xa}from"./index-cc63c3c4.js";import{__tla as ba}from"./el-card-c558f0ec.js";import{__tla as Ca}from"./Dialog-c2716df6.js";import"./_plugin-vue_export-helper-1b428a4d.js";import{__tla as Pa}from"./UploadImgs-88de5939.js";import{__tla as Da}from"./UploadImgs.vue_vue_type_style_index_0_scoped_0ff04634_lang-20f165d6.js";let T,Ua=Promise.all([(()=>{try{return oa}catch{}})(),(()=>{try{return na}catch{}})(),(()=>{try{return pa}catch{}})(),(()=>{try{return _a}catch{}})(),(()=>{try{return ma}catch{}})(),(()=>{try{return da}catch{}})(),(()=>{try{return ha}catch{}})(),(()=>{try{return wa}catch{}})(),(()=>{try{return va}catch{}})(),(()=>{try{return xa}catch{}})(),(()=>{try{return ba}catch{}})(),(()=>{try{return Ca}catch{}})(),(()=>{try{return Pa}catch{}})(),(()=>{try{return Da}catch{}})()]).then(async()=>{T=G({name:"DiyPage",__name:"index",setup(Sa){const x=ka(),{t:Y}=K(),g=d(!0),b=d(0),C=d([]),o=Q({pageNo:1,pageSize:10,name:null,createTime:[]}),P=d(),m=async()=>{g.value=!0;try{const u=await fa(o);C.value=u.list,b.value=u.total}finally{g.value=!1}},w=()=>{o.pageNo=1,m()},z=()=>{P.value.resetFields(),w()},D=d(),U=(u,r)=>{D.value.open(u,r)},{push:F}=j();return I(()=>{m()}),(u,r)=>{const H=W,k=X,q=Z,v=$,s=aa,M=ea,S=ca,p=ta,R=sa,A=la,B=ia,y=J("hasPermi"),E=ra;return i(),V(N,null,[a(S,null,{default:t(()=>[a(M,{class:"-mb-15px",model:l(o),ref_key:"queryFormRef",ref:P,inline:!0,"label-width":"68px"},{default:t(()=>[a(k,{label:"\u9875\u9762\u540D\u79F0",prop:"name"},{default:t(()=>[a(H,{modelValue:l(o).name,"onUpdate:modelValue":r[0]||(r[0]=e=>l(o).name=e),placeholder:"\u8BF7\u8F93\u5165\u9875\u9762\u540D\u79F0",clearable:"",onKeyup:L(w,["enter"]),class:"!w-240px"},null,8,["modelValue"])]),_:1}),a(k,{label:"\u521B\u5EFA\u65F6\u95F4",prop:"createTime"},{default:t(()=>[a(q,{modelValue:l(o).createTime,"onUpdate:modelValue":r[1]||(r[1]=e=>l(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(k,null,{default:t(()=>[a(s,{onClick:w},{default:t(()=>[a(v,{icon:"ep:search",class:"mr-5px"}),_(" \u641C\u7D22")]),_:1}),a(s,{onClick:z},{default:t(()=>[a(v,{icon:"ep:refresh",class:"mr-5px"}),_(" \u91CD\u7F6E")]),_:1}),f((i(),c(s,{type:"primary",plain:"",onClick:r[2]||(r[2]=e=>U("create"))},{default:t(()=>[a(v,{icon:"ep:plus",class:"mr-5px"}),_(" \u65B0\u589E ")]),_:1})),[[y,["promotion:diy-page:create"]]])]),_:1})]),_:1},8,["model"])]),_:1}),a(S,null,{default:t(()=>[f((i(),c(A,{data:l(C),stripe:!0,"show-overflow-tooltip":!0},{default:t(()=>[a(p,{label:"\u7F16\u53F7",align:"center",prop:"id"}),a(p,{label:"\u9884\u89C8\u56FE",align:"center",prop:"previewPicUrls"},{default:t(e=>[(i(!0),V(N,null,O(e.row.previewPicUrls,(h,n)=>(i(),c(R,{class:"h-40px max-w-40px",key:n,src:h,"preview-src-list":e.row.previewPicUrls,"initial-index":n,"preview-teleported":""},null,8,["src","preview-src-list","initial-index"]))),128))]),_:1}),a(p,{label:"\u9875\u9762\u540D\u79F0",align:"center",prop:"name"}),a(p,{label:"\u5907\u6CE8",align:"center",prop:"remark"}),a(p,{label:"\u521B\u5EFA\u65F6\u95F4",align:"center",prop:"createTime",formatter:l(ua),width:"180px"},null,8,["formatter"]),a(p,{label:"\u64CD\u4F5C",align:"center"},{default:t(e=>[f((i(),c(s,{link:"",type:"primary",onClick:h=>{return n=e.row.id,void F({name:"DiyPageDecorate",params:{id:n}});var n}},{default:t(()=>[_(" \u88C5\u4FEE ")]),_:2},1032,["onClick"])),[[y,["promotion:diy-page:update"]]]),f((i(),c(s,{link:"",type:"primary",onClick:h=>U("update",e.row.id)},{default:t(()=>[_(" \u7F16\u8F91 ")]),_:2},1032,["onClick"])),[[y,["promotion:diy-page:update"]]]),f((i(),c(s,{link:"",type:"danger",onClick:h=>(async n=>{try{await x.delConfirm(),await ya(n),x.success(Y("common.delSuccess")),await m()}catch{}})(e.row.id)},{default:t(()=>[_(" \u5220\u9664 ")]),_:2},1032,["onClick"])),[[y,["promotion:diy-page:delete"]]])]),_:1})]),_:1},8,["data"])),[[E,l(g)]]),a(B,{total:l(b),page:l(o).pageNo,"onUpdate:page":r[3]||(r[3]=e=>l(o).pageNo=e),limit:l(o).pageSize,"onUpdate:limit":r[4]||(r[4]=e=>l(o).pageSize=e),onPagination:m},null,8,["total","page","limit"])]),_:1}),a(ga,{ref_key:"formRef",ref:D,onSuccess:m},null,512)],64)}}})});export{Ua as __tla,T as default};