cbma_expert/ce_server/vuedist/static/js/chunk-a8e131c4.5655492a.js

1 line
11 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-a8e131c4"],{"1b9f":function(e,t,a){},"333d":function(e,t,a){"use strict";var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"pagination-container",class:{hidden:e.hidden}},[a("el-pagination",e._b({attrs:{background:e.background,"current-page":e.currentPage,"page-size":e.pageSize,layout:e.layout,"page-sizes":e.pageSizes,total:e.total},on:{"update:currentPage":function(t){e.currentPage=t},"update:current-page":function(t){e.currentPage=t},"update:pageSize":function(t){e.pageSize=t},"update:page-size":function(t){e.pageSize=t},"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}},"el-pagination",e.$attrs,!1))],1)},r=[];a("c5f6");Math.easeInOutQuad=function(e,t,a,n){return e/=n/2,e<1?a/2*e*e+t:(e--,-a/2*(e*(e-2)-1)+t)};var i=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)}}();function s(e){document.documentElement.scrollTop=e,document.body.parentNode.scrollTop=e,document.body.scrollTop=e}function o(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function l(e,t,a){var n=o(),r=e-n,l=20,u=0;t="undefined"===typeof t?500:t;var c=function e(){u+=l;var o=Math.easeInOutQuad(u,n,r,t);s(o),u<t?i(e):a&&"function"===typeof a&&a()};c()}var u={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(e){this.$emit("update:page",e)}},pageSize:{get:function(){return this.limit},set:function(e){this.$emit("update:limit",e)}}},methods:{handleSizeChange:function(e){this.$emit("pagination",{page:this.currentPage,limit:e}),this.autoScroll&&l(0,800)},handleCurrentChange:function(e){this.$emit("pagination",{page:e,limit:this.pageSize}),this.autoScroll&&l(0,800)}}},c=u,d=(a("baa8"),a("2877")),p=Object(d["a"])(c,n,r,!1,null,"2424f858",null);t["a"]=p.exports},"386d":function(e,t,a){"use strict";var n=a("cb7c"),r=a("83a1"),i=a("5f1b");a("214f")("search",1,(function(e,t,a,s){return[function(a){var n=e(this),r=void 0==a?void 0:a[t];return void 0!==r?r.call(a,n):new RegExp(a)[t](String(n))},function(e){var t=s(a,e,this);if(t.done)return t.value;var o=n(e),l=String(this),u=o.lastIndex;r(u,0)||(o.lastIndex=0);var c=i(o,l);return r(o.lastIndex,u)||(o.lastIndex=u),null===c?-1:c.index}]}))},"5ec3":function(e,t,a){"use strict";a.d(t,"a",(function(){return r}));var n=a("b775");function r(e){return Object(n["a"])({url:"/expert/expert/",method:"get",params:e})}},"7baf":function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("el-card",[a("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[a("span",[e._v("专家库检索")])]),e._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(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleFilter(t)}},model:{value:e.listQuery.search,callback:function(t){e.$set(e.listQuery,"search",t)},expression:"listQuery.search"}})],1),e._v(" "),a("el-col",{attrs:{xs:8,sm:4}},[a("el-button",{staticStyle:{width:"100%"},attrs:{type:"primary"},on:{click:e.handleFilter}},[e._v("搜索一下")])],1)],1)],1)],1),e._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:e.handleFilter},model:{value:e.listQuery.hdegree,callback:function(t){e.$set(e.listQuery,"hdegree",t)},expression:"listQuery.hdegree"}},e._l(e.degreeOptions,(function(e){return a("el-option",{key:e.key,attrs:{label:e.label,value:e.key}})})),1)],1)],1)],1),e._v(" "),a("el-card",{staticStyle:{"margin-top":"6px"}},[a("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[a("span",[e._v("专家库")])]),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"},{name:"el-height-adaptive-table",rawName:"v-el-height-adaptive-table",value:{bottomOffset:50},expression:"{bottomOffset: 50}"}],attrs:{data:e.tableData.results,"highlight-current-row":"","row-key":"id",height:"100",stripe:""}},[a("el-table-column",{attrs:{type:"index",width:"50"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"证件照",width:"80px"},scopedSlots:e._u([{key:"default",fn:function(e){return[a("el-image",{staticStyle:{width:"100%"},attrs:{src:e.row.photo,"preview-src-list":[e.row.photo]}},[a("div",{staticClass:"image-slot",attrs:{slot:"error"},slot:"error"},[a("i",{staticClass:"el-icon-picture-outline"})])])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"基本信息"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticStyle:{"font-weight":"bold","font-size":"18px","margin-top":"4px"}},[e._v("\n "+e._s(t.row.name)+"\n "),"男"==t.row.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"}})]),e._v(" "),a("div",{staticStyle:{"margin-top":"4px"}},[e._v(e._s(t.row.hdegree))]),e._v(" "),a("div",{staticStyle:{"margin-top":"4px"}},[e._v(e._s(t.row.idnumber))])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"header-center",label:"项目经历"},scopedSlots:e._u([{key:"default",fn:function(t){return e._l(t.row.project_,(function(t){return a("div",{key:t.id,staticClass:"tip",domProps:{innerHTML:e._s(t.name_)}})}))}}])}),e._v(" "),a("el-table-column",{attrs:{align:"header-center",label:"论文著作"},scopedSlots:e._u([{key:"default",fn:function(t){return e._l(t.row.paper_,(function(t){return a("div",{key:t.id,staticClass:"tip",domProps:{innerHTML:e._s(t.name_)}})}))}}])}),e._v(" "),a("el-table-column",{attrs:{label:"所获奖项"},scopedSlots:e._u([{key:"default",fn:function(t){return e._l(t.row.award_,(function(t){return a("div",{key:t.id,staticClass:"tip",domProps:{innerHTML:e._s(t.name_)}})}))}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(a){return e.handleEdit(t)}}},[e._v("更多信息")])]}}])})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.tableData.count>0,expression:"tableData.count > 0"}],staticStyle:{"margin-top":"6px"},attrs:{total:e.tableData.count,page:e.listQuery.page,limit:e.listQuery.page_size},on:{"update:page":function(t){return e.$set(e.listQuery,"page",t)},"update:limit":function(t){return e.$set(e.listQuery,"page_size",t)},pagination:e.getList}})],1)],1)},r=[],i=(a("28a5"),a("386d"),a("a481"),a("7f7f"),a("5ec3")),s=a("e350"),o=a("333d"),l={components:{Pagination:o["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 e=this;this.listLoading=!0,Object(i["a"])(this.listQuery).then((function(t){e.listLoading=!1,e.tableData=t.data,e.showLight()})).catch((function(t){e.listLoading=!1}))},handleFilter:function(){this.page=1,this.getList()},lessStr:function(e,t){for(var a=0;a<e.length;a++){var n=e[a][t].length;n>2&&(e[a][t]=e[a][t].slice(0,2));for(var r=0;r<e[a][t].length;r++)e[a][t][r].name_=e[a][t][r].name}},lessStr2:function(e,t,a){for(var n=0;n<e.length;n++){for(var r=[],i=0;i<e[n][t].length;i++)for(var s=0;s<a.length;s++)if(-1!=e[n][t][i].name.indexOf(a[s])){var o=e[n][t][i];o.name_=e[n][t][i].name.replace(a[s],'<span style="color:red;font-weight:bold">'+a[s]+"</span>"),r.push(o)}e[n][t]=r}},showLight:function(){var e=this.tableData.results;if(""==this.listQuery.search)this.lessStr(e,"project_"),this.lessStr(e,"paper_"),this.lessStr(e,"award_");else{var t=this.listQuery.search.split(" ");this.lessStr2(e,"project_",t),this.lessStr2(e,"paper_",t),this.lessStr2(e,"award_",t)}}}},u=l,c=a("2877"),d=Object(c["a"])(u,n,r,!1,null,"f5167400",null);t["default"]=d.exports},"83a1":function(e,t){e.exports=Object.is||function(e,t){return e===t?0!==e||1/e===1/t:e!=e&&t!=t}},aa77:function(e,t,a){var n=a("5ca1"),r=a("be13"),i=a("79e5"),s=a("fdef"),o="["+s+"]",l="…",u=RegExp("^"+o+o+"*"),c=RegExp(o+o+"*$"),d=function(e,t,a){var r={},o=i((function(){return!!s[e]()||l[e]()!=l})),u=r[e]=o?t(p):s[e];a&&(r[a]=u),n(n.P+n.F*o,"String",r)},p=d.trim=function(e,t){return e=String(r(e)),1&t&&(e=e.replace(u,"")),2&t&&(e=e.replace(c,"")),e};e.exports=d},baa8:function(e,t,a){"use strict";a("1b9f")},c5f6:function(e,t,a){"use strict";var n=a("7726"),r=a("69a8"),i=a("2d95"),s=a("5dbc"),o=a("6a99"),l=a("79e5"),u=a("9093").f,c=a("11e9").f,d=a("86cc").f,p=a("aa77").trim,f="Number",g=n[f],h=g,m=g.prototype,v=i(a("2aeb")(m))==f,y="trim"in String.prototype,b=function(e){var t=o(e,!1);if("string"==typeof t&&t.length>2){t=y?t.trim():p(t,3);var a,n,r,i=t.charCodeAt(0);if(43===i||45===i){if(a=t.charCodeAt(2),88===a||120===a)return NaN}else if(48===i){switch(t.charCodeAt(1)){case 66:case 98:n=2,r=49;break;case 79:case 111:n=8,r=55;break;default:return+t}for(var s,l=t.slice(2),u=0,c=l.length;u<c;u++)if(s=l.charCodeAt(u),s<48||s>r)return NaN;return parseInt(l,n)}}return+t};if(!g(" 0o1")||!g("0b1")||g("+0x1")){g=function(e){var t=arguments.length<1?0:e,a=this;return a instanceof g&&(v?l((function(){m.valueOf.call(a)})):i(a)!=f)?s(new h(b(t)),a,g):b(t)};for(var _,w=a("9e1e")?u(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;w.length>S;S++)r(h,_=w[S])&&!r(g,_)&&d(g,_,c(h,_));g.prototype=m,m.constructor=g,a("2aba")(n,f,g)}},e350:function(e,t,a){"use strict";a.d(t,"a",(function(){return r}));a("6762"),a("2fdb");var n=a("4360");function r(e){if(e&&e instanceof Array&&e.length>0){var t=n["a"].getters&&n["a"].getters.perms,a=e;if(t.includes("admin"))return!0;var r=t.some((function(e){return a.includes(e)}));return!!r}return console.error("need perms! Like v-permission=\"['admin','editor']\""),!1}},fdef:function(e,t){e.exports="\t\n\v\f\r    \u2028\u2029\ufeff"}}]);