This commit is contained in:
alvis 2020-07-16 14:12:31 +08:00
parent 1c159a7bad
commit f746aef851
2140 changed files with 7218 additions and 4689 deletions

View File

@ -10,7 +10,7 @@
### 演示地址
* 官网:[http://www.alvisu.com](http://www.alvisu.com)
* 学之思:[http://www.alvisu.com/uexam.html](http://www.alvisu.com/uexam.html)
* 学之思:[http://www.alvisu.com/xzs.html](http://www.alvisu.com/xzs.html)
* 学多多:[http://www.alvisu.com/xdd.html](http://www.alvisu.com/xdd.html)
* 思多多:[http://www.alvisu.com/sdd.html](http://www.alvisu.com/sdd.html)
@ -90,7 +90,7 @@
### 使用教程
1. redis 安装
2. 进群获取到数据库脚本,创建表初始化数据
3. /uexam/source/exam为后台代码建议使用IntelliJ IDEA打开在application-dev.yml文件中配置好postgesql/mysql、redis的服务地址打开ExamApplication文件编译运行,默认端口为8000。
3. /uexam/source/xzs为后台代码建议使用IntelliJ IDEA打开在application-dev.yml文件中配置好postgesql/mysql、redis的服务地址打开XzsApplication文件编译运行,默认端口为8000。
4. 学生系统地址http://localhost:8000/student
5. 管理端地址http://localhost:8000/admin

View File

@ -1,11 +0,0 @@
package com.alvis.exam.viewmodel.student.exam;
import com.alvis.exam.viewmodel.admin.exam.ExamPaperEditRequestVM;
import com.alvis.exam.viewmodel.student.exam.ExamPaperSubmitVM;
import lombok.Data;
@Data
public class ExamPaperReadVM {
private ExamPaperEditRequestVM paper;
private ExamPaperSubmitVM answer;
}

View File

@ -1,11 +0,0 @@
package com.alvis.exam.viewmodel.student.question.answer;
import com.alvis.exam.viewmodel.admin.question.QuestionEditRequestVM;
import com.alvis.exam.viewmodel.student.exam.ExamPaperSubmitItemVM;
import lombok.Data;
@Data
public class QuestionAnswerVM {
private QuestionEditRequestVM questionVM;
private ExamPaperSubmitItemVM questionAnswerVM;
}

View File

@ -1,11 +0,0 @@
logging:
path: ./log/
spring:
redis:
host: 192.168.0.96
datasource:
url: jdbc:mysql://192.168.0.69:3306/exam?useSSL=false&useUnicode=true&serverTimezone=Asia/Shanghai&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&allowPublicKeyRetrieval=true&allowMultiQueries=true
username: root
password: 123456
driver-class-name: com.mysql.cj.jdbc.Driver

View File

@ -1,11 +0,0 @@
logging:
path: /usr/log/exam/
spring:
redis:
host: localhost
datasource:
url: jdbc:mysql://101.132.110.182:3306/exam?useSSL=false&useUnicode=true&serverTimezone=Asia/Shanghai&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&allowPublicKeyRetrieval=true&allowMultiQueries=true
username: root
password: 123456
driver-class-name: com.mysql.cj.jdbc.Driver

View File

@ -1,11 +0,0 @@
logging:
path: /usr/log/exam/
spring:
redis:
host: localhost
datasource:
url: jdbc:mysql://localhost:3306/exam?useSSL=false&useUnicode=true&serverTimezone=Asia/Shanghai&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&allowPublicKeyRetrieval=true&allowMultiQueries=true
username: root
password: 123456
driver-class-name: com.mysql.cj.jdbc.Driver

View File

@ -1,11 +0,0 @@
logging:
path: /usr/log/exam/
spring:
redis:
host: 192.168.0.96
datasource:
url: jdbc:mysql://192.168.0.69:3306/exam?useSSL=false&useUnicode=true&serverTimezone=Asia/Shanghai&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&allowPublicKeyRetrieval=true&allowMultiQueries=true
username: root
password: 123456
driver-class-name: com.mysql.cj.jdbc.Driver

View File

@ -1,140 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE generatorConfiguration
PUBLIC "-//mybatis.org//DTD MyBatis Generator Configuration 1.0//EN"
"http://mybatis.org/dtd/mybatis-generator-config_1_0.dtd">
<generatorConfiguration>
<properties resource="application-dev.yml"/>
<context id="generator" targetRuntime="MyBatis3">
<commentGenerator>
<property name="suppressDate" value="true"/>
<property name="suppressAllComments" value="true"/>
</commentGenerator>
<!-- jdbc -->
<jdbcConnection driverClass="com.mysql.cj.jdbc.Driver" connectionURL="jdbc:mysql://192.168.0.69:3306?useSSL=false&amp;useUnicode=true&amp;serverTimezone=UTC&amp;characterEncoding=utf8&amp;zeroDateTimeBehavior=convertToNull&amp;allowPublicKeyRetrieval=true"
userId="root" password="123456">
</jdbcConnection>
<javaTypeResolver>
<property name="forceBigDecimals" value="false"/>
</javaTypeResolver>
<!-- domain -->
<javaModelGenerator targetPackage="com.alvis.exam.domain"
targetProject="D:\Alvis\Free\uexam-mysql\source\exam\src\main\java\">
<property name="enableSubPackages" value="true"/>
<property name="trimStrings" value="true"/>
</javaModelGenerator>
<!-- mapper xml -->
<sqlMapGenerator targetPackage="mapper"
targetProject="D:\Alvis\Free\uexam-mysql\source\exam\src\main\resources\">
<property name="enableSubPackages" value="true"/>
</sqlMapGenerator>
<!-- repository -->
<javaClientGenerator type="XMLMAPPER" targetPackage="com.alvis.exam.repository"
targetProject="D:\Alvis\Free\uexam-mysql\source\exam\src\main\java\">
<property name="enableSubPackages" value="true"/>
</javaClientGenerator>
<table tableName="t_subject" domainObjectName="Subject" enableCountByExample="false"
enableUpdateByExample="false"
enableDeleteByExample="false" enableSelectByExample="false" selectByExampleQueryId="false">
</table>
<!-- <table tableName="t_user" domainObjectName="User" enableCountByExample="false"
enableUpdateByExample="false"
enableDeleteByExample="false" enableSelectByExample="false" selectByExampleQueryId="false">
</table>
<table tableName="t_subject" domainObjectName="Subject" enableCountByExample="false"
enableUpdateByExample="false"
enableDeleteByExample="false" enableSelectByExample="false" selectByExampleQueryId="false">
</table>
<table tableName="t_question" domainObjectName="Question" enableCountByExample="false"
enableUpdateByExample="false"
enableDeleteByExample="false" enableSelectByExample="false" selectByExampleQueryId="false">
</table>
<table tableName="t_exam_paper" domainObjectName="ExamPaper" enableCountByExample="false"
enableUpdateByExample="false"
enableDeleteByExample="false" enableSelectByExample="false" selectByExampleQueryId="false">
</table>
<table tableName="t_exam_paper_answer" domainObjectName="ExamPaperAnswer" enableCountByExample="false"
enableUpdateByExample="false"
enableDeleteByExample="false" enableSelectByExample="false" selectByExampleQueryId="false">
</table>
<table tableName="t_exam_paper_question_customer_answer" domainObjectName="ExamPaperQuestionCustomerAnswer"
enableCountByExample="false"
enableUpdateByExample="false"
enableDeleteByExample="false" enableSelectByExample="false" selectByExampleQueryId="false">
</table>
<table tableName="t_message" domainObjectName="Message" enableCountByExample="false"
enableUpdateByExample="false"
enableDeleteByExample="false" enableSelectByExample="false" selectByExampleQueryId="false">
</table>
<table tableName="t_message_user" domainObjectName="MessageUser" enableCountByExample="false"
enableUpdateByExample="false"
enableDeleteByExample="false" enableSelectByExample="false" selectByExampleQueryId="false">
</table>
<table tableName="t_task_exam" domainObjectName="TaskExam" enableCountByExample="false"
enableUpdateByExample="false"
enableDeleteByExample="false" enableSelectByExample="false" selectByExampleQueryId="false">
</table>
<table tableName="t_task_exam_customer_answer" domainObjectName="TaskExamCustomerAnswer"
enableCountByExample="false"
enableUpdateByExample="false"
enableDeleteByExample="false" enableSelectByExample="false" selectByExampleQueryId="false">
</table>
<table tableName="t_user_token" domainObjectName="UserToken" enableCountByExample="false"
enableUpdateByExample="false"
enableDeleteByExample="false" enableSelectByExample="false" selectByExampleQueryId="false">
</table>
-->
<!-- <table tableName="t_subject" domainObjectName="Subject" enableCountByExample="false"
enableUpdateByExample="false"
enableDeleteByExample="false" enableSelectByExample="false" selectByExampleQueryId="false">
</table>
<table tableName="t_text_content" domainObjectName="TextContent" enableCountByExample="false"
enableUpdateByExample="false"
enableDeleteByExample="false" enableSelectByExample="false" selectByExampleQueryId="false">
<columnOverride column="content" jdbcType="VARCHAR" />
</table>
<table tableName="t_user_event_log" domainObjectName="UserEventLog" enableCountByExample="false"
enableUpdateByExample="false"
enableDeleteByExample="false" enableSelectByExample="false" selectByExampleQueryId="false">
<columnOverride column="content" jdbcType="VARCHAR" />
</table>-->
</context>
</generatorConfiguration>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 66 KiB

File diff suppressed because one or more lines are too long

View File

@ -1 +0,0 @@
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-16f9edc1"],{"93fd":function(e,t,r){"use strict";r.r(t);var o=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"app-container"},[r("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.formLoading,expression:"formLoading"}],ref:"form",attrs:{model:e.form,"label-width":"100px",rules:e.rules}},[r("el-form-item",{attrs:{label:"标题:",prop:"title",required:""}},[r("el-input",{model:{value:e.form.title,callback:function(t){e.$set(e.form,"title",t)},expression:"form.title"}})],1),r("el-form-item",{attrs:{label:"内容:",prop:"content",required:""}},[r("el-input",{attrs:{type:"textarea",rows:"13"},model:{value:e.form.content,callback:function(t){e.$set(e.form,"content",t)},expression:"form.content"}})],1),r("el-form-item",{attrs:{label:"接收人:",required:""}},[r("el-select",{attrs:{multiple:"",filterable:"",remote:"","reserve-keyword":"",placeholder:"请输入用户名","remote-method":e.getUserByUserName,loading:e.selectLoading},model:{value:e.form.receiveUserIds,callback:function(t){e.$set(e.form,"receiveUserIds",t)},expression:"form.receiveUserIds"}},e._l(e.options,(function(e){return r("el-option",{key:e.value,attrs:{label:e.name,value:e.value}})})),1)],1),r("el-form-item",[r("el-button",{attrs:{type:"primary"},on:{click:e.submitForm}},[e._v("发送")]),r("el-button",{on:{click:e.resetForm}},[e._v("重置")])],1)],1)],1)},n=[],s=(r("a4d3"),r("4de4"),r("4160"),r("e439"),r("dbb4"),r("b64b"),r("159b"),r("ade3")),i=r("2f62"),a=r("c24f"),c=r("c443");function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function u(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?l(Object(r),!0).forEach((function(t){Object(s["a"])(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var f={data:function(){return{form:{title:"",content:"",receiveUserIds:[]},formLoading:!1,selectLoading:!1,options:[],rules:{title:[{required:!0,message:"请输入消息标题",trigger:"blur"}],realName:[{required:!0,message:"请输入消息内容",trigger:"blur"}]}}},created:function(){},methods:u({getUserByUserName:function(e){var t=this;""!==e?(t.selectLoading=!0,a["a"].selectByUserName(e).then((function(e){t.selectLoading=!1,t.options=e.response}))):t.options=[]},submitForm:function(){var e=this,t=this;this.$refs.form.validate((function(r){if(!r)return!1;e.formLoading=!0,c["a"].send(e.form).then((function(e){1===e.code?(t.$message.success(e.message),t.delCurrentView(t).then((function(){t.$router.push("/message/list")}))):(t.$message.error(e.message),t.formLoading=!1)})).catch((function(e){t.formLoading=!1}))}))},resetForm:function(){this.$refs["form"].resetFields(),this.options=[],this.form.receiveUserIds=[]}},Object(i["b"])("tagsView",{delCurrentView:"delCurrentView"}))},m=f,d=r("2877"),p=Object(d["a"])(m,o,n,!1,null,null,null);t["default"]=p.exports},c443:function(e,t,r){"use strict";var o=r("b775");t["a"]={pageList:function(e){return Object(o["a"])("/api/admin/message/page",e)},send:function(e){return Object(o["a"])("/api/admin/message/send",e)}}}}]);

View File

@ -1 +0,0 @@
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0c138b"],{"44b7":function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"app-container"},[r("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.formLoading,expression:"formLoading"}],ref:"form",attrs:{model:e.form,"label-width":"100px"}},[r("el-form-item",{attrs:{label:"学科:",required:""}},[r("el-input",{model:{value:e.form.name,callback:function(t){e.$set(e.form,"name",t)},expression:"form.name"}})],1),r("el-form-item",{attrs:{label:"年级:",required:""}},[r("el-select",{attrs:{placeholder:"年级"},model:{value:e.form.level,callback:function(t){e.$set(e.form,"level",t)},expression:"form.level"}},e._l(e.levelEnum,(function(e){return r("el-option",{key:e.key,attrs:{value:e.key,label:e.value}})})),1)],1),r("el-form-item",[r("el-button",{attrs:{type:"primary"},on:{click:e.submitForm}},[e._v("提交")]),r("el-button",{on:{click:e.resetForm}},[e._v("重置")])],1)],1)],1)},o=[],l=(r("a4d3"),r("4de4"),r("4160"),r("e439"),r("dbb4"),r("b64b"),r("159b"),r("ade3")),i=r("2f62"),a=r("c418");function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function c(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?s(Object(r),!0).forEach((function(t){Object(l["a"])(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var m={data:function(){return{form:{id:null,name:"",level:1,levelName:""},formLoading:!1}},created:function(){var e=this.$route.query.id,t=this;e&&0!==parseInt(e)&&(t.formLoading=!0,a["a"].select(e).then((function(e){t.form=e.response,t.formLoading=!1})))},methods:c({submitForm:function(){var e=this;this.formLoading=!0,this.form.levelName=this.enumFormat(this.levelEnum,this.form.level),a["a"].edit(this.form).then((function(t){1===t.code?(e.$message.success(t.message),e.delCurrentView(e).then((function(){e.$router.push("/education/subject/list")}))):(e.$message.error(t.message),e.formLoading=!1)})).catch((function(t){e.formLoading=!1}))},resetForm:function(){this.$refs["form"].resetFields()}},Object(i["b"])("tagsView",{delCurrentView:"delCurrentView"})),computed:c({},Object(i["c"])("enumItem",["enumFormat"]),{},Object(i["e"])("enumItem",{levelEnum:function(e){return e.user.levelEnum}}))},u=m,f=r("2877"),d=Object(f["a"])(u,n,o,!1,null,null,null);t["default"]=d.exports}}]);

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1 +0,0 @@
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-6e3b3ca0"],{"4d8e":function(e,t,r){e.exports=r.p+"static/img/avatar.d25a6cc8.gif"},"7e04":function(e,t,r){"use strict";var s=r("b382"),n=r.n(s);n.a},b382:function(e,t,r){},ecac:function(e,t,r){"use strict";r.r(t);var s=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"app-container"},[r("div",[r("el-row",{attrs:{gutter:20}},[r("el-col",{attrs:{span:6,xs:24}},[r("user-card",{attrs:{userInfo:e.userInfo}})],1),r("el-col",{attrs:{span:18,xs:24}},[r("el-card",[r("el-tabs",{attrs:{"active-name":"timeline"}},[r("el-tab-pane",{attrs:{label:"时间线",name:"timeline"}},[r("timeline",{attrs:{userInfo:e.userInfo}})],1),r("el-tab-pane",{attrs:{label:"账号",name:"account"}},[r("account",{attrs:{userInfo:e.userInfo}})],1)],1)],1)],1)],1)],1)])},n=[],a=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("el-card",{staticStyle:{"margin-bottom":"20px"}},[s("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[s("span",[e._v("关于我")])]),s("div",{staticClass:"user-profile"},[s("div",{staticClass:"box-center"},[s("img",{staticStyle:{"border-radius":"50px"},attrs:{src:null===e.userInfo.imagePath?r("4d8e"):e.userInfo.imagePath,height:"100px",width:"100px"}})]),s("div",{staticClass:"box-center"},[s("div",{staticClass:"user-name text-center"},[e._v(e._s(e.userInfo.userName))]),s("div",{staticClass:"user-role text-center text-muted"},[e._v(e._s(e.enumFormat(e.roleEnum,e.userInfo.role)))])])]),s("div",{staticClass:"user-bio"},[s("div",{staticClass:"user-education user-bio-section"},[s("div",{staticClass:"user-bio-section-header"},[s("svg-icon",{attrs:{"icon-class":"education"}}),s("span",[e._v("个人简介")])],1),s("div",{staticClass:"user-bio-section-body"},[s("div",{staticClass:"text-muted"},[e._v("")])])])])])},i=[],o=(r("a4d3"),r("4de4"),r("4160"),r("e439"),r("dbb4"),r("b64b"),r("159b"),r("ade3")),c=r("2f62");function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,s)}return r}function u(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?l(Object(r),!0).forEach((function(t){Object(o["a"])(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var m={props:{userInfo:{type:Object,default:function(){return{realName:"",userName:"",role:"",imagePath:null}}}},computed:u({},Object(c["c"])("enumItem",["enumFormat"]),{},Object(c["e"])("enumItem",{roleEnum:function(e){return e.user.roleEnum}}))},f=m,p=(r("7e04"),r("2877")),b=Object(p["a"])(f,a,i,!1,null,"8266b938",null),d=b.exports,v=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"block"},[r("el-timeline",[r("el-timeline-item",{attrs:{placement:"top",timestamp:e.userInfo.lastActiveTime}},[r("el-card",[r("h4",[e._v("最后活动时间")]),r("p",[e._v(e._s(e.userInfo.realName+"在校考系统中最后活动了"))])])],1),r("el-timeline-item",{attrs:{placement:"top",timestamp:e.userInfo.createTime}},[r("el-card",[r("h4",[e._v("加入时间")]),r("p",[e._v(e._s(e.userInfo.realName+"加入了校考系统"))])])],1)],1)],1)},h=[],I={props:{userInfo:{type:Object,default:function(){return{realName:"",lastActiveTime:"",createTime:""}}}}},O=I,g=Object(p["a"])(O,v,h,!1,null,null,null),_=g.exports,j=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("el-form",[r("el-form-item",{attrs:{label:"真实姓名"}},[r("el-input",{model:{value:e.userInfo.realName,callback:function(t){e.$set(e.userInfo,"realName","string"===typeof t?t.trim():t)},expression:"userInfo.realName"}})],1),r("el-form-item",{attrs:{label:"手机号"}},[r("el-input",{model:{value:e.userInfo.phone,callback:function(t){e.$set(e.userInfo,"phone","string"===typeof t?t.trim():t)},expression:"userInfo.phone"}})],1),r("el-form-item",[r("el-button",{attrs:{type:"primary"},on:{click:e.submit}},[e._v("更新")])],1)],1)},y=[],x=r("c24f"),C={props:{userInfo:{type:Object,default:function(){return{realName:"",phone:""}}}},methods:{submit:function(){var e=this;x["a"].updateUser(this.userInfo).then((function(t){1===t.code?e.$message.success(t.message):e.$message.error(t.message)}))}}},w=C,P=Object(p["a"])(w,j,y,!1,null,null,null),N=P.exports,E={name:"Profile",data:function(){return{userInfo:{realName:"",phone:"",lastActiveTime:"",createTime:"",role:"1",imagePath:null}}},components:{UserCard:d,Timeline:_,Account:N},created:function(){var e=this;x["a"].getCurrentUser().then((function(t){e.userInfo=t.response}))}},k=E,$=Object(p["a"])(k,s,n,!1,null,null,null);t["default"]=$.exports}}]);

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1 +0,0 @@
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-cf9fb992"],{2017:function(e,t,o){"use strict";var s=o("cafe"),r=o.n(s);r.a},4398:function(e,t,o){"use strict";var s=o("d60d"),r=o.n(s);r.a},"9ed6":function(e,t,o){"use strict";o.r(t);var s=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"login-container"},[o("el-form",{ref:"loginForm",staticClass:"login-form",attrs:{model:e.loginForm,rules:e.loginRules,"auto-complete":"on","label-position":"left"}},[o("div",{staticClass:"title-container"},[o("h3",{staticClass:"title"},[e._v("学之思管理系统")])]),o("el-form-item",{attrs:{prop:"userName"}},[o("span",{staticClass:"svg-container"},[o("svg-icon",{attrs:{"icon-class":"user"}})],1),o("el-input",{ref:"userName",attrs:{placeholder:"用户名",name:"userName",type:"text",tabindex:"1","auto-complete":"on"},model:{value:e.loginForm.userName,callback:function(t){e.$set(e.loginForm,"userName",t)},expression:"loginForm.userName"}})],1),o("el-tooltip",{attrs:{content:"Caps lock is On",placement:"right",manual:""},model:{value:e.capsTooltip,callback:function(t){e.capsTooltip=t},expression:"capsTooltip"}},[o("el-form-item",{attrs:{prop:"password"}},[o("span",{staticClass:"svg-container"},[o("svg-icon",{attrs:{"icon-class":"password"}})],1),o("el-input",{key:e.passwordType,ref:"password",attrs:{type:e.passwordType,placeholder:"密码",name:"password",tabindex:"2","auto-complete":"on"},on:{blur:function(t){e.capsTooltip=!1}},nativeOn:{keyup:[function(t){return e.checkCapslock(t)},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleLogin(t)}]},model:{value:e.loginForm.password,callback:function(t){e.$set(e.loginForm,"password",t)},expression:"loginForm.password"}}),o("span",{staticClass:"show-pwd",on:{click:e.showPwd}},[o("svg-icon",{attrs:{"icon-class":"password"===e.passwordType?"eye":"eye-open"}})],1)],1)],1),o("el-checkbox",{staticStyle:{"margin-bottom":"20px","margin-left":"5px"},model:{value:e.loginForm.remember,callback:function(t){e.$set(e.loginForm,"remember",t)},expression:"loginForm.remember"}},[e._v("记住密码")]),o("el-button",{staticStyle:{width:"100%","margin-bottom":"30px"},attrs:{loading:e.loading,type:"primary"},nativeOn:{click:function(t){return t.preventDefault(),e.handleLogin(t)}}},[e._v("登录")])],1),e._m(0)],1)},r=[function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"account-foot-copyright"},[o("span",[e._v("Copyright © 2020 武汉思维跳跃科技有限公司 版权所有")]),o("span",[e._v("|")]),o("span",[e._v("鄂ICP备19021884号-1")])])}],n=(o("a4d3"),o("4de4"),o("4160"),o("e439"),o("dbb4"),o("b64b"),o("159b"),o("ade3")),a=o("2f62"),i=o("7ded");function c(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,s)}return o}function l(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?c(Object(o),!0).forEach((function(t){Object(n["a"])(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):c(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}var p={name:"Login",data:function(){var e=function(e,t,o){t.length<5?o(new Error("用户名不能少于5个字符")):o()},t=function(e,t,o){t.length<5?o(new Error("密码不能少于5个字符")):o()};return{loginForm:{userName:"",password:"",remember:!1},loginRules:{userName:[{required:!0,trigger:"blur",validator:e}],password:[{required:!0,trigger:"blur",validator:t}]},passwordType:"password",capsTooltip:!1,loading:!1,showDialog:!1}},created:function(){},mounted:function(){""===this.loginForm.userName?this.$refs.userName.focus():""===this.loginForm.password&&this.$refs.password.focus()},destroyed:function(){},methods:l({checkCapslock:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.shiftKey,o=e.key;o&&1===o.length&&(this.capsTooltip=!!(t&&o>="a"&&o<="z"||!t&&o>="A"&&o<="Z")),"CapsLock"===o&&!0===this.capsTooltip&&(this.capsTooltip=!1)},showPwd:function(){var e=this;"password"===this.passwordType?this.passwordType="":this.passwordType="password",this.$nextTick((function(){e.$refs.password.focus()}))},handleLogin:function(){var e=this,t=this;this.$refs.loginForm.validate((function(o){if(!o)return!1;e.loading=!0,i["a"].login(e.loginForm).then((function(e){e&&1===e.code?(t.setUserName(t.loginForm.userName),t.$router.push({path:"/"})):(t.loading=!1,t.$message({message:e.message,type:"error"}))})).catch((function(e){t.loading=!1}))}))}},Object(a["d"])("user",["setUserName"]))},u=p,d=(o("2017"),o("4398"),o("2877")),m=Object(d["a"])(u,s,r,!1,null,"4ccc4327",null);t["default"]=m.exports},cafe:function(e,t,o){},d60d:function(e,t,o){}}]);

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

