(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-1a796949"],{"129d":function(e,t,i){"use strict";i("a210")},1374:function(e,t,i){"use strict";var r=i("bb8b"),a=i("5edc");e.exports=function(e,t,i){t in e?r.f(e,t,a(0,i)):e[t]=i}},"1bc78":function(e,t,i){for(var r=i("25ba"),a=i("93ca"),n=i("84e8"),s=i("0b34"),o=i("065d"),l=i("953d"),c=i("839a"),u=c("iterator"),d=c("toStringTag"),p=l.Array,m={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},f=a(m),h=0;h0?i("span",[e._v("("+e._s(e.ids.length)+")")]):e._e(),i("el-button",{staticStyle:{float:"right","margin-top":"5px"},attrs:{size:"mini",type:"info"},on:{click:e.clear}},[e._v("清除")])],1),i("ul",{staticClass:"people"},[e._l(e.list,(function(t,r){return[t.checked?i("li",{key:r},[t.avatar?i("img",{attrs:{src:t.avatar,alt:""}}):e._e(),t.realname?i("font",[e._v(e._s(t.realname))]):i("font",[e._v(e._s(t.name))]),t.college?i("span",[e._v(e._s(t.college))]):e._e(),t.journal?i("span",[e._v(e._s(t.journal))]):e._e(),i("i",{staticClass:"el-icon-error",on:{click:function(e){t.checked=!1}}})],1):e._e()]}))],2)]):e._e()],1)],1)},a=[],n=(i("fc02"),{props:{type:"",cur:"",cur_data:""},data:function(){return{search:"",query:{realname:""},checked:"",list:[],id:4,ids:[]}},watch:{type:function(e){this.id="",this.ids=[],this.getData()},cur:function(e){this.id="",this.ids=[],this.getData()},cur_data:function(e){e&&(console.log(e),"examiner_leader"==this.cur?this.id=parseInt(e):this.ids=e.split(","),this.getData())}},methods:{getData:function(){var e=this;1==this.type?this.$api.searchExamineList(this.query).then((function(t){var i=t.data.data;i=i||[];for(var r=0;r=0?i[r].checked=!0:i[r].checked=!1;e.list=i})):this.$api.receiverList(this.query).then((function(t){var i=t.data.data;i=i||[];for(var r=0;r=0?i[r].checked=!0:i[r].checked=!1;e.list=i}))},change:function(){for(var e=[],t=this.list,i=0;i0&&("examiner_leader"==this.cur?this.id=parseInt(this.cur_data):this.ids=this.cur_data.split(",")),this.getData()}}),s=n,o=(i("f5bc"),i("5d22")),l=Object(o["a"])(s,r,a,!1,null,null,null);t["a"]=l.exports},"285b":function(e,t,i){var r=i("35d4"),a=i("5edc"),n=i("3471"),s=i("5d10"),o=i("4fd4"),l=i("83d3"),c=Object.getOwnPropertyDescriptor;t.f=i("26df")?c:function(e,t){if(e=n(e),t=s(t,!0),l)try{return c(e,t)}catch(i){}if(o(e,t))return a(!r.f.call(e,t),e[t])}},"32ea":function(e,t,i){var r=i("8078"),a=i("93ca");i("b2be")("keys",(function(){return function(e){return a(r(e))}}))},"56af":function(e,t,i){"use strict";i("b42f")},"7dd6":function(e,t,i){"use strict";function r(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}i.d(t,"a",(function(){return r}))},9973:function(e,t,i){"use strict";var r=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-pagination",{attrs:{background:"","page-size":e.page_size?e.page_size:20,"current-page":e.current,"page-sizes":[10,20,30,40,50,60,70,80,90,100],layout:"total,sizes,prev, pager, next",total:e.total},on:{"current-change":e.getData,"size-change":e.handleSizeChange}})},a=[],n={data:function(){return{page:1}},props:{total:"",page_size:"",current:""},methods:{getData:function(e){console.log(e),this.page=e,this.$emit("pageChange")},handleSizeChange:function(e){this.$emit("pageChange",e)}},created:function(){}},s=n,o=(i("129d"),i("5d22")),l=Object(o["a"])(s,r,a,!1,null,null,null);t["a"]=l.exports},a210:function(e,t,i){},ac67:function(e,t,i){var r=i("e99b"),a=i("e7c8"),n=i("3471"),s=i("285b"),o=i("1374");r(r.S,"Object",{getOwnPropertyDescriptors:function(e){var t,i,r=n(e),l=s.f,c=a(r),u={},d=0;while(c.length>d)i=l(r,t=c[d++]),void 0!==i&&o(u,t,i);return u}})},af18:function(e,t,i){},b2be:function(e,t,i){var r=i("e99b"),a=i("76e3"),n=i("0926");e.exports=function(e,t){var i=(a.Object||{})[e]||Object[e],s={};s[e]=t(i),r(r.S+r.F*n((function(){i(1)})),"Object",s)}},b42f:function(e,t,i){},c521:function(e,t,i){"use strict";i.r(t);var r=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("section",{staticClass:"sf"},[i("el-breadcrumb",{attrs:{separator:"/"}},[i("el-breadcrumb-item",[e._v("审读管理")]),3==e.role?i("el-breadcrumb-item",[e._v("我的审读")]):e._e(),0==e.role?i("el-breadcrumb-item",[e._v("四封审读")]):e._e()],1),i("div",{staticClass:"content"},[i("div",{staticClass:"filter"},[i("el-form",{attrs:{size:"small","label-width":"70px",inline:!0,"label-position":"left"}},[i("el-form-item",{attrs:{label:""}},[i("el-input",{attrs:{clearable:"",placeholder:"请输入标题"},on:{clear:e.getData},model:{value:e.query.name,callback:function(t){e.$set(e.query,"name",t)},expression:"query.name"}})],1),i("el-form-item",[i("el-button",{attrs:{type:"primary"},on:{click:e.getData}},[e._v("搜索")])],1),0==e.role?i("el-form-item",{staticStyle:{float:"right"}},[i("el-button",{attrs:{type:"primary"},on:{click:function(t){e.open=!0,e.title="新建审读问卷",e.form={desc:" "}}}},[e._v("新建审读问卷")])],1):e._e()],1)],1),i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{data:e.list,height:"59vh"}},[i("el-table-column",{attrs:{label:"标题",width:"200",align:"center",prop:"createAt"},scopedSlots:e._u([{key:"default",fn:function(t){return[0==e.role?i("el-link",{attrs:{type:"primary"},on:{click:function(i){return e.$router.push({path:"/index/list",query:{id:t.row.id}})}}},[e._v("\n "+e._s(t.row.name)+"\n ")]):e._e(),2==e.role?i("el-link",{attrs:{type:"primary"},on:{click:function(i){return e.$router.push({path:"/expert/list",query:{id:t.row.id}})}}},[e._v("\n "+e._s(t.row.name)+"\n ")]):e._e(),3==e.role?i("el-link",{attrs:{type:"primary"},on:{click:function(i){return e.$router.push({path:"/leader/list",query:{id:t.row.id}})}}},[e._v("\n "+e._s(t.row.name)+"\n ")]):e._e()]}}])}),i("el-table-column",{attrs:{label:"问卷预览",align:"center",prop:"createAt"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{type:"text"},on:{click:function(i){return e.viewSurvey(t.row)}}},[e._v("\n 查看问卷\n ")])]}}])}),i("el-table-column",{directives:[{name:"show",rawName:"v-show",value:0==e.role||3==e.role,expression:"role == 0 || role == 3"}],attrs:{label:"填报统计",align:"center",width:"200",prop:"createAt"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n 共统计"),i("el-link",{attrs:{type:"primary"},on:{click:function(i){return e.$router.push({path:e.path+"/list",query:{id:t.row.id,status:t.row.post_status}})}}},[e._v("\n   "+e._s(t.row.total_count)+"   ")]),e._v("份"),i("br"),e._v("\n 已完成"),i("el-link",{attrs:{type:"primary"},on:{click:function(i){return e.$router.push({path:e.path+"/list",query:{id:t.row.id,status:2}})}}},[e._v("\n   "+e._s(t.row.finish_count)+"   ")]),e._v("份"),i("br"),e._v("\n 未填报"),i("el-link",{attrs:{type:"primary"},on:{click:function(i){return e.$router.push({path:e.path+"/list",query:{id:t.row.id,status:0}})}}},[e._v("\n   "+e._s(t.row.unfinish_count)+"   ")]),e._v("份\n ")]}}])}),i("el-table-column",{directives:[{name:"show",rawName:"v-show",value:0==e.role||3==e.role,expression:"role == 0 || role == 3"}],attrs:{label:"审核组成员",width:"150",align:"center",prop:"createAt"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{type:"text"},on:{click:function(i){return e.$router.push({path:e.path+"/member",query:{id:t.row.id}})}}},[e._v("\n 查看详情\n ")])]}}])}),i("el-table-column",{directives:[{name:"show",rawName:"v-show",value:0==e.role||3==e.role,expression:"role == 0 || role == 3"}],attrs:{label:"问卷统计",align:"center",prop:"createAt"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{type:"text"},on:{click:function(i){return e.$router.push({path:e.path+"/analysis",query:{id:t.row.id}})}}},[e._v("\n 查看\n ")])]}}])}),i("el-table-column",{attrs:{align:"center",label:"发送者",prop:"cname"}}),i("el-table-column",{attrs:{width:"200",align:"center",label:"发布时间",prop:"ctime"}}),i("el-table-column",{attrs:{label:"操作",width:"230",fixed:"right",align:"center",prop:"createAt"},scopedSlots:e._u([{key:"default",fn:function(t){return[0==e.role?i("div",[t.row.is_active?i("el-button",{attrs:{type:"danger",size:"mini"},on:{click:function(i){return e.active(t.row.id,"禁用")}}},[e._v("禁用")]):i("el-button",{attrs:{type:"success",size:"mini"},on:{click:function(i){return e.active(t.row.id,"启用")}}},[e._v("启用")]),t.row.is_active?i("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(i){e.edit(t.row),e.open=!0,e.title="编辑审读问卷"}}},[e._v("编辑")]):i("el-button",{attrs:{type:"danger",size:"mini"},on:{click:function(i){return e.del(t.row)}}},[e._v("删除")]),i("el-button",{attrs:{type:"success",size:"mini"},on:{click:function(i){return e.$router.push({path:"/index/list",query:{id:t.row.id}})}}},[e._v("查看")])],1):e._e(),2==e.role?i("div",[i("el-button",{attrs:{type:"success",size:"mini"},on:{click:function(i){return e.$router.push({path:"/expert/list",query:{id:t.row.id}})}}},[e._v("查看")])],1):e._e(),3==e.role?i("div",[e.assignment?i("el-button",{attrs:{type:"success",size:"mini"},on:{click:function(i){return e.$router.push({path:"/assignment/task",query:{id:t.row.id}})}}},[e._v("查看")]):i("el-button",{attrs:{type:"success",size:"mini"},on:{click:function(i){return e.$router.push({path:"/leader/list",query:{id:t.row.id}})}}},[e._v("查看")])],1):e._e()]}}])})],1),i("Page",{ref:"pageButton",attrs:{current:e.query.page,page_size:e.query.page_size,total:e.total},on:{pageChange:e.gopage}})],1),i("el-dialog",{attrs:{"close-on-click-modal":!1,title:e.title,visible:e.open,width:"800px"},on:{"update:visible":function(t){e.open=t}}},[i("el-form",{ref:"form",attrs:{model:e.form,rules:e.rules,"label-width":"120px"}},[i("el-form-item",{attrs:{label:"标题",prop:"name"}},[i("el-input",{attrs:{placeholder:"请输入标题"},model:{value:e.form.name,callback:function(t){e.$set(e.form,"name",t)},expression:"form.name"}})],1),i("el-form-item",{attrs:{label:"接收人",prop:""}},[i("div",{staticClass:"item-div",on:{click:function(t){return e.openPerson(2,"receiver")}}},[e.form.receiver_name?i("span",{staticStyle:{color:"#333"}},[e._v(e._s(e.form.receiver_name))]):i("span",[e._v("请选择")])])]),i("el-form-item",{attrs:{label:"问卷模版",prop:"template_id"}},[i("el-select",{attrs:{disabled:e.form.unfinish_count=0&&i.push(this.exlist[n].realname),t.examiner_leader_id==this.exlist[n].id&&(a=this.exlist[n].realname);for(var s=0;s=0&&r.push(this.relist[s].name);t.examiner_name=i.join(","),t.examiner_leader_name=a,t.receiver_name=r.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(i){i&&(null!=e.form.id?e.$api.updateWorksheet(t).then((function(t){0==t.data.code?(e.$message({message:"修改成功!",type:"success"}),e.getData(),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.open=!1):e.$message.error(t.data.message)})))}))}},created:function(){var e=this;this.getData(),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,0==e.role&&(e.path="/index"),2==e.role&&(e.path="/expert"),3==e.role&&(e.path="/leader"))})),this.$api.searchExamineList(this.query).then((function(t){for(var i=t.data.data,r=0;r