PageSourceSearch

http://huangfeihegroup.com/assets/publication-DKIJJpRG.js

js huangfeihegroup.com collected 2026-10-08 08:02:02 UTC 8,007 bytes, 1 lines download raw bytes

1import{F as V,m as j}from"./Footer-BeTOwmil.js";import{a as D,b as N}from"./article-D0nxU6cg.js";import{_ as m,c,a as r,t as u,k as h,e as p,v as I,F as C,j as S,r as _,o as n,h as T,A as P,g as R,B as Y,d as o,w as d,z as v,i as E,T as k,f as w}from"./index-Dr00shbo.js";import"./http-DiYzuFrP.js";import"./index-DhXgJQ-f.js";const K={name:"ArticleList",components:{articleblock:D},props:{articles:Array,year:String,loading:Boolean,query:String},emits:["reload"],data(){return{content:"",page_not_found:!1}},methods:{redirect_to(){this.page_not_found=!1,this.$emit("reload")}},computed:{sectionTitle(){return this.$t("pub_heading")}},created(){this.content=this.sectionTitle},watch:{articles(t){t&&t.length===0?this.page_not_found=!0:this.page_not_found=!1}}},M={class:"articles"},U={key:0,class:"header"},O={class:"not-found"},G={class:"query_word"},H={key:1,class:"empty-hint"};function J(t,e,i,q,s,a){const l=_("articleblock");return n(),c("div",M,[i.articles.length>0?(n(),c("div",U,[r("span",null,u(s.content),1)])):h("",!0),p(r("div",O,[e[1]||(e[1]=r("h1",null,"没有匹配的搜索结果",-1)),e[2]||(e[2]=r("span",null,'关键词"',-1)),r("span",G,u(i.query),1),e[3]||(e[3]=r("span",null,[r("i",{class:"iconfont icon-search"})],-1)),e[4]||(e[4]=r("span",null,'"没有匹配的结果',-1)),e[5]||(e[5]=r("span",null,"您可以尝试其他相关的关键字,或者查看",-1)),r("span",{class:"redirect",onClick:e[0]||(e[0]=(...g)=>a.redirect_to&&a.redirect_to(...g))},"全部论文成果")],512),[[I,s.page_not_found]]),!s.page_not_found&&i.articles.length===0?(n(),c("div",H,[e[6]||(e[6]=r("div",{class:"empty-icon"},"—",-1)),r("p",null,u(i.loading?"加载中...":"暂无数据"),1)])):h("",!0),(n(!0),c(C,null,S(i.articles,g=>(n(),T(l,{key:g.id,article:g,query:i.query},null,8,["article","query"]))),128))])}const Q=m(K,[["render",J],["__scopeId","data-v-21686ddf"]]),W={name:"sidebar",props:{query:Object,year:String},data(){return{query_year:"",query_word:this.query.query||"",pub_year:(()=>{const t=new Date().getFullYear(),e=[];for(let i=t;i>=2003;i--)e.push(i);return e})()}},methods:{toggle(){this.$emit("toggle")},search(){this.$emit("search",{keywords:this.query_word})},select_year(){this.$emit("year_change",{year:this.query_year})},clearSearch(){this.query_word="",this.$emit("search",{keywords:""})}},watch:{query:{handler(t){this.query_word=t.query||""},deep:!0},year(t){t==="all"&&(this.query_year="")},query_word(t){t===""&&this.query.query&&this.$emit("search",{keywords:""})}}},X={class:"sidebar"},Z={class:"sidebar-inner"},$={class:"sidebar-header"},ee={class:"sidebar-title"},te={class:"sidebar-body"},re={class:"search-box"},se=["placeholder"],ae={class:"year-box"},le={class:"year-label"},ne={value:""},ie=["value"];function oe(t,e,i,q,s,a){return n(),c("div",X,[r("div",Z,[r("div",$,[r("span",ee,u(t.$t("filter")),1),r("span",{class:"sidebar-close",onClick:e[0]||(e[0]=(...l)=>a.toggle&&a.toggle(...l))},"✕")]),r("div",te,[r("div",re,[p(r("input",{"onUpdate:modelValue":e[1]||(e[1]=l=>s.query_word=l),type:"text",placeholder:t.$t("search_placeholder"),class:"search-input",onKeyup:e[2]||(e[2]=R((...l)=>a.search&&a.search(...l),["enter"]))},null,40,se),[[P,s.query_word]]),s.query_word?(n(),c("span",{key:0,class:"search-clear-btn",onClick:e[3]||(e[3]=(...l)=>a.clearSearch&&a.clearSearch(...l))},"✕")):h("",!0),r("button",{class:"search-btn",onClick:e[4]||(e[4]=(...l)=>a.search&&a.search(...l))},[...e[7]||(e[7]=[r("i",{class:"iconfont icon-search"},null,-1),r("span",null,"搜索",-1)])])]),r("div",ae,[r("label",le,u(t.$t("year_label")),1),p(r("select",{"onUpdate:modelValue":e[5]||(e[5]=l=>s.query_year=l),onChange:e[6]||(e[6]=(...l)=>a.select_year&&a.select_year(...l)),class:"year-select"},[r("option",ne,u(t.$t("year_all")),1),(n(!0),c(C,null,S(s.pub_year,l=>(n(),c("option",{key:l,value:l},u(l),9,ie))),128))],544),[[Y,s.query_year]])])])])])}const ue=m(W,[["render",oe],["__scopeId","data-v-43aac8d9"]]),ce={name:"publication",components:{ArticleList:Q,myheader:j,Footer:V,sidebar:ue},data(){return{current_page:1,total:100,page_size:15,articles:[],query:"",year:"all",result:{success:!1,query:""},untoggled_search:!0,wide_sidebar:"sidebar-wrapper",filter_state:"filter"}},watch:{$route(t,e){}},methods:{_clear_filter(){this.query="",this.year="all",this._pagination_query()},_clear_year(){this.year="all",this._pagination_query()},_clear_all(){this.query="",this.year="all",this.current_page=1,this._pagination_query()},_toggle(){this.untoggled_search=!this.untoggled_search},_year_jump(t){this.current_page=1,this.year=t.year,this._pagination_query()},_search(t){this.current_page=1,this.query=t.keywords,this._pagination_query().then(()=>
1{this.articles.forEach(e=>{e.open=!0})})},_pagination_query(){this.result.success=!1,N.getArticles(this.page_size,this.current_page,this.year,this.query).then(t=>{t.message=="Success"?(this.articles=t.data,this.current_page=t.page,this.page_size=t.pagesize,this.total=t.total,this.result={message:`查询成功,返回${this.total}条数据`,success:!0,query:this.query}):(this.total=0,this.current_page=1,this.articles=[],this.result={message:"查询无结果",success:!0,query:this.query}),window.scrollTo(0,0)}).catch(()=>{this.articles=[],this.total=0,this.result={success:!0,query:this.query,message:"加载失败,请检查网络后刷新重试"}})},handle_page_change(t){this.current_page=t,v().setPubPage(t),this._pagination_query()}},beforeRouteLeave(t,e,i){this.query="",this.year="all",i()},mounted(){const t=v();this.current_page=t.pubPage||1,this.query="",this.year=this.$route.query.year||"all",this._pagination_query()}},_e={class:"common-layout"},de={key:0,class:"search-bar"},he={class:"search-bar-tags"},ye={key:0,class:"filter-tag"},ge={key:1,class:"filter-tag"};function pe(t,e,i,q,s,a){const l=_("myheader"),g=_("sidebar"),b=_("el-aside"),z=_("ArticleList"),A=_("el-pagination"),F=_("el-main"),f=_("el-container"),x=_("Footer"),B=_("el-footer"),L=E("loading");return n(),c("div",null,[r("div",_e,[o(l,{active:1}),o(f,null,{default:d(()=>[o(f,null,{default:d(()=>[o(b,{class:"sidebar-wrapper"},{default:d(()=>[o(k,{name:"fade-filter"},{default:d(()=>[s.untoggled_search?h("",!0):(n(),c("div",{key:0,class:"filter-btn",onClick:e[0]||(e[0]=(...y)=>a._toggle&&a._toggle(...y))},[e[4]||(e[4]=r("i",{class:"iconfont icon-search"},null,-1)),r("span",null,u(t.$t("filter")),1)]))]),_:1}),o(k,{name:"fade-sidebar"},{default:d(()=>[s.untoggled_search?(n(),T(g,{key:0,onToggle:a._toggle,onSearch:a._search,query:s.result,year:s.year,onYear_change:a._year_jump},null,8,["onToggle","onSearch","query","year","onYear_change"])):h("",!0)]),_:1})]),_:1}),o(f,null,{default:d(()=>[o(F,{class:"main-area"},{default:d(()=>[s.result.query||s.year&&s.year!=="all"?(n(),c("div",de,[r("div",he,[s.result.query?(n(),c("span",ye,[w(u(t.$t("search_label"))+":",1),r("strong",null,u(s.result.query),1),r("i",{class:"filter-tag-close",onClick:e[1]||(e[1]=(...y)=>a._clear_filter&&a._clear_filter(...y))},"✕")])):h("",!0),s.year&&s.year!=="all"?(n(),c("span",ge,[w(u(t.$t("year_short"))+":",1),r("strong",null,u(s.year),1),r("i",{class:"filter-tag-close",onClick:e[2]||(e[2]=(...y)=>a._clear_year&&a._clear_year(...y))},"✕")])):h("",!0)]),r("span",{class:"search-clear",onClick:e[3]||(e[3]=(...y)=>a._clear_all&&a._clear_all(...y))},u(t.$t("clear_filters")),1)])):h("",!0),o(z,{onReload:a._clear_filter,query:s.result.query,loading:s.result.success,articles:s.articles},null,8,["onReload","query","loading","articles"]),p(o(A,{background:"",layout:"prev, pager, next, jumper",onCurrentChange:a.handle_page_change,total:s.total,"hide-on-single-page":!0,"current-page":s.current_page,"page-size":s.page_size},null,8,["onCurrentChange","total","current-page","page-size"]),[[L,!s.result.success]])]),_:1}),o(b,{class:"sidebar-wrapper-xs",width:"200px"})]),_:1})]),_:1}),o(B,{class:"footer"},{default:d(()=>[o(x)]),_:1})]),_:1})])])}const ke=m(ce,[["render",pe],["__scopeId","data-v-69f3833f"]]);export{ke 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.