(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-3e05ab2a"],{"129d":function(e,t,r){"use strict";r("a210")},1374:function(e,t,r){"use strict";var i=r("bb8b"),a=r("5edc");e.exports=function(e,t,r){t in e?i.f(e,t,a(0,r)):e[t]=r}},"21d9":function(e,t,r){var i=r("3a4c"),a=r("065e").concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return i(e,a)}},"27cd":function(e,t,r){"use strict";var i=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,i){return r("li",{key:i,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,i){return[r("li",{key:i},[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(i,1),e.change()}}})],1)]}))],2)]):e._e()],1)],1)},a=[],n=(r("a450"),r("58c8")),s=(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 i=r.data.data,a=[];i=i||[];for(var n=0;n=0?(i[n].checked=!0,a.push(i[n])):i[n].checked=!1;e&&(t.selects=a),t.list=i})):this.$api.receiverList(this.query).then((function(r){var i=r.data.data,a=[];i=i||[];for(var n=0;n=0?(i[n].checked=!0,a.push(i[n])):i[n].checked=!1;e&&(t.selects=a),t.list=i}))},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?i[a].checked=!0:i[a].checked=!1;this.list=i},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=s,l=(r("f5bc"),r("5d22")),c=Object(l["a"])(o,i,a,!1,null,null,null);t["a"]=c.exports},"285b":function(e,t,r){var i=r("35d4"),a=r("5edc"),n=r("3471"),s=r("5d10"),o=r("4fd4"),l=r("83d3"),c=Object.getOwnPropertyDescriptor;t.f=r("26df")?c:function(e,t){if(e=n(e),t=s(t,!0),l)try{return c(e,t)}catch(r){}if(o(e,t))return a(!i.f.call(e,t),e[t])}},"32ea":function(e,t,r){var i=r("8078"),a=r("93ca");r("b2be")("keys",(function(){return function(e){return a(i(e))}}))},"58c8":function(e,t,r){"use strict";function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,i=new Array(t);r=0&&r.push(this.exlist[n].realname),t.examiner_leader_id==this.exlist[n].id&&(a=this.exlist[n].realname);for(var s=0;s=0&&i.push(this.relist[s].realname?this.relist[s].realname:this.relist[s].name);t.examiner_name=r.join(","),t.examiner_leader_name=a,t.receiver_name=i.join(","),this.form=t},del:function(e){var t=this;this.$confirm("确认删除?","删除提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){t.$api.delWorksheet({id:e.id}).then((function(e){t.$message({type:"success",message:"删除成功!"}),t.getData()}))}))},submitForm:function(){var e=this,t=u({},this.form);this.$refs["form"].validate((function(r){r&&(e.loading=!0,null!=e.form.id?e.$api.updateWorksheet(t).then((function(t){0==t.data.code?(e.$message({message:"修改成功!",type:"success"}),e.getData(),e.loading=!1,e.open=!1):e.$message.error(t.data.message)})):e.$api.addWorksheet(t).then((function(t){0==t.data.code?(e.$message({message:"添加成功!",type:"success"}),e.getData(),e.loading=!1,e.open=!1):e.$message.error(t.data.message)})))}))}},created:function(){var e=this;this.getData();var t=this.$route.path;this.path=t,this.$api.getTemplateList().then((function(t){e.templateList=t.data.data.list})),this.$route.path.indexOf("assignment")>=0&&(this.assignment=1),this.$api.getAccountInfo().then((function(t){t.code||(e.role=t.data.data.role)})),this.$api.searchExamineList(this.query).then((function(t){for(var r=t.data.data,i=0;id)r=l(i,t=c[d++]),void 0!==r&&o(u,t,r);return u}})},af18:function(e,t,r){},b2be:function(e,t,r){var i=r("e99b"),a=r("76e3"),n=r("0926");e.exports=function(e,t){var r=(a.Object||{})[e]||Object[e],s={};s[e]=t(r),i(i.S+i.F*n((function(){r(1)})),"Object",s)}},d9d1:function(e,t,r){"use strict";r("dd84")},dd84:function(e,t,r){},e7c8:function(e,t,r){var i=r("21d9"),a=r("0c29"),n=r("a86f"),s=r("0b34").Reflect;e.exports=s&&s.ownKeys||function(e){var t=i.f(n(e)),r=a.f;return r?t.concat(r(e)):t}},f5bc:function(e,t,r){"use strict";r("af18")}}]); //# sourceMappingURL=chunk-3e05ab2a.72ac8b42.js.map