1 |
- import{d as R,r as n,e as z,q as S,o as d,x as w,w as _,g as D,f as t,a as r,z as I,e4 as N,I as j,J as E,K as F,_ as q,__tla as H}from"./index-8dc1e40a.js";import{E as J,__tla as K}from"./el-card-18df90f0.js";import{_ as X,__tla as $}from"./index-64aeaa78.js";import{E as A,__tla as B}from"./el-image-6a48e9f1.js";import{__tla as G}from"./el-image-viewer-3b8905e6.js";import{_ as L,__tla as M}from"./index-adf7e958.js";import{P as O,__tla as Q}from"./product-6ef3f523.js";import{C as T,__tla as V}from"./CardTitle-2f2eb5e8.js";import{__tla as W}from"./index-803dbf9a.js";import{__tla as Y}from"./formatTime-8a155b2e.js";let h,Z=Promise.all([(()=>{try{return H}catch{}})(),(()=>{try{return K}catch{}})(),(()=>{try{return $}catch{}})(),(()=>{try{return B}catch{}})(),(()=>{try{return G}catch{}})(),(()=>{try{return M}catch{}})(),(()=>{try{return Q}catch{}})(),(()=>{try{return V}catch{}})(),(()=>{try{return W}catch{}})(),(()=>{try{return Y}catch{}})()]).then(async()=>{let p;p={class:"flex flex-row items-center justify-between"},h=q(R({name:"ProductRank",__name:"ProductRank",setup(tt){const f=e=>`${e.browseConvertPercent}%`,b=e=>{o.sortingFields=[N(e)],s()},g=e=>{o.times=e,s()},y=n(),o=z({pageNo:1,pageSize:10,times:[],sortingFields:{}}),c=n(!1),m=n(0),u=n([]),s=async()=>{c.value=!0;try{const e=await O.getProductStatisticsRankPage(o);u.value=e.list,m.value=e.total}finally{c.value=!1}};return S(async()=>{await s()}),(e,i)=>{const v=L,a=j,P=A,C=E,x=X,k=J,U=F;return d(),w(k,{shadow:"never"},{header:_(()=>[D("div",p,[t(r(T),{title:"\u5546\u54C1\u6392\u884C"}),t(v,{ref_key:"shortcutDateRangePicker",ref:y,onChange:g},null,512)])]),default:_(()=>[I((d(),w(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","/Users/RuHu.Xu/Desktop/mall-newfeifan-zx-admin/src/views/mall/statistics/product/components/ProductRank.vue"]])});export{Z as __tla,h as default};
|