1 |
- import{d as Q,B as W,r as n,g as X,z as Z,T as $,o as i,c as k,i as a,w as l,a as e,U as P,F as C,C as Y,k as c,l as u,D as w,t as aa,G as ta,H as ea,I as la,Y as ra,q as oa,n as _a,s as ia,J as na,K as sa,L as ca,M as ua,_ as pa,__tla as ma}from"./index-2f799233.js";import{_ as da,__tla as fa}from"./index-e6cd813f.js";import{_ as ya,__tla as ha}from"./DictTag-ea4c6cc2.js";import{E as wa,__tla as ga}from"./el-image-4d26fa76.js";import{__tla as ba}from"./el-image-viewer-8e9e3571.js";import{_ as va,__tla as xa}from"./ContentWrap-9da801df.js";import{a as ka,D as H,__tla as Ca}from"./dict-20c916e2.js";import{d as Ua,__tla as Va}from"./formatTime-2157894c.js";import{a as Ta,d as Sa,__tla as Ia}from"./index-d07556a5.js";import Da,{__tla as Ma}from"./ArticleForm-02cdedf5.js";import{g as za,__tla as Na}from"./index-6c45860c.js";import{j as Pa,__tla as Ya}from"./spu-980b34a1.js";import{c as Ha,__tla as Ka}from"./index-5f6db4a5.js";import{u as Oa,__tla as qa}from"./useMessage-e567ad40.js";import{__tla as Aa}from"./index-1c180a16.js";import"./color-6e929987.js";import{__tla as Fa}from"./el-card-c64c83d1.js";import{__tla as Ra}from"./Dialog-6fd39e06.js";import{__tla as La}from"./Editor-3a97a075.js";import{__tla as ja}from"./UploadImg-d46c0539.js";import{__tla as Ba}from"./SpuSelect-54230da1.js";import{__tla as Ea}from"./el-tree-select-ef4257fc.js";import{__tla as Ga}from"./index-7549c07e.js";import{__tla as Ja}from"./SkuList-c1eb35ef.js";import{__tla as Qa}from"./SPuUploadImg.vue_vue_type_style_index_0_scoped_ba706063_lang-ac19fa49.js";import{__tla as Wa}from"./UploadImgs.vue_vue_type_style_index_0_scoped_9d666400_lang-872107b3.js";import{__tla as Xa}from"./UploadFile.vue_vue_type_style_index_0_scoped_436eca1b_lang-bc6f7cfd.js";import{__tla as Za}from"./PcComponents.css_vue_type_style_index_0_src_00d8480b_scoped_00d8480b_lang-80062d91.js";import"./tree-0af4953a.js";import{__tla as $a}from"./category-6df467a3.js";let K,at=Promise.all([(()=>{try{return ma}catch{}})(),(()=>{try{return fa}catch{}})(),(()=>{try{return ha}catch{}})(),(()=>{try{return ga}catch{}})(),(()=>{try{return ba}catch{}})(),(()=>{try{return xa}catch{}})(),(()=>{try{return Ca}catch{}})(),(()=>{try{return Va}catch{}})(),(()=>{try{return Ia}catch{}})(),(()=>{try{return Ma}catch{}})(),(()=>{try{return Na}catch{}})(),(()=>{try{return Ya}catch{}})(),(()=>{try{return Ka}catch{}})(),(()=>{try{return qa}catch{}})(),(()=>{try{return Aa}catch{}})(),(()=>{try{return Fa}catch{}})(),(()=>{try{return Ra}catch{}})(),(()=>{try{return La}catch{}})(),(()=>{try{return ja}catch{}})(),(()=>{try{return Ba}catch{}})(),(()=>{try{return Ea}catch{}})(),(()=>{try{return Ga}catch{}})(),(()=>{try{return Ja}catch{}})(),(()=>{try{return Qa}catch{}})(),(()=>{try{return Wa}catch{}})(),(()=>{try{return Xa}catch{}})(),(()=>{try{return Za}catch{}})(),(()=>{try{return $a}catch{}})()]).then(async()=>{K=pa(Q({name:"PromotionArticle",__name:"index",setup(tt){const U=Oa(),{t:O}=W(),g=n(!0),V=n(0),T=n([]),o=X({pageNo:1,pageSize:10,categoryId:void 0,title:null,status:void 0,spuId:void 0,createTime:[]}),S=n(),p=async()=>{g.value=!0;try{const m=await Ta(o);T.value=m.list,V.value=m.total}finally{g.value=!1}},h=()=>{o.pageNo=1,p()},q=()=>{S.value.resetFields(),h()},I=n(),D=(m,r)=>{I.value.open(m,r)},b=n([]),A=n([]);return Z(async()=>{await p(),b.value=await za(),A.value=await Pa()}),(m,r)=>{const M=ta,z=ea,d=la,F=ra,R=oa,v=_a,f=ia,L=na,N=va,j=wa,_=sa,B=ya,E=ca,G=da,x=$("hasPermi"),J=ua;return i(),k(C,null,[a(N,null,{default:l(()=>[a(L,{ref_key:"queryFormRef",ref:S,inline:!0,model:e(o),class:"-mb-15px","label-width":"80px"},{default:l(()=>[a(d,{label:"\u6587\u7AE0\u5206\u7C7B",prop:"categoryId"},{default:l(()=>[a(z,{modelValue:e(o).categoryId,"onUpdate:modelValue":r[0]||(r[0]=t=>e(o).categoryId=t),class:"!w-240px",placeholder:"\u5168\u90E8",onKeyup:P(h,["enter"])},{default:l(()=>[(i(!0),k(C,null,Y(e(b),t=>(i(),c(M,{key:t.id,label:t.name,value:t.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),a(d,{label:"\u6587\u7AE0\u6807\u9898",prop:"title"},{default:l(()=>[a(F,{modelValue:e(o).title,"onUpdate:modelValue":r[1]||(r[1]=t=>e(o).title=t),class:"!w-240px",clearable:"",placeholder:"\u8BF7\u8F93\u5165\u6587\u7AE0\u6807\u9898",onKeyup:P(h,["enter"])},null,8,["modelValue"])]),_:1}),a(d,{label:"\u72B6\u6001",prop:"status"},{default:l(()=>[a(z,{modelValue:e(o).status,"onUpdate:modelValue":r[2]||(r[2]=t=>e(o).status=t),class:"!w-240px",clearable:"",placeholder:"\u8BF7\u9009\u62E9\u72B6\u6001"},{default:l(()=>[(i(!0),k(C,null,Y(e(ka)(e(H).COMMON_STATUS),t=>(i(),c(M,{key:t.value,label:t.label,value:t.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),a(d,{label:"\u521B\u5EFA\u65F6\u95F4",prop:"createTime"},{default:l(()=>[a(R,{modelValue:e(o).createTime,"onUpdate:modelValue":r[3]||(r[3]=t=>e(o).createTime=t),"default-time":[new Date("1 00:00:00"),new Date("1 23:59:59")],class:"!w-240px","end-placeholder":"\u7ED3\u675F\u65E5\u671F","start-placeholder":"\u5F00\u59CB\u65E5\u671F",type:"daterange","value-format":"YYYY-MM-DD HH:mm:ss"},null,8,["modelValue","default-time"])]),_:1}),a(d,null,{default:l(()=>[a(f,{onClick:h},{default:l(()=>[a(v,{class:"mr-5px",icon:"ep:search"}),u(" \u641C\u7D22 ")]),_:1}),a(f,{onClick:q},{default:l(()=>[a(v,{class:"mr-5px",icon:"ep:refresh"}),u(" \u91CD\u7F6E ")]),_:1}),w((i(),c(f,{plain:"",type:"primary",onClick:r[4]||(r[4]=t=>D("create"))},{default:l(()=>[a(v,{class:"mr-5px",icon:"ep:plus"}),u(" \u65B0\u589E ")]),_:1})),[[x,["promotion:article:create"]]])]),_:1})]),_:1},8,["model"])]),_:1}),a(N,null,{default:l(()=>[w((i(),c(E,{data:e(T),"show-overflow-tooltip":!0,stripe:!0},{default:l(()=>[a(_,{align:"center",label:"\u5C01\u9762","min-width":"80",prop:"picUrl"},{default:l(({row:t})=>[a(j,{src:t.picUrl,class:"h-30px w-30px",onClick:y=>{return s=t.picUrl,void Ha({urlList:[s]});var s}},null,8,["src","onClick"])]),_:1}),a(_,{align:"center",label:"\u6807\u9898","min-width":"180",prop:"title"}),a(_,{align:"center",label:"\u5206\u7C7B","min-width":"180",prop:"categoryId"},{default:l(t=>{var y;return[u(aa((y=e(b).find(s=>s.id===t.row.categoryId))==null?void 0:y.name),1)]}),_:1}),a(_,{align:"center",label:"\u6D4F\u89C8\u91CF","min-width":"180",prop:"browseCount"}),a(_,{align:"center",label:"\u4F5C\u8005","min-width":"180",prop:"author"}),a(_,{align:"center",label:"\u6587\u7AE0\u7B80\u4ECB","min-width":"250",prop:"introduction"}),a(_,{align:"center",label:"\u6392\u5E8F","min-width":"60",prop:"sort"}),a(_,{align:"center",label:"\u72B6\u6001","min-width":"60",prop:"status"},{default:l(t=>[a(B,{type:e(H).COMMON_STATUS,value:t.row.status},null,8,["type","value"])]),_:1}),a(_,{formatter:e(Ua),align:"center",label:"\u53D1\u5E03\u65F6\u95F4",prop:"createTime",width:"180px"},null,8,["formatter"]),a(_,{align:"center",fixed:"right",label:"\u64CD\u4F5C",width:"120"},{default:l(t=>[w((i(),c(f,{link:"",type:"primary",onClick:y=>D("update",t.row.id)},{default:l(()=>[u(" \u7F16\u8F91 ")]),_:2},1032,["onClick"])),[[x,["promotion:article:update"]]]),w((i(),c(f,{link:"",type:"danger",onClick:y=>(async s=>{try{await U.delConfirm(),await Sa(s),U.success(O("common.delSuccess")),await p()}catch{}})(t.row.id)},{default:l(()=>[u(" \u5220\u9664 ")]),_:2},1032,["onClick"])),[[x,["promotion:article:delete"]]])]),_:1})]),_:1},8,["data"])),[[J,e(g)]]),a(G,{limit:e(o).pageSize,"onUpdate:limit":r[5]||(r[5]=t=>e(o).pageSize=t),page:e(o).pageNo,"onUpdate:page":r[6]||(r[6]=t=>e(o).pageNo=t),total:e(V),onPagination:p},null,8,["limit","page","total"])]),_:1}),a(Da,{ref_key:"formRef",ref:I,onSuccess:p},null,512)],64)}}}),[["__file","D:/zx/mall-newfeifan-zx-business/src/views/mall/promotion/article/index.vue"]])});export{at as __tla,K as default};
|