1 line
11 KiB
JavaScript
1 line
11 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-d3f2dd86"],{"1b9f":function(t,e,a){},"333d":function(t,e,a){"use strict";var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"pagination-container",class:{hidden:t.hidden}},[a("el-pagination",t._b({attrs:{background:t.background,"current-page":t.currentPage,"page-size":t.pageSize,layout:t.layout,"page-sizes":t.pageSizes,total:t.total},on:{"update:currentPage":function(e){t.currentPage=e},"update:current-page":function(e){t.currentPage=e},"update:pageSize":function(e){t.pageSize=e},"update:page-size":function(e){t.pageSize=e},"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}},"el-pagination",t.$attrs,!1))],1)},r=[];a("c5f6");Math.easeInOutQuad=function(t,e,a,n){return t/=n/2,t<1?a/2*t*t+e:(t--,-a/2*(t*(t-2)-1)+e)};var i=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(t){window.setTimeout(t,1e3/60)}}();function s(t){document.documentElement.scrollTop=t,document.body.parentNode.scrollTop=t,document.body.scrollTop=t}function l(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function o(t,e,a){var n=l(),r=t-n,o=20,c=0;e="undefined"===typeof e?500:e;var u=function t(){c+=o;var l=Math.easeInOutQuad(c,n,r,e);s(l),c<e?i(t):a&&"function"===typeof a&&a()};u()}var c={name:"Pagination",props:{total:{required:!0,type:Number},page:{type:Number,default:1},limit:{type:Number,default:20},pageSizes:{type:Array,default:function(){return[12,24,36,48]}},layout:{type:String,default:"total, sizes, prev, pager, next, jumper"},background:{type:Boolean,default:!0},autoScroll:{type:Boolean,default:!0},hidden:{type:Boolean,default:!1}},computed:{currentPage:{get:function(){return this.page},set:function(t){this.$emit("update:page",t)}},pageSize:{get:function(){return this.limit},set:function(t){this.$emit("update:limit",t)}}},methods:{handleSizeChange:function(t){this.$emit("pagination",{page:this.currentPage,limit:t}),this.autoScroll&&o(0,800)},handleCurrentChange:function(t){this.$emit("pagination",{page:t,limit:this.pageSize}),this.autoScroll&&o(0,800)}}},u=c,p=(a("baa8"),a("2877")),d=Object(p["a"])(u,n,r,!1,null,"2424f858",null);e["a"]=d.exports},"386d":function(t,e,a){"use strict";var n=a("cb7c"),r=a("83a1"),i=a("5f1b");a("214f")("search",1,(function(t,e,a,s){return[function(a){var n=t(this),r=void 0==a?void 0:a[e];return void 0!==r?r.call(a,n):new RegExp(a)[e](String(n))},function(t){var e=s(a,t,this);if(e.done)return e.value;var l=n(t),o=String(this),c=l.lastIndex;r(c,0)||(l.lastIndex=0);var u=i(l,o);return r(l.lastIndex,c)||(l.lastIndex=c),null===u?-1:u.index}]}))},"5ec3":function(t,e,a){"use strict";a.d(e,"a",(function(){return r}));var n=a("b775");function r(t){return Object(n["a"])({url:"/expert/expert/",method:"get",params:t})}},"83a1":function(t,e){t.exports=Object.is||function(t,e){return t===e?0!==t||1/t===1/e:t!=t&&e!=e}},aa77:function(t,e,a){var n=a("5ca1"),r=a("be13"),i=a("79e5"),s=a("fdef"),l="["+s+"]",o="
",c=RegExp("^"+l+l+"*"),u=RegExp(l+l+"*$"),p=function(t,e,a){var r={},l=i((function(){return!!s[t]()||o[t]()!=o})),c=r[t]=l?e(d):s[t];a&&(r[a]=c),n(n.P+n.F*l,"String",r)},d=p.trim=function(t,e){return t=String(r(t)),1&e&&(t=t.replace(c,"")),2&e&&(t=t.replace(u,"")),t};t.exports=p},baa8:function(t,e,a){"use strict";a("1b9f")},c5f6:function(t,e,a){"use strict";var n=a("7726"),r=a("69a8"),i=a("2d95"),s=a("5dbc"),l=a("6a99"),o=a("79e5"),c=a("9093").f,u=a("11e9").f,p=a("86cc").f,d=a("aa77").trim,g="Number",f=n[g],h=f,m=f.prototype,v=i(a("2aeb")(m))==g,y="trim"in String.prototype,_=function(t){var e=l(t,!1);if("string"==typeof e&&e.length>2){e=y?e.trim():d(e,3);var a,n,r,i=e.charCodeAt(0);if(43===i||45===i){if(a=e.charCodeAt(2),88===a||120===a)return NaN}else if(48===i){switch(e.charCodeAt(1)){case 66:case 98:n=2,r=49;break;case 79:case 111:n=8,r=55;break;default:return+e}for(var s,o=e.slice(2),c=0,u=o.length;c<u;c++)if(s=o.charCodeAt(c),s<48||s>r)return NaN;return parseInt(o,n)}}return+e};if(!f(" 0o1")||!f("0b1")||f("+0x1")){f=function(t){var e=arguments.length<1?0:t,a=this;return a instanceof f&&(v?o((function(){m.valueOf.call(a)})):i(a)!=g)?s(new h(_(e)),a,f):_(e)};for(var x,b=a("9e1e")?c(h):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),S=0;b.length>S;S++)r(h,x=b[S])&&!r(f,x)&&p(f,x,u(h,x));f.prototype=m,m.constructor=f,a("2aba")(n,g,f)}},e350:function(t,e,a){"use strict";a.d(e,"a",(function(){return r}));a("6762"),a("2fdb");var n=a("4360");function r(t){if(t&&t instanceof Array&&t.length>0){var e=n["a"].getters&&n["a"].getters.perms,a=t;if(e.includes("admin"))return!0;var r=e.some((function(t){return a.includes(t)}));return!!r}return console.error("need perms! Like v-permission=\"['admin','editor']\""),!1}},efe3: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",{staticClass:"app-container"},[a("el-card",[a("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[a("span",[t._v("专家库检索")])]),t._v(" "),a("el-row",{attrs:{type:"flex"}},[a("el-col",{attrs:{sm:18}},[a("el-row",{attrs:{gutter:8}},[a("el-col",{attrs:{xs:16,sm:20}},[a("el-input",{attrs:{placeholder:"请输入关键字"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.handleFilter(e)}},model:{value:t.listQuery.search,callback:function(e){t.$set(t.listQuery,"search",e)},expression:"listQuery.search"}})],1),t._v(" "),a("el-col",{attrs:{xs:8,sm:4}},[a("el-button",{staticStyle:{width:"100%"},attrs:{type:"primary"},on:{click:t.handleFilter}},[t._v("搜索一下")])],1)],1)],1)],1),t._v(" "),a("el-row",{staticStyle:{"margin-top":"6px"}},[a("el-col",{attrs:{xs:12,sm:12,lg:6,xl:6}},[a("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"最高学历",clearable:""},on:{change:t.handleFilter},model:{value:t.listQuery.hdegree,callback:function(e){t.$set(t.listQuery,"hdegree",e)},expression:"listQuery.hdegree"}},t._l(t.degreeOptions,(function(t){return a("el-option",{key:t.key,attrs:{label:t.label,value:t.key}})})),1)],1)],1)],1),t._v(" "),a("el-card",{staticStyle:{"margin-top":"6px"}},[a("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[a("span",[t._v("专家库")])]),t._v(" "),0==t.tableData.count?a("p",{staticStyle:{"text-align":"center","font-weight":"bold",color:"gray"}},[t._v("\n 暂无数据\n ")]):a("el-row",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],attrs:{gutter:10}},t._l(t.tableData.results,(function(e){return a("el-col",{key:e.id,attrs:{xs:12,sm:6,lg:6,xl:4}},[a("el-card",[a("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[a("span",[t._v(t._s(e.name))]),t._v(" "),a("el-button",{staticStyle:{float:"right",padding:"3px 0"},attrs:{type:"text"}},[t._v("更多信息")])],1),t._v(" "),a("div",[a("el-row",{attrs:{gutter:8}},[a("el-col",{attrs:{xs:9,sm:10,lg:8,xl:8}},[a("el-image",{staticStyle:{width:"80px"},attrs:{src:e.photo,"preview-src-list":[e.photo]}},[a("div",{staticClass:"image-slot",attrs:{slot:"error"},slot:"error"},[a("i",{staticClass:"el-icon-picture-outline"})])])],1),t._v(" "),a("el-col",{attrs:{xs:15,sm:14,lg:16,xl:16}},[a("div",[a("div",{staticStyle:{"font-weight":"bold","font-size":"18px","margin-top":"4px"}},[t._v("\n \n "+t._s(e.name)+"\n "),"男"==e.gender?a("i",{staticClass:"el-icon-male",staticStyle:{color:"blue","font-weight":"bold"}}):a("i",{staticClass:"el-icon-female",staticStyle:{color:"blue","font-weight":"red"}})]),t._v(" "),a("div",{staticStyle:{"margin-top":"4px"}},[t._v(t._s(e.hdegree))]),t._v(" "),a("div",{staticStyle:{"margin-top":"4px"}},[t._v(t._s(e.idnumber))])])])],1),t._v(" "),e.project_.length?a("el-row",{staticStyle:{"font-size":"14px"},attrs:{gutter:2}},[a("el-col",{staticStyle:{color:"gray","font-weight":"bold","margin-top":"2px"},attrs:{xs:24,sm:24,lg:6,xl:4}},[t._v("项目经历")]),t._v(" "),a("el-col",{staticStyle:{"margin-top":"2px"},attrs:{xs:24,sm:24,lg:18,xl:20}},t._l(e.project_,(function(e){return a("div",{key:e.id,domProps:{innerHTML:t._s(e.name_)}})})),0)],1):t._e(),t._v(" "),e.paper_.length?a("el-row",{staticStyle:{"font-size":"14px"},attrs:{gutter:2}},[e.paper_.length?a("el-col",{staticStyle:{color:"gray","font-weight":"bold","margin-top":"2px"},attrs:{xs:24,sm:24,lg:6,xl:4}},[t._v("论文/著作")]):t._e(),t._v(" "),a("el-col",{staticStyle:{"margin-top":"2px"},attrs:{xs:24,sm:24,lg:18,xl:20}},t._l(e.paper_,(function(e){return a("div",{key:e.id,staticClass:"tip",domProps:{innerHTML:t._s(e.name_)}})})),0)],1):t._e(),t._v(" "),e.award_.length?a("el-row",{staticStyle:{"font-size":"14px"},attrs:{gutter:2}},[e.award_.length?a("el-col",{staticStyle:{color:"gray","font-weight":"bold","margin-top":"2px"},attrs:{xs:24,sm:24,lg:6,xl:4}},[t._v("所获奖项")]):t._e(),t._v(" "),a("el-col",{staticStyle:{"margin-top":"2px"},attrs:{xs:24,sm:24,lg:18,xl:20}},t._l(e.award_,(function(e){return a("div",{key:e.id,staticClass:"tip",domProps:{innerHTML:t._s(e.name_)}})})),0)],1):t._e()],1)])],1)})),1),t._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:t.tableData.count>0,expression:"tableData.count > 0"}],staticStyle:{"margin-top":"6px"},attrs:{total:t.tableData.count,page:t.listQuery.page,limit:t.listQuery.page_size},on:{"update:page":function(e){return t.$set(t.listQuery,"page",e)},"update:limit":function(e){return t.$set(t.listQuery,"page_size",e)},pagination:t.getList}})],1)],1)},r=[],i=(a("28a5"),a("386d"),a("a481"),a("7f7f"),a("5ec3")),s=a("e350"),l=a("333d"),o={components:{Pagination:l["a"]},data:function(){return{search:null,listQuery:{page:1,page_size:12,search:""},listLoading:!1,tableData:{count:0,results:[]},degreeOptions:[{key:"博士研究生",value:"博士研究生"},{key:"硕士研究生",value:"硕士研究生"},{key:"本科",value:"本科"},{key:"大专",value:"大专"}]}},created:function(){this.getList()},methods:{checkPermission:s["a"],getList:function(){var t=this;this.listLoading=!0,Object(i["a"])(this.listQuery).then((function(e){t.listLoading=!1,t.tableData=e.data,t.showLight()})).catch((function(e){t.listLoading=!1}))},handleFilter:function(){this.page=1,this.getList()},lessStr:function(t,e){for(var a=0;a<t.length;a++){var n=t[a][e].length;n>2&&(t[a][e]=t[a][e].slice(0,2));for(var r=0;r<t[a][e].length;r++)t[a][e][r].name_=t[a][e][r].name.substr(0,14)+"..."}},lessStr2:function(t,e,a){for(var n=0;n<t.length;n++){for(var r=[],i=0;i<t[n][e].length;i++)for(var s=0;s<a.length;s++)if(-1!=t[n][e][i].name.indexOf(a[s])){var l=t[n][e][i];l.name_=t[n][e][i].name.replace(a[s],'<span style="color:red;font-weight:bold">'+a[s]+"</span>"),r.push(l)}t[n][e]=r}},showLight:function(){var t=this.tableData.results;if(""==this.listQuery.search)this.lessStr(t,"project_"),this.lessStr(t,"paper_"),this.lessStr(t,"award_");else{var e=this.listQuery.search.split(" ");this.lessStr2(t,"project_",e),this.lessStr2(t,"paper_",e),this.lessStr2(t,"award_",e)}}}},c=o,u=a("2877"),p=Object(u["a"])(c,n,r,!1,null,"23b044ee",null);e["default"]=p.exports},fdef:function(t,e){t.exports="\t\n\v\f\r \u2028\u2029\ufeff"}}]); |