12 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-c2232f20"],{"129d":function(e,t,a){"use strict";a("a210")},1374:function(e,t,a){"use strict";var l=a("bb8b"),i=a("5edc");e.exports=function(e,t,a){t in e?l.f(e,t,i(0,a)):e[t]=a}},"1bc78":function(e,t,a){for(var l=a("25ba"),i=a("93ca"),o=a("84e8"),r=a("0b34"),n=a("065d"),s=a("953d"),c=a("839a"),u=c("iterator"),p=c("toStringTag"),f=s.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},d=i(m),b=0;b<d.length;b++){var g,h=d[b],v=m[h],y=r[h],x=y&&y.prototype;if(x&&(x[u]||n(x,u,f),x[p]||n(x,p,h),s[h]=f,v))for(g in l)x[g]||o(x,g,l[g],!0)}},"21d9":function(e,t,a){var l=a("3a4c"),i=a("065e").concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return l(e,i)}},"285b":function(e,t,a){var l=a("35d4"),i=a("5edc"),o=a("3471"),r=a("5d10"),n=a("4fd4"),s=a("83d3"),c=Object.getOwnPropertyDescriptor;t.f=a("26df")?c:function(e,t){if(e=o(e),t=r(t,!0),s)try{return c(e,t)}catch(a){}if(n(e,t))return i(!l.f.call(e,t),e[t])}},"29dd":function(e,t,a){"use strict";a("b69b")},"32ea":function(e,t,a){var l=a("8078"),i=a("93ca");a("b2be")("keys",(function(){return function(e){return i(l(e))}}))},"7dd6":function(e,t,a){"use strict";function l(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}a.d(t,"a",(function(){return l}))},9973:function(e,t,a){"use strict";var l=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("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}})},i=[],o={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(){}},r=o,n=(a("129d"),a("5d22")),s=Object(n["a"])(r,l,i,!1,null,null,null);t["a"]=s.exports},a210:function(e,t,a){},ac67:function(e,t,a){var l=a("e99b"),i=a("e7c8"),o=a("3471"),r=a("285b"),n=a("1374");l(l.S,"Object",{getOwnPropertyDescriptors:function(e){var t,a,l=o(e),s=r.f,c=i(l),u={},p=0;while(c.length>p)a=s(l,t=c[p++]),void 0!==a&&n(u,t,a);return u}})},b2be:function(e,t,a){var l=a("e99b"),i=a("76e3"),o=a("0926");e.exports=function(e,t){var a=(i.Object||{})[e]||Object[e],r={};r[e]=t(a),l(l.S+l.F*o((function(){a(1)})),"Object",r)}},b69b:function(e,t,a){},e7c8:function(e,t,a){var l=a("21d9"),i=a("0c29"),o=a("a86f"),r=a("0b34").Reflect;e.exports=r&&r.ownKeys||function(e){var t=l.f(o(e)),a=i.f;return a?t.concat(a(e)):t}},fcfc:function(e,t,a){"use strict";a.r(t);var l=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("section",[a("el-breadcrumb",{attrs:{separator:"/"}},[a("el-breadcrumb-item",[e._v("审读管理")]),a("el-breadcrumb-item",[e._v("专家账号")])],1),a("div",{staticClass:"content"},[a("el-tabs",{on:{"tab-click":e.getData},model:{value:e.form.is_active,callback:function(t){e.$set(e.form,"is_active",t)},expression:"form.is_active"}},[a("el-tab-pane",{attrs:{label:"已审核("+e.examine_success+")",name:"1"}}),a("el-tab-pane",{attrs:{label:"未审核("+e.unexamine+")",name:"0"}})],1),a("div",{staticClass:"filter"},[a("el-form",{attrs:{size:"small","label-width":"70px",inline:!0,"label-position":"left"}},[a("el-form-item",{attrs:{label:""}},[a("el-input",{staticClass:"input-with-select",attrs:{clearable:"",placeholder:"请输入标题"},on:{clear:e.getData},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.search(t)}},model:{value:e.form.name,callback:function(t){e.$set(e.form,"name",t)},expression:"form.name"}},[a("el-select",{attrs:{slot:"prepend",placeholder:"请选择"},slot:"prepend",model:{value:e.form.type,callback:function(t){e.$set(e.form,"type",t)},expression:"form.type"}},[a("el-option",{attrs:{label:"账号",value:"name"}}),a("el-option",{attrs:{label:"姓名",value:"realname"}}),a("el-option",{attrs:{label:"电话",value:"phone"}}),a("el-option",{attrs:{label:"单位",value:"college"}}),a("el-option",{attrs:{label:"手机号码",value:"phone"}}),a("el-option",{attrs:{label:"邮箱",value:"email"}}),a("el-option",{attrs:{label:"期刊编辑部",value:"journal"}}),a("el-option",{attrs:{label:"地址",value:"address"}})],1),a("el-button",{attrs:{slot:"append",icon:"el-icon-search"},on:{click:e.getData},slot:"append"})],1)],1),a("el-form-item",[a("el-select",{attrs:{placeholder:"请选择性别"},on:{change:e.getData},model:{value:e.form.sex,callback:function(t){e.$set(e.form,"sex",t)},expression:"form.sex"}},[a("el-option",{attrs:{label:"全部",value:""}}),a("el-option",{attrs:{label:"男",value:"男"}}),a("el-option",{attrs:{label:"女",value:"女"}})],1)],1),a("el-form-item",{staticStyle:{float:"right"}},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.open=!0}}},[e._v("批量导入")]),a("el-button",{attrs:{type:"primary"},on:{click:e.add}},[e._v("新增账号")])],1)],1)],1),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"table",staticStyle:{width:"100%"},attrs:{data:e.list,height:"50vh",border:"","default-expand-all":"","row-key":"id"}},[a("el-table-column",{attrs:{width:"150",prop:"name",label:"账号"}}),a("el-table-column",{attrs:{prop:"is_active",label:"状态"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.is_active?a("el-tag",{attrs:{size:"mini"}},[e._v("已审核")]):a("el-tag",{attrs:{type:"info",size:"mini"}},[e._v("未审核")])]}}])}),a("el-table-column",{attrs:{width:"150",prop:"realname",label:"姓名"}}),a("el-table-column",{attrs:{prop:"sex",label:"性别"}}),a("el-table-column",{attrs:{width:"200",prop:"college",label:"单位"}}),a("el-table-column",{attrs:{prop:"title",label:"职称"}}),a("el-table-column",{attrs:{width:"150",prop:"job",label:"职务"}}),a("el-table-column",{attrs:{width:"200",prop:"phone",label:"手机号码"}}),a("el-table-column",{attrs:{width:"200",prop:"email",label:"邮箱"}}),a("el-table-column",{attrs:{width:"200",prop:"journal",label:"期刊编辑部"}}),a("el-table-column",{attrs:{width:"200",prop:"address",label:"地址"}}),a("el-table-column",{attrs:{prop:"name",width:"120",label:"审读工作统计",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"primary",plain:"",size:"mini"},on:{click:function(a){return e.$router.push({path:"/expertuser/analysis",query:{id:t.row.id}})}}},[e._v("查看")])]}}])}),a("el-table-column",{attrs:{width:"200",prop:"ctime",label:"添加时间"}}),a("el-table-column",{attrs:{prop:"zip",fixed:"right",width:"230",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[0==t.row.is_active?a("el-button",{attrs:{size:"mini",type:"primary"},on:{click:function(a){return e.examine(t.row)}}},[e._v("审核")]):e._e(),a("el-button",{attrs:{size:"mini",type:"info"},on:{click:function(a){return e.edit(t.row)}}},[e._v("编辑")]),a("el-button",{attrs:{size:"mini",type:"danger"},on:{click:function(a){return e.del(t.row.id)}}},[e._v("删除")])]}}])})],1),a("Page",{ref:"pageButton",attrs:{current:e.form.page,page_size:e.form.page_size,total:e.total},on:{pageChange:e.gopage}})],1),a("el-dialog",{staticClass:"fu-dialog",attrs:{title:e.dialogTitle,"close-on-click-modal":!1,visible:e.dialogVisible},on:{"update:visible":function(t){e.dialogVisible=t}}},[a("el-form",{ref:"form1",staticClass:"preview",attrs:{size:"small",inline:!0,"label-width":"80px",model:e.form1,rules:e.rules}},[a("el-form-item",{attrs:{label:"姓名",prop:"realname"}},[a("el-input",{attrs:{placeholder:"请输入姓名"},model:{value:e.form1.realname,callback:function(t){e.$set(e.form1,"realname",t)},expression:"form1.realname"}})],1),a("el-form-item",{attrs:{label:"性别",prop:"sex"}},[a("el-select",{model:{value:e.form1.sex,callback:function(t){e.$set(e.form1,"sex",t)},expression:"form1.sex"}},[a("el-option",{attrs:{label:"男",value:"男"}}),a("el-option",{attrs:{label:"女",value:"女"}})],1)],1),a("el-form-item",{attrs:{label:"账号",prop:"name"}},[a("el-input",{attrs:{placeholder:"请输入账号"},model:{value:e.form1.name,callback:function(t){e.$set(e.form1,"name",t)},expression:"form1.name"}})],1),a("el-form-item",{attrs:{label:"密码",prop:"password"}},[a("el-input",{attrs:{placeholder:"请输入密码",type:"text"},model:{value:e.form1.password,callback:function(t){e.$set(e.form1,"password",t)},expression:"form1.password"}})],1),a("el-form-item",{attrs:{label:"职称",prop:"title"}},[a("el-input",{attrs:{placeholder:"请输入职称"},model:{value:e.form1.title,callback:function(t){e.$set(e.form1,"title",t)},expression:"form1.title"}})],1),a("el-form-item",{attrs:{label:"手机号",prop:"phone"}},[a("el-input",{attrs:{placeholder:"请输入手机号"},model:{value:e.form1.phone,callback:function(t){e.$set(e.form1,"phone",t)},expression:"form1.phone"}})],1),a("el-form-item",{attrs:{label:"邮箱",prop:"email"}},[a("el-input",{attrs:{placeholder:"请输入邮箱"},model:{value:e.form1.email,callback:function(t){e.$set(e.form1,"email",t)},expression:"form1.email"}})],1),a("el-form-item",{attrs:{label:"单位",prop:"college"}},[a("el-select",{attrs:{filterable:""},model:{value:e.form1.college,callback:function(t){e.$set(e.form1,"college",t)},expression:"form1.college"}},e._l(e.collegeList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:e.name}})})),1)],1),a("el-form-item",{attrs:{label:"所属期刊",prop:"journal"}},[a("el-select",{attrs:{filterable:""},model:{value:e.form1.journal,callback:function(t){e.$set(e.form1,"journal",t)},expression:"form1.journal"}},e._l(e.journalList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:e.name}})})),1)],1),a("el-form-item",{attrs:{label:"职务"}},[a("el-input",{attrs:{placeholder:"请输入职务"},model:{value:e.form1.job,callback:function(t){e.$set(e.form1,"job",t)},expression:"form1.job"}})],1),a("el-form-item",{attrs:{label:"地址"}},[a("el-input",{staticStyle:{width:"514px"},attrs:{placeholder:"请输入地址"},model:{value:e.form1.address,callback:function(t){e.$set(e.form1,"address",t)},expression:"form1.address"}})],1)],1),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{size:"small",type:"primary",plain:""},on:{click:function(t){e.dialogVisible=!1}}},[e._v("取 消")]),a("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.save}},[e._v("确 定")])],1)],1),a("el-dialog",{attrs:{title:"批量导入",width:"500px","close-on-click-modal":!1,visible:e.open},on:{"update:visible":function(t){e.open=t}}},[a("el-upload",{staticClass:"upload-demo",staticStyle:{"text-align":"center"},attrs:{drag:"","on-success":e.uploadSuccess,action:"/api/admin/examine/expert/batchupload"}},[a("i",{staticClass:"el-icon-upload"}),a("div",{staticClass:"el-upload__text"},[e._v("将文件拖到此处,或"),a("em",[e._v("点击上传")])])]),a("div",{staticClass:"el-upload__tip",staticStyle:{"text-align":"left","padding-left":"45px"}},[a("a",{attrs:{href:"expertusers_template.xlsx"}},[e._v("点击下载模板")])]),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{size:"small",type:"primary",plain:""},on:{click:function(t){e.open=!1}}},[e._v("取 消")]),a("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(t){e.open=!1}}},[e._v("确 定")])],1)],1),a("el-dialog",{staticClass:"fu-dialog",attrs:{title:e.dialogTitle2,"close-on-click-modal":!1,visible:e.dialogVisible2},on:{"update:visible":function(t){e.dialogVisible2=t}}},[a("el-form",{ref:"form1",staticClass:"preview",attrs:{size:"small",inline:!1,"label-width":"80px",model:e.form1,rules:e.rules}},[a("el-form-item",{attrs:{label:"审核结果",prop:"is_active","label-width":"120px"}},[a("el-select",{attrs:{filterable:""},model:{value:e.form2.is_active,callback:function(t){e.$set(e.form2,"is_active",t)},expression:"form2.is_active"}},[a("el-option",{attrs:{label:"请选择",value:0}},[e._v("请选择")]),a("el-option",{attrs:{label:"审核通过",value:1}},[e._v("审核通过")]),a("el-option",{attrs:{label:"审核不通过",value:-1}},[e._v("审核不通过")])],1)],1),-1==e.form2.is_active?a("el-form-item",{attrs:{label:"不通过原因","label-width":"120px"}},[a("el-input",{attrs:{placeholder:"请输入审核不通过原因",type:"textarea"},model:{value:e.form2.reason,callback:function(t){e.$set(e.form2,"reason",t)},expression:"form2.reason"}})],1):e._e()],1),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{size:"small",type:"primary",plain:""},on:{click:function(t){e.dialogVisible2=!1}}},[e._v("取 消")]),a("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.saveExamine}},[e._v("确 定")])],1)],1)],1)},i=[],o=(a("ac67"),a("1bc78"),a("32ea"),a("a450"),a("7dd6")),r=a("9973"),n=a("5d89");function s(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);t&&(l=l.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,l)}return a}function c(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?s(Object(a),!0).forEach((function(t){Object(o["a"])(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):s(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}var u={components:{Page:r["a"],fuEditor:n["a"]},data:function(){return{unexamine:0,examine_success:0,collegeList:[],branchList:[],subjectList:[],journalList:[],type:"realname",activeStatus:"1",form:{name:"",type:"realname",page:1,page_size:20},form1:{},form2:{},total:1,list:[],loading:!1,dialogVisible:!1,dialogVisible1:!1,dialogVisible2:!1,dialogTitle:"",dialogTitle1:"",dialogTitle2:"",open:!1,file:[],rules:{name:[{required:!0,message:"请输入标题",trigger:"blur"}],realname:[{required:!0,message:"请输入标题",trigger:"blur"}],password:[{required:!0,message:"请输入标题",trigger:"blur"}],phone:[{required:!0,message:"请输入标题",trigger:"blur"}],email:[{required:!0,message:"请输入标题",trigger:"blur"}]}}},methods:{examine:function(e){this.dialogVisible2=!0,this.dialogTitle2="审核专家账号",this.form2=c({},e)},uploadSuccess:function(e){console.log(e),this.$alert("导入成功"+e.data.success.length+"条数据,导入失败"+e.data.failed.length+"条数据","导入提示")},saveExamine:function(){var e=this,t=this.form2;this.$api.examineExpertUsers(t).then((function(t){e.dialogVisible2=!1,e.getData()}))},handleClick:function(e,t){console.log(e,t)},imageChange:function(e){console.log(e),this.file.push(e.data)},upload:function(e){var t=this,a=document.getElementById(e).files,l=new FormData;l.append("file",a[0]),this.$api.uploadFile(l).then((function(a){0==a.data.code?(t.$set(t.form1,e,a.data.data.url),t.$set(t.form1,"filename",a.data.data.name),t.$message({message:"上传成功!",type:"success"})):t.$message.error(a.data.message)}))},search:function(){this.form;this.getData()},add:function(){this.form1={},this.fileList=[],this.dialogVisible=!0,this.dialogTitle="新增专家账号"},gopage:function(e){e&&(this.form.page_size=e),this.form.page=this.$refs.pageButton.page,this.getData()},getData:function(){var e=this;this.$api.getSubjectList({}).then((function(t){e.subjectList=t.data.data})),this.$api.getJournalList({}).then((function(t){e.journalList=t.data.data})),this.$api.getBranchList({}).then((function(t){e.branchList=t.data.data})),this.$api.getCollegeList({}).then((function(t){e.collegeList=t.data.data}));var t=this.form;this.loading=!0,this.$api.getExpertList(t).then((function(t){e.list=t.data.data.list,e.total=t.data.data.total,e.unexamine=t.data.data.unexamine,e.examine_success=t.data.data.examine_success,e.loading=!1}))},del:function(e){var t=this;this.$confirm("确定删除吗","提示",{type:"warning"}).then((function(){t.$api.delExpert({id:e}).then((function(e){0==e.data.code?(t.$message({message:"删除成功",type:"success"}),t.getData()):t.$message.error(e.data.message)}))}))},edit:function(e){var t=this;this.$api.getExpertInfo({id:e.id,type:"edit"}).then((function(e){t.form1=e.data.data,t.fileList=e.data.data.fileurl,t.dialogTitle="编辑消息";var a=t.form1.receiver_id;"string"==typeof a&&(a=JSON.parse(a)),t.form1.receiver_id=a,t.dialogVisible=!0}))},save:function(){var e=this;this.$refs["form1"].validate((function(t){if(t){var a=e.form1,l=e.form1.id;a.fileurl=JSON.stringify(e.fileList),a.receiver_id=JSON.stringify(a.receiver_id),l?e.$api.editExpert(a).then((function(t){0==t.data.code?e.$message({type:"success",message:"保存成功!"}):e.$message.error("保存失败!"),e.getData(),e.dialogVisible=!1})):e.$api.addExpert(a).then((function(t){0==t.data.code?e.$message({type:"success",message:"保存成功!"}):e.$message.error("保存失败!"),e.getData(),e.dialogVisible=!1}))}}))}},created:function(){this.getData()}},p=u,f=(a("29dd"),a("5d22")),m=Object(f["a"])(p,l,i,!1,null,"8ca9d66a",null);t["default"]=m.exports}}]);
- //# sourceMappingURL=chunk-c2232f20.03bc403c.js.map
|