1 |
- import{d as X,B as Q,r as n,f as W,z as Z,S as $,o as i,c as x,i as a,w as l,a as e,T as Y,F as C,C as z,j as c,m as u,D as w,t as aa,G as ta,H as ea,I as la,X as ra,p as oa,_ as _a,q as ia,J as na,K as sa,L as ca,M as ua,__tla as pa}from"./index-1e808f2e.js";import{_ as ma,__tla as da}from"./index.vue_vue_type_script_setup_true_lang-571824c6.js";import{_ as fa,__tla as ya}from"./DictTag.vue_vue_type_script_lang-5c02ebfe.js";import{E as ha,__tla as wa}from"./el-image-263fb014.js";import{__tla as ga}from"./el-image-viewer-dddb6285.js";import{_ as ba,__tla as va}from"./ContentWrap.vue_vue_type_script_setup_true_lang-cc335a20.js";import{a as ka,D as K,__tla as xa}from"./dict-a31cb4ba.js";import{d as Ca,__tla as Va}from"./formatTime-a348c3be.js";import{a as Ua,d as Sa,__tla as Ta}from"./index-f7eff988.js";import{_ as Ia,__tla as Ma}from"./ArticleForm.vue_vue_type_script_setup_true_lang-b7721dca.js";import{g as Da,__tla as Na}from"./index-4c58afcb.js";import{i as Pa,__tla as Ya}from"./spu-d8bf9472.js";import{c as za,__tla as Ka}from"./index-b59955b6.js";import{u as Oa,__tla as qa}from"./useMessage-5f9e8917.js";import{__tla as Aa}from"./index-73afebcf.js";import"./color-6e929987.js";import{__tla as Fa}from"./el-card-03b3588b.js";import{__tla as Ha}from"./Dialog-f44f9d78.js";import"./_plugin-vue_export-helper-1b428a4d.js";import{__tla as La}from"./style.css_vue_type_style_index_0_src_true_lang-507ff6a6.js";import{__tla as Ra}from"./UploadImg-3538b5a5.js";import{__tla as ja}from"./SpuSelect.vue_vue_type_script_setup_true_lang-e19b3e4c.js";import{__tla as Ba}from"./el-tree-select-e8e05888.js";import{__tla as Ea}from"./index-89aca07e.js";import{__tla as Ga}from"./SkuList.vue_vue_type_script_setup_true_lang-7b9b16cc.js";import{__tla as Ja}from"./SPuUploadImg.vue_vue_type_style_index_0_scoped_5dfa4534_lang-b3df4382.js";import{__tla as Xa}from"./UploadImgs.vue_vue_type_style_index_0_scoped_3d27d917_lang-531188a2.js";import{__tla as Qa}from"./UploadFile.vue_vue_type_style_index_0_scoped_2570c8e9_lang-d79157f5.js";import{__tla as Wa}from"./PcComponents.css_vue_type_style_index_0_src_bf8feb19_scoped_bf8feb19_lang-e58f9938.js";import"./tree-fd3a041e.js";import{__tla as Za}from"./category-9d0fc28e.js";let O,$a=Promise.all([(()=>{try{return pa}catch{}})(),(()=>{try{return da}catch{}})(),(()=>{try{return ya}catch{}})(),(()=>{try{return wa}catch{}})(),(()=>{try{return ga}catch{}})(),(()=>{try{return va}catch{}})(),(()=>{try{return xa}catch{}})(),(()=>{try{return Va}catch{}})(),(()=>{try{return Ta}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 Ha}catch{}})(),(()=>{try{return La}catch{}})(),(()=>{try{return Ra}catch{}})(),(()=>{try{return ja}catch{}})(),(()=>{try{return Ba}catch{}})(),(()=>{try{return Ea}catch{}})(),(()=>{try{return Ga}catch{}})(),(()=>{try{return Ja}catch{}})(),(()=>{try{return Xa}catch{}})(),(()=>{try{return Qa}catch{}})(),(()=>{try{return Wa}catch{}})(),(()=>{try{return Za}catch{}})()]).then(async()=>{O=X({name:"PromotionArticle",__name:"index",setup(at){const V=Oa(),{t:q}=Q(),g=n(!0),U=n(0),S=n([]),o=W({pageNo:1,pageSize:10,categoryId:void 0,title:null,status:void 0,spuId:void 0,createTime:[]}),T=n(),p=async()=>{g.value=!0;try{const m=await Ua(o);S.value=m.list,U.value=m.total}finally{g.value=!1}},h=()=>{o.pageNo=1,p()},A=()=>{T.value.resetFields(),h()},I=n(),M=(m,r)=>{I.value.open(m,r)},b=n([]),F=n([]);return Z(async()=>{await p(),b.value=await Da(),F.value=await Pa()}),(m,r)=>{const D=ta,N=ea,d=la,H=ra,L=oa,v=_a,f=ia,R=na,P=ba,j=ha,_=sa,B=fa,E=ca,G=ma,k=$("hasPermi"),J=ua;return i(),x(C,null,[a(P,null,{default:l(()=>[a(R,{ref_key:"queryFormRef",ref:T,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(N,{modelValue:e(o).categoryId,"onUpdate:modelValue":r[0]||(r[0]=t=>e(o).categoryId=t),class:"!w-240px",placeholder:"\u5168\u90E8",onKeyup:Y(h,["enter"])},{default:l(()=>[(i(!0),x(C,null,z(e(b),t=>(i(),c(D,{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(H,{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:Y(h,["enter"])},null,8,["modelValue"])]),_:1}),a(d,{label:"\u72B6\u6001",prop:"status"},{default:l(()=>[a(N,{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),x(C,null,z(e(ka)(e(K).COMMON_STATUS),t=>(i(),c(D,{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(L,{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:A},{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=>M("create"))},{default:l(()=>[a(v,{class:"mr-5px",icon:"ep:plus"}),u(" \u65B0\u589E ")]),_:1})),[[k,["promotion:article:create"]]])]),_:1})]),_:1},8,["model"])]),_:1}),a(P,null,{default:l(()=>[w((i(),c(E,{data:e(S),"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 za({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(K).COMMON_STATUS,value:t.row.status},null,8,["type","value"])]),_:1}),a(_,{formatter:e(Ca),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=>M("update",t.row.id)},{default:l(()=>[u(" \u7F16\u8F91 ")]),_:2},1032,["onClick"])),[[k,["promotion:article:update"]]]),w((i(),c(f,{link:"",type:"danger",onClick:y=>(async s=>{try{await V.delConfirm(),await Sa(s),V.success(q("common.delSuccess")),await p()}catch{}})(t.row.id)},{default:l(()=>[u(" \u5220\u9664 ")]),_:2},1032,["onClick"])),[[k,["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(U),onPagination:p},null,8,["limit","page","total"])]),_:1}),a(Ia,{ref_key:"formRef",ref:I,onSuccess:p},null,512)],64)}}})});export{$a as __tla,O as default};
|