2 lines
5.4 KiB
JavaScript
2 lines
5.4 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-1eb1a21d"],{3744:function(t,e,a){"use strict";a("bd8d")},"7c15":function(t,e,a){"use strict";var s={url:"/base/captcha",deacriptions:"获取验证码"},r={url:"/base/login",deacriptions:"登录"},i={url:"/menu/getMenu",deacriptions:"获取动态路由"},o={url:"/user/changePassword",deacriptions:"重置密码"},n={url:"/user/getUserList",deacriptions:"分页获取用户列表"},l={url:"/authority/getAuthorityList",deacriptions:"获取角色列表"},c={url:"/user/deleteUser",deacriptions:"删除用户"},u={url:"/user/register",deacriptions:"新增用户"},p={url:"/user/setUserInfo",deacriptions:"编辑用户"},d={url:"/fileUploadAndDownload/upload",deacriptions:"文件上传"},m={url:"/fileUploadAndDownload/deleteFile",deacriptions:"文件删除"},_={url:"/fileUploadAndDownload/download",deacriptions:"文件下载"},h={url:"/wtTemplates/getWtTemplateList",deacriptions:"获取模板"},E={url:"/wtTemplates/createWtTemplate",deacriptions:"新建模板"},g={url:"/wtTemplates/updateWtTemplate",deacriptions:"编辑模板"},f={url:"/wtReports/createWtReports",deacriptions:"创建周报"},T={url:"/wtReports/getWtReportsList",deacriptions:"分页查询周报"},w={url:"/wtReports/updateWtReports",deacriptions:"更新周报"},R={url:"/wtReports/findWtReports",deacriptions:"根据id查询周报"},I={url:"/wtComment/getWtCommentList",deacriptions:"获取周报评论"},D={url:"/wtComment/createWtComment",deacriptions:"创建周报评论"},L={url:"/wtRule/createWtRule",deacriptions:"创建规则"},C={url:"/wtRule/updateWtRule",deacriptions:"编辑规则"},v={url:"/wtRule/getWtRuleList",deacriptions:" 查询规则"},S={url:"/wtOutput/GetStatResult",deacriptions:" 查询统计结果"},A={url:"/wtOutput/ExportReportToExcel",deacriptions:" 导出报表"};e["a"]={GET_CAPTCHA:s,LOGIN:r,GET_MENU:i,CHANGE_PASSWORD:o,GET_USER_LIST:n,GET_AUTHORITY_LIST:l,DELETE_USER:c,ADD_USER:u,EDIT_USER:p,UPLOAD_FILE:d,DELETE_FILE:m,DOWNLOAD_FILE:_,GET_TEMPLATE_LIST:h,ADD_TEMPLATE:E,EDIT_TEMPLATE:g,ADD_REPORT:f,FIND_REPORT_LIST:T,EDIT_REPORT:w,FIND_REPORT_BY_ID:R,FIND_COMMENT_LIST:I,ADD_COMMENT:D,ADD_RULE:L,UPDATE_RULE:C,FIND_RULE_LIST:v,FIND_RESULT:S,EXPORT_FILE:A}},bd8d:function(t,e,a){},de9e:function(t,e,a){"use strict";a.r(e);var s=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"login_div"},[a("div",{staticClass:"login_content"},[a("div",{staticClass:"login_title"},[t._v("周报系统")]),a("a-form",{attrs:{form:t.form,"label-col":{span:5},"wrapper-col":{span:12}},on:{submit:t.handleSubmit}},[a("a-form-item",{staticClass:"login_explain"},[a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["username",{rules:[{required:!0,message:"用户名不能为空!"}]}],expression:"['username', { rules: [{ required: true, message: '用户名不能为空!' }] },]"}],staticClass:"input_login",attrs:{placeholder:"请输入用户名",autocomplete:"off"}},[a("a-icon",{staticClass:"icon_color",attrs:{slot:"prefix",type:"user"},slot:"prefix"})],1)],1),a("a-form-item",{staticClass:"login_explain"},[a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["password",{rules:[{required:!0,message:"密码不能为空!"}]}],expression:"[ 'password', { rules: [{ required: true, message: '密码不能为空!' }] }, ]"}],staticClass:"input_login",attrs:{type:"password",placeholder:"请输入密码"}},[a("a-icon",{staticClass:"icon_color",attrs:{slot:"prefix",type:"lock"},slot:"prefix"})],1)],1),a("a-form-item",{staticClass:"login_explain captcha"},[a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["captcha",{rules:[{required:!0,message:"验证码不能为空!"}]}],expression:"[ 'captcha', { rules: [{ required: true, message: '验证码不能为空!' }] }, ]"}],staticStyle:{width:"220px","margin-left":"30px"},attrs:{placeholder:"请输入验证码",autocomplete:"off"},on:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.handleSubmit.apply(null,arguments)}}}),a("img",{staticClass:"captcha_img",attrs:{src:t.captcha,title:"点击刷新",alt:""},on:{click:t.getCaptcha}})],1),a("a-form-item",[a("a-button",{staticClass:"login_button",attrs:{type:"primary"},on:{click:t.handleSubmit}},[t._v(" 登录 ")])],1)],1)],1)])},r=[],i=a("7c15"),o={name:"LoginComponent",data:function(){return{formLayout:"horizontal",captcha:"",captchaId:"",form:this.$form.createForm(this,{name:"login"}),message:""}},mounted:function(){this.getCaptcha()},methods:{getCaptcha:function(){var t=this;this.$axios.post(i["a"].GET_CAPTCHA.url).then((function(e){0===e.data.code?(t.captcha=e.data.data.picPath,t.captchaId=e.data.data.captchaId):t.$message.error(e.data.msg)}))},handleSubmit:function(t){var e=this;t.preventDefault(),this.form.validateFields((function(t,a){var s={};s.username=a.username,s.password=a.password,s.captchaId=e.captchaId,s.captcha=a.captcha,t||(e.$axios.defaults.withCredentials=!0,e.$axios.post(i["a"].LOGIN.url,s).then((function(t){0===t.data.code?(sessionStorage.setItem("login",t.data.data.token),sessionStorage.setItem("userId",t.data.data.user.ID),sessionStorage.setItem("userName",t.data.data.user.userName),sessionStorage.setItem("nickName",t.data.data.user.nickName),e.$router.push("/")):(e.getCaptcha(),e.$message.error(t.data.msg))})))}))}}},n=o,l=(a("3744"),a("2877")),c=Object(l["a"])(n,s,r,!1,null,null,null);e["default"]=c.exports}}]);
|
|
//# sourceMappingURL=chunk-1eb1a21d.e1c38689.js.map
|