import{C as R,N as C,r as u,w as S,q as a,a3 as L,x as U,W as $,D as f,E as D,M as d,F as s,al as M,as as c,J as I,I as p,ay as b,K as r,ar as V,G as j,H as q}from"./common.modules-7b90237f.js";import{bv as n,cj as A,_ as E}from"./page-activity-ActivityDetail-27bd7cf0.js";import{L as F}from"./page-activity-DailySignIn-63fcaba2.js";import"./page-turntable-assets-d6267459.js";import"./native/index-ecf1462d.js";import"./en-91d2fc72.js";import"./page-activity-Bonus-9d46271c.js";const G={class:"subordinate__container"},J={class:"subordinate__container-header"},P={class:"subordinate__container-content"},Q=R({__name:"index",setup(T){const H=C();function k(){H.back()}const g=u(!0),Y=u(),t=S({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=L("permission",null);l&&(l=JSON.parse(l.value));const m=u([]),h=U(()=>l?l[16]:!0),w=new Date,y=new Date(w);y.setDate(y.getDate()-1);const _=u(0);return $(_,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 x=f("NavBar"),v=f("van-tab"),N=f("van-tabs");return p(),D("div",G,[d(x,{title:o.$t("addSubor"),"left-arrow":"",onClickLeft:k},null,8,["title"]),s("div",J,[M(` <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(N,{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(()=>[b(r(o.$t("code9101")),1)]),_:1}),d(v,null,{title:c(()=>[b(r(o.$t("code9102")),1)]),_:1}),h.value?(p(),V(v,{key:0},{title:c(()=>[b(r(o.$t("code9105")),1)]),_:1})):M("v-if",!0)]),_:1},8,["active"])]),d(F,{list:m.value,"onUpdate:list":i[1]||(i[1]=e=>m.value=e),"page-query":t,"onUpdate:pageQuery":i[2]||(i[2]=e=>t=e),api:I(A),distance:100,ref_key:"listRef",ref:Y,"is-auto-load":g.value},{content:c(()=>[s("div",P,[(p(!0),D(j,null,q(m.value,(e,B)=>(p(),D("div",{class:"subordinate__container-content__item ar-1px-b",key:B},[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 te=E(Q,[["__scopeId","data-v-221aa0df"],["__file","/usr/local/jenkins-prod/workspace/ar079-india-tashanwin/src/views/promotion/Subordinate/index.vue"]]);export{te as default};
