1 |
- import{d as J,B as L,r as d,g as j,u as A,z as G,T as O,o,c as T,i as a,w as t,a as l,U as Q,l as _,D as f,k as c,F as V,C as W,Y as X,I as Z,q as $,n as aa,s as ea,J as ta,K as la,L as ra,M as ia,_ as oa,__tla as na}from"./index-2f799233.js";import{_ as sa,__tla as pa}from"./index-e6cd813f.js";import{E as _a,__tla as ca}from"./el-image-4d26fa76.js";import{__tla as ma}from"./el-image-viewer-8e9e3571.js";import{_ as ua,__tla as da}from"./ContentWrap-9da801df.js";import{d as fa,__tla as ya}from"./formatTime-2157894c.js";import{d as ga,e as ha,__tla as wa}from"./page-c9ad8dbf.js";import va,{__tla as xa}from"./DiyPageForm-d416e73b.js";import{u as ka,__tla as ba}from"./useMessage-e567ad40.js";import{__tla as Ca}from"./index-1c180a16.js";import{__tla as Da}from"./el-card-c64c83d1.js";import{__tla as Ua}from"./Dialog-6fd39e06.js";import{__tla as Pa}from"./UploadImgs-0a2b8085.js";import{__tla as za}from"./UploadImgs.vue_vue_type_style_index_0_scoped_9d666400_lang-872107b3.js";let N,Sa=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 xa}catch{}})(),(()=>{try{return ba}catch{}})(),(()=>{try{return Ca}catch{}})(),(()=>{try{return Da}catch{}})(),(()=>{try{return Ua}catch{}})(),(()=>{try{return Pa}catch{}})(),(()=>{try{return za}catch{}})()]).then(async()=>{let k;k=J({name:"DiyPage",__name:"index",setup(Ta){const b=ka(),{t:Y}=L(),h=d(!0),C=d(0),D=d([]),i=j({pageNo:1,pageSize:10,name:null,createTime:[]}),U=d(),m=async()=>{h.value=!0;try{const u=await ga(i);D.value=u.list,C.value=u.total}finally{h.value=!1}},w=()=>{i.pageNo=1,m()},M=()=>{U.value.resetFields(),w()},P=d(),z=(u,r)=>{P.value.open(u,r)},{push:F}=A();return G(()=>{m()}),(u,r)=>{const q=X,v=Z,H=$,x=aa,s=ea,I=ta,S=ua,p=la,K=_a,R=ra,B=sa,y=O("hasPermi"),E=ia;return o(),T(V,null,[a(S,null,{default:t(()=>[a(I,{class:"-mb-15px",model:l(i),ref_key:"queryFormRef",ref:U,inline:!0,"label-width":"68px"},{default:t(()=>[a(v,{label:"\u9875\u9762\u540D\u79F0",prop:"name"},{default:t(()=>[a(q,{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:Q(w,["enter"]),class:"!w-240px"},null,8,["modelValue"])]),_:1}),a(v,{label:"\u521B\u5EFA\u65F6\u95F4",prop:"createTime"},{default:t(()=>[a(H,{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(v,null,{default:t(()=>[a(s,{onClick:w},{default:t(()=>[a(x,{icon:"ep:search",class:"mr-5px"}),_(" \u641C\u7D22")]),_:1}),a(s,{onClick:M},{default:t(()=>[a(x,{icon:"ep:refresh",class:"mr-5px"}),_(" \u91CD\u7F6E")]),_:1}),f((o(),c(s,{type:"primary",plain:"",onClick:r[2]||(r[2]=e=>z("create"))},{default:t(()=>[a(x,{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((o(),c(R,{data:l(D),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),T(V,null,W(e.row.previewPicUrls,(g,n)=>(o(),c(K,{class:"h-40px max-w-40px",key:n,src:g,"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:g=>{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((o(),c(s,{link:"",type:"primary",onClick:g=>z("update",e.row.id)},{default:t(()=>[_(" \u7F16\u8F91 ")]),_:2},1032,["onClick"])),[[y,["promotion:diy-page:update"]]]),f((o(),c(s,{link:"",type:"danger",onClick:g=>(async n=>{try{await b.delConfirm(),await ha(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"])),[[E,l(h)]]),a(B,{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(va,{ref_key:"formRef",ref:P,onSuccess:m},null,512)],64)}}}),N=oa(k,[["__file","D:/zx/mall-newfeifan-zx-business/src/views/mall/promotion/diy/page/index.vue"]])});export{Sa as __tla,N as default};
|