酷炫&聚星API数据系统

index.b371f2dc.js 17KB

12
  1. import{D as e,s as t,e as a,h as s,p as l}from"../switchType/switchType.fd710a42.js";import{T as i}from"../timeScreen/timeScreen.186351ac.js";import{S as o}from"../_select/_select.446945d4.js";import{T as r}from"../tableList/tableList.69bb39cd.js";import{E as d,H as n}from"../element-plus/element-plus.780230b7.js";import{A as c,_ as u}from"../../assets/index.de4b5bf2.js";import{p}from"../tableInfo/tableInfo.0b894920.js";import{l as v,v as m,t as _,g as f,h as g}from"../commonEnum/commonEnum.ffea17d4.js";import{d as y,w as b,G as L,r as h,W as w,o as k,c as x,R as j,P as F,a as S,T,M as O,f as D,s as C,u as I,L as K,K as R,F as V,as as z,a4 as E,O as $,Q as B,aw as N}from"../@vue/@vue.4762a280.js";import{_ as H}from"../defaultAvatar/defaultAvatar.ac647fe2.js";import"../caret-top/caret-top.6cfc3874.js";import"../question-filled/question-filled.dc2ba1fa.js";import"../dayjs/dayjs.4327edce.js";import"../axios/axios.b8790c3c.js";import"../@vueuse/@vueuse.00829289.js";import"../lodash-es/lodash-es.3d8ce632.js";import"../async-validator/async-validator.21881447.js";import"../@ctrl/@ctrl.17547d95.js";import"../escape-html/escape-html.d572c0fd.js";import"../normalize-wheel-es/normalize-wheel-es.db30398b.js";import"../vue-router/vue-router.a593c94c.js";import"../nprogress/nprogress.6ebd1c78.js";import"../pinia/pinia.07ac0f5f.js";import"../vue-demi/vue-demi.4f3c4c97.js";import"../pinia-plugin-persist/pinia-plugin-persist.67085de7.js";import"../echarts/echarts.f2b2ac0c.js";import"../tslib/tslib.e35f93b8.js";import"../zrender/zrender.fe59a237.js";const W={class:"flex"},A={class:"lMar10 f-wei-600"},M=["onClick"],P=["onClick"],U=y({__name:"drawerDetial",props:{title:{default:""},drawerShow:{type:Boolean,default:!1},propObj:{default:{}}},emits:["close"],setup(e,{emit:t}){const a=e,{proxy:s}=D();b((()=>a.drawerShow),(e=>{e&&L((()=>{f.value.currentPage=1,o.tableList=[],o.descolList=[],g.list=[],_()}))}));const l=()=>{t("close")},i=h(0),o=w({tableList:[],descolList:[]}),u=()=>{L((()=>{const{type:e,kind:t}=a.propObj;o.descolList=[{name:"日期",column:"idate",isfixed:"left",minWidth:"160px"}],"living"==e?("customer"==t?o.descolList.push({name:"达人数/达人名称",column:"user_count",column2:"star_name",slotFlag:!0}):o.descolList.push({name:"客户数/客户名称",column:"cust_count",column2:"cust_name",slotFlag:!0}),o.descolList=o.descolList.concat(v)):("customer"==t?o.descolList.push({name:"达人数/达人名称",column:"user_count",column2:"star_name",slotFlag:!0}):o.descolList.push({name:"客户数/客户名称",column:"cust_count",column2:"cust_name",slotFlag:!0}),o.descolList=o.descolList.concat(m))}))},_=async(e,t)=>{f.value.loading=!0,await u();const{st_date:l,en_date:r,type:n,kind:p}=a.propObj,v=w({page:e||1,pageSize:t||20,st_date:l,en_date:r});"customer"==p?v.cust_id=a.propObj.cust_id:v.industry_id=a.propObj.industry_id;let m=c.FastTask_industry_video_detialList;"customer"==p&&(m=c.FastTask_customer_video_detialList),"living"==n&&(m=c.FastTask_industry_living_detialList,"customer"==p&&(m=c.FastTask_customer_living_detialList));let _=await s.$http.get(m,Object.assign(v,a.propObj));if(f.value.loading=!1,_&&"0"==_.code){let e=_.data;o.tableList=e.data,i.value=e.pageInfo.totalNum}else d.error(_.msg)},{tableListRef:f}=p(),g=w({list:[]}),y=(e,t)=>{t||e&&e.idate&&g.list.splice(g.list.findIndex((t=>t==e.idate)),1)},C=async e=>{f.value.loading=!0,await u();const{type:t,kind:l}=a.propObj;let i=o.tableList.findIndex((t=>t.idate==e.idate));const r=w({date:e.idate});"customer"==l?r.cust_id=a.propObj.cust_id:r.industry_id=a.propObj.industry_id;let n=c.FastTask_industry_video_subDetialList;"customer"==l&&(n=c.FastTask_customer_video_subDetialList),"living"==t&&(n=c.FastTask_industry_living_subDetialList,"customer"==l&&(n=c.FastTask_customer_living_subDetialList));let p=await s.$http.get(n,r);if(g.list.push(e.idate),f.value.loading=!1,p&&"0"==p.code){let e=p.data;e.forEach(((e,t)=>{e.idate=Number(t+1)})),o.tableList[i].children=e}else d.error(p.msg)};return(t,a)=>{const s=n;return k(),x("div",null,[j(s,{"model-value":e.drawerShow,direction:"rtl","before-close":l,"show-close":!1,size:"80%"},{header:F((()=>[S("div",W,[S("h4",A,T(e.title||"标题"),1)])])),default:F((()=>[j(r,{ref_key:"tableListRef",ref:f,tableHeight:"calc(100vh - 120px)",rowKeyStr:"idate",onExpandChange:y,expandArrs:g.list,tableData:o.tableList,descol:o.descolList,total:i.value,onInit:_},{user_count:F((e=>[S("div",{class:O(["text-center",e.row.user_count?"c-theme pointer":""]),onClick:t=>e.row.user_count&&C(e.row)},T(e.row.user_count||e.row.star_name||"-"),11,M)])),cust_count:F((e=>[S("div",{class:O(["text-center",e.row.cust_count?"c-theme pointer":""]),onClick:t=>e.row.cust_count&&C(e.row)},T(e.row.cust_count||e.row.cust_name||"-"),11,P)])),_:1},8,["expandArrs","tableData","descol","total"])])),_:1},8,["model-value"])])}}}),q={class:"screenBox"},G={class:"tableBox"},Q=["onClick"],J=y({__name:"customer",setup(l){const{proxy:n}=D(),u=h(),v=h(),m=async(e,t)=>{T.value.loading=!0,await(b.descolList=[{name:"客户名称",column:"name",isfixed:"left",minWidth:"160px"}],"living"==v.value.value?b.descolList=b.descolList.concat(f):b.descolList=b.descolList.concat(g),void b.descolList.push({name:"操作",column:"operate",slotFlag:!0,isfixed:"right"}));const a=w({page:e||1,pageSize:t||20,sort:R.value,st_date:u.value.dateVal[0],en_date:u.value.dateVal[1]});let s=c.FastTask_customer_video_list;"living"==v.value.value&&(s=c.FastTask_customer_living_list);let l=await n.$http.get(s,a);if(T.value.loading=!1,l&&"0"==l.code){let e=l.data;b.tableList=e.data,O.value=e.pageInfo.totalNum}else d.error(l.msg)},y=async()=>{t();const e=w({page:1,pageSize:1e4,sort:R.value,st_date:u.value.dateVal[0],en_date:u.value.dateVal[1]});let l=c.FastTask_customer_video_list;"living"==v.value.value&&(l=c.FastTask_customer_living_list);let i=await n.$http.get(l,e);if(i&&"0"==i.code){let e=i.data;await a(e.data,b.descolList,"name","column","客户分析"),setTimeout((()=>{s()}),2e3)}else d.error(i.msg),s()},b=w({tableList:[],descolList:[]}),{tableListRef:T,total:O,sortKey:R,sortType:V,sortEvent:z}=p([],m,"cost"),E=()=>{R.value="cost",m(1,20)},$=h(!1),B=h(!1),N=h("标题"),H=w({cust_id:0,st_date:"",en_date:"",type:""});return C((()=>{v.value.value=_[0].value,m()})),(t,a)=>(k(),x(K,null,[S("div",q,[j(i,{title:"",onInit:m,ref_key:"timeScreenRef",ref:u,disabledDay:180},null,512),j(o,{ref_key:"selectRefForm",ref:v,clearFlag:!1,title:"推广形式",options:I(_),onChangeEvent:E},null,8,["options"]),j(e,{haveUpdateFlag:!0,onUpdateEvent:y})]),S("div",G,[j(r,{ref_key:"tableListRef",ref:T,tableHeight:"calc(100vh - 295px)",onInit:m,haveSortType:!1,sortKey:I(R),sortType:I(V),onSort:I(z),tableData:b.tableList,descol:b.descolList,total:I(O)},{operate:F((e=>[S("div",{class:"text-center pointer c-theme",onClick:t=>{return a=e.row.id,s=e.row.name,$.value=!0,void L((()=>{N.value=s,H.cust_id=a,H.st_date=u.value.dateVal[0],H.en_date=u.value.dateVal[1],H.type=v.value.value,H.kind="customer"}));var a,s}},"详情",8,Q)])),_:1},8,["sortKey","sortType","onSort","tableData","descol","total"])]),j(U,{title:N.value,propObj:H,drawerShow:$.value,loading:B.value,onClose:a[0]||(a[0]=e=>$.value=!1)},null,8,["title","propObj","drawerShow","loading"])],64))}});const X={class:"flex"},Y={class:"lMar10 f-wei-600"},Z={class:"starBox"},ee=["src"],te={key:1,src:H,alt:"",class:"img"},ae={class:"info"},se=["title"],le={key:0,class:"fan"};var ie=u(y({__name:"dailyDrawerDetial_sub",props:{drawerShow:{type:Boolean,default:!1},propObj:{default:{}}},emits:["close"],setup(e,{emit:t}){const a=e,{proxy:s}=D(),l=s.$NumberHandle;b((()=>a.drawerShow),(e=>{e&&L((()=>{y.value.currentPage=1,o.tableList=[],o.descolList=[],g()}))}));const i=()=>{t("close")},o=w({tableList:[],descolList:[]}),u=h(""),_=h(1),f=()=>{u.value=u.value?"":"cost",g()},g=async()=>{y.value.loading=!0,await(()=>{const{type:e}=a.propObj;o.descolList=[{name:"订单id",column:"order_id",cancleForMat:!0,minWidth:"180px",isfixed:"left"},{name:"达人信息",column:"star_name",cancleForMat:!0,minWidth:"180px",slotFlag:!0}],o.descolList="living"==e?o.descolList.concat(v):o.descolList.concat(m)})();const{date:e,cust_id:t,type:l,task_id:i}=a.propObj,r=w({cust_id:t,date:e,sort:u.value,task_id:i});let n=c.FastTask_dailyList_video_task_detial;"living"==l&&(n=c.FastTask_dailyList_living_task_detial);let p=await s.$http.get(n,r);if(_.value++,y.value.loading=!1,p&&"0"==p.code){o.tableList=[];let e=p.data;o.tableList=e}else d.error(p.msg)},{tableListRef:y}=p();return(t,a)=>{const s=n;return k(),x("div",null,[j(s,{"model-value":e.drawerShow,direction:"rtl","before-close":i,"show-close":!1,size:"80%"},{header:F((()=>[S("div",X,[S("h4",Y,T(e.propObj.date||"标题")+" ("+T(e.propObj.task_id)+") ",1)])])),default:F((()=>[j(r,{ref_key:"tableListRef",ref:y,tableHeight:"calc(100vh - 70px)",updateKey:_.value,rowKeyStr:"user_id",tableData:o.tableList,descol:o.descolList,showPagination:!1,sortKey:u.value,haveSortType:!1,onSort:f,onInit:g},{star_name:F((e=>[S("div",Z,[S("div",null,[e.row.head_url?(k(),x("img",{key:0,src:e.row.head_url,alt:"",class:"img"},null,8,ee)):(k(),x("img",te))]),S("div",ae,[S("div",{class:"name clampTwo",title:e.row.star_name},T(e.row.star_name||"-"),9,se),e.row.fan?(k(),x("div",le,"粉丝数: "+T(I(l)(e.row.fan)||"-"),1)):R("",!0)])])])),_:1},8,["updateKey","tableData","descol","sortKey"])])),_:1},8,["model-value"])])}}}),[["__scopeId","data-v-3b1e5d20"]]);const oe={class:"flex"},re={class:"lMar10 f-wei-600"},de=["onClick"],ne=y({__name:"dailyDrawerDetial",props:{drawerShow:{type:Boolean,default:!1},propObj:{default:{}}},emits:["close"],setup(e,{emit:t}){const a=e,{proxy:s}=D();s.$NumberHandle,b((()=>a.drawerShow),(e=>{e&&L((()=>{g.value.currentPage=1,i.tableList=[],i.descolList=[],f()}))}));const l=()=>{t("close")},i=w({tableList:[],descolList:[]}),o=h(""),u=h(1),_=()=>{o.value=o.value?"":"cost",f()},f=async()=>{g.value.loading=!0,await(()=>{const{type:e}=a.propObj;i.descolList=[{name:"任务id",column:"task_id",cancleForMat:!0,minWidth:"180px",isfixed:"left"}],i.descolList="living"==e?i.descolList.concat(v):i.descolList.concat(m),i.descolList.push({name:"操作",column:"operate",slotFlag:!0,isfixed:"right"})})();const{date:e,cust_id:t,type:l}=a.propObj,r=w({cust_id:t,date:e,sort:o.value});let n=c.FastTask_dailyList_video_task_list;"living"==l&&(n=c.FastTask_dailyList_living_task_list);let p=await s.$http.get(n,r);if(u.value++,g.value.loading=!1,p&&"0"==p.code){i.tableList=[];let e=p.data;i.tableList=e}else d.error(p.msg)},{tableListRef:g}=p(),y=h(!1),O=h(!1),C=w({cust_id:0,date:"",task_id:"",type:""});return(t,s)=>{const d=n;return k(),x("div",null,[j(d,{"model-value":e.drawerShow,direction:"rtl","before-close":l,"show-close":!1,size:"80%"},{header:F((()=>[S("div",oe,[S("h4",re,T(e.propObj.date||"标题")+" ("+T(e.propObj.title)+") ",1)])])),default:F((()=>[j(r,{ref_key:"tableListRef",ref:g,tableHeight:"calc(100vh - 70px)",updateKey:u.value,rowKeyStr:"task_id",tableData:i.tableList,descol:i.descolList,showPagination:!1,sortKey:o.value,haveSortType:!1,onSort:_,onInit:f},{operate:F((e=>[S("div",{class:"text-center pointer c-theme",onClick:t=>{return s=e.row.task_id,y.value=!0,void L((()=>{const{date:e,cust_id:t,type:l}=a.propObj;C.cust_id=t,C.date=e,C.type=l,C.task_id=s}));var s}},"详情",8,de)])),_:1},8,["updateKey","tableData","descol","sortKey"])])),_:1},8,["model-value"]),j(ie,{propObj:C,drawerShow:y.value,loading:O.value,onClose:s[0]||(s[0]=e=>y.value=!1)},null,8,["propObj","drawerShow","loading"])])}}});const ce={class:"screenBox"},ue={class:"flex lMarauto"},pe={class:"tableBox"},ve=["onClick"];var me=u(y({__name:"subdailyData",setup(l){const{proxy:n}=D(),u=h(),f=h(),g=h(),y=w({tableList:[],descolList:[]}),{tableListRef:b,total:T}=p(),O=async(e,t)=>{b.value.loading=!0,await void L((()=>{y.descolList=[{name:"日期",column:"idate",isfixed:"left",minWidth:"160px"}],"living"==g.value.value?y.descolList=y.descolList.concat(v):y.descolList=y.descolList.concat(m),y.descolList.push({name:"操作",column:"operate",slotFlag:!0,isfixed:"right"})}));const a=w({page:e||1,pageSize:t||20,cust_id:f.value.value,st_date:u.value.dateVal[0],en_date:u.value.dateVal[1]});let s=c.FastTask_dailyList_video_list;"living"==g.value.value&&(s=c.FastTask_dailyList_living_list);let l=await n.$http.get(s,a);if(b.value.loading=!1,l&&"0"==l.code){let e=l.data;y.tableList=e.data,T.value=e.pageInfo.totalNum}else d.error(l.msg)},R=async()=>{t();const e=w({page:1,pageSize:1e4,cust_id:f.value.value,st_date:u.value.dateVal[0],en_date:u.value.dateVal[1]});let l=c.FastTask_dailyList_video_list;"living"==g.value.value&&(l=c.FastTask_dailyList_living_list);let i=await n.$http.get(l,e);if(i&&"0"==i.code){let e=i.data;await a(e.data,y.descolList,"name","column","分日数据"),setTimeout((()=>{s()}),2e3)}else d.error(i.msg),s()},V=h(!1),z=h(!1),E=w({cust_id:0,date:"",title:"",type:""}),$=w({list:[]});return C((async()=>{await(async()=>{const e=w({page:1,pageSize:500});let t=await n.$http.get(c.customerAuth_list,e);if(t&&"0"==t.code){let e=t.data;$.list=[],e.data.forEach((e=>{$.list.push({value:e.id,label:e.name})}));const a=$.list.findIndex((e=>4==e.value));f.value.value=$.list[a].value}else d.error(t.msg)})(),O(),g.value.value=_[0].value})),(t,a)=>(k(),x(K,null,[S("div",ce,[j(i,{title:"",onInit:O,ref_key:"timeScreenRef",ref:u,disabledDay:180},null,512),j(o,{ref_key:"selectRefForm",ref:f,filterFlag:!0,clearFlag:!1,selectWidth:"220px",title:"客户",options:$.list,onChangeEvent:a[0]||(a[0]=e=>O(1,20))},null,8,["options"]),j(o,{ref_key:"selectRefForm_traffic_form",ref:g,clearFlag:!1,title:"推广形式",options:I(_),onChangeEvent:a[1]||(a[1]=e=>O(1,20))},null,8,["options"]),S("div",ue,[j(e,{haveUpdateFlag:!0,onUpdateEvent:R})])]),S("div",pe,[j(r,{ref_key:"tableListRef",ref:b,tableHeight:"calc(100vh - 295px)",onInit:O,rowKeyStr:"idate",tableData:y.tableList,descol:y.descolList,total:I(T)},{operate:F((e=>[S("div",{class:"text-center pointer c-theme",onClick:t=>{return a=e.row.idate,V.value=!0,void L((()=>{E.type=g.value.value,E.cust_id=f.value.value,E.date=a;const e=$.list.findIndex((e=>e.value==f.value.value));E.title=$.list[e].label}));var a}},"详情",8,ve)])),_:1},8,["tableData","descol","total"])]),j(ne,{propObj:E,drawerShow:V.value,loading:z.value,onClose:a[2]||(a[2]=e=>V.value=!1)},null,8,["propObj","drawerShow","loading"])],64))}}),[["__scopeId","data-v-bd5d6ff8"]]);const _e={class:"screenBox"},fe={class:"tableBox"},ge=["onClick"],ye=y({__name:"industry",setup(l){const{proxy:n}=D(),u=h(),v=h(),m=async(e,t)=>{O.value.loading=!0,await(T.descolList=[{name:"行业名称",column:"industry_name",isfixed:"left",minWidth:"160px"}],"living"==v.value.value?T.descolList=T.descolList.concat(f):T.descolList=T.descolList.concat(g),void T.descolList.push({name:"操作",column:"operate",slotFlag:!0,isfixed:"right"}));const a=w({page:e||1,pageSize:t||20,sort:V.value,st_date:u.value.dateVal[0],en_date:u.value.dateVal[1]});let s=c.FastTask_industry_video_list;"living"==v.value.value&&(s=c.FastTask_industry_living_list);let l=await n.$http.get(s,a);if(O.value.loading=!1,l&&"0"==l.code){let e=l.data;T.tableList=e.data,R.value=e.pageInfo.totalNum}else d.error(l.msg)},y=()=>{V.value="cost",m(1,20)},b=async()=>{t();const e=w({page:1,pageSize:1e4,sort:V.value,st_date:u.value.dateVal[0],en_date:u.value.dateVal[1]});let l=c.FastTask_industry_video_list;"living"==v.value.value&&(l=c.FastTask_industry_living_list);let i=await n.$http.get(l,e);if(i&&"0"==i.code){let e=i.data;await a(e.data,T.descolList,"name","column","行业分析"),setTimeout((()=>{s()}),2e3)}else d.error(i.msg),s()},T=w({tableList:[],descolList:[]}),{tableListRef:O,total:R,sortKey:V,sortType:z,sortEvent:E}=p([],m,"cost"),$=h(!1),B=h(!1),N=h("标题"),H=w({industry_id:0,st_date:"",en_date:"",type:"",kind:"industry"});return C((()=>{v.value.value=_[0].value,m()})),(t,a)=>(k(),x(K,null,[S("div",_e,[j(i,{title:"",onInit:m,ref_key:"timeScreenRef",ref:u,disabledDay:180},null,512),j(o,{ref_key:"selectRefForm",ref:v,clearFlag:!1,title:"推广形式",options:I(_),onChangeEvent:y},null,8,["options"]),j(e,{haveUpdateFlag:!0,onUpdateEvent:b})]),S("div",fe,[j(r,{ref_key:"tableListRef",ref:O,tableHeight:"calc(100vh - 295px)",onInit:m,sortKey:I(V),sortType:I(z),onSort:I(E),rowKeyStr:"industry_id",haveSortType:!1,tableData:T.tableList,descol:T.descolList,total:I(R)},{operate:F((e=>[S("div",{class:"text-center pointer c-theme",onClick:t=>{return a=e.row.industry_id,s=e.row.industry_name,$.value=!0,void L((()=>{N.value=s,H.industry_id=a,H.st_date=u.value.dateVal[0],H.en_date=u.value.dateVal[1],H.type=v.value.value,H.kind="industry"}));var a,s}},"详情",8,ge)])),_:1},8,["sortKey","sortType","onSort","tableData","descol","total"])]),j(U,{title:N.value,propObj:H,drawerShow:$.value,loading:B.value,onClose:a[0]||(a[0]=e=>$.value=!1)},null,8,["title","propObj","drawerShow","loading"])],64))}}),be={class:"typeBorlineBox"},Le=["onClick"],he=S("div",{class:"borLine"},null,-1),we=y({__name:"index",setup(e){const t=V(me),a=w([{name:"分日数据",key:"subdailyData",compName:z(me)},{name:"行业分析",key:"industry",compName:z(ye)},{name:"客户分析",key:"customer",compName:z(J)}]),{typeAc:s,typeList:i}=l(a);return(e,a)=>(k(),x(K,null,[S("div",be,[(k(!0),x(K,null,E(I(i).list,(e=>(k(),x("div",{class:O(["item",e.key==I(s)?"itemAc":""]),key:e.key,onClick:a=>(e=>{s.value=e.key,t.value=e.compName})(e)},[S("div",null,T(e.name),1),he],10,Le)))),128))]),(k(),$(N,null,[(k(),$(B(I(t))))],1024))],64))}});export{we as default};