(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2a0ac0c7"],{"1a7c":function(t,e,a){"use strict";a("f1bb")},"480d":function(t,e,a){},"70d5":function(t,e,a){"use strict";a("480d")},d8bd:function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticStyle:{width:"60%",padding:"20px"}},[a("div",{staticClass:"title"},[a("span",{staticStyle:{"font-weight":"bold",margin:"0 8px"}},[t._v(t._s(t.searchData.text))]),t._v("搜索结果 ")]),a("ul",{staticClass:"search-list"},t._l(t.searchResult,(function(e){return a("li",[a("a",{staticClass:"title",on:{click:function(a){return t.onFileClicked(e)}}},[t._v(t._s(e.title))]),a("div",{staticClass:"content"},[t._v(" 【第"+t._s(e.pageNum)+"页】 "),a("span",{domProps:{innerHTML:t._s(e.textContent)}})])])})),0),a("el-pagination",{staticStyle:{"text-align":"left"},attrs:{layout:"prev, pager, next","page-size":t.searchData.pageSize,total:t.pager.total},on:{"current-change":t.pageChanged}})],1)},c=[],s=(a("d81d"),a("4d63"),a("ac1f"),a("25f0"),a("5319"),a("424e")),i={components:{},data:function(){return{searchData:{text:"",pageNum:1,pageSize:12},pager:{total:0},searchResult:[]}},computed:{},watch:{$route:function(t){this.doSearch()}},methods:{doSearch:function(){var t=this;this.searchData.text=this.$route.query.s,this.searchData.text&&Object(s["k"])(this.searchData).then((function(e){var a=e.code,n=e.data;e.message;0==a&&(t.pager.total=n.total,t.searchResult=n.records.map((function(e){return e.textContent=e.textContent.replace(new RegExp("(".concat(t.searchData.text,")"),"gim"),"<span class='key'>$1</span>"),e})))}))},onFileClicked:function(t){this.$store.dispatch("document/reader",{id:t.documentId})},pageChanged:function(t){this.searchData.pageNum=t,this.doSearch()}},created:function(){this.doSearch()},mounted:function(){}},o=i,r=(a("70d5"),a("1a7c"),a("2877")),u=Object(r["a"])(o,n,c,!1,null,"34f4ccfd",null);e["default"]=u.exports},f1bb:function(t,e,a){}}]);
//# sourceMappingURL=chunk-2a0ac0c7.ea6b837b.js.map