index-742ffdb5.js 5.0 KB

1
  1. import{d as K,P as Q,r as d,x as W,u as X,b as Z,a4 as j,o,c as N,f as a,A as t,a as l,a5 as B,D as _,k as f,C as c,F as S,R as G,a9 as L,V as O,I as $,Q as aa,J as ea,W as ta,X as la,Y as ra,Z as ia,_ as oa,__tla as na}from"./index-286756b9.js";import{_ as sa,__tla as pa}from"./index-ed6c67a8.js";import{E as _a,__tla as ca}from"./el-image-73c105b7.js";import{__tla as ma}from"./el-image-viewer-e0e5d3be.js";import{_ as ua,__tla as da}from"./ContentWrap-83998678.js";import{d as fa,__tla as ya}from"./formatTime-83e416ef.js";import{d as ha,e as ga,__tla as wa}from"./page-400cf998.js";import xa,{__tla as va}from"./DiyPageForm-d3a375cf.js";import{u as ka,__tla as ba}from"./useMessage-084b1e70.js";import{__tla as Ca}from"./index-fb47c94c.js";import{__tla as Pa}from"./el-card-d3d5a654.js";import{__tla as Da}from"./Dialog-4c2de357.js";import{__tla as Ua}from"./UploadImgs-b8116d2f.js";import{__tla as Va}from"./UploadImgs.vue_vue_type_style_index_0_scoped_9d666400_lang-a65d467a.js";let T,za=Promise.all([(()=>{try{return na}catch{}})(),(()=>{try{return pa}catch{}})(),(()=>{try{return ca}catch{}})(),(()=>{try{return ma}catch{}})(),(()=>{try{return da}catch{}})(),(()=>{try{return ya}catch{}})(),(()=>{try{return wa}catch{}})(),(()=>{try{return va}catch{}})(),(()=>{try{return ba}catch{}})(),(()=>{try{return Ca}catch{}})(),(()=>{try{return Pa}catch{}})(),(()=>{try{return Da}catch{}})(),(()=>{try{return Ua}catch{}})(),(()=>{try{return Va}catch{}})()]).then(async()=>{let k;k=K({name:"DiyPage",__name:"index",setup(Na){const b=ka(),{t:Y}=Q(),g=d(!0),C=d(0),P=d([]),i=W({pageNo:1,pageSize:10,name:null,createTime:[]}),D=d(),m=async()=>{g.value=!0;try{const u=await ha(i);P.value=u.list,C.value=u.total}finally{g.value=!1}},w=()=>{i.pageNo=1,m()},F=()=>{D.value.resetFields(),w()},U=d(),V=(u,r)=>{U.value.open(u,r)},{push:H}=X();return Z(()=>{m()}),(u,r)=>{const R=L,x=O,I=$,v=aa,s=ea,M=ta,z=ua,p=la,q=_a,A=ra,E=sa,y=j("hasPermi"),J=ia;return o(),N(S,null,[a(z,null,{default:t(()=>[a(M,{class:"-mb-15px",model:l(i),ref_key:"queryFormRef",ref:D,inline:!0,"label-width":"68px"},{default:t(()=>[a(x,{label:"\u9875\u9762\u540D\u79F0",prop:"name"},{default:t(()=>[a(R,{modelValue:l(i).name,"onUpdate:modelValue":r[0]||(r[0]=e=>l(i).name=e),placeholder:"\u8BF7\u8F93\u5165\u9875\u9762\u540D\u79F0",clearable:"",onKeyup:B(w,["enter"]),class:"!w-240px"},null,8,["modelValue"])]),_:1}),a(x,{label:"\u521B\u5EFA\u65F6\u95F4",prop:"createTime"},{default:t(()=>[a(I,{modelValue:l(i).createTime,"onUpdate:modelValue":r[1]||(r[1]=e=>l(i).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(x,null,{default:t(()=>[a(s,{onClick:w},{default:t(()=>[a(v,{icon:"ep:search",class:"mr-5px"}),_(" \u641C\u7D22")]),_:1}),a(s,{onClick:F},{default:t(()=>[a(v,{icon:"ep:refresh",class:"mr-5px"}),_(" \u91CD\u7F6E")]),_:1}),f((o(),c(s,{type:"primary",plain:"",onClick:r[2]||(r[2]=e=>V("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(z,null,{default:t(()=>[f((o(),c(A,{data:l(P),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=>[(o(!0),N(S,null,G(e.row.previewPicUrls,(h,n)=>(o(),c(q,{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(fa),width:"180px"},null,8,["formatter"]),a(p,{label:"\u64CD\u4F5C",align:"center"},{default:t(e=>[f((o(),c(s,{link:"",type:"primary",onClick:h=>{return n=e.row.id,void H({name:"DiyPageDecorate",params:{id:n}});var n}},{default:t(()=>[_(" \u88C5\u4FEE ")]),_:2},1032,["onClick"])),[[y,["promotion:diy-page:update"]]]),f((o(),c(s,{link:"",type:"primary",onClick:h=>V("update",e.row.id)},{default:t(()=>[_(" \u7F16\u8F91 ")]),_:2},1032,["onClick"])),[[y,["promotion:diy-page:update"]]]),f((o(),c(s,{link:"",type:"danger",onClick:h=>(async n=>{try{await b.delConfirm(),await ga(n),b.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"])),[[J,l(g)]]),a(E,{total:l(C),page:l(i).pageNo,"onUpdate:page":r[3]||(r[3]=e=>l(i).pageNo=e),limit:l(i).pageSize,"onUpdate:limit":r[4]||(r[4]=e=>l(i).pageSize=e),onPagination:m},null,8,["total","page","limit"])]),_:1}),a(xa,{ref_key:"formRef",ref:U,onSuccess:m},null,512)],64)}}}),T=oa(k,[["__file","D:/zx/mall-newfeifan-zx-admin/src/views/mall/promotion/diy/page/index.vue"]])});export{za as __tla,T as default};