import{d as q,r as s,x as G,ax as w,V as H,dt as Y,o as Z,G as J,a as r,f as c,q as o,e as P,b as T,F as v,g as S,c as _,$ as U,t as M,h as l,ds as O,bA as W,bB as X,du as ee,dv as te,b5 as ae,_ as ne}from"./index-e450010e.js";import{a as oe,b as se,g as E,c as re}from"./index-907fb056.js";import{_ as le}from"./KnowledgeContent.vue_vue_type_style_index_0_lang-07a0fa53.js";const ie={class:"tab-box"},ue={class:"app-container"},ce={class:"content1"},de={class:"grid-tuijian"},pe=["src"],ge=["onClick"],ve=["src"],_e={class:"title-content"},me={class:"title-text"},he={class:"time-text"},fe={class:"pagination-box"},ye=q({__name:"index",setup(be){const d=s("tuijian"),z=s("推荐"),R=G(),{userKey:m,userToken:h}=R,f=s({idcardno:["1","2"],name:"a",icon:"b",wmNumber:"2",wmKey:"1",adminorg:"9999"}),p=s(),j=s();s();const $=w({userkey:m,usertoken:h}),I=w({atParentId:"",userkey:m,usertoken:h}),a=w({total:0,page:1,pagesize:7,archivesTypeAtParentId:"",gParentSun:"",key:String(f.value.wmKey),adminorg:String(f.value.adminorg),userkey:m,usertoken:h}),B=s();function N(t){t.srcElement.src=O,t.srcElement.onerror=null}const A=s(0),F=H();Y(F).currentRoute.value.fullPath,Z(()=>{oe($).then(({data:t})=>{f.value=t})});const K=t=>{d.value=t.props.name,t.props.name==="tuijian"?(a.gParentSun="",a.pagesize=7,z.value="推荐"):(a.gParentSun=t.props.name,a.pagesize=8,z.value=t.props.label),a.page=1,E(a).then(({data:e})=>{p.value=e.list,a.page=e.pageNum,a.total=e.total})},L=t=>{a.page=t,E(a).then(({data:e})=>{p.value=e.list})},V=s({}),y=s(!1);function D(t){y.value=!0,V.value=t}const Q=t=>{var e=new Date(t*1e3),g=e.getFullYear(),b=e.getMonth()+1,k=e.getDate(),x=e.getHours(),C=e.getMinutes(),n=e.getSeconds();return g+"-"+b+"-"+k+" "+x+":"+C+":"+n};return J(()=>{I.atParentId="16213847972425134",a.archivesTypeAtParentId="16213847972425134",se(I).then(({data:t})=>{j.value=t}).finally(()=>{A.value=100}),E(a).then(({data:t})=>{p.value=t.list,a.page=t.pageNum,a.total=t.total}),re(a).then(({data:t})=>{B.value=t.list})}),(t,e)=>{const g=W,b=X,k=ee,x=te,C=ae;return r(),c(v,null,[o("div",ie,[P(b,{modelValue:d.value,"onUpdate:modelValue":e[0]||(e[0]=n=>d.value=n),class:"demo-tabs",onTabClick:K},{default:T(()=>[P(g,{label:"推荐",name:"tuijian"}),(r(!0),c(v,null,S(j.value,(n,i)=>(r(),_(g,{key:i+1,label:n.atTitle,name:n.atId},null,8,["label","name"]))),128))]),_:1},8,["modelValue"])]),o("div",ue,[o("div",ce,[o("div",de,[d.value==="tuijian"?(r(),_(x,{key:0,"indicator-position":"outside",class:"mycarousel",arrow:"always"},{default:T(()=>[(r(!0),c(v,null,S(B.value,(n,i)=>(r(),_(k,{key:i,onClick:u=>D(n)},{default:T(()=>[o("img",{style:{width:"100%",height:"256px","border-radius":"8px"},referrerpolicy:"no-referrer",src:n.gThumbnail,fit:"fill",loading:"lazy",onError:e[1]||(e[1]=u=>N(u))},null,40,pe)]),_:2},1032,["onClick"]))),128))]),_:1})):U("",!0),(r(!0),c(v,null,S(p.value,(n,i)=>(r(),c("div",{key:i,class:"tuijian-card",onClick:u=>D(n)},[o("div",null,[o("img",{style:{width:"100%",height:"187px","border-top-left-radius":"8px","border-top-right-radius":"8px"},referrerpolicy:"no-referrer",src:n.gThumbnail,fit:"fill",loading:"lazy",onError:e[2]||(e[2]=u=>N(u))},null,40,ve)]),o("div",_e,[o("div",me,M(n.gTitle),1),o("div",he,M(Q(n.gEiteTime)),1)])],8,ge))),128))]),o("div",fe,[l(a).total>0?(r(),_(C,{key:0,background:"","current-page":l(a).page,"onUpdate:currentPage":e[3]||(e[3]=n=>l(a).page=n),"page-size":l(a).pagesize,"onUpdate:pageSize":e[4]||(e[4]=n=>l(a).pagesize=n),total:l(a).total,onCurrentChange:L},null,8,["current-page","page-size","total"])):U("",!0)])]),P(le,{isShow:y.value,"onUpdate:isShow":e[5]||(e[5]=n=>y.value=n),"content-source":V.value},null,8,["isShow","content-source"])])],64)}}});const we=ne(ye,[["__scopeId","data-v-88b98e7f"]]);export{we as default};