1 |
- import{d as z,r as n,x as R,b as S,o as d,C as h,A as _,B as D,f as t,a as r,k as N,e9 as j,X as F,Y as E,Z as I,_ as A,__tla as B}from"./index-286756b9.js";import{E as X,__tla as Y}from"./el-card-d3d5a654.js";import{_ as Z,__tla as $}from"./index-ed6c67a8.js";import{E as q,__tla as G}from"./el-image-73c105b7.js";import{__tla as H}from"./el-image-viewer-e0e5d3be.js";import{_ as J,__tla as K}from"./index-da43d2bf.js";import{P as L,__tla as M}from"./product-d3b01f2f.js";import{C as O,__tla as Q}from"./CardTitle-e061e354.js";import{__tla as T}from"./index-fb47c94c.js";import{__tla as V}from"./formatTime-83e416ef.js";let w,W=Promise.all([(()=>{try{return B}catch{}})(),(()=>{try{return Y}catch{}})(),(()=>{try{return $}catch{}})(),(()=>{try{return G}catch{}})(),(()=>{try{return H}catch{}})(),(()=>{try{return K}catch{}})(),(()=>{try{return M}catch{}})(),(()=>{try{return Q}catch{}})(),(()=>{try{return T}catch{}})(),(()=>{try{return V}catch{}})()]).then(async()=>{let p;p={class:"flex flex-row items-center justify-between"},w=A(z({name:"ProductRank",__name:"ProductRank",setup(tt){const f=e=>`${e.browseConvertPercent}%`,b=e=>{o.sortingFields=[j(e)],s()},y=e=>{o.times=e,s()},g=n(),o=R({pageNo:1,pageSize:10,times:[],sortingFields:{}}),c=n(!1),m=n(0),u=n([]),s=async()=>{c.value=!0;try{const e=await L.getProductStatisticsRankPage(o);u.value=e.list,m.value=e.total}finally{c.value=!1}};return S(async()=>{await s()}),(e,i)=>{const v=J,a=F,P=q,C=E,x=Z,k=X,U=I;return d(),h(k,{shadow:"never"},{header:_(()=>[D("div",p,[t(r(O),{title:"\u5546\u54C1\u6392\u884C"}),t(v,{ref_key:"shortcutDateRangePicker",ref:g,onChange:y},null,512)])]),default:_(()=>[N((d(),h(C,{data:r(u),onSortChange:b},{default:_(()=>[t(a,{label:"\u5546\u54C1ID",prop:"spuId","min-width":"70"}),t(a,{label:"\u5546\u54C1\u56FE\u7247",align:"center",prop:"picUrl",width:"80"},{default:_(({row:l})=>[t(P,{src:l.picUrl,"preview-src-list":[l.picUrl],class:"h-30px w-30px","preview-teleported":""},null,8,["src","preview-src-list"])]),_:1}),t(a,{label:"\u5546\u54C1\u540D\u79F0",prop:"name","min-width":"200","show-overflow-tooltip":!0}),t(a,{label:"\u6D4F\u89C8\u91CF",prop:"browseCount","min-width":"90",sortable:"custom"}),t(a,{label:"\u8BBF\u5BA2\u6570",prop:"browseUserCount","min-width":"90",sortable:"custom"}),t(a,{label:"\u52A0\u8D2D\u4EF6\u6570",prop:"cartCount","min-width":"105",sortable:"custom"}),t(a,{label:"\u4E0B\u5355\u4EF6\u6570",prop:"orderCount","min-width":"105",sortable:"custom"}),t(a,{label:"\u652F\u4ED8\u4EF6\u6570",prop:"orderPayCount","min-width":"105",sortable:"custom"}),t(a,{label:"\u652F\u4ED8\u91D1\u989D",prop:"orderPayPrice","min-width":"105",sortable:"custom"}),t(a,{label:"\u6536\u85CF\u6570",prop:"favoriteCount","min-width":"90",sortable:"custom"}),t(a,{label:"\u8BBF\u5BA2-\u652F\u4ED8\u8F6C\u5316\u7387(%)",prop:"browseConvertPercent","min-width":"180",sortable:"custom",formatter:f})]),_:1},8,["data"])),[[U,r(c)]]),t(x,{total:r(m),page:r(o).pageNo,"onUpdate:page":i[0]||(i[0]=l=>r(o).pageNo=l),limit:r(o).pageSize,"onUpdate:limit":i[1]||(i[1]=l=>r(o).pageSize=l),onPagination:s},null,8,["total","page","limit"])]),_:1})}}}),[["__file","D:/zx/mall-newfeifan-zx-admin/src/views/mall/statistics/product/components/ProductRank.vue"]])});export{W as __tla,w as default};
|