PageSourceSearch

https://infox-med.com/assets/docItem-B_EJcBgA.js

js infox-med.com collected 2026-10-02 00:31:10 UTC 8,098 bytes, 1 lines download raw bytes

1import{c as w,w as A,C as o,J as P,T as k,G as n,D as a,S as b,Y as D,N as m,K as u,y as U,H as X,V as _,a9 as ee,B as h,F as v,Q as te,af as ne,M as g,d as S}from"./element-plus-C1WnSHw6.js";import{U as oe,t as ie}from"./article-Vp5I4T9d.js";import{_ as se}from"./dialog-Bu7vLCTQ.js";import{_ as ae,u as le,s as de,b as ce,T as me,e as ue,i as re}from"./index-CQfNsJSs.js";const fe={class:"reference-content"},he={class:"format"},be={class:"content"},ye=["onClick"],ve={__name:"CitationDialog",props:{modelValue:{type:Boolean,default:!1},documentId:{type:[String,Number],required:!0}},emits:["update:modelValue"],setup(e,{emit:x}){const r=e,V=x,f=w(r.modelValue),y=w([]);A(()=>r.modelValue,l=>{f.value=l}),A(f,async l=>{V("update:modelValue",l),l&&r.documentId&&await I(r.documentId)}),A(()=>r.documentId,async l=>{l&&f.value&&await I(l)});const I=async l=>{const d=await oe({documentId:l});d.code===0&&d.data&&(y.value=Object.entries(d.data).map(([c,C])=>({format:c.slice(-3).toUpperCase(),content:C})))},$=l=>{if(!l)return;const d=document.createElement("input");d.value=l,document.body.appendChild(d),d.select(),document.execCommand("copy"),document.body.removeChild(d),U.success("复制成功")};return(l,d)=>(o(),P(se,{modelValue:f.value,"onUpdate:modelValue":d[0]||(d[0]=c=>f.value=c),title:"引用格式",width:"672px"},{default:k(()=>[n("div",fe,[d[1]||(d[1]=n("div",{class:"reference-title"},[n("span",{class:"format"},"格式"),n("span",{class:"content"},"内容"),n("span",{class:"operate"},"操作")],-1)),(o(!0),a(b,null,D(y.value,c=>(o(),a("div",{class:"reference-item",key:c.format},[n("span",he,m(c.format),1),n("span",be,m(c.content||"无"),1),c.content?(o(),a("span",{key:0,class:"operate",onClick:C=>$(c.content)},"复制",8,ye)):u("",!0)]))),128))])]),_:1},8,["modelValue"]))}},ge={class:"page-two-right-item"},ke={class:"item-title"},we={key:1,class:"item-index"},Ie={key:2,class:"equipment-icon"},Ce={key:3,class:"icon"},Te=["innerHTML"],De=["innerHTML"],xe=["innerHTML"],Ve={class:"item-tab"},$e={class:"time"},Le={class:"state"},pe={class:"journal"},ze={class:"tab dfc"},Ae={key:0,class:"keywords-more dfc"},Pe={key:0,class:"item-abstract"},Me=["innerHTML"],Be={class:"item-operate"},Fe={class:"item-operate-left"},Ne={key:0,class:"doi"},Re={key:1,class:"partition"},Se={key:2,class:"partition"},Ue={key:3,class:"if"},He={class:"item-operate-right"},Ee={key:1,class:"pdf-toolbar"},qe=["onClick"],je={__name:"docItem",props:{item:{type:Object,required:!0},showCheckbox:{type:Boolean,required:!1},isIndex:{type:Boolean,default:!1},total:{type:Number,default:0},index:{type:Number,default:0},isIcon:{type:Boolean,default:!1},showPdfToolbar:{type:Boolean,default:!1}},emits:["checkboxChange"],setup(e,{emit:x}){const{proxy:r}=X(),V=le(),{token:f,userId:y}=de(V),I=ce(),$=x,l=e,d=w([]),c=()=>{d.value=me().map(s=>String(s.id))},C=S(()=>I.path!=="/userInfo/read"&&d.value.includes(String(l.item.id)));_(()=>{c(),window.addEventListener("focus",c),window.addEventListener("storage",c)}),ee(()=>{window.removeEventListener("focus",c),window.removeEventListener("storage",c)});const H=[{label:"原文"},{label:"翻译",tab:"translate"},{label:"对话PDF"},{label:"生成PPT",tab:"116-1"},{label:"AI解读",tab:"9"},{label:"思维导图",tab:"1151-1"}],E=s=>{if(!f.value||!y.value){r.$login();return}re("pdfDetails",{id:l.item.id,...s.tab?{tab:s.tab}:{}})},M=S(()=>l.item.docAbstract||l.item.doc_abstract||l.item.docAbstractZh||l.item.doc_abstract_zh),q=async s=>{var T;r.$myCount("PC-列表翻译");const t=await ie({documentId:s.id});t.code===0&&t.data?(s.docTitleZh=t.data.docTitleZh||t.data.doc_title_zh,s.doc_title_zh=t.data.docTitleZh||t.data.doc_title_zh):U.error(((T=t.data)==null?void 0:T.msg)||"翻译失败")},L=s=>{if(!f.value||!y.value){r.$login();return}ue(s.id),c()},j=s=>{$("checkboxChange",l.item,s)},Z=w([{label:"Endnote",id:"enw"},{label:"Noteexpress",id:"net"}]),J=(s,t)=>{window.open(`https://api.infox-med.com/home/getDocumentMetaInfoFile?documentId=${t.id}&filetype=${s}`)},p=w(!1),O=s=>{p.value=!0},B=s=>s.qiniuUrl==="1"?"PDF":!s.docPublishType&&!s.doc_publish_type?"":["Retracted Publication","已撤销出版物","Retraction of Publication"].includes(s.docPublishType||s.doc_publish_type)&&s.qiniuUrl!=="1"?"撤稿":"";return(s,t)=>{var F,N,R;const T=h("el-checkbox"),G=h("SvgIcon"),K=h("svg-icon"),Q=h("el-dropdown-item"),Y=h("el-dropdown-menu"),W=h("el-dropdown");return o(),a("div",ge,[n("div",ke,[e.showCheckbox?(o(),P(T,{key:0,modelValue:e.item.checked,"onUpdate:modelValue":t[0]||(t[0]=i=>e.item.checked=i),onChange:j},null,8,["modelValue"])):u("",!0),e.isIndex?(o(),a("span",we,m(e.total+e.index+1)+".",1)):u("",!0),e.isIcon?(o(),a("span",Ie,[v(G,{name:e.item.channel===0?"myInfo/appDownloadIcon":"myInfo/pcDownloadIcon",className:"downloadIcon",size:"20"}
1,null,8,["name"])])):u("",!0),B(e.item)?(o(),a("span",Ce,m(B(e.item)),1)):u("",!0),n("span",{class:te(["name",{"is-read":C.value}]),onClick:t[1]||(t[1]=i=>L(e.item))},[e.item.highLightDocTitle?(o(),a("span",{key:0,class:"high-light",innerHTML:e.item.highLightDocTitle},null,8,Te)):(o(),a("span",{key:1,innerHTML:e.item.docTitle||e.item.doc_title},null,8,De))],2)]),n("div",{class:"item-desc",onClick:t[3]||(t[3]=i=>L(e.item))},[n("span",{innerHTML:e.item.docTitleZh||e.item.doc_title_zh},null,8,xe),!e.item.docTitleZh&&!e.item.doc_title_zh?(o(),a("span",{key:0,onClick:t[2]||(t[2]=ne(i=>q(e.item),["stop"])),class:"translate-btn"},[v(K,{name:"translate",size:"16"}),t[8]||(t[8]=g(" 翻译 ",-1))])):u("",!0)]),n("div",Ve,[n("span",$e,m(s.$initTime(e.item.docPublishTime||e.item.doc_publish_time)||"-"),1),t[11]||(t[11]=n("span",{class:"line"},null,-1)),n("div",Le,[t[9]||(t[9]=n("span",{class:"circle"},null,-1)),n("span",pe,m(e.item.docSourceJournal||e.item.doc_source_journal),1)]),e.item.docAuthor||e.item.doc_author?(o(),a(b,{key:0},[t[10]||(t[10]=n("span",{class:"line"},null,-1)),(o(!0),a(b,null,D((F=e.item.docAuthor||e.item.doc_author)==null?void 0:F.split(",").slice(0,3),i=>{var z;return o(),a("div",{class:"keywords-item",key:i},[n("span",ze,m(((z=i==null?void 0:i.trim())==null?void 0:z.substring(0,1))||"-"),1),n("span",null,m(i==null?void 0:i.trim()),1)])}),128)),((N=e.item.docAuthor||e.item.doc_author)==null?void 0:N.split(",").length)>3?(o(),a("div",Ae," +"+m(((R=e.item.docAuthor||e.item.doc_author)==null?void 0:R.split(",").length)-3),1)):u("",!0)],64)):u("",!0)]),e.item.highLightDocAbstract||M.value?(o(),a("div",Pe,[t[12]||(t[12]=g(" 摘要: ",-1)),e.item.highLightDocAbstract?(o(),a("span",{key:0,class:"high-light",innerHTML:e.item.highLightDocAbstract},null,8,Me)):(o(),a(b,{key:1},[g(m(M.value),1)],64))])):u("",!0),n("div",Be,[n("div",Fe,[e.item.docDoi||e.item.doc_doi?(o(),a("span",Ne,"DOI:"+m(e.item.docDoi||e.item.doc_doi),1)):u("",!0),e.item.jcrArea?(o(),a("span",Re,"JCR "+m(e.item.jcrArea),1)):u("",!0),e.item.zkyArea||e.item.zky_area_zh?(o(),a("span",Se,"中科院分区:"+m(e.item.zkyArea||e.item.zky_area_zh),1)):u("",!0),e.item.docIf||e.item.doc_if_zh?(o(),a("span",Ue,"IF: "+m(e.item.docIf||e.item.doc_if_zh),1)):u("",!0)]),n("div",He,[n("span",{onClick:t[4]||(t[4]=i=>O(e.item))},"引用"),v(W,{placement:"bottom",onCommand:t[5]||(t[5]=i=>J(i,e.item)),"show-timeout":0,trigger:"click","popper-class":"doc-item-dropdown",teleported:!1},{dropdown:k(()=>[v(Y,null,{default:k(()=>[(o(!0),a(b,null,D(Z.value,i=>(o(),P(Q,{key:i.id,command:i.id},{default:k(()=>[g(m(i.label),1)]),_:2},1032,["command"]))),128))]),_:1})]),default:k(()=>[t[13]||(t[13]=n("span",null,[n("img",{src:"https://img.infox-med.com/webImg/infoxmed-website/home/icon-download-blue.svg",alt:""}),g(" 导出 ")],-1))]),_:1})])]),e.showPdfToolbar?(o(),a("div",Ee,[n("button",{type:"button",onClick:t[6]||(t[6]=i=>L(e.item))},"详情"),e.item.qiniuUrl==="1"?(o(),a(b,{key:0},D(H,i=>n("button",{key:i.label,type:"button",onClick:z=>E(i)},m(i.label),9,qe)),64)):u("",!0)])):u("",!0),v(ve,{modelValue:p.value,"onUpdate:modelValue":t[7]||(t[7]=i=>p.value=i),documentId:e.item.id},null,8,["modelValue","documentId"])])}}},Ke=ae(je,[["__scopeId","data-v-5047d647"]]);export{Ke as D,ve as _};

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.