chunk-45d58480.ab326ef3.js 12 KB

12
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-45d58480"],{"0763":function(e,t,a){},"206d":function(e,t,a){"use strict";a("0763")},a55b: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("div",{staticClass:"login"},[1==e.type?a("div",{staticClass:"login-div"},[a("h1",[e._v("中国科学院四封审读工作平台")]),a("form",[a("el-radio-group",{staticStyle:{width:"370px"},attrs:{size:"medium"},model:{value:e.logindata.utype,callback:function(t){e.$set(e.logindata,"utype",t)},expression:"logindata.utype"}},[a("el-radio-button",{attrs:{label:0}},[e._v("管理员")]),a("el-radio-button",{attrs:{label:1}},[e._v("期刊帐号")]),a("el-radio-button",{attrs:{label:2}},[e._v("专家帐号")])],1),a("div",{staticClass:"input_div",staticStyle:{"margin-top":"10px"}},[a("label",[e._v("账号")]),a("input",{directives:[{name:"model",rawName:"v-model",value:e.logindata.username,expression:"logindata.username"}],attrs:{type:"text",placeholder:"请输入"},domProps:{value:e.logindata.username},on:{input:function(t){t.target.composing||e.$set(e.logindata,"username",t.target.value)}}})]),a("div",{staticClass:"input_div"},[a("label",[e._v("密  码")]),a("input",{directives:[{name:"model",rawName:"v-model",value:e.logindata.password,expression:"logindata.password"}],attrs:{type:"password",placeholder:"请输入密码"},domProps:{value:e.logindata.password},on:{input:function(t){t.target.composing||e.$set(e.logindata,"password",t.target.value)}}})]),a("div",{staticClass:"input_div code"},[a("img",{attrs:{src:e.code,alt:""},on:{click:e.getCode}}),a("label",[e._v("图形码")]),a("input",{directives:[{name:"model",rawName:"v-model",value:e.logindata.imgcode,expression:"logindata.imgcode"}],attrs:{type:"text",placeholder:"请输入验证码"},domProps:{value:e.logindata.imgcode},on:{input:function(t){t.target.composing||e.$set(e.logindata,"imgcode",t.target.value)}}})]),a("span",{staticStyle:{cursor:"pointer",color:"#666"},on:{click:function(t){e.type=2}}},[e._v("注册帐号")]),a("el-button",{staticClass:"login-btn",attrs:{type:"primary"},on:{click:e.login,keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.login(t)}}},[e._v("登 录")])],1)]):e._e(),2==e.type?a("div",{staticClass:"login-div",staticStyle:{padding:"30px",height:"430px"}},[a("span",{on:{click:function(t){e.type=1}}},[a("i",{staticClass:"el-icon-back"}),e._v(" 返回")]),a("h1",[e._v("新用户注册")]),a("ul",{staticClass:"sign"},[a("li",{on:{click:function(t){e.type=3}}},[e._m(0),a("p",[e._v("帐号注册")])]),a("li",{on:{click:function(t){e.type=4}}},[e._m(1),a("p",[e._v("帐号注册")])])])]):e._e(),3==e.type?a("div",{staticClass:"login-div sign_div",staticStyle:{padding:"30px",height:"560px"}},[a("span",{on:{click:function(t){e.type=2}}},[a("i",{staticClass:"el-icon-back"}),e._v(" 返回上一级")]),a("h1",[e._v("填写帐号信息")]),a("p",[e._v("\n 填写注意事项:为便于审读工作的进行,一个刊物只能绑定申请一个账号,请选择期刊名称时,仔细核对是否选择的是本刊,否则将影响后续的审读工作开展\n ")]),a("el-form",{ref:"juserForm",staticClass:"regJournalUser",attrs:{inline:!0,"label-width":"100px",model:e.juserForm,rules:e.rules}},[a("el-form-item",{attrs:{label:"帐号",prop:"name"}},[a("el-input",{attrs:{placeholder:"请输入帐号"},model:{value:e.juserForm.name,callback:function(t){e.$set(e.juserForm,"name",t)},expression:"juserForm.name"}})],1),a("el-form-item",{attrs:{label:"密码",prop:"password"}},[a("el-input",{attrs:{placeholder:"请输入密码"},model:{value:e.juserForm.password,callback:function(t){e.$set(e.juserForm,"password",t)},expression:"juserForm.password"}})],1),a("el-form-item",{attrs:{label:"期刊名称",prop:"journal"}},[a("el-select",{model:{value:e.juserForm.journal,callback:function(t){e.$set(e.juserForm,"journal",t)},expression:"juserForm.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-select",{attrs:{filterable:"true"},model:{value:e.juserForm.unit,callback:function(t){e.$set(e.juserForm,"unit",t)},expression:"juserForm.unit"}},e._l(e.branchList,(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-select",{model:{value:e.juserForm.college,callback:function(t){e.$set(e.juserForm,"college",t)},expression:"juserForm.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:"负责人"}},[a("el-input",{attrs:{placeholder:"请输入姓名"},model:{value:e.juserForm.realname,callback:function(t){e.$set(e.juserForm,"realname",t)},expression:"juserForm.realname"}})],1),a("el-form-item",{attrs:{label:"负责人手机号"}},[a("el-input",{attrs:{placeholder:"请输入手机号"},model:{value:e.juserForm.phone,callback:function(t){e.$set(e.juserForm,"phone",t)},expression:"juserForm.phone"}})],1),a("el-form-item",{attrs:{label:"负责人邮箱"}},[a("el-input",{attrs:{placeholder:"请输入邮箱"},model:{value:e.juserForm.email,callback:function(t){e.$set(e.juserForm,"email",t)},expression:"juserForm.email"}})],1)],1),a("el-button",{staticClass:"login-btn",attrs:{type:"primary"},on:{click:function(t){return e.regist(1)}}},[e._v("确定")])],1):e._e(),4==e.type?a("div",{staticClass:"login-div sign_div",staticStyle:{padding:"30px",height:"700px"}},[a("span",{on:{click:function(t){e.type=2}}},[a("i",{staticClass:"el-icon-back"}),e._v(" 返回上一级")]),a("h1",[e._v("填写帐号信息")]),a("p",[e._v("\n 填写注意事项:为便于管理员审核账号信息和通过审核,请填写真实有效的身份信息,如有特殊情况,请联系管理员\n ")]),a("el-form",{ref:"euserForm",staticClass:"regJournalUser",attrs:{inline:!0,"label-width":"100px",model:e.euserForm,rules:e.rules}},[a("el-form-item",{attrs:{label:"帐号",prop:"name"}},[a("el-input",{attrs:{placeholder:"请输入帐号"},model:{value:e.euserForm.name,callback:function(t){e.$set(e.euserForm,"name",t)},expression:"euserForm.name"}})],1),a("el-form-item",{attrs:{label:"密码",prop:"password"}},[a("el-input",{attrs:{placeholder:"请输入密码"},model:{value:e.euserForm.password,callback:function(t){e.$set(e.euserForm,"password",t)},expression:"euserForm.password"}})],1),a("el-form-item",{attrs:{label:"姓名",prop:"realname"}},[a("el-input",{attrs:{placeholder:"请输入姓名"},model:{value:e.euserForm.realname,callback:function(t){e.$set(e.euserForm,"realname",t)},expression:"euserForm.realname"}})],1),a("el-form-item",{attrs:{label:"性别"}},[a("el-select",{staticStyle:{width:"202px"},attrs:{clearable:"",placeholder:"请选择"},model:{value:e.euserForm.sex,callback:function(t){e.$set(e.euserForm,"sex",t)},expression:"euserForm.sex"}},[a("el-option",{attrs:{label:"男",value:"男"}}),a("el-option",{attrs:{label:"女",value:"女"}})],1)],1),a("el-form-item",{attrs:{label:"单位"}},[a("el-select",{attrs:{filterable:""},model:{value:e.euserForm.college,callback:function(t){e.$set(e.euserForm,"college",t)},expression:"euserForm.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:"期刊编辑部"}},[a("el-select",{attrs:{filterable:""},model:{value:e.euserForm.journal,callback:function(t){e.$set(e.euserForm,"journal",t)},expression:"euserForm.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.euserForm.title,callback:function(t){e.$set(e.euserForm,"title",t)},expression:"euserForm.title"}})],1),a("el-form-item",{attrs:{label:"职务"}},[a("el-input",{attrs:{placeholder:"请输入职务"},model:{value:e.euserForm.job,callback:function(t){e.$set(e.euserForm,"job",t)},expression:"euserForm.job"}})],1),a("el-form-item",{attrs:{label:"手机号码",prop:"phone"}},[a("el-input",{attrs:{placeholder:"请输入手机号码"},model:{value:e.euserForm.phone,callback:function(t){e.$set(e.euserForm,"phone",t)},expression:"euserForm.phone"}})],1),a("el-form-item",{attrs:{label:"邮箱",prop:"email"}},[a("el-input",{attrs:{placeholder:"请输入邮箱"},model:{value:e.euserForm.email,callback:function(t){e.$set(e.euserForm,"email",t)},expression:"euserForm.email"}})],1),a("el-form-item",{attrs:{label:"地址"}},[a("el-input",{staticStyle:{width:"514px"},attrs:{placeholder:"请输入地址"},model:{value:e.euserForm.address,callback:function(t){e.$set(e.euserForm,"address",t)},expression:"euserForm.address"}})],1)],1),a("el-button",{staticClass:"login-btn",attrs:{type:"primary"},on:{click:function(t){return e.regist(2)}}},[e._v("确定")])],1):e._e(),5==e.type?a("div",{staticClass:"login-div",staticStyle:{height:"300px"}},[a("span",{staticStyle:{float:"right",color:"blue"},on:{click:function(t){e.type=1}}},[e._v("关闭")]),a("h1",[e._v("提示信息")]),a("p",[e._v("\n 您的账号申请已提交,请耐性等候审核结果,审核通过后,将会给您填写的手机号发送一条通知短信,请注意查收!\n ")])]):e._e(),a("p",{staticClass:"footer"},[e._v("Copyright © "+e._s(e.copyrightdate)+" 中国科学院 版权所有")])])},r=[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticStyle:{background:"#f8ae45"}},[a("i",{staticClass:"el-icon-reading"}),a("p",[e._v("期刊编辑部")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticStyle:{background:"#3662cd"}},[a("i",{staticClass:"el-icon-user"}),a("p",[e._v("审读专家")])])}],o={name:"login",data:function(){return{tp:"xt",code:"",type:1,logindata:{username:"",password:"",imgcode_id:"",imgcode:"",utype:0},form:{},copyrightdate:(new Date).getFullYear(),juserForm:{},euserForm:{},rules:{name:[{required:!0,message:"请输入账号",trigger:"blur"}],realname:[{required:!0,message:"请输入账号",trigger:"blur"}],password:[{required:!0,message:"请输入密码",trigger:"blur"}],journal:[{required:!0,message:"请选择期刊",trigger:"change"}],phone:[{required:!0,message:"请输入手机号",trigger:"blur"}],email:[{required:!0,message:"请输入邮箱",trigger:"blur"}]},journalList:[],branchList:[],collegeList:[]}},methods:{keyupEnter:function(){var e=this;document.onkeydown=function(t){13===t.keyCode&&(console.log("enter"),e.login())}},login:function(){var e=this,t=this.logindata;console.log(t),this.$api.login(t).then((function(t){t.data;0==t.data.code?e.$api.getAccountInfo().then((function(e){e.code||(localStorage.setItem("role",e.data.data.role),0==e.data.data.role&&(window.location.hash="/index"),1==e.data.data.role&&(window.location.hash="/list"),2==e.data.data.role&&(window.location.hash="/leader"),3==e.data.data.role&&(window.location.hash="/assignment"))})):e.$message.error(t.data.message)}))},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}))},getCode:function(){var e=this;this.$api.getCode().then((function(t){e.code=t.data.data.imgcode,e.logindata.imgcode_id=t.data.data.imgcode_id}))},regist:function(e){var t=this;if(1==e){var a=this.juserForm;this.$refs["juserForm"].validate((function(e){e&&t.$api.registJournalUsers(a).then((function(e){t.$message.success("注册成功!"),t.type=1}))}))}else this.$refs["euserForm"].validate((function(e){var a=t.euserForm;e&&t.$api.registExpertUsers(a).then((function(e){t.$message.success("注册成功!"),t.type=5}))}))}},created:function(){this.getCode(),this.getData()}},s=o,i=(a("206d"),a("5d22")),n=Object(i["a"])(s,l,r,!1,null,null,null);t["default"]=n.exports}}]);
  2. //# sourceMappingURL=chunk-45d58480.ab326ef3.js.map