12 |
- (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",{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"}},[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("填写注意事项:为便于审读工作的进行,一个刊物只能绑定申请一个账号,请选择期刊名称时,仔细核对是否选择的是本刊,否则将影响后续的审读工作开展")]),a("el-form",{attrs:{inline:!1,"label-position":"right","label-width":"100px"}},[a("el-form-item",{attrs:{label:"帐号"}},[a("el-input",{attrs:{placeholder:"请输入帐号"},model:{value:e.form.name,callback:function(t){e.$set(e.form,"name",t)},expression:"form.name"}})],1),a("el-form-item",{attrs:{label:"密码"}},[a("el-input",{attrs:{placeholder:"请输入密码"},model:{value:e.form.name,callback:function(t){e.$set(e.form,"name",t)},expression:"form.name"}})],1),a("el-form-item",{attrs:{label:"期刊名称"}},[a("el-select",{staticStyle:{width:"100px"},attrs:{clearable:"",placeholder:"请选择"},model:{value:e.form.assign_user_id,callback:function(t){e.$set(e.form,"assign_user_id",t)},expression:"form.assign_user_id"}},[a("el-option",{attrs:{label:"未分配",value:""}})],1)],1),a("el-form-item",{attrs:{label:"主管单位"}},[a("el-input",{attrs:{placeholder:"请输入主管单位"},model:{value:e.form.name,callback:function(t){e.$set(e.form,"name",t)},expression:"form.name"}})],1),a("el-form-item",{attrs:{label:"负责人"}},[a("el-input",{attrs:{placeholder:"请输入姓名"},model:{value:e.form.name,callback:function(t){e.$set(e.form,"name",t)},expression:"form.name"}})],1),a("el-form-item",{attrs:{label:"负责人手机号"}},[a("el-input",{attrs:{placeholder:"请输入手机号"},model:{value:e.form.name,callback:function(t){e.$set(e.form,"name",t)},expression:"form.name"}})],1),a("el-form-item",{attrs:{label:"负责人邮箱"}},[a("el-input",{attrs:{placeholder:"请输入邮箱"},model:{value:e.form.name,callback:function(t){e.$set(e.form,"name",t)},expression:"form.name"}})],1)],1),a("el-button",{staticClass:"login-btn",attrs:{type:"primary"}},[e._v("注册")])],1):e._e(),4==e.type?a("div",{staticClass:"login-div sign_div",staticStyle:{padding:"30px"}},[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("填写注意事项:为便于管理员审核账号信息和通过审核,请填写真实有效的身份信息,如有特殊情况,请联系管理员")]),a("el-form",{attrs:{inline:!1,"label-position":"right","label-width":"100px"}},[a("el-form-item",{attrs:{label:"帐号"}},[a("el-input",{attrs:{placeholder:"请输入帐号"},model:{value:e.form.name,callback:function(t){e.$set(e.form,"name",t)},expression:"form.name"}})],1),a("el-form-item",{attrs:{label:"密码"}},[a("el-input",{attrs:{placeholder:"请输入密码"},model:{value:e.form.name,callback:function(t){e.$set(e.form,"name",t)},expression:"form.name"}})],1),a("el-form-item",{attrs:{label:"姓名"}},[a("el-input",{attrs:{placeholder:"请输入姓名"},model:{value:e.form.name,callback:function(t){e.$set(e.form,"name",t)},expression:"form.name"}})],1),a("el-form-item",{attrs:{label:"性别"}},[a("el-select",{staticStyle:{width:"100px"},attrs:{clearable:"",placeholder:"请选择"},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:"女"}})],1)],1),a("el-form-item",{attrs:{label:"单位"}},[a("el-input",{attrs:{placeholder:"请输入单位"},model:{value:e.form.name,callback:function(t){e.$set(e.form,"name",t)},expression:"form.name"}})],1),a("el-form-item",{attrs:{label:"职称"}},[a("el-input",{attrs:{placeholder:"请输入职称"},model:{value:e.form.name,callback:function(t){e.$set(e.form,"name",t)},expression:"form.name"}})],1),a("el-form-item",{attrs:{label:"职务"}},[a("el-input",{attrs:{placeholder:"请输入职务"},model:{value:e.form.name,callback:function(t){e.$set(e.form,"name",t)},expression:"form.name"}})],1),a("el-form-item",{attrs:{label:"手机号码"}},[a("el-input",{attrs:{placeholder:"请输入手机号码"},model:{value:e.form.name,callback:function(t){e.$set(e.form,"name",t)},expression:"form.name"}})],1),a("el-form-item",{attrs:{label:"邮箱"}},[a("el-input",{attrs:{placeholder:"请输入邮箱"},model:{value:e.form.name,callback:function(t){e.$set(e.form,"name",t)},expression:"form.name"}})],1),a("el-form-item",{attrs:{label:"期刊编辑部"}},[a("el-input",{attrs:{placeholder:"请输入"},model:{value:e.form.name,callback:function(t){e.$set(e.form,"name",t)},expression:"form.name"}})],1),a("el-form-item",{attrs:{label:"地址"}},[a("el-input",{attrs:{placeholder:"请输入地址"},model:{value:e.form.name,callback:function(t){e.$set(e.form,"name",t)},expression:"form.name"}})],1)],1),a("el-button",{staticClass:"login-btn",attrs:{type:"primary"}},[e._v("注册")])],1):e._e(),a("p",{staticClass:"footer"},[e._v("Copyright © "+e._s(e.copyrightdate)+" 中国科学院 版权所有")])])},o=[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("审读专家")])])}],n={name:"login",data:function(){return{tp:"xt",code:"",type:1,logindata:{username:"",password:"",imgcode_id:"",imgcode:"",utype:0},form:{},copyrightdate:(new Date).getFullYear()}},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="/expert"),3==e.data.data.role&&(window.location.hash="/assignment"))})):e.$message.error(t.data.message)}))},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}))}},created:function(){this.getCode()}},i=n,s=(a("206d"),a("5d22")),r=Object(s["a"])(i,l,o,!1,null,null,null);t["default"]=r.exports}}]);
- //# sourceMappingURL=chunk-45d58480.11fbd0d1.js.map
|