(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-b162e224"],{"0353":function(e,t,r){"use strict";var n=r("6bf8"),a=RegExp.prototype.exec,i=String.prototype.replace,l=a,o="lastIndex",s=function(){var e=/a/,t=/b*/g;return a.call(e,"a"),a.call(t,"a"),0!==e[o]||0!==t[o]}(),c=void 0!==/()??/.exec("")[1],u=s||c;u&&(l=function(e){var t,r,l,u,f=this;return c&&(r=new RegExp("^"+f.source+"$(?!\\s)",n.call(f))),s&&(t=f[o]),l=a.call(f,e),s&&l&&(f[o]=f.global?l.index+l[0].length:t),c&&l&&l.length>1&&i.call(l[0],r,(function(){for(u=1;u=c?e?"":void 0:(i=o.charCodeAt(s),i<55296||i>56319||s+1===c||(l=o.charCodeAt(s+1))<56320||l>57343?e?o.charAt(s):i:e?o.slice(s,s+2):l-56320+(i-55296<<10)+65536)}}},"176f":function(e,t,r){},"21d9":function(e,t,r){var n=r("3a4c"),a=r("065e").concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return n(e,a)}},"27cd":function(e,t,r){"use strict";var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("section",{staticClass:"person"},[r("el-row",{attrs:{gutter:20}},[r("el-col",{attrs:{span:12}},["examiner_leader"!=e.cur?r("el-button",{staticStyle:{float:"right","margin-top":"5px"},attrs:{size:"mini",type:"info"},on:{click:e.all}},[e._v("全选")]):e._e(),"examiner"==e.cur?r("p",{staticClass:"title"},[e._v("专家库")]):r("p",{staticClass:"title"},[e._v("接收者")]),r("el-input",{attrs:{placeholder:"搜索","suffix-icon":"el-icon-search"},on:{input:function(t){return e.getData()}},model:{value:e.query.realname,callback:function(t){e.$set(e.query,"realname",t)},expression:"query.realname"}}),r("ul",{staticClass:"people"},e._l(e.list,(function(t,n){return r("li",{key:n,on:{click:function(r){return e.toggle(t)}}},[t.avatar?r("img",{attrs:{src:t.avatar,alt:""}}):e._e(),t.realname?r("font",[e._v(e._s(t.realname))]):r("font",[e._v(e._s(t.name))]),t.college?r("span",[e._v(e._s(t.college))]):e._e(),t.journal?r("span",[e._v(e._s(t.journal))]):e._e(),"examiner_leader"==e.cur?r("el-radio",{attrs:{label:t.id},model:{value:e.id,callback:function(t){e.id=t},expression:"id"}},[e._v(" ")]):r("el-checkbox",{model:{value:t.checked,callback:function(r){e.$set(t,"checked",r)},expression:"item.checked"}})],1)})),0)],1),"examiner_leader"!=e.cur?r("el-col",{attrs:{span:12}},[r("p",{staticClass:"title",staticStyle:{"margin-bottom":"50px"}},[e._v("已选 \n "),e.selects.length>0?r("span",[e._v("("+e._s(e.selects.length)+")")]):e._e(),r("el-button",{staticStyle:{float:"right","margin-top":"5px"},attrs:{size:"mini",type:"info"},on:{click:e.clear}},[e._v("清除")])],1),r("ul",{staticClass:"people"},[e._l(e.selects,(function(t,n){return[r("li",{key:n},[t.avatar?r("img",{attrs:{src:t.avatar,alt:""}}):e._e(),t.realname?r("font",[e._v(e._s(t.realname))]):r("font",[e._v(e._s(t.name))]),t.college?r("span",[e._v(e._s(t.college))]):e._e(),t.journal?r("span",[e._v(e._s(t.journal))]):e._e(),r("i",{staticClass:"el-icon-error",on:{click:function(r){t.checked=!1,e.selects.splice(n,1),e.change()}}})],1)]}))],2)]):e._e()],1)],1)},a=[],i=(r("a450"),r("58c8")),l=(r("fc02"),{props:{type:"",cur:"",cur_data:""},data:function(){return{search:"",query:{realname:""},checked:"",list:[],id:0,ids:[],selects:[]}},watch:{type:function(e){this.resset()},cur:function(e){this.resset()},cur_data:function(e){e?(console.log(e),"examiner_leader"==this.cur?this.id=parseInt(e):this.ids=e.split(","),this.getData(1)):this.resset()}},methods:{resset:function(){this.id="",this.ids=[],this.selects=[],this.getData()},getData:function(e){var t=this;console.log(this.ids),1==this.type?this.$api.searchExamineList(this.query).then((function(r){var n=r.data.data,a=[];n=n||[];for(var i=0;i=0?(n[i].checked=!0,a.push(n[i])):n[i].checked=!1;e&&(t.selects=a),t.list=n})):this.$api.receiverList(this.query).then((function(r){var n=r.data.data,a=[];n=n||[];for(var i=0;i=0?(n[i].checked=!0,a.push(n[i])):n[i].checked=!1;e&&(t.selects=a),t.list=n}))},toggle:function(e){var t=this.selects;if(e.checked=!e.checked,this.id=e.id,e.checked)t.push(e);else for(var r=0;r=0?n[a].checked=!0:n[a].checked=!1;this.list=n},all:function(){for(var e=this.list,t=0;t0&&("examiner_leader"==this.cur?this.id=parseInt(this.cur_data):this.ids=this.cur_data.split(",")),this.getData(1)}}),o=l,s=(r("f5bc"),r("5d22")),c=Object(s["a"])(o,n,a,!1,null,null,null);t["a"]=c.exports},"285b":function(e,t,r){var n=r("35d4"),a=r("5edc"),i=r("3471"),l=r("5d10"),o=r("4fd4"),s=r("83d3"),c=Object.getOwnPropertyDescriptor;t.f=r("26df")?c:function(e,t){if(e=i(e),t=l(t,!0),s)try{return c(e,t)}catch(r){}if(o(e,t))return a(!n.f.call(e,t),e[t])}},4057:function(e,t,r){"use strict";r("de49");var n=r("a86f"),a=r("6bf8"),i=r("26df"),l="toString",o=/./[l],s=function(e){r("84e8")(RegExp.prototype,l,e,!0)};r("0926")((function(){return"/a/b"!=o.call({source:"a",flags:"b"})}))?s((function(){var e=n(this);return"/".concat(e.source,"/","flags"in e?e.flags:!i&&e instanceof RegExp?a.call(e):void 0)})):o.name!=l&&s((function(){return o.call(this)}))},"43ec":function(e,t,r){"use strict";var n=r("1663")(!0);e.exports=function(e,t,r){return t+(r?n(e,t).length:1)}},"58c8":function(e,t,r){"use strict";function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r")})),f=function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var r="ab".split(e);return 2===r.length&&"a"===r[0]&&"b"===r[1]}();e.exports=function(e,t,r){var p=o(e),d=!i((function(){var t={};return t[p]=function(){return 7},7!=""[e](t)})),h=d?!i((function(){var t=!1,r=/a/;return r.exec=function(){return t=!0,null},"split"===e&&(r.constructor={},r.constructor[c]=function(){return r}),r[p](""),!t})):void 0;if(!d||!h||"replace"===e&&!u||"split"===e&&!f){var g=/./[p],b=r(l,p,""[e],(function(e,t,r,n,a){return t.exec===s?d&&!a?{done:!0,value:g.call(t,r,n)}:{done:!0,value:e.call(r,t,n)}:{done:!1}})),m=b[0],v=b[1];n(String.prototype,e,m),a(RegExp.prototype,p,2==t?function(e,t){return v.call(e,this,t)}:function(e){return v.call(e,this)})}}},d2ba:function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("section",{staticClass:"sf"},["sf"==e.flag?r("el-breadcrumb",{attrs:{separator:"/"}},[r("el-breadcrumb-item",[e._v("审读管理")]),r("el-breadcrumb-item",{nativeOn:{click:function(t){return e.$router.go(-1)}}},[e._v("四封审读")]),r("el-breadcrumb-item",[e._v("审核组成员")])],1):e._e(),"fp"==e.flag?r("el-breadcrumb",{attrs:{separator:"/"}},[r("el-breadcrumb-item",[e._v("审读管理")]),r("el-breadcrumb-item",{nativeOn:{click:function(t){return e.$router.go(-1)}}},[e._v("四封审读分配")]),r("el-breadcrumb-item",[e._v("审核组成员")])],1):e._e(),"wd"==e.flag?r("el-breadcrumb",{attrs:{separator:"/"}},[r("el-breadcrumb-item",[e._v("审读管理")]),r("el-breadcrumb-item",{nativeOn:{click:function(t){return e.$router.go(-1)}}},[e._v("我的审读工作")]),r("el-breadcrumb-item",[e._v("审核组成员")])],1):e._e(),"gzz"==e.flag?r("el-breadcrumb",{attrs:{separator:"/"}},[r("el-breadcrumb-item",[e._v("审读管理")]),r("el-breadcrumb-item",{nativeOn:{click:function(t){return e.$router.go(-1)}}},[e._v("我的工作组")]),r("el-breadcrumb-item",[e._v("工作组成员")])],1):e._e(),r("div",{staticClass:"content"},[r("div",{staticClass:"filter"},[r("el-form",{attrs:{size:"small","label-width":"70px",inline:!0,"label-position":"left"}},[r("el-form-item",{attrs:{label:""}},[r("el-input",{staticClass:"input-with-select",attrs:{placeholder:"请输入内容"},model:{value:e.query.name,callback:function(t){e.$set(e.query,"name",t)},expression:"query.name"}},[r("el-select",{staticStyle:{width:"80px"},attrs:{slot:"prepend",placeholder:"帐号"},slot:"prepend",model:{value:e.query.type,callback:function(t){e.$set(e.query,"type",t)},expression:"query.type"}},[r("el-option",{attrs:{label:"全部",value:""}}),r("el-option",{attrs:{label:"账号",value:"name"}}),r("el-option",{attrs:{label:"姓名",value:"realname"}}),r("el-option",{attrs:{label:"单位",value:"college"}}),r("el-option",{attrs:{label:"手机号",value:"phone"}}),r("el-option",{attrs:{label:"邮箱",value:"email"}}),r("el-option",{attrs:{label:"地址",value:"address"}})],1),r("el-button",{attrs:{slot:"append",icon:"el-icon-search"},on:{click:e.getData},slot:"append"})],1)],1),r("el-form-item",[r("el-select",{staticStyle:{width:"80px"},attrs:{clearable:"",placeholder:"性别"},on:{change:e.getData},model:{value:e.query.sex,callback:function(t){e.$set(e.query,"sex",t)},expression:"query.sex"}},[r("el-option",{attrs:{label:"男",value:"男"}}),r("el-option",{attrs:{label:"女",value:"女"}})],1)],1),r("el-form-item",[r("el-select",{staticStyle:{width:"130px"},attrs:{clearable:"",placeholder:"所属单位",filterable:""},on:{change:e.getData},model:{value:e.query.college,callback:function(t){e.$set(e.query,"college",t)},expression:"query.college"}},e._l(e.collegeList,(function(e,t){return r("el-option",{key:t,attrs:{label:e.name,value:e.name}})})),1)],1),r("el-form-item",[r("el-select",{staticStyle:{width:"150px"},attrs:{clearable:"",placeholder:"所属期刊",filterable:""},on:{change:e.getData},model:{value:e.query.journal,callback:function(t){e.$set(e.query,"journal",t)},expression:"query.journal"}},e._l(e.journalList,(function(e,t){return r("el-option",{key:t,attrs:{label:e.name,value:e.name}})})),1)],1),2!=e.role?r("el-form-item",{staticStyle:{float:"right"}},[r("el-button",{attrs:{type:"primary"},on:{click:function(t){e.open=!0,e.title="添加人员"}}},[e._v("添加人员")])],1):e._e()],1)],1),r("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{data:e.list,height:"59vh"}},[r("el-table-column",{attrs:{align:"center",label:"序号",prop:"id"}}),r("el-table-column",{attrs:{align:"center",label:"帐号",width:"120",prop:"name"}}),r("el-table-column",{attrs:{align:"center",label:"姓名",width:"120",prop:"realname"}}),r("el-table-column",{attrs:{align:"center",label:"性别",prop:"sex"}}),r("el-table-column",{attrs:{width:"200",align:"center",label:"单位",prop:"college"}}),r("el-table-column",{attrs:{width:"150",align:"center",label:"职称",prop:"title"}}),r("el-table-column",{attrs:{width:"150",align:"center",label:"职务",prop:"job"}}),r("el-table-column",{attrs:{width:"200",align:"center",label:"手机号码",prop:"phone"}}),r("el-table-column",{attrs:{width:"200",align:"center",label:"邮箱",prop:"email"}}),r("el-table-column",{attrs:{align:"center",label:"权限",prop:"role"}}),r("el-table-column",{attrs:{width:"200",align:"center",label:"期刊编辑部",prop:"journal"}}),r("el-table-column",{attrs:{width:"200",prop:"address",label:"地址"}}),r("el-table-column",{attrs:{width:"150",fixed:"right",label:"审读工作统计",align:"center",prop:"createAt"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("el-button",{attrs:{size:"mini",type:"text",icon:"el-icon-view"},on:{click:function(r){return e.$router.push({path:e.path+"/analysis",query:{id:t.row.id,wsid:e.wsid}})}}},[e._v("\r\n 查看详情\r\n ")])]}}])}),r("el-table-column",{attrs:{align:"center",label:"添加时间",prop:"ctime",width:"120px"}}),r("el-table-column",{attrs:{label:"操作",width:"100",fixed:"right",align:"center",prop:"createAt"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("el-button",{attrs:{type:"danger",size:"mini",disabled:"组长"==t.row.role||!e.isleader},on:{click:function(r){return e.handleDelete(t.row)}}},[e._v("删除")])]}}])})],1),r("Page",{ref:"pageButton",attrs:{current:e.query.page,page_size:e.query.page_size,total:e.total},on:{pageChange:e.gopage}})],1),r("el-dialog",{attrs:{title:e.title,visible:e.open,width:"800px"},on:{"update:visible":function(t){e.open=t}}},[r("person",{ref:"per",attrs:{type:1}}),r("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(t){e.open1=!1,e.sure()}}},[e._v("确 定")])],1)],1)],1)},a=[],i=(r("4057"),r("e680"),r("9973")),l=r("27cd"),o={components:{person:l["a"],Page:i["a"]},data:function(){return{loading:!1,wsid:0,total:0,role:"",query:{page:1,page_size:10},form:{},list:[{}],open:!1,open1:!1,title:"",rules:{name:[{required:!0,message:"标题不能为空",trigger:"blur"}]},path:"",collegeList:[],journalList:[],flag:"",isleader:!1}},methods:{gopage:function(e){e&&(this.query.page_size=e),this.query.page=this.$refs.pageButton.page,this.getData()},sure:function(){var e=this,t={};t.worksheet_id=Number(this.query.id),t.examiner_id=this.$refs.per.submitForm().id,this.$api.addWorksheetexpert(t).then((function(t){0==t.data.code?(e.$message({message:"添加成功!",type:"success"}),e.getData(),e.open=!1):e.$message.error(t.data.message)}))},getData:function(){var e=this;this.$api.getJournalList({}).then((function(t){e.journalList=t.data.data})),this.$api.getCollegeList({}).then((function(t){e.collegeList=t.data.data})),this.loading=!0,this.$api.getWorkexpertList(this.query).then((function(t){e.list=t.data.data.list,e.total=t.data.data.total;var r=e.list.filter((function(e){return"组长"==e.role})),n=localStorage.getItem("uid");r&&r[0].id==n.toString()&&(e.isleader=!0),e.loading=!1}))},handleDelete:function(e){var t=this;this.$confirm("确定删除吗?","提示",{type:"warning"}).then((function(){t.$api.delWorksheetexpert({worksheet_id:t.query.id,examiner_id:e.id}).then((function(e){t.getData(),t.$message({message:"删除成功!",type:"success"})}))}))}},created:function(){var e=this,t=this.$route.path;this.path=t,t.indexOf("index")>=0&&(this.flag="sf"),t.indexOf("assignment")>=0&&(this.flag="fp"),t.indexOf("leader")>=0&&(this.flag="wd"),t.indexOf("group")>=0&&(this.flag="gzz");var r=this.$route.query.id;this.wsid=this.$route.query.id,this.$api.getAccountInfo().then((function(t){t.code||(e.role=t.data.data.role)})),this.$route.query.id&&(this.query.id=r,this.getData())}},s=o,c=(r("a5e2"),r("5d22")),u=Object(c["a"])(s,n,a,!1,null,null,null);t["default"]=u.exports},de49:function(e,t,r){r("26df")&&"g"!=/./g.flags&&r("bb8b").f(RegExp.prototype,"flags",{configurable:!0,get:r("6bf8")})},e0ff:function(e,t,r){var n=r("9cff"),a=r("a86f"),i=function(e,t){if(a(e),!n(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,n){try{n=r("1e4d")(Function.call,r("285b").f(Object.prototype,"__proto__").set,2),n(e,[]),t=!(e instanceof Array)}catch(a){t=!0}return function(e,r){return i(e,r),t?e.__proto__=r:n(e,r),e}}({},!1):void 0),check:i}},e680:function(e,t,r){"use strict";var n=r("0b34"),a=r("4fd4"),i=r("cea2"),l=r("a83a"),o=r("5d10"),s=r("0926"),c=r("21d9").f,u=r("285b").f,f=r("bb8b").f,p=r("eb34").trim,d="Number",h=n[d],g=h,b=h.prototype,m=i(r("7ee3")(b))==d,v="trim"in String.prototype,y=function(e){var t=o(e,!1);if("string"==typeof t&&t.length>2){t=v?t.trim():p(t,3);var r,n,a,i=t.charCodeAt(0);if(43===i||45===i){if(r=t.charCodeAt(2),88===r||120===r)return NaN}else if(48===i){switch(t.charCodeAt(1)){case 66:case 98:n=2,a=49;break;case 79:case 111:n=8,a=55;break;default:return+t}for(var l,s=t.slice(2),c=0,u=s.length;ca)return NaN;return parseInt(s,n)}}return+t};if(!h(" 0o1")||!h("0b1")||h("+0x1")){h=function(e){var t=arguments.length<1?0:e,r=this;return r instanceof h&&(m?s((function(){b.valueOf.call(r)})):i(r)!=d)?l(new g(y(t)),r,h):y(t)};for(var _,x=r("26df")?c(g):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),k=0;x.length>k;k++)a(g,_=x[k])&&!a(h,_)&&f(h,_,u(g,_));h.prototype=b,b.constructor=h,r("84e8")(n,d,h)}},eb34:function(e,t,r){var n=r("e99b"),a=r("3ab0"),i=r("0926"),l=r("5dc3"),o="["+l+"]",s="​…",c=RegExp("^"+o+o+"*"),u=RegExp(o+o+"*$"),f=function(e,t,r){var a={},o=i((function(){return!!l[e]()||s[e]()!=s})),c=a[e]=o?t(p):l[e];r&&(a[r]=c),n(n.P+n.F*o,"String",a)},p=f.trim=function(e,t){return e=String(a(e)),1&t&&(e=e.replace(c,"")),2&t&&(e=e.replace(u,"")),e};e.exports=f},f417:function(e,t,r){"use strict";var n=r("d445"),a=RegExp.prototype.exec;e.exports=function(e,t){var r=e.exec;if("function"===typeof r){var i=r.call(e,t);if("object"!==typeof i)throw new TypeError("RegExp exec method returned something other than an Object or null");return i}if("RegExp"!==n(e))throw new TypeError("RegExp#exec called on incompatible receiver");return a.call(e,t)}},f5bc:function(e,t,r){"use strict";r("af18")},fc02:function(e,t,r){"use strict";var n=r("804d"),a=r("a86f"),i=r("1b0b"),l=r("43ec"),o=r("201c"),s=r("f417"),c=r("0353"),u=r("0926"),f=Math.min,p=[].push,d="split",h="length",g="lastIndex",b=4294967295,m=!u((function(){RegExp(b,"y")}));r("c46f")("split",2,(function(e,t,r,u){var v;return v="c"=="abbc"[d](/(b)*/)[1]||4!="test"[d](/(?:)/,-1)[h]||2!="ab"[d](/(?:ab)*/)[h]||4!="."[d](/(.?)(.?)/)[h]||"."[d](/()()/)[h]>1||""[d](/.?/)[h]?function(e,t){var a=String(this);if(void 0===e&&0===t)return[];if(!n(e))return r.call(a,e,t);var i,l,o,s=[],u=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),f=0,d=void 0===t?b:t>>>0,m=new RegExp(e.source,u+"g");while(i=c.call(m,a)){if(l=m[g],l>f&&(s.push(a.slice(f,i.index)),i[h]>1&&i.index=d))break;m[g]===i.index&&m[g]++}return f===a[h]?!o&&m.test("")||s.push(""):s.push(a.slice(f)),s[h]>d?s.slice(0,d):s}:"0"[d](void 0,0)[h]?function(e,t){return void 0===e&&0===t?[]:r.call(this,e,t)}:r,[function(r,n){var a=e(this),i=void 0==r?void 0:r[t];return void 0!==i?i.call(r,a,n):v.call(String(a),r,n)},function(e,t){var n=u(v,e,this,t,v!==r);if(n.done)return n.value;var c=a(e),p=String(this),d=i(c,RegExp),h=c.unicode,g=(c.ignoreCase?"i":"")+(c.multiline?"m":"")+(c.unicode?"u":"")+(m?"y":"g"),y=new d(m?c:"^(?:"+c.source+")",g),_=void 0===t?b:t>>>0;if(0===_)return[];if(0===p.length)return null===s(y,p)?[p]:[];var x=0,k=0,w=[];while(k