import{V as S,a0 as C,r as u,O as L,w as a,a9 as U,P as $,M as I,W as b,m as f,$ as d,p as s,ad as k,ao as c,N as V,o as m,ap as D,Z as r,an as P,X as T,Y as A}from"./common.modules-adc6b33e.js";import{bo as n,cb as j,_ as q}from"./page-activity-ActivityDetail-b9249b49.js";import{L as O}from"./page-activity-DailySignIn-37493f03.js";import"./native/index-0b5e3b14.js";import"./en-8e350547.js";import"./page-activity-Championship-4cc13bf8.js";window.getBuildInfo=function(){return{buildTime:"4/17/2025, 12:09:57 PM",branch:" commitId:8bf9f27a915f5dcd9b9436e446b585b05218b863"}};const Q={class:"subordinate__container"},E={class:"subordinate__container-header"},F={class:"subordinate__container-content"},G=S({__name:"index",setup(H){const Y=C();function g(){Y.back()}const h=u(!0),y=u(),t=L({startDate:a(n().today.start*1e3).format("YYYY-MM-DD HH:mm:ss"),endDate:a(n().today.end*1e3).format("YYYY-MM-DD HH:mm:ss"),level:1});let l=U("permission",null);l&&(l=JSON.parse(l.value));const p=u([]),w=$(()=>l?l[16]:!0),B=new Date,M=new Date(B);M.setDate(M.getDate()-1);const _=u(0);return I(_,o=>{switch(o){case 0:t.startDate=a(n().today.start*1e3).format("YYYY-MM-DD HH:mm:ss"),t.endDate=a(n().today.end*1e3).format("YYYY-MM-DD HH:mm:ss");break;case 1:t.startDate=a(n().yesterday.start*1e3).format("YYYY-MM-DD HH:mm:ss"),t.endDate=a(n().yesterday.end*1e3).format("YYYY-MM-DD HH:mm:ss");break;case 2:t.startDate=a(n().thisMonth.start*1e3).format("YYYY-MM-DD HH:mm:ss"),t.endDate=a(n().thisMonth.end*1e3).format("YYYY-MM-DD HH:mm:ss");break}y.value.resetRefresh()}),(o,i)=>{const N=b("NavBar"),v=b("van-tab"),x=b("van-tabs");return m(),f("div",Q,[d(N,{title:o.$t("addSubor"),"left-arrow":"",onClickLeft:g},null,8,["title"]),s("div",E,[k(` <van-tabs class="top-tabBar" v-model:active="topActive" type="card" color="transparent" background="transparent"
				ref="tabsRef" ellipsis>
				<van-tab>
					<template #title> 直属下级 </template>
				</van-tab>
				<van-tab>
					<template #title> 全部下级 </template>
				</van-tab>
			</van-tabs> `),d(x,{class:"footer-tabBar",active:_.value,"onUpdate:active":i[0]||(i[0]=e=>_.value=e),type:"card",color:"transparent",background:"transparent",ref:"tabsRef",ellipsis:""},{default:c(()=>[d(v,null,{title:c(()=>[D(r(o.$t("code9101")),1)]),_:1}),d(v,null,{title:c(()=>[D(r(o.$t("code9102")),1)]),_:1}),w.value?(m(),P(v,{key:0},{title:c(()=>[D(r(o.$t("code9105")),1)]),_:1})):k("v-if",!0)]),_:1},8,["active"])]),d(O,{list:p.value,"onUpdate:list":i[1]||(i[1]=e=>p.value=e),"page-query":t,"onUpdate:pageQuery":i[2]||(i[2]=e=>t=e),api:V(j),distance:100,ref_key:"listRef",ref:y,"is-auto-load":h.value},{content:c(()=>[s("div",F,[(m(!0),f(T,null,A(p.value,(e,R)=>(m(),f("div",{class:"subordinate__container-content__item ar-1px-b",key:R},[s("div",null,[s("span",null,r(e.bindUserName),1),s("span",null,"UID:"+r(e.bindUserID),1)]),s("div",null,[s("span",null,r(o.$t("heroDirectSub")),1),s("span",null,r(e.bindTime),1)])]))),128))])]),_:1},8,["list","page-query","api","is-auto-load"])])}}});const ee=q(G,[["__scopeId","data-v-221aa0df"],["__file","/usr/local/jenkins-prod/workspace/ar079-india-tashanwin/src/views/promotion/Subordinate/index.vue"]]);export{ee as default};
//# sourceMappingURL=page-promotion-Subordinate-9b6cc518.js.map
