PageSourceSearch

https://www.smnpo.cn/_nuxt/BOrV85Xf.js

js smnpo.cn collected 2026-10-07 00:49:46 UTC 4,119 bytes, 1 lines download raw bytes

1import{_ as T}from"./DRAGT-ia.js";import{e as W,r as s,a4 as F,J as P,g as D,j as O,c as d,o as v,a as o,U as x,I as n,a0 as j,a1 as w,a2 as S,b as V,dl as J,a8 as k,aq as $,t as y,d as X,z as q,cX as K}from"./GKt5HlR1.js";import{d as I}from"./C34qLuNx.js";import{g as G,d as H}from"./X6dqZNXE.js";import{_ as Q}from"./DlAUqK2U.js";import"./ChEfpFOq.js";import"./BT5TdWUM.js";import"./DAheOaXf.js";import"./1YjYVPtt.js";import"./Bh6H2ams.js";import"./CyldZJmM.js";import"./DgzkMVZg.js";import"./JAUZZBS7.js";import"./BETvPwuC.js";import"./ChK-751r.js";import"./By-ptc8i.js";import"./DhzQam4H.js";import"./Df8q6p11.js";import"./DijwXHuY.js";import"./BB_Ol6Sd.js";import"./BF4wDXF5.js";import"./CcHeFseF.js";import"./CLqh14L_.js";import"./CSWfvKBj.js";import"./B98XR3wh.js";import"./CAeD7iaq.js";import"./DaYl2lx0.js";/* empty css        */import"./D6-XlEtG.js";const Z={class:"briefingbg arial_font mt-[20px] px-[20px] py-[10px] text-[#097bcb] overflow-hidden flex items-center"},ee=["onClick"],te={class:"px-[20px] py-[20px]"},ae={class:"text-left"},oe=["onClick"],se={class:"ml-[15px] w-[70%]"},ne={class:"line-clamp-1 cursor-pointer text-[16px]"},le={class:"text-sm"},ie={class:"ml-[4px] text-gray-400"},re={class:"mt-[20px] flex justify-center"},ce=W({__name:"bulletin",setup(pe){const U=q(),p=s([]),l=s(I().year()),c=s(0),C=s(!1),N=s(!1),f=s(null),g=s(null),_=s(0),h=s(0),Y=s(0);s(new Date().getFullYear());const b=s([]),i=F({pageNum:1,pageSize:15}),z=a=>{i.pageNum=1,l.value=a},u=()=>{g.value&&f.value&&(_.value=g.value.clientWidth,h.value=f.value.scrollWidth,C.value=c.value>0,N.value=c.value<h.value-_.value)},M=()=>{c.value=Math.max(c.value-160,0),u()},R=()=>{const t=h.value-_.value;c.value=Math.min(c.value+160,t),u()},B=(a,t="YYYY-MM-DD")=>I(a).format(t),L=async()=>{try{const r=((await J({columnId:G(k.COMPANY_DATA_INDUSTRY_JOURNAL_BULLETIN),sortKind:"article_date",sortAd:"desc"})).msg||"").split(",").map(e=>{const m=e.trim().replace(/[^\d]/g,"");return parseInt(m)}).filter(e=>!isNaN(e)&&e>2e3&&e<=new Date().getFullYear());p.value=[...new Set(r)].sort((e,m)=>e-m),p.value.length>0?l.value=p.value[0]:(l.value=new Date().getFullYear(),p.value=[l.value])}catch(a){console.error("获取年份失败",a),l.value=new Date().getFullYear(),p.value=[l.value]}finally{$(u)}},A=()=>{H(k.COMPANY_DATA_INDUSTRY_JOURNAL_BULLETIN,l.value,i.pageNum,i.pageSize).then(a=>{var t,r;Y.value=(t=a.total)!=null?t:0,b.value=(r=a.rows)!=null?r:[]})};P(l,()=>{A()},{immediate:!0});const E=a=>{var t;if(a.fileList&&a.fileList.length>0){const r=U.public.backendApi+((t=a.fileList.at(0))==null?void 0:t.filePath);window.open(r)}else K.warning("未查询到文件")};return D(()=>{L()}),D(async()=>{await L(),u(),window.addEventListener("resize",u)}),O(()=>{window.removeEventListener("resize",u)}),(a,t)=>{const r=T;return v(),d(w,null,[o("div",Z,[o("div",{class:"scroll-container w-full",ref_key:"scrollContainer",ref:g},[o("div",{class:x(["scroll-arrow left",{hidden:!n(C)}]),onClick:M}," < ",2),o("div",{class:"year",ref_key:"yearContainer",ref:f,style:j({transform:"translateX(".concat(-n(c),"px)")})},[(v(!0),d(w,null,S(n(p),(e,m)=>(v(),d("span",{key:e,class:x({hover:n(l)===e}),onClick:ue=>z(e)},y(e),11,ee))),128))],4),o("div",{class:x(["scroll-arrow right",{hidden:!n(N)}]),onClick:R}," > ",2)],512)]),o("div",te,[o("div",ae,[(v(!0),d(w,null,S(n(b),e=>(v(),d("div",{class:"relative flex justify-between border-b border-[#eee] px-[5px] py-[12px] transition ease-in hover:bg-[#f3f9ff]",onClick:m=>E(e)},[t[3]||(t[3]=o("span",{class:"absolute top-[21px] h-[5px] w-[5px] bg-[#4792CD]"}
1,null,-1)),o("h1",se,[o("a",ne,y(e.title),1)]),o("div",le,[o("span",ie,[t[2]||(t[2]=o("i",{class:"iconfont icon-shijian"},null,-1)),X(" "+y(B(e.articleDate)),1)])])],8,oe))),256)),o("div",re,[V(r,{total:n(Y),page:n(i).pageNum,"onUpdate:page":t[0]||(t[0]=e=>n(i).pageNum=e),limit:n(i).pageSize,"onUpdate:limit":t[1]||(t[1]=e=>n(i).pageSize=e),"current-page":n(i).pageNum,onPagination:A,layout:"prev, pager, next"},null,8,["total","page","limit","current-page"])])])])],64)}}}),Pe=Q(ce,[["__scopeId","data-v-577e0638"]]);export{Pe as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.