Binary file not shown.

Before

Width:  |  Height:  |  Size: 66 KiB

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

Binary file not shown.

Before

Width:  |  Height:  |  Size: 66 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 66 KiB

View File

@ -1,8 +1,8 @@
{
"name": "exam-admin",
"version": "3.0.5",
"author": "alvis",
"description": "武汉思维跳跃科技-学之思管理系统",
"name": "xzs-admin",
"version": "3.0.6",
"author": "武汉思维跳跃科技",
"description": "学之思管理系统",
"license": "AGPL-3.0",
"private": true,
"scripts": {
@ -16,29 +16,29 @@
},
"dependencies": {
"axios": "^0.19.0",
"core-js": "^3.4.4",
"element-ui": "^2.13.0",
"vue": "^2.6.10",
"vue-router": "^3.1.3",
"vuex": "^3.1.2",
"normalize.css": "8.0.1",
"core-js": "^3.6.5",
"element-ui": "^2.13.2",
"js-cookie": "2.2.0",
"normalize.css": "8.0.1",
"nprogress": "0.2.0",
"vue-count-to": "^1.0.13"
"vue": "^2.6.10",
"vue-count-to": "^1.0.13",
"vue-router": "^3.3.4",
"vuex": "^3.5.1"
},
"devDependencies": {
"@vue/cli-plugin-babel": "^4.1.0",
"@vue/cli-plugin-eslint": "^4.1.0",
"@vue/cli-plugin-router": "^4.1.0",
"@vue/cli-plugin-vuex": "^4.1.0",
"@vue/cli-service": "^4.1.0",
"@vue/cli-plugin-babel": "^4.4.6",
"@vue/cli-plugin-eslint": "^4.4.6",
"@vue/cli-plugin-router": "^4.4.6",
"@vue/cli-plugin-vuex": "^4.4.6",
"@vue/cli-service": "^4.4.6",
"@vue/eslint-config-standard": "^4.0.0",
"babel-eslint": "^10.0.3",
"babel-eslint": "^10.1.0",
"eslint": "^5.16.0",
"eslint-plugin-vue": "^5.0.0",
"node-sass": "^4.12.0",
"node-sass": "^4.14.1",
"sass-loader": "^8.0.0",
"vue-template-compiler": "^2.6.10",
"svg-sprite-loader": "4.1.6"
"svg-sprite-loader": "4.1.6",
"vue-template-compiler": "^2.6.10"
}
}

Some files were not shown because too many files have changed in this diff Show More