This commit is contained in:
jimmy 2021-01-06 22:24:06 +08:00
commit 9821987e2d
27 changed files with 93 additions and 24 deletions

View File

@ -234,38 +234,34 @@
<select id="selectQuestionsByQuestionsNumber" <select id="selectQuestionsByQuestionsNumber"
resultMap="BaseResultMap"> resultMap="BaseResultMap">
<foreach collection="eachList" item="each" separator="union"> <foreach collection="eachList" item="each" separator="union">
(SELECT (
q.skill_id,
q.industry_id,
i. NAME AS industry_name,
s. NAME AS skill_name,
t.content,
q.difficult,
q.question_type
FROM
t_question q
JOIN (
SELECT SELECT
r1.id q.skill_id,
q.industry_id,
i. NAME AS industry_name,
s. NAME AS skill_name,
t.content,
q.difficult,
q.question_type
FROM FROM
t_question AS r1 t_question AS q
JOIN ( JOIN (
SELECT SELECT
( (
RAND() * ( RAND() * (
SELECT SELECT
MAX(id)-#{each.eachNumber} MAX(id)
FROM FROM
t_question t_question
) )
) AS row_id ) AS row_id
) AS r2 ) AS r2
JOIN t_industry i ON i.id = r1.industry_id JOIN t_industry i ON i.id = q.industry_id
JOIN t_skill s ON s.id = r1.skill_id JOIN t_skill s ON s.id = q.skill_id
JOIN t_text_content t ON t.id = r1.info_text_content_id JOIN t_text_content t ON t.id = q.info_text_content_id
<where> <where>
r1.deleted=0 AND q.deleted=0 AND
r1.id >= r2.row_id q.id >= r2.row_id
<if test="each.difficult != null"> <if test="each.difficult != null">
and q.difficult = #{each.difficult} and q.difficult = #{each.difficult}
</if> </if>
@ -277,12 +273,9 @@
</if> </if>
</where> </where>
ORDER BY ORDER BY
r1.id ASC q.id ASC
LIMIT #{each.eachNumber} LIMIT #{each.eachNumber}
) AS rows ON (rows.id = q.id) )
JOIN t_industry i ON i.id = q.industry_id
JOIN t_skill s ON s.id = q.skill_id
JOIN t_text_content t ON t.id = q.info_text_content_id)
</foreach> </foreach>
</select> </select>

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

View File

@ -0,0 +1,17 @@
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate"><meta http-equiv="Pragma" content="no-cache"><meta http-equiv="Expires" content="0"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="icon" href="favicon.ico"><title>TEKSystems</title><style>html {
height: 100%;
width: 100%;
}
body {
padding: 0;
margin: 0;
height: 100%;
width: 100%;
}</style><script>var _hmt = _hmt || [];
(function () {
var hm = document.createElement('script')
hm.src = 'https://hm.baidu.com/hm.js?cd8218cd51f800ed2b73e5751cb3f4f9'
var s = document.getElementsByTagName('script')[0]
s.parentNode.insertBefore(hm, s)
})()</script><link href="static/css/chunk-099b9c43.1951fa25.css" rel="prefetch"><link href="static/css/chunk-11f1a759.c481df37.css" rel="prefetch"><link href="static/css/chunk-65a58b7e.52493cbc.css" rel="prefetch"><link href="static/css/chunk-9d96240a.94a8cd61.css" rel="prefetch"><link href="static/css/chunk-feb95860.37913b9b.css" rel="prefetch"><link href="static/js/chunk-099b9c43.9b1ac129.js" rel="prefetch"><link href="static/js/chunk-11f1a759.5a0ae389.js" rel="prefetch"><link href="static/js/chunk-65a58b7e.e09fc096.js" rel="prefetch"><link href="static/js/chunk-9d96240a.880bc221.js" rel="prefetch"><link href="static/js/chunk-feb95860.e6e51048.js" rel="prefetch"><link href="static/css/chunk-vendors.4bd9a591.css" rel="preload" as="style"><link href="static/css/index.a43f0a3f.css" rel="preload" as="style"><link href="static/js/chunk-vendors.b70dec41.js" rel="preload" as="script"><link href="static/js/index.970bec4a.js" rel="preload" as="script"><link href="static/css/chunk-vendors.4bd9a591.css" rel="stylesheet"><link href="static/css/index.a43f0a3f.css" rel="stylesheet"></head><body><noscript><strong>We're sorry but vue-demo doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"></div><script src="static/js/chunk-vendors.b70dec41.js"></script><script src="static/js/index.970bec4a.js"></script></body></html>

View File

@ -0,0 +1 @@
.wscn-http404-container[data-v-52fe14af]{-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);position:absolute;top:40%;left:50%}.wscn-http404[data-v-52fe14af]{position:relative;width:1200px;padding:0 50px;overflow:hidden}.wscn-http404 .pic-404[data-v-52fe14af]{position:relative;float:left;width:600px;overflow:hidden}.wscn-http404 .pic-404__parent[data-v-52fe14af]{width:100%}.wscn-http404 .pic-404__child[data-v-52fe14af]{position:absolute}.wscn-http404 .pic-404__child.left[data-v-52fe14af]{width:80px;top:17px;left:220px;opacity:0;-webkit-animation-name:cloudLeft-data-v-52fe14af;animation-name:cloudLeft-data-v-52fe14af;-webkit-animation-duration:2s;animation-duration:2s;-webkit-animation-timing-function:linear;animation-timing-function:linear;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards;-webkit-animation-delay:1s;animation-delay:1s}.wscn-http404 .pic-404__child.mid[data-v-52fe14af]{width:46px;top:10px;left:420px;opacity:0;-webkit-animation-name:cloudMid-data-v-52fe14af;animation-name:cloudMid-data-v-52fe14af;-webkit-animation-duration:2s;animation-duration:2s;-webkit-animation-timing-function:linear;animation-timing-function:linear;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards;-webkit-animation-delay:1.2s;animation-delay:1.2s}.wscn-http404 .pic-404__child.right[data-v-52fe14af]{width:62px;top:100px;left:500px;opacity:0;-webkit-animation-name:cloudRight-data-v-52fe14af;animation-name:cloudRight-data-v-52fe14af;-webkit-animation-duration:2s;animation-duration:2s;-webkit-animation-timing-function:linear;animation-timing-function:linear;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards;-webkit-animation-delay:1s;animation-delay:1s}@-webkit-keyframes cloudLeft-data-v-52fe14af{0%{top:17px;left:220px;opacity:0}20%{top:33px;left:188px;opacity:1}80%{top:81px;left:92px;opacity:1}to{top:97px;left:60px;opacity:0}}@keyframes cloudLeft-data-v-52fe14af{0%{top:17px;left:220px;opacity:0}20%{top:33px;left:188px;opacity:1}80%{top:81px;left:92px;opacity:1}to{top:97px;left:60px;opacity:0}}@-webkit-keyframes cloudMid-data-v-52fe14af{0%{top:10px;left:420px;opacity:0}20%{top:40px;left:360px;opacity:1}70%{top:130px;left:180px;opacity:1}to{top:160px;left:120px;opacity:0}}@keyframes cloudMid-data-v-52fe14af{0%{top:10px;left:420px;opacity:0}20%{top:40px;left:360px;opacity:1}70%{top:130px;left:180px;opacity:1}to{top:160px;left:120px;opacity:0}}@-webkit-keyframes cloudRight-data-v-52fe14af{0%{top:100px;left:500px;opacity:0}20%{top:120px;left:460px;opacity:1}80%{top:180px;left:340px;opacity:1}to{top:200px;left:300px;opacity:0}}@keyframes cloudRight-data-v-52fe14af{0%{top:100px;left:500px;opacity:0}20%{top:120px;left:460px;opacity:1}80%{top:180px;left:340px;opacity:1}to{top:200px;left:300px;opacity:0}}.wscn-http404 .bullshit[data-v-52fe14af]{position:relative;float:left;width:300px;padding:30px 0;overflow:hidden}.wscn-http404 .bullshit__oops[data-v-52fe14af]{font-size:32px;line-height:40px;color:#1482f0;margin-bottom:20px;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}.wscn-http404 .bullshit__headline[data-v-52fe14af],.wscn-http404 .bullshit__oops[data-v-52fe14af]{font-weight:700;opacity:0;-webkit-animation-name:slideUp-data-v-52fe14af;animation-name:slideUp-data-v-52fe14af;-webkit-animation-duration:.5s;animation-duration:.5s}.wscn-http404 .bullshit__headline[data-v-52fe14af]{font-size:20px;line-height:24px;color:#222;margin-bottom:10px;-webkit-animation-delay:.1s;animation-delay:.1s;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}.wscn-http404 .bullshit__info[data-v-52fe14af]{font-size:13px;line-height:21px;color:grey;margin-bottom:30px;-webkit-animation-delay:.2s;animation-delay:.2s;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}.wscn-http404 .bullshit__info[data-v-52fe14af],.wscn-http404 .bullshit__return-home[data-v-52fe14af]{opacity:0;-webkit-animation-name:slideUp-data-v-52fe14af;animation-name:slideUp-data-v-52fe14af;-webkit-animation-duration:.5s;animation-duration:.5s}.wscn-http404 .bullshit__return-home[data-v-52fe14af]{display:block;float:left;width:110px;height:36px;background:#1482f0;border-radius:100px;text-align:center;color:#fff;font-size:14px;line-height:36px;cursor:pointer;-webkit-animation-delay:.3s;animation-delay:.3s;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}@-webkit-keyframes slideUp-data-v-52fe14af{0%{-webkit-transform:translateY(60px);transform:translateY(60px);opacity:0}to{-webkit-transform:translateY(0);transform:translateY(0);opacity:1}}@keyframes slideUp-data-v-52fe14af{0%{-webkit-transform:translateY(60px);transform:translateY(60px);opacity:0}to{-webkit-transform:translateY(0);transform:translateY(0);opacity:1}}

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1 @@
.el-row[data-v-12f4f96d]{margin-top:10px}.align-center[data-v-12f4f96d]{text-align:center}.exam-question-item[data-v-12f4f96d]{padding:10px}.exam-question-item .el-form-item__label[data-v-12f4f96d]{font-size:15px!important}.question-title-padding[data-v-12f4f96d]{padding-left:25px;padding-right:25px}

View File

@ -0,0 +1 @@
.lowin-input .el-input__inner{background-color:transparent!important;border:0!important}.lowin[data-v-70a27230]{--color-primary:#44a0b3;--color-grey:rgba(68,160,179,0.06);--color-dark:rgba(68,160,179,0.5);--color-semidark:rgba(68,160,179,0.5);text-align:center;margin:60px 0 0 0;font-family:Segoe UI;font-size:14px}.lowin .lowin-wrapper[data-v-70a27230]{-webkit-transition:all 1s;transition:all 1s;-webkit-perspective:1000px;perspective:1000px;position:relative;height:100%;width:360px;margin:0 auto}.lowin.lowin-blue[data-v-70a27230]{--color-primary:#0081c6;--color-grey:rgba(0,129,198,0.05);--color-dark:rgba(0,129,198,0.7);--color-semidark:rgba(0,129,198,0.45)}.lowin a[data-v-70a27230]{color:var(--color-primary);text-decoration:none;border-bottom:1px dashed var(--color-semidark);margin-top:-3px;padding-bottom:2px}.lowin [data-v-70a27230]{-webkit-box-sizing:border-box;box-sizing:border-box}.lowin .lowin-box[data-v-70a27230]{width:100%;position:absolute;left:0}.lowin .lowin-box-inner[data-v-70a27230]{background-color:#fff;-webkit-box-shadow:0 7px 25px rgba(0,0,0,.08);box-shadow:0 7px 25px rgba(0,0,0,.08);padding:25px;text-align:left;border-radius:3px}.lowin .lowin-box[data-v-70a27230]:after{content:" ";-webkit-box-shadow:0 0 25px rgba(0,0,0,.1);box-shadow:0 0 25px rgba(0,0,0,.1);-webkit-transform:translateY(-92.6%) scale(.88);transform:translateY(-92.6%) scale(.88);border-radius:3px;position:absolute;top:100%;left:0;width:100%;height:100%;background-color:#fff;z-index:-1}.lowin .lowin-box-inner img[data-v-70a27230]{margin:25px 0;width:60%}.lowin .lowin-box .lowin-group[data-v-70a27230]{margin-bottom:30px}.lowin .lowin-box label[data-v-70a27230]{margin-bottom:5px;display:inline-block;width:100%;color:var(--color-semidark);font-weight:700}.lowin .lowin-box label a[data-v-70a27230]{float:right}.lowin .lowin-box .lowin-input[data-v-70a27230]{background-color:var(--color-grey);color:var(--color-dark);border:none;border-radius:3px;padding:5px 20px;width:100%;outline:0}.lowin .lowin-box .lowin-btn[data-v-70a27230]{display:inline-block;width:100%;border:none;color:#fff;padding:15px;border-radius:3px;background-color:var(--color-primary);-webkit-box-shadow:0 2px 7px var(--color-semidark);box-shadow:0 2px 7px var(--color-semidark);font-weight:700;outline:0;cursor:pointer;-webkit-transition:all .5s;transition:all .5s}.lowin .lowin-box .lowin-btn[data-v-70a27230]:active{-webkit-box-shadow:none;box-shadow:none}.lowin .lowin-box .lowin-btn[data-v-70a27230]:hover{opacity:.9}.lowin .lowin-box.lowin-animated[data-v-70a27230]{-webkit-animation-name:LowinAnimated;animation-name:LowinAnimated;-webkit-animation-duration:1s;animation-duration:1s;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards;-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}.lowin .lowin-box.lowin-animatedback[data-v-70a27230]{-webkit-animation-name:LowinAnimatedBack;animation-name:LowinAnimatedBack;-webkit-animation-duration:1s;animation-duration:1s;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards;-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}.lowin .lowin-box.lowin-animated-flip[data-v-70a27230]{-webkit-animation-name:LowinAnimatedFlip;animation-name:LowinAnimatedFlip;-webkit-animation-duration:1s;animation-duration:1s;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards;-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}.lowin .lowin-box.lowin-animated-flipback[data-v-70a27230]{-webkit-animation-name:LowinAnimatedFlipBack;animation-name:LowinAnimatedFlipBack;-webkit-animation-duration:1s;animation-duration:1s;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards;-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}.lowin .lowin-group.password-group[data-v-70a27230]{-webkit-transition:all 1s;transition:all 1s}.lowin .lowin-group.password-group.lowin-animated[data-v-70a27230]{-webkit-animation-name:LowinPasswordAnimated;animation-name:LowinPasswordAnimated;-webkit-animation-duration:1s;animation-duration:1s;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards;-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out;-webkit-transform-origin:0 0;transform-origin:0 0}.lowin .lowin-group.password-group.lowin-animated-back[data-v-70a27230]{-webkit-animation-name:LowinPasswordAnimatedBack;animation-name:LowinPasswordAnimatedBack;-webkit-animation-duration:1s;animation-duration:1s;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards;-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out;-webkit-transform-origin:0 0;transform-origin:0 0}@media screen and (max-width:320px){.lowin .lowin-wrapper[data-v-70a27230]{width:100%}.lowin .lowin-box[data-v-70a27230]{padding:0 10px}}

View File

@ -0,0 +1 @@
.index-title-h3[data-v-194e5ac4]{font-size:22px;font-weight:400;color:#1f2f3d;border-left:10px solid #2ce8b4;padding-left:10px}.el-carousel__item h3[data-v-194e5ac4]{color:#475669;font-size:18px;opacity:.75;line-height:300px;margin:0}.el-carousel__item[data-v-194e5ac4]:nth-child(2n){background-color:#99a9bf}.el-carousel__item[data-v-194e5ac4]:nth-child(odd){background-color:#d3dce6}.el-rate[data-v-194e5ac4]{margin-top:10px}

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.

After

Width:  |  Height:  |  Size: 80 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 70 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 39 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 154 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 96 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.5 KiB

View File

@ -0,0 +1 @@
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-099b9c43"],{"1db4":function(t,s,i){"use strict";i.r(s);var a=function(){var t=this,s=t.$createElement,i=t._self._c||s;return i("div",{staticClass:"wscn-http404-container"},[i("div",{staticClass:"wscn-http404"},[t._m(0),i("div",{staticClass:"bullshit"},[i("div",{staticClass:"bullshit__oops"},[t._v("OOPS!")]),i("div",{staticClass:"bullshit__headline"},[t._v(t._s(t.message))]),i("div",{staticClass:"bullshit__info"},[t._v("请检查你的访问地址是否正确, 或点击下面按钮返回主页.")]),i("a",{staticClass:"bullshit__return-home",attrs:{href:""}},[t._v("返回主页")])])])])},c=[function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("div",{staticClass:"pic-404"},[a("img",{staticClass:"pic-404__parent",attrs:{src:i("a36b"),alt:"404"}}),a("img",{staticClass:"pic-404__child left",attrs:{src:i("26fc"),alt:"404"}}),a("img",{staticClass:"pic-404__child mid",attrs:{src:i("26fc"),alt:"404"}}),a("img",{staticClass:"pic-404__child right",attrs:{src:i("26fc"),alt:"404"}})])}],l={name:"Page404",computed:{message:function(){return"页面未找到..."}}},n=l,e=(i("8485"),i("2877")),r=Object(e["a"])(n,a,c,!1,null,"52fe14af",null);s["default"]=r.exports},"26fc":function(t,s,i){t.exports=i.p+"static/img/404_cloud.0f4bc32b.png"},8485:function(t,s,i){"use strict";i("9648")},9648:function(t,s,i){},a36b:function(t,s,i){t.exports=i.p+"static/img/404.a57b6f31.png"}}]);

View File

@ -0,0 +1 @@
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-11f1a759"],{4565:function(e,t,n){"use strict";n("6bec")},"6bec":function(e,t,n){},7695:function(e,t,n){},d5c2:function(e,t,n){"use strict";n.r(t);var s=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"lowin lowin-blue"},[n("div",{staticClass:"lowin-wrapper"},[n("div",{staticClass:"lowin-box lowin-register"},[n("div",{staticClass:"lowin-box-inner"},[n("el-form",{ref:"loginForm",attrs:{model:e.loginForm}},[n("p",[e._v("学之思考试系统")]),n("div",{staticClass:"lowin-group"},[n("label",[e._v("用户名 ")]),n("el-input",{ref:"userName",staticClass:"lowin-input",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),n("div",{staticClass:"lowin-group password-group"},[n("label",[e._v("密码")]),n("el-input",{ref:"password",staticClass:"lowin-input",attrs:{placeholder:"密码",name:"password",tabindex:"2","auto-complete":"on"},nativeOn:{keyup: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"}})],1),n("div",{staticClass:"lowin-group"},[n("label",[e._v("年级 ")]),n("el-select",{staticClass:"lowin-input",attrs:{placeholder:"年级"},model:{value:e.loginForm.userLevel,callback:function(t){e.$set(e.loginForm,"userLevel",t)},expression:"loginForm.userLevel"}},e._l(e.levelEnum,(function(e){return n("el-option",{key:e.key,attrs:{value:e.key,label:e.value}})})),1)],1),n("el-button",{staticClass:"lowin-btn login-btn",attrs:{type:"text"},nativeOn:{click:function(t){return t.preventDefault(),e.handleRegister(t)}}},[e._v("注册")]),n("div",{staticClass:"text-foot"},[e._v(" 已有账号? "),n("router-link",{staticClass:"login-link",attrs:{to:"/login"}},[e._v(" 登录 ")])],1)],1)],1)])]),e._m(0)])},o=[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"account-foot-copyright"},[n("span",[e._v("Copyright © 2020 武汉思维跳跃科技有限公司 版权所有")])])}],l=n("5530"),i=n("2f62"),r=n("b775"),a={register:function(e){return Object(r["c"])("/api/student/user/register",e)}},u={name:"Login",data:function(){return{loginForm:{userName:"",password:"",userLevel:1}}},methods:Object(l["a"])({handleRegister:function(){var e=this;a.register(this.loginForm).then((function(t){t&&1===t.code?e.$router.push({path:"/login"}):e.$message.error(t.message)}))}},Object(i["d"])("user",["setUserName"])),computed:Object(l["a"])({},Object(i["e"])("enumItem",{levelEnum:function(e){return e.user.levelEnum}}))},c=u,p=(n("4565"),n("ea3c"),n("2877")),m=Object(p["a"])(c,s,o,!1,null,"00ebc0b1",null);t["default"]=m.exports},ea3c:function(e,t,n){"use strict";n("7695")}}]);

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1 @@
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-9d96240a"],{"0fd9":function(e,s,t){"use strict";t("315f")},2017:function(e,s,t){"use strict";t("cafe")},"315f":function(e,s,t){},"9ed6":function(e,s,t){"use strict";t.r(s);var o=function(){var e=this,s=e.$createElement,o=e._self._c||s;return o("div",{staticClass:"lowin lowin-blue"},[o("div",{staticClass:"lowin-wrapper"},[o("div",{staticClass:"lowin-box lowin-login"},[o("div",{staticClass:"lowin-box-inner"},[o("el-form",{ref:"loginForm",attrs:{model:e.loginForm,rules:e.loginRules}},[o("img",{staticStyle:{"margin-top":"12px"},attrs:{src:t("cf05"),alt:"logo"}}),o("div",{staticClass:"lowin-group"},[o("label",[e._v("Username")]),o("el-input",{ref:"userName",staticClass:"lowin-input",attrs:{name:"userName",type:"text",tabindex:"1","auto-complete":"on"},model:{value:e.loginForm.userName,callback:function(s){e.$set(e.loginForm,"userName",s)},expression:"loginForm.userName"}})],1),o("div",{staticClass:"lowin-group password-group"},[o("label",[e._v("Password")]),o("el-input",{key:e.passwordType,ref:"password",staticClass:"lowin-input",attrs:{type:e.passwordType,name:"password",tabindex:"2","auto-complete":"on","show-password":""},on:{blur:function(s){e.capsTooltip=!1}},nativeOn:{keyup:[function(s){return e.checkCapslock(s)},function(s){return!s.type.indexOf("key")&&e._k(s.keyCode,"enter",13,s.key,"Enter")?null:e.handleLogin(s)}]},model:{value:e.loginForm.password,callback:function(s){e.$set(e.loginForm,"password",s)},expression:"loginForm.password"}})],1),o("el-button",{staticClass:"lowin-btn login-btn",attrs:{loading:e.loading,type:"text"},nativeOn:{click:function(s){return s.preventDefault(),e.handleLogin(s)}}},[e._v("Login")])],1)],1)])]),e._m(0)])},n=[function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",{staticClass:"account-foot-copyright"},[t("span",[e._v("Copyright © 2020 TekSystems")])])}],a=t("5530"),r=t("2f62"),i=t("7ded"),l={name:"Login",data:function(){var e=function(e,s,t){s.length<5?t(new Error("Username at least 5 characters")):t()},s=function(e,s,t){s.length<5?t(new Error("Password at least 5 characters")):t()};return{loginForm:{userName:"",password:"",remember:!1},loginRules:{userName:[{required:!0,trigger:"blur",validator:e}],password:[{required:!0,trigger:"blur",validator:s}]},passwordType:"password",capsTooltip:!1,loading:!1}},created:function(){},mounted:function(){""===this.loginForm.userName?this.$refs.userName.focus():""===this.loginForm.password&&this.$refs.password.focus()},destroyed:function(){},methods:Object(a["a"])({checkCapslock:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},s=e.shiftKey,t=e.key;t&&1===t.length&&(this.capsTooltip=!!(s&&t>="a"&&t<="z"||!s&&t>="A"&&t<="Z")),"CapsLock"===t&&!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,s=this;this.$refs.loginForm.validate((function(t){if(!t)return!1;e.loading=!0,i["a"].login(e.loginForm).then((function(e){e&&1===e.code?(s.setUserName(s.loginForm.userName),s.$router.push({path:"/"})):(s.loading=!1,s.$message.error(e.message))})).catch((function(e){s.loading=!1}))}))}},Object(r["d"])("user",["setUserName"]))},c=l,u=(t("2017"),t("0fd9"),t("2877")),p=Object(u["a"])(c,o,n,!1,null,"70a27230",null);s["default"]=p.exports},cafe:function(e,s,t){}}]);

View File

@ -0,0 +1 @@
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-feb95860"],{"0b38":function(e,t,r){"use strict";r("cf63")},2909:function(e,t,r){"use strict";r.d(t,"a",(function(){return u}));var i=r("6b75");function s(e){if(Array.isArray(e))return Object(i["a"])(e)}r("a4d3"),r("e01a"),r("d28b"),r("a630"),r("d3b7"),r("3ca3"),r("ddb0");function a(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}var n=r("06c5");function l(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function u(e){return s(e)||a(e)||Object(n["a"])(e)||l()}},"4b84":function(e,t,r){e.exports=r.p+"static/img/3.8bf0150a.png"},"7e3b":function(e,t,r){e.exports=r.p+"static/img/4.8f00b10d.png"},"830d":function(e,t,r){e.exports=r.p+"static/img/1.be57c566.png"},9406:function(e,t,r){"use strict";r.r(t);var i=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticStyle:{"margin-top":"10px"}},[i("el-row",[i("el-carousel",{attrs:{interval:5e3,arrow:"always",type:"card"}},[i("el-carousel-item",[i("img",{staticClass:"carousel-img",attrs:{src:r("830d")}})]),i("el-carousel-item",[i("img",{staticClass:"carousel-img",attrs:{src:r("a62a")}})]),i("el-carousel-item",[i("img",{staticClass:"carousel-img",attrs:{src:r("4b84")}})]),i("el-carousel-item",[i("img",{staticClass:"carousel-img",attrs:{src:r("7e3b")}})])],1)],1),i("el-row",{staticClass:"app-item-contain"},[i("el-form",{ref:"elForm",attrs:{inline:!0,model:e.filterQuery,rules:e.rules}},[i("el-form-item",{attrs:{label:"Industry",prop:"industryId"}},[i("el-select",{attrs:{placeholder:"单选"},model:{value:e.filterQuery.industryId,callback:function(t){e.$set(e.filterQuery,"industryId",t)},expression:"filterQuery.industryId"}},e._l(e.industries,(function(e){return i("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1),i("el-form-item",{attrs:{label:"Skillset",prop:"skillIds"}},[i("el-select",{attrs:{placeholder:"Multiple choices",multiple:""},model:{value:e.filterQuery.skillIds,callback:function(t){e.$set(e.filterQuery,"skillIds",t)},expression:"filterQuery.skillIds"}},e._l(e.skills,(function(e){return i("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1),i("el-form-item",{attrs:{label:"Difficulty",prop:"difficult"}},[i("el-rate",{model:{value:e.filterQuery.difficult,callback:function(t){e.$set(e.filterQuery,"difficult",t)},expression:"filterQuery.difficult"}})],1),i("el-form-item",{attrs:{label:"Question Count",prop:"questionNumber"}},[i("el-input-number",{attrs:{min:1,max:99,step:1,"step-strictly":""},model:{value:e.filterQuery.questionNumber,callback:function(t){e.$set(e.filterQuery,"questionNumber",t)},expression:"filterQuery.questionNumber"}})],1),i("el-form-item",[i("el-button",{attrs:{type:"primary"},on:{click:e.onSubmit}},[e._v("Submit")])],1)],1)],1)],1)},s=[],a=(r("4de4"),r("5530")),n=r("2909"),l=r("2f62"),u=r("b775"),o={index:function(){return Object(u["b"])("/api/student/dashboard/index")},task:function(){return Object(u["b"])("/api/student/dashboard/task")},filter:function(){return Object(u["a"])("/api/student/examination/paper")}},c={data:function(){return{industries:[],skills:[],filterQuery:{industryId:0,skillIds:[],difficult:1,questionNumber:1},rules:{skillIds:[{type:"array",required:!0,message:"Please select at least one",min:1,trigger:"change"}]}}},created:function(){var e=this;o.filter().then((function(t){var r,i;1===t.code&&((r=e.industries).push.apply(r,Object(n["a"])(t.response.industries)),(i=e.skills).push.apply(i,Object(n["a"])(t.response.skills)),e.filterQuery.industryId=e.industries[0].id,e.filterQuery.skillIds.push(e.skills[0].id))}))},methods:{statusTagFormatter:function(e){return this.enumFormat(this.statusTag,e)},statusTextFormatter:function(e){return this.enumFormat(this.statusEnum,e)},onSubmit:function(){var e=this;this.$refs.elForm.validate().then((function(t){var r=e.$router.resolve({name:"ExamPaperRead",query:e.filterQuery});window.open(r.href)})).catch((function(){}))}},computed:Object(a["a"])(Object(a["a"])({},Object(l["c"])("enumItem",["enumFormat"])),Object(l["e"])("enumItem",{statusEnum:function(e){return e.exam.examPaperAnswer.statusEnum},statusTag:function(e){return e.exam.examPaperAnswer.statusTag}}))},f=c,m=(r("0b38"),r("2877")),d=Object(m["a"])(f,i,s,!1,null,"194e5ac4",null);t["default"]=d.exports},a62a:function(e,t,r){e.exports=r.p+"static/img/2.29f439e3.png"},cf63:function(e,t,r){}}]);

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long