You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1 line
18 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

import{n as e}from"./axios-CiYFffbI.js";import{I as t,N as n,Tt as r,V as i,Y as a,_ as o,d as s,f as c,i as l,it as u,kt as d,l as f,nt as p,p as m,u as h,ut as g,v as _,y as v,z as y}from"./runtime-core.esm-bundler-CnFWH3R5.js";import{n as b}from"./http-LCi9aT1G.js";import{a as ee,c as x,f as te,i as S,n as ne,o as re,r as ie,u as C}from"./index-C7HDPj8Y.js";import{o as w,r as T}from"./hikPdcClient-9YlD6z0w.js";import{n as E,t as D}from"./xlsx-C0ANE5gA.js";var ae={class:`dashboard-page`},oe={class:`dashboard-page__inner`},se={class:`dash-bundle`,"aria-label":`数据统计`},ce={class:`dash-core-pack`},le={class:`dash-metric-card dash-metric-card--core`},ue={class:`dash-metric-card__head`},de={class:`dash-metric-card__icon`,"aria-hidden":`true`},fe={class:`dash-metric-card__body`},pe={class:`dash-stat-grid dash-stat-grid--core`},me={class:`dash-stat-cell dash-stat-cell--violet`},he={class:`dash-stat-cell__value`},ge={class:`dash-stat-cell dash-stat-cell--mint`},_e={class:`dash-stat-cell__value`},ve={key:0,class:`dash-stat-cell dash-stat-cell--gold`},ye={class:`dash-stat-cell__value`},be={class:`dash-stat-cell dash-stat-cell--sky`},xe={class:`dash-stat-cell__value`},Se={key:1,class:`dash-stat-cell dash-stat-cell--rose`},Ce={class:`dash-stat-cell__value`},O={key:2,class:`dash-stat-cell dash-stat-cell--teal`},k={class:`dash-stat-cell__value`},A={key:0,class:`dash-metric-card dash-metric-card--todo`},we={class:`dash-metric-card__head dash-metric-card__head--todo`},Te={class:`dash-metric-card__icon dash-metric-card__icon--todo`,"aria-hidden":`true`},Ee={class:`dash-metric-card__body`},De={key:0,class:`dash-todo-sheet dash-todo-sheet--loading`},Oe={key:1,class:`dash-todo-sheet`},ke={key:0,class:`dash-todo-sheet--empty-inner`},Ae={class:`dash-todo-placeholder`},je={class:`dash-todo-line__kind`},Me={class:`dash-todo-line__name`},Ne={class:`dash-todo-line__name`},Pe={class:`dash-schedule-dual`},Fe={class:`dash-metric-card`},Ie={class:`dash-metric-card__head`},Le={class:`dash-metric-card__icon`,"aria-hidden":`true`},Re={class:`dash-metric-card__body`},ze={class:`dash-stat-grid dash-stat-grid--schedule-act`},Be={class:`dash-stat-cell dash-stat-cell--rose`},Ve={class:`dash-stat-cell__value`},He={class:`dash-stat-cell dash-stat-cell--violet`},Ue={class:`dash-stat-cell__value`},We={class:`dash-stat-cell dash-stat-cell--amber`},Ge={class:`dash-stat-cell__value`},Ke={class:`dash-stat-cell dash-stat-cell--sky`},qe={class:`dash-stat-cell__value`},Je={class:`dash-stat-cell dash-stat-cell--mint`},Ye={class:`dash-stat-cell__value`},Xe={class:`dash-stat-cell dash-stat-cell--indigo`},Ze={class:`dash-stat-cell__value`},Qe={class:`dash-metric-card`},$e={class:`dash-metric-card__head`},et={class:`dash-metric-card__icon dash-metric-card__icon--schedule-tg`,"aria-hidden":`true`},tt={class:`dash-metric-card__body`},nt={class:`dash-stat-grid dash-stat-grid--schedule-tg`},rt={class:`dash-stat-cell dash-stat-cell--rose`},it={class:`dash-stat-cell__value`},at={class:`dash-stat-cell dash-stat-cell--amber`},ot={class:`dash-stat-cell__value`},st={class:`dash-stat-cell dash-stat-cell--sky`},ct={class:`dash-stat-cell__value`},lt={class:`dash-stat-cell dash-stat-cell--mint`},ut={class:`dash-stat-cell__value`},dt={class:`dash-stat-cell dash-stat-cell--violet dash-stat-cell--verify-rate`},ft={class:`dash-stat-cell__value dash-stat-cell__value--pct`},pt={class:`dash-stat-cell__hint`},mt={class:`dash-rank-dual`},ht={class:`dash-metric-card dash-metric-card--rank`},gt={class:`dash-metric-card__head`},_t={class:`dash-metric-card__icon dash-metric-card__icon--rank-pub`,"aria-hidden":`true`},vt={class:`dash-metric-card__body dash-rank-card__body`},yt={class:`dash-metric-card dash-metric-card--rank`},bt={class:`dash-metric-card__head`},xt={class:`dash-metric-card__icon dash-metric-card__icon--rank-live`,"aria-hidden":`true`},St={class:`dash-metric-card__body dash-rank-card__body`},Ct={class:`dash-venue-pc-bundle`},wt={class:`dash-metric-card dash-metric-card--venue-pc`},Tt={class:`dash-metric-card__head`},Et={class:`dash-metric-card__icon dash-metric-card__icon--venue-pc`,"aria-hidden":`true`},Dt={class:`dash-metric-card__body dash-metric-card__body--venue-pc`},Ot={class:`dash-venue-pc-filters`},kt={key:1,class:`dash-venue-pc-table-wrap`},j=300,M=C(v({__name:`Dashboard`,setup(v){let C=x(),M=u(!1),N=u(!1),P=u(!1),F=u({scope:{role:``,venue_id:void 0,activity_id:void 0},summary:{activity_sessions:0,venues_count:0,ticket_grab_sessions:0,user_count:0,reservation_order_count:0,wechat_user_count:0,home_visit_total:0,home_visit_today:0},activity_schedule_counts:{total:0,total_sessions:0,not_started:0,ongoing:0,ended:0,published_venues_count:0},ticket_grab_schedule_counts:{total:0,not_started:0,ongoing:0,ended:0,verify_rate_pct:null,verified_people:0,booked_people:0},pending_audits:null,activity_publish_ranking:[],live_people_ranking:[],live_people_counting_ok:!1}),At=f(()=>!!w()),I=u([]),L=u(!1),R=u(null),z=u(null),jt=[{title:`场馆ID`,dataIndex:`venueId`,minWidth:110,ellipsis:!0,tooltip:!0},{title:`场馆名称`,dataIndex:`venueName`,minWidth:140,ellipsis:!0,tooltip:!0},{title:`入馆总人数`,dataIndex:`enter`,minWidth:120}];function B(e){let t=e=>String(e).padStart(2,`0`);return`${e.getFullYear()}-${t(e.getMonth()+1)}-${t(e.getDate())}`}function Mt(e){let t=new Date(e.getFullYear(),e.getMonth(),e.getDate()),n=t.getDay(),r=n===0?-6:1-n;return t.setDate(t.getDate()+r),t}function Nt(e){let t=new Date(e.getFullYear(),e.getMonth(),e.getDate());return t.setDate(t.getDate()+6),t}function V(){let e=new Date;return new Date(e.getFullYear(),e.getMonth(),e.getDate())}function H(e,t){return e.getTime()<=t.getTime()?e:t}function Pt(e){let t=V(),n,r;if(e===`week`){let e=Mt(t),i=Nt(e);n=B(e),r=B(H(i,t))}else if(e===`month`){let e=new Date(t.getFullYear(),t.getMonth(),1),i=new Date(t.getFullYear(),t.getMonth()+1,0);n=B(e),r=B(H(i,t))}else{let e=new Date(t.getFullYear(),0,1),i=new Date(t.getFullYear(),11,31);n=B(e),r=B(H(i,t))}I.value=[n,r]}function Ft(){let e=B(V());I.value=[e,e]}let U=f(()=>{let e=z.value;if(!e||e.code!==200)return[];let t=[],n=e.venuesRangeTotals;if(Array.isArray(n)&&n.length>0)t=n.map(e=>({venueId:e.venueId,venueName:e.venueName,enter:Number(e.enter)||0}));else{let n=e.venues;if(!Array.isArray(n)||n.length===0)return[];t=n.map(e=>({venueId:e.venueId,venueName:e.venueName,enter:Number(e.enter)||0}))}return t.sort((e,t)=>{let n=(Number(t.enter)||0)-(Number(e.enter)||0);return n===0?String(e.venueId).localeCompare(String(t.venueId),void 0,{numeric:!0}):n})});function It(e){let t=Array.isArray(e.data)?e.data:[],n=0;for(let e of t)n+=Number(e.enter)||0;return[{venueId:`合计`,venueName:``,enter:n}]}function W(){let e=I.value;if(!Array.isArray(e)||e.length<2)return null;let t=String(e[0]??``).trim(),n=String(e[1]??``).trim();return!/^\d{4}-\d{2}-\d{2}$/.test(t)||!/^\d{4}-\d{2}-\d{2}$/.test(n)||n<t?null:{start:t,end:n}}async function G(t){if(!w())return;let n=W();if(!n){e.warning(`请选择合法的日期时间段(起止 yyyy-MM-dd`);return}let{start:r,end:i}=n;L.value=!0,R.value=null;let a=t?.silentSuccess===!0;try{z.value=await T(r,i),z.value.code===200?a||e.success(`客流统计已刷新`):(R.value=z.value.message||`接口返回错误码 ${z.value.code}`,a||e.warning(R.value))}catch(t){z.value=null,R.value=(t&&typeof t==`object`&&`message`in t?String(t.message):String(t))||`客流接口请求失败`,e.error(R.value||`客流接口请求失败`)}finally{L.value=!1}}function Lt(){G({silentSuccess:!1})}u([]),u(!1),p({eventId:void 0,date:void 0});let K=u(null);f(()=>K.value?.daily_verify_matrix?.date_labels??[]),f(()=>K.value?.daily_verify_matrix?.rows??[]);let q=u(!1);function Rt(){let t=W();if(!t){e.warning(`请先选择日期区间并查询数据`);return}let n=U.value;if(!n.length){e.warning(`暂无数据可导出`);return}q.value=!0;try{let r=[[`场馆ID`,`场馆名称`,`入馆总人数`],...n.map(e=>[e.venueId,e.venueName,e.enter])],i=n.reduce((e,t)=>e+(Number(t.enter)||0),0);r.push([`合计`,``,i]);let a=D.aoa_to_sheet(r),o=D.book_new();D.book_append_sheet(o,a,`各场馆人数统计`),E(o,`${t.start}${t.end}各场馆人数统计.xlsx`),e.success(`已导出`)}finally{q.value=!1}}u(!1);let zt=f(()=>F.value.pending_audits?.activities.count??0),Bt=f(()=>F.value.pending_audits?.venues?.count??0),J=f(()=>zt.value+Bt.value),Y=f(()=>F.value.pending_audits?.activities.items??[]),X=f(()=>F.value.pending_audits?.venues?.items??[]),Vt=f(()=>Y.value.length>0||X.value.length>0),Z=f(()=>N.value||P.value),Ht=f(()=>P.value?`暂无已退回活动`:`暂无待审核事项`),Ut=f(()=>P.value?`活动退回`:`活动审核`);function Wt(){C.push({path:`/activities`,query:{audit_status:`pending`}})}function Gt(){C.push({path:`/activities`,query:{audit_status:`rejected`}})}function Kt(){C.push({path:`/venues`,query:{audit_status:`pending`}})}function Q(e){if(e===`venue`){Kt();return}P.value?Gt():Wt()}let qt=f(()=>{let e=F.value.ticket_grab_schedule_counts;return!e||e.booked_people<=0?`0%`:`${e.verify_rate_pct??0}%`}),Jt=f(()=>{let e=F.value.ticket_grab_schedule_counts;return`已核销 ${e?.verified_people??0} / 已约 ${e?.booked_people??0}`});async function Yt(){M.value=!0;try{let{data:e}=await b.get(`/dashboard/stats`),{live_people_counting_debug:t,...n}=e;n.live_people_counting_ok===!1&&console.warn(`[工作台] 客流统计接口异常`,t??{}),F.value={...F.value,...n,summary:e.summary??F.value.summary,activity_schedule_counts:{...F.value.activity_schedule_counts,...e.activity_schedule_counts??{}},ticket_grab_schedule_counts:{...F.value.ticket_grab_schedule_counts,...e.ticket_grab_schedule_counts??{}},pending_audits:e.pending_audits??null,activity_publish_ranking:Array.isArray(e.activity_publish_ranking)?e.activity_publish_ranking:F.value.activity_publish_ranking,live_people_ranking:Array.isArray(e.live_people_ranking)?e.live_people_ranking:F.value.live_people_ranking,live_people_counting_ok:typeof e.live_people_counting_ok==`boolean`?e.live_people_counting_ok:F.value.live_people_counting_ok}}catch(t){e.error(t?.response?.data?.message??`加载统计失败`)}finally{M.value=!1}}async function Xt(){let{data:e}=await b.get(`/me`);N.value=e?.full_admin_access===!0,P.value=e?.role===`venue_admin`}function $(e){Pt(e),G({silentSuccess:!0})}return n(async()=>{await Xt(),await Yt(),w()&&(Ft(),await G({silentSuccess:!0}))}),(e,n)=>{let u=i(`a-table-column`),f=i(`a-table`),p=i(`a-typography-text`),v=i(`a-range-picker`),b=i(`a-button`),x=i(`a-divider`),C=i(`a-space`),w=i(`a-alert`),T=i(`a-empty`),E=i(`a-spin`);return i(`a-tag`),i(`a-option`),i(`a-select`),i(`a-date-picker`),i(`a-card`),t(),m(`div`,ae,[h(`div`,oe,[n[58]||=h(`header`,{class:`dashboard-page__header`},[h(`div`,{class:`dashboard-page__heading`},[h(`h1`,{class:`dashboard-page__title`},`工作台`),h(`span`,{class:`dashboard-page__subtitle`},`数据看板`)])],-1),h(`section`,se,[h(`div`,{class:r([`dash-overview-dual`,{"dash-overview-dual--split":Z.value}])},[h(`div`,ce,[h(`article`,le,[h(`header`,ue,[h(`div`,de,[_(g(S))]),n[8]||=h(`div`,{class:`dash-metric-card__head-main`},[h(`h2`,{class:`dash-metric-card__title`},`核心数据统计`)],-1)]),h(`div`,fe,[h(`div`,pe,[h(`div`,me,[h(`div`,he,d(F.value.summary.venues_count??0),1),n[9]||=h(`div`,{class:`dash-stat-cell__label`},`现有场馆`,-1)]),h(`div`,ge,[h(`div`,_e,d(F.value.summary.reservation_order_count??0),1),n[10]||=h(`div`,{class:`dash-stat-cell__label`},`总预约次数`,-1)]),N.value?(t(),m(`div`,ve,[h(`div`,ye,d(F.value.summary.wechat_user_count??0),1),n[11]||=h(`div`,{class:`dash-stat-cell__label`},`总用户数`,-1)])):c(``,!0),h(`div`,be,[h(`div`,xe,d(F.value.summary.user_count),1),n[12]||=h(`div`,{class:`dash-stat-cell__label`},`预约用户数`,-1)]),N.value?(t(),m(`div`,Se,[h(`div`,Ce,d(F.value.summary.home_visit_total??0),1),n[13]||=h(`div`,{class:`dash-stat-cell__label`},`总访问量`,-1)])):c(``,!0),N.value?(t(),m(`div`,O,[h(`div`,k,d(F.value.summary.home_visit_today??0),1),n[14]||=h(`div`,{class:`dash-stat-cell__label`},`今日访问量`,-1)])):c(``,!0)])])])]),N.value||P.value?(t(),m(`article`,A,[h(`header`,we,[h(`div`,Te,[_(g(re))]),n[15]||=h(`h2`,{class:`dash-metric-card__title dash-metric-card__title--inline`},`待办事项`,-1),h(`span`,{class:r([`dash-todo-count-badge`,{"dash-todo-count-badge--zero":J.value===0}])},d(J.value),3)]),h(`div`,Ee,[M.value&&F.value.pending_audits==null?(t(),m(`div`,De,[...n[16]||=[h(`span`,{class:`dash-todo-placeholder`},`加载中…`,-1)]])):(t(),m(`div`,Oe,[Vt.value?(t(),m(l,{key:1},[(t(!0),m(l,null,y(Y.value,e=>(t(),m(`button`,{key:`pa-`+e.id,type:`button`,class:`dash-todo-line`,onClick:n[0]||=e=>Q(`activity`)},[h(`span`,je,d(Ut.value),1),h(`span`,Me,d(e.title),1),n[17]||=h(`span`,{class:`dash-todo-line__action`},`去处理`,-1)]))),128)),(t(!0),m(l,null,y(X.value,e=>(t(),m(`button`,{key:`pv-`+e.id,type:`button`,class:`dash-todo-line`,onClick:n[1]||=e=>Q(`venue`)},[n[18]||=h(`span`,{class:`dash-todo-line__kind`},`场馆审核`,-1),h(`span`,Ne,d(e.name),1),n[19]||=h(`span`,{class:`dash-todo-line__action`},`去处理`,-1)]))),128))],64)):(t(),m(`div`,ke,[h(`span`,Ae,d(Ht.value),1)]))]))])])):c(``,!0)],2),h(`div`,Pe,[h(`article`,Fe,[h(`header`,Ie,[h(`div`,Le,[_(g(te))]),n[20]||=h(`div`,{class:`dash-metric-card__head-main`},[h(`h2`,{class:`dash-metric-card__title`},`活动统计`)],-1)]),h(`div`,Re,[h(`div`,ze,[h(`div`,Be,[h(`div`,Ve,d(F.value.activity_schedule_counts.total),1),n[21]||=h(`div`,{class:`dash-stat-cell__label`},`活动数`,-1)]),h(`div`,He,[h(`div`,Ue,d(F.value.activity_schedule_counts.total_sessions),1),n[22]||=h(`div`,{class:`dash-stat-cell__label`},`总场次`,-1)]),h(`div`,We,[h(`div`,Ge,d(F.value.activity_schedule_counts.not_started),1),n[23]||=h(`div`,{class:`dash-stat-cell__label`},`未开始`,-1)]),h(`div`,Ke,[h(`div`,qe,d(F.value.activity_schedule_counts.ongoing),1),n[24]||=h(`div`,{class:`dash-stat-cell__label`},`进行中`,-1)]),h(`div`,Je,[h(`div`,Ye,d(F.value.activity_schedule_counts.ended),1),n[25]||=h(`div`,{class:`dash-stat-cell__label`},`已结束`,-1)]),h(`div`,Xe,[h(`div`,Ze,d(F.value.activity_schedule_counts.published_venues_count??0),1),n[26]||=h(`div`,{class:`dash-stat-cell__label`},`已发布活动场馆`,-1)])])])]),h(`article`,Qe,[h(`header`,$e,[h(`div`,et,[_(g(ie))]),n[27]||=h(`div`,{class:`dash-metric-card__head-main`},[h(`h2`,{class:`dash-metric-card__title`},`抢票统计`)],-1)]),h(`div`,tt,[h(`div`,nt,[h(`div`,rt,[h(`div`,it,d(F.value.ticket_grab_schedule_counts.total),1),n[28]||=h(`div`,{class:`dash-stat-cell__label`},`总场数`,-1)]),h(`div`,at,[h(`div`,ot,d(F.value.ticket_grab_schedule_counts.not_started),1),n[29]||=h(`div`,{class:`dash-stat-cell__label`},`未开始`,-1)]),h(`div`,st,[h(`div`,ct,d(F.value.ticket_grab_schedule_counts.ongoing),1),n[30]||=h(`div`,{class:`dash-stat-cell__label`},`进行中`,-1)]),h(`div`,lt,[h(`div`,ut,d(F.value.ticket_grab_schedule_counts.ended),1),n[31]||=h(`div`,{class:`dash-stat-cell__label`},`已结束`,-1)]),h(`div`,dt,[h(`div`,ft,d(qt.value),1),n[32]||=h(`div`,{class:`dash-stat-cell__label`},`核销率`,-1),h(`div`,pt,d(Jt.value),1)])])])])]),h(`div`,mt,[h(`article`,ht,[h(`header`,gt,[h(`div`,_t,[_(g(ee))]),n[33]||=h(`div`,{class:`dash-metric-card__head-main`},[h(`h2`,{class:`dash-metric-card__title`},`活动发布排行`)],-1)]),h(`div`,vt,[_(f,{class:`dash-table dash-rank-table`,data:F.value.activity_publish_ranking,loading:M.value,pagination:!1,scroll:{y:j},"row-key":`venue_id`,size:`small`},{columns:a(()=>[_(u,{title:`#`,width:52},{cell:a(({rowIndex:e})=>[o(d(e+1),1)]),_:1}),_(u,{title:`场馆名称`,"data-index":`venue_name`,ellipsis:!0,tooltip:!0}),_(u,{title:`发布活动数`,"data-index":`published_count`,width:108,align:`right`}),_(u,{title:`发布场次数`,"data-index":`published_sessions_count`,width:108,align:`right`})]),_:1},8,[`data`,`loading`,`scroll`])])]),h(`article`,yt,[h(`header`,bt,[h(`div`,xt,[_(g(ne))]),n[34]||=h(`div`,{class:`dash-metric-card__head-main`},[h(`h2`,{class:`dash-metric-card__title`},`实时人数排行`)],-1)]),h(`div`,St,[_(f,{class:`dash-table dash-rank-table`,data:F.value.live_people_ranking,loading:M.value,pagination:!1,scroll:{y:j},"row-key":`venue_id`,size:`small`},{columns:a(()=>[_(u,{title:`#`,width:52},{cell:a(({rowIndex:e})=>[o(d(e+1),1)]),_:1}),_(u,{title:`场馆名称`,"data-index":`venue_name`,ellipsis:!0,tooltip:!0}),_(u,{title:`在馆人数`,"data-index":`live_count`,width:100,align:`right`})]),_:1},8,[`data`,`loading`,`scroll`])])])]),h(`div`,Ct,[h(`article`,wt,[h(`header`,Tt,[h(`div`,Et,[_(g(S))]),n[35]||=h(`div`,{class:`dash-metric-card__head-main`},[h(`h2`,{class:`dash-metric-card__title`},`各场馆人数统计`)],-1)]),h(`div`,Dt,[At.value?(t(),m(l,{key:1},[h(`div`,Ot,[_(C,{wrap:``,size:`small`},{default:a(()=>[n[42]||=h(`span`,{class:`dash-venue-pc-filters__label`},`时间段`,-1),_(v,{modelValue:I.value,"onUpdate:modelValue":n[2]||=e=>I.value=e,format:`YYYY-MM-DD`,"value-format":`YYYY-MM-DD`,"exchange-time":!1,"allow-clear":``,style:{width:`260px`},size:`small`},null,8,[`modelValue`]),_(b,{type:`primary`,size:`small`,loading:L.value,onClick:Lt},{default:a(()=>[...n[37]||=[o(`查询`,-1)]]),_:1},8,[`loading`]),_(b,{size:`small`,loading:q.value,disabled:!U.value.length,onClick:Rt},{default:a(()=>[...n[38]||=[o(` 导出 Excel `,-1)]]),_:1},8,[`loading`,`disabled`]),_(x,{direction:`vertical`,class:`dash-venue-pc-filters__vdiv`}),_(b,{size:`small`,disabled:L.value,onClick:n[3]||=e=>$(`week`)},{default:a(()=>[...n[39]||=[o(`本周`,-1)]]),_:1},8,[`disabled`]),_(b,{size:`small`,disabled:L.value,onClick:n[4]||=e=>$(`month`)},{default:a(()=>[...n[40]||=[o(`本月`,-1)]]),_:1},8,[`disabled`]),_(b,{size:`small`,disabled:L.value,onClick:n[5]||=e=>$(`year`)},{default:a(()=>[...n[41]||=[o(`本年`,-1)]]),_:1},8,[`disabled`])]),_:1})]),_(E,{loading:L.value},{default:a(()=>[R.value?(t(),s(w,{key:0,type:`warning`,"show-icon":``,style:{"margin-bottom":`10px`}},{default:a(()=>[o(d(R.value),1)]),_:1})):c(``,!0),U.value.length?(t(),m(`div`,kt,[_(f,{class:`dash-table dash-venue-pc-table`,"row-key":`venueId`,columns:jt,data:U.value,pagination:!1,size:`small`,"table-layout-fixed":``,scroll:{y:260},summary:It},null,8,[`data`])])):!L.value&&!R.value?(t(),s(T,{key:2,description:`暂无数据,可调时间段或检查客流归档与场馆映射`})):c(``,!0)]),_:1},8,[`loading`])],64)):(t(),s(p,{key:0,type:`warning`},{default:a(()=>[...n[36]||=[o(` 未配置 VITE_PEOPLE_COUNTING_URL 时无法加载该项。请在构建环境变量中配置海康客流 people-counting 完整接口地址。 `,-1)]]),_:1}))])])])]),c(``,!0)])])}}}),[[`__scopeId`,`data-v-d835b1ed`]]);export{M as default};