import{U as S,$ as U,r as m,N as C,v as a,a8 as L,O as $,K as I,V as f,m as b,Z as l,p as s,ad as k,an as c,M as V,o as u,ao as D,Y as r,am as A,W as T,X as P}from"./common.modules-7ef9f935.js";import{bp as n,cc as q,_ as E}from"./page-activity-ActivityDetail-6651511c.js";import{L as O}from"./page-activity-DailySignIn-ca25ffbf.js";import"./native/index-1870b44d.js";import"./en-fc63d25a.js";import"./page-activity-Championship-f257e4a3.js";window.getBuildInfo=function(){return{buildTime:"3/28/2025, 7:06:51 PM",branch:"origin/masterBranch/main commitId:afb5d46f657248d3137decf21a49f44fbff20383"}};const Q={class:"subordinate__container"},j={class:"subordinate__container-header"},F={class:"subordinate__container-content"},G=S({__name:"index",setup(H){const Y=U();function g(){Y.back()}const h=m(!0),y=m(),t=C({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 d=L("permission",null);d&&(d=JSON.parse(d.value));const p=m([]),w=$(()=>d?d[16]:!0),B=new Date,M=new Date(B);M.setDate(M.getDate()-1);const _=m(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=f("NavBar"),v=f("van-tab"),x=f("van-tabs");return u(),b("div",Q,[l(N,{title:o.$t("addSubor"),"left-arrow":"",onClickLeft:g},null,8,["title"]),s("div",j,[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> `),l(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(()=>[l(v,null,{title:c(()=>[D(r(o.$t("code9101")),1)]),_:1}),l(v,null,{title:c(()=>[D(r(o.$t("code9102")),1)]),_:1}),w.value?(u(),A(v,{key:0},{title:c(()=>[D(r(o.$t("code9105")),1)]),_:1})):k("v-if",!0)]),_:1},8,["active"])]),l(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(q),distance:100,ref_key:"listRef",ref:y,"is-auto-load":h.value},{content:c(()=>[s("div",F,[(u(!0),b(T,null,P(p.value,(e,R)=>(u(),b("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=E(G,[["__scopeId","data-v-221aa0df"],["__file","/var/lib/jenkins/workspace/web-印度-ar050-daman-01/src/views/promotion/Subordinate/index.vue"]]);export{ee as default};
//# sourceMappingURL=page-promotion-Subordinate-4d7716e5.js.map
