PageSourceSearch

https://fgwapp.yantai.gov.cn:8088/assets/index-DEeBv1FD.js

js yantai.gov.cn collected 2026-09-24 20:05:47 UTC 4,067 bytes, 1 lines download raw bytes

1import{e as W,I as Y}from"./element-plus-DzZP1CwD.js";import{r as m,B as N,C as B,D as o,M as f,Z as $,u as n,Q as F,U as x,Y as k,ay as j,av as J,af as b,T as U,aw as Q,ax as X}from"./vue-vendor-DAOKVcAn.js";import{b as Z}from"./gatewayPolicyExplain-CaEVSKnJ.js";import{_ as z,l as K}from"./index-C-FVUZm4.js";import ee from"./html2canvas-CBrSDip1.js";import{E as te}from"./jspdf-CGMb5V0l.js";import"./vendors-R4ZONZ7T.js";import"./quill-CHmFsIw_.js";import"./element-plus-icons-CztH6Q1c.js";const L=_=>(Q("data-v-918fac60"),_=_(),X(),_),oe={class:"policy-explain-detail"},ae={class:"nav-link"},ie={class:"policy-explain-detail-content__header"},se={class:"policy-explain-detail-content__header-title"},ne={class:"policy-explain-detail-content__header-bottom"},le={class:"bottom-left"},ce={class:"left-col left-col-one"},de={class:"left-col"},re={class:"bottom-right"},pe={class:"policy-explain-detail-content__body"},fe={class:"content"},_e=L(()=>o("div",{class:"item-title"},[o("a",{href:"#content"},"政策文件")],-1)),ue={class:"object"},he=L(()=>o("div",{class:"item-title"},[o("a",{href:"#object"},"解读内容")],-1)),me={class:"describe"},ve=["innerHTML"],ye={__name:"index",setup(_){const R=[{path:{name:"home"},label:"首页"},{path:{name:"GatewayPolicyExplainDetail"},label:"解读详情"}],S=j(),I=J(),c=m(!0),A=m(S.params.id),i=m({title:"",department:"",publishDate:"",fileName:"",content:""});function G(a){return{collectValue:a.collectValue||"0",collectItemId:a.id,collectTab:"POLICY_EXPLAIN",title:a.title}}function M(){Z(A.value).then(a=>{a.data&&(i.value={...i.value,...a.data},c.value=!1)}).finally(()=>{c.value=!1})}function V(a){let{fileTypeTab:s,fileTypeTabId:t}=a;switch(s){case"POLICY":I.push({name:"GatewayPolicyFile",params:{id:t}});break;case"POLICY_ITEM":I.push({name:"PolicyDetail",params:{id:t}});break}}const d=m(null),q=async()=>{if(d.value)try{c.value=!0;const a={scale:1,dpi:150,useCORS:!0,allowTaint:!0,letterRendering:1,backgroundColor:"#FFFFFF"},s=new te({orientation:"p",unit:"pt",format:"a4"}),t=d.value.querySelectorAll(".ql-editor > *"),l=d.value.getBoundingClientRect().width/592.28*841.89;for(let e=0;e<t.length;e++){const g=Math.ceil((t[e].offsetTop+t[e].offsetHeight)/l);if(t[e].offsetTop+t[e].offsetHeight<l*g&&t[e+1]&&t[e+1].offsetTop+t[e+1].offsetHeight>l*g){const E=t[e].parentNode,p=document.createElement("div");p.className="emptyDiv",p.style.background="#fff";const O=g*l-t[e].offsetTop-t[e].offsetHeight;p.style.height=`${O+32}px`,t[e].nextSibling?E.insertBefore(p,t[e]):E.appendChild(p)}}const r=await ee(d.value,a),u=r.toDataURL("image/png",1),y=document.querySelectorAll(".emptyDiv");for(let e=0;e<y.length;e++)y[e].parentNode.removeChild(y[e]);const D=parseInt(r.style.width,10)*2,w=parseInt(r.style.height,10)*2,H=592.28,P=592.28/D*w;let h=w,C=0;if(h<=l)s.addImage(u,"JPEG",0,0,H,P);else for(;h>0;)s.addImage(u,"JPEG",0,C,H,P),h-=D/592.28*841.89,C-=841.89,h>0&&s.addPage();s.save(i.value.title+".pdf")}catch(a){console.error("导出PDF失败:",a)}finally{c.value=!1}};return M(),(a,s)=>{const t=b("BreadcrumbNav"),v=W,T=b("FavIcon"),l=b("TextDisplay"),r=Y;return N(),B("div",oe,[o("div",ae,[f(t,{navList:R})]),$((N(),B("div",{ref_key:"policyExplainDetailRef",ref:d,class:"policy-explain-detail-content"},[f(v,{class:"pdfBut",onClick:q},{default:F(()=>[U("导出文件")]),_:1}),o("div",ie,[o("div",se,x(n(i).title),1),o("div",ne,[o("div",le,[o("div",ce,"解读单位:"+x(n(i).deptName),1),o("div",de,"解读日期:"+x(a.parseTime(n(i).publishDate,"{y}-{m}-{d}")),1)]),o("div",re,[f(v,{type:"text",onClick:k(u=>{},["stop"])},{default:F(()=>[f(T,{config:G(n(i))},null,8,["config"])]),_:1})])])]),o("div",pe,[o("div",fe,[_e,o("div",{class:"describe",style:{color:"#3a66fa","text-decoration":"underline",cursor:"pointer"},onClick:s[0]||(s[0]=k(u=>V(n(i)),["stop"]))},[f(l,{text:n(i).fileName,n:1},null,8,["text"])])]),o("div",ue,[he,o("div",me,[o("div",{class:"ql-editor",innerHTML:n(K)(n(i).content)},null,8,ve)])])])])),[[r,n(c)]])])}}},Ee=z(ye,[["__scopeId","data-v-918fac60"]]);export{Ee 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.