|
@@ -14,7 +14,7 @@
|
|
color: #0663A2;
|
|
color: #0663A2;
|
|
cursor: pointer;
|
|
cursor: pointer;
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
.taskWindow, .reSetPasswordWin {
|
|
.taskWindow, .reSetPasswordWin {
|
|
width: 400px;
|
|
width: 400px;
|
|
min-height: 150px;
|
|
min-height: 150px;
|
|
@@ -28,14 +28,14 @@
|
|
text-align: center;
|
|
text-align: center;
|
|
z-index: 99999;
|
|
z-index: 99999;
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
.task-header, .password-header {
|
|
.task-header, .password-header {
|
|
width: 100%;
|
|
width: 100%;
|
|
height: 46px;
|
|
height: 46px;
|
|
background: #5d6d7d;
|
|
background: #5d6d7d;
|
|
color: #fff;
|
|
color: #fff;
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
.task-content, .password-content {
|
|
.task-content, .password-content {
|
|
font-size: 18px;
|
|
font-size: 18px;
|
|
color: #005277;
|
|
color: #005277;
|
|
@@ -44,14 +44,14 @@
|
|
line-height: 30px;
|
|
line-height: 30px;
|
|
word-wrap: break-word;
|
|
word-wrap: break-word;
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
.image-close {
|
|
.image-close {
|
|
margin-top: 15px;
|
|
margin-top: 15px;
|
|
margin-right: 15px;
|
|
margin-right: 15px;
|
|
cursor: pointer;
|
|
cursor: pointer;
|
|
float: right;
|
|
float: right;
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
.title {
|
|
.title {
|
|
font-size: 22px;
|
|
font-size: 22px;
|
|
font-weight: bold;
|
|
font-weight: bold;
|
|
@@ -70,14 +70,14 @@
|
|
margin-left: 320px;
|
|
margin-left: 320px;
|
|
margin-bottom: 20px;
|
|
margin-bottom: 20px;
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
.wrong, .passwordWrong {
|
|
.wrong, .passwordWrong {
|
|
font-size: 12px;
|
|
font-size: 12px;
|
|
color: #f00;
|
|
color: #f00;
|
|
line-height: 30px;
|
|
line-height: 30px;
|
|
padding-left: 20px;
|
|
padding-left: 20px;
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
#cover {
|
|
#cover {
|
|
position: fixed;
|
|
position: fixed;
|
|
z-index: 9999;
|
|
z-index: 9999;
|
|
@@ -90,24 +90,26 @@
|
|
background: #000 none repeat scroll 0% 0%;
|
|
background: #000 none repeat scroll 0% 0%;
|
|
}
|
|
}
|
|
</style>
|
|
</style>
|
|
- <link rel="stylesheet" href="${ctxStatic}/common/animate.min.css" />
|
|
|
|
- <style>
|
|
|
|
- #delete-modal{
|
|
|
|
- position:fixed;
|
|
|
|
- left:0;
|
|
|
|
- right:0;
|
|
|
|
- top:0;
|
|
|
|
- bottom:0;
|
|
|
|
- z-index:500;
|
|
|
|
- display:none;
|
|
|
|
- background:rgba(0,0,0,.3);
|
|
|
|
|
|
+ <link rel="stylesheet" href="${ctxStatic}/common/animate.min.css"/>
|
|
|
|
+ <style>
|
|
|
|
+ #delete-modal {
|
|
|
|
+ position: fixed;
|
|
|
|
+ left: 0;
|
|
|
|
+ right: 0;
|
|
|
|
+ top: 0;
|
|
|
|
+ bottom: 0;
|
|
|
|
+ z-index: 500;
|
|
|
|
+ display: none;
|
|
|
|
+ background: rgba(0, 0, 0, .3);
|
|
}
|
|
}
|
|
|
|
+
|
|
#deleteDiv {
|
|
#deleteDiv {
|
|
- position:absolute;
|
|
|
|
- left:50%;
|
|
|
|
- top:50%;
|
|
|
|
- transform:translateX(-50%) translateY(-50%);
|
|
|
|
|
|
+ position: absolute;
|
|
|
|
+ left: 50%;
|
|
|
|
+ top: 50%;
|
|
|
|
+ transform: translateX(-50%) translateY(-50%);
|
|
}
|
|
}
|
|
|
|
+
|
|
.my-form {
|
|
.my-form {
|
|
padding: 0 20px;
|
|
padding: 0 20px;
|
|
position: fixed;
|
|
position: fixed;
|
|
@@ -120,10 +122,12 @@
|
|
width: 384px;
|
|
width: 384px;
|
|
border: 1px solid #ddd;
|
|
border: 1px solid #ddd;
|
|
}
|
|
}
|
|
|
|
+
|
|
.my-form .my-form-head {
|
|
.my-form .my-form-head {
|
|
padding: 15px 0 10px;
|
|
padding: 15px 0 10px;
|
|
position: relative;
|
|
position: relative;
|
|
}
|
|
}
|
|
|
|
+
|
|
.my-form .my-form-head .close-icon {
|
|
.my-form .my-form-head .close-icon {
|
|
position: absolute;
|
|
position: absolute;
|
|
right: -10px;
|
|
right: -10px;
|
|
@@ -131,56 +135,68 @@
|
|
width: 24px;
|
|
width: 24px;
|
|
cursor: pointer;
|
|
cursor: pointer;
|
|
}
|
|
}
|
|
|
|
+
|
|
.my-form .my-form-head .title-box {
|
|
.my-form .my-form-head .title-box {
|
|
padding-right: 30px;
|
|
padding-right: 30px;
|
|
display: flex;
|
|
display: flex;
|
|
align-items: center;
|
|
align-items: center;
|
|
}
|
|
}
|
|
|
|
+
|
|
.my-form .my-form-head .title-box .title2 {
|
|
.my-form .my-form-head .title-box .title2 {
|
|
font-size: 16px;
|
|
font-size: 16px;
|
|
font-weight: bold;
|
|
font-weight: bold;
|
|
margin-left: 6px;
|
|
margin-left: 6px;
|
|
- color:#595959;
|
|
|
|
|
|
+ color: #595959;
|
|
}
|
|
}
|
|
|
|
+
|
|
.my-form .my-form-head .title-box .warning-icon {
|
|
.my-form .my-form-head .title-box .warning-icon {
|
|
width: 24px;
|
|
width: 24px;
|
|
}
|
|
}
|
|
|
|
+
|
|
.my-form .sub-title {
|
|
.my-form .sub-title {
|
|
color: #595959;
|
|
color: #595959;
|
|
line-height: 22px;
|
|
line-height: 22px;
|
|
font-size: 14px;
|
|
font-size: 14px;
|
|
padding-left: 30px;
|
|
padding-left: 30px;
|
|
}
|
|
}
|
|
|
|
+
|
|
.my-form .sub-title span {
|
|
.my-form .sub-title span {
|
|
color: #F53F3F;
|
|
color: #F53F3F;
|
|
}
|
|
}
|
|
|
|
+
|
|
.my-form .my-form-body {
|
|
.my-form .my-form-body {
|
|
padding: 20px 0;
|
|
padding: 20px 0;
|
|
}
|
|
}
|
|
|
|
+
|
|
.my-form .my-form-body .gray-bg {
|
|
.my-form .my-form-body .gray-bg {
|
|
background: #F0F0F0;
|
|
background: #F0F0F0;
|
|
border-radius: 4px;
|
|
border-radius: 4px;
|
|
padding: 30px 20px 20px;
|
|
padding: 30px 20px 20px;
|
|
}
|
|
}
|
|
|
|
+
|
|
.my-form-item {
|
|
.my-form-item {
|
|
display: flex;
|
|
display: flex;
|
|
align-items: flex-start;
|
|
align-items: flex-start;
|
|
}
|
|
}
|
|
|
|
+
|
|
.my-form-item label {
|
|
.my-form-item label {
|
|
font-size: 14px;
|
|
font-size: 14px;
|
|
color: #595959;
|
|
color: #595959;
|
|
width: 120px;
|
|
width: 120px;
|
|
line-height: 30px;
|
|
line-height: 30px;
|
|
}
|
|
}
|
|
|
|
+
|
|
.my-form-item .control-box {
|
|
.my-form-item .control-box {
|
|
flex: 1;
|
|
flex: 1;
|
|
}
|
|
}
|
|
|
|
+
|
|
.my-form-item .control-box .error-tip {
|
|
.my-form-item .control-box .error-tip {
|
|
height: 24px;
|
|
height: 24px;
|
|
line-height: 20px;
|
|
line-height: 20px;
|
|
font-size: 12px;
|
|
font-size: 12px;
|
|
color: #F53F3F;
|
|
color: #F53F3F;
|
|
}
|
|
}
|
|
|
|
+
|
|
.my-form-foot {
|
|
.my-form-foot {
|
|
display: flex;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
justify-content: space-between;
|
|
@@ -191,29 +207,30 @@
|
|
</head>
|
|
</head>
|
|
<body>
|
|
<body>
|
|
<ul class="nav nav-tabs">
|
|
<ul class="nav nav-tabs">
|
|
-<c:if test="${fnx:hasPrivilegeCode(role_privilege_codes, 'exam_mark-mark')}">
|
|
|
|
- <li><a href="${ctx}/admin/exam/mark?subjectCode=${subject.code}">评卷进度</a></li>
|
|
|
|
|
|
+ <c:if test="${fnx:hasPrivilegeCode(role_privilege_codes, 'exam_mark-mark')}">
|
|
|
|
+ <li><a href="${ctx}/admin/exam/mark?subjectCode=${subject.code}">评卷进度</a></li>
|
|
</c:if>
|
|
</c:if>
|
|
<c:if test="${fnx:hasPrivilegeCode(role_privilege_codes, 'exam_mark-group')}">
|
|
<c:if test="${fnx:hasPrivilegeCode(role_privilege_codes, 'exam_mark-group')}">
|
|
- <li><a href="${ctx}/admin/exam/group?subjectCode=${query.subjectCode}">分组管理</a></li>
|
|
|
|
|
|
+ <li><a href="${ctx}/admin/exam/group?subjectCode=${query.subjectCode}">分组管理</a></li>
|
|
</c:if>
|
|
</c:if>
|
|
<li class="active"><a href="##">评卷员管理</a></li>
|
|
<li class="active"><a href="##">评卷员管理</a></li>
|
|
<c:if test="${fnx:hasPrivilegeCode(role_privilege_codes, 'exam_mark-trial')}">
|
|
<c:if test="${fnx:hasPrivilegeCode(role_privilege_codes, 'exam_mark-trial')}">
|
|
- <li><a href="${ctx}/admin/exam/trial?subjectCode=${query.subjectCode}">试评管理</a></li>
|
|
|
|
|
|
+ <li><a href="${ctx}/admin/exam/trial?subjectCode=${query.subjectCode}">试评管理</a></li>
|
|
</c:if>
|
|
</c:if>
|
|
- <c:if test="${fnx:hasPrivilegeCode(role_privilege_codes, 'exam_mark-library')}">
|
|
|
|
- <li><a href="${ctx}/admin/exam/library?subjectCode=${query.subjectCode}">任务管理</a></li>
|
|
|
|
|
|
+ <c:if test="${fnx:hasPrivilegeCode(role_privilege_codes, 'exam_mark-library')}">
|
|
|
|
+ <li><a href="${ctx}/admin/exam/library?subjectCode=${query.subjectCode}">任务管理</a></li>
|
|
</c:if>
|
|
</c:if>
|
|
- <c:if test="${fnx:hasPrivilegeCode(role_privilege_codes, 'exam_mark-arbitrate')}">
|
|
|
|
- <li><a href="${ctx}/admin/exam/arbitrate?subjectCode=${query.subjectCode}">仲裁管理</a></li>
|
|
|
|
|
|
+ <c:if test="${fnx:hasPrivilegeCode(role_privilege_codes, 'exam_mark-arbitrate')}">
|
|
|
|
+ <li><a href="${ctx}/admin/exam/arbitrate?subjectCode=${query.subjectCode}">仲裁管理</a></li>
|
|
</c:if>
|
|
</c:if>
|
|
- <c:if test="${fnx:hasPrivilegeCode(role_privilege_codes, 'exam_mark-quality')}">
|
|
|
|
- <li><a href="${ctx}/admin/exam/quality?subjectCode=${query.subjectCode}">质量监控</a></li>
|
|
|
|
|
|
+ <c:if test="${fnx:hasPrivilegeCode(role_privilege_codes, 'exam_mark-quality')}">
|
|
|
|
+ <li><a href="${ctx}/admin/exam/quality?subjectCode=${query.subjectCode}">质量监控</a></li>
|
|
</c:if>
|
|
</c:if>
|
|
</ul>
|
|
</ul>
|
|
<div id="importBox" class="hide">
|
|
<div id="importBox" class="hide">
|
|
<form id="importForm" action="${ctx}/admin/exam/marker/import" method="post" enctype="multipart/form-data"
|
|
<form id="importForm" action="${ctx}/admin/exam/marker/import" method="post" enctype="multipart/form-data"
|
|
- style="padding-left:20px;text-align:center;" class="form-search" onsubmit="loading('正在导入,请稍等...');"><br/>
|
|
|
|
|
|
+ style="padding-left:20px;text-align:center;" class="form-search" onsubmit="loading('正在导入,请稍等...');">
|
|
|
|
+ <br/>
|
|
<input name="subjectCode" type="hidden" value="${query.subjectCode }"/>
|
|
<input name="subjectCode" type="hidden" value="${query.subjectCode }"/>
|
|
<input id="uploadFile" name="file" type="file" style="width:330px"/><br/><br/>
|
|
<input id="uploadFile" name="file" type="file" style="width:330px"/><br/><br/>
|
|
<input id="btnImportSubmit" class="btn btn-primary" type="submit" value=" 导 入 "/>
|
|
<input id="btnImportSubmit" class="btn btn-primary" type="submit" value=" 导 入 "/>
|
|
@@ -236,7 +253,7 @@
|
|
<div>
|
|
<div>
|
|
<label>科目</label>
|
|
<label>科目</label>
|
|
<select class="input-large" id="subject-select" name="subjectCode">
|
|
<select class="input-large" id="subject-select" name="subjectCode">
|
|
- <option value="">请选择</option>
|
|
|
|
|
|
+ <option value="">请选择</option>
|
|
<c:forEach items="${subjectList}" var="subject">
|
|
<c:forEach items="${subjectList}" var="subject">
|
|
<option value="${subject.code}"
|
|
<option value="${subject.code}"
|
|
<c:if test="${subject.code==query.subjectCode}">selected</c:if>>${subject.code}-${subject.name}</option>
|
|
<c:if test="${subject.code==query.subjectCode}">selected</c:if>>${subject.code}-${subject.name}</option>
|
|
@@ -252,21 +269,21 @@
|
|
<input type="text" name="name" value="${query.name}" maxlength="30" class="input-small"/>
|
|
<input type="text" name="name" value="${query.name}" maxlength="30" class="input-small"/>
|
|
|
|
|
|
<input id="btnSubmit" class="btn btn-primary" type="button" value="查询" onclick="goSearch()"/>
|
|
<input id="btnSubmit" class="btn btn-primary" type="button" value="查询" onclick="goSearch()"/>
|
|
- <input id="btnImport" class="btn" type="button" value="导入"/>
|
|
|
|
- <a href="###" class="btn hide" id="save-button"">绑定评卷员</a>
|
|
|
|
|
|
+ <input id="btnImport" class="btn" type="button" value="导入"/>
|
|
|
|
+ <a href="###" class="btn hide" id="save-button">绑定评卷员</a>
|
|
<!-- <input id="btnExport" class="btn" type="button" value="导出"/> -->
|
|
<!-- <input id="btnExport" class="btn" type="button" value="导出"/> -->
|
|
|
|
|
|
- <input id="btnEnable" class="btn" type="button" value="启用" onclick="goEnable(true)"/>
|
|
|
|
-
|
|
|
|
- <input id="btnEnable" class="btn" type="button" value="禁用" onclick="goEnable(false)"/>
|
|
|
|
-
|
|
|
|
- <input id="btnRelease" class="btn" type="button" value="回收" onclick="goRelease()"/>
|
|
|
|
-
|
|
|
|
- <input id="btnTaskCount" class="btn" type="button" value="设置评卷数" onclick="goTaskCount()"/>
|
|
|
|
- <c:if test="${web_user.schoolAdmin==true }">
|
|
|
|
-
|
|
|
|
- <input id="btnResetPassword" class="btn" type="button" value="重置密码" onclick="goResetPassword()"/>
|
|
|
|
- </c:if>
|
|
|
|
|
|
+ <input id="btnEnable" class="btn" type="button" value="启用" onclick="goEnable(true)"/>
|
|
|
|
+
|
|
|
|
+ <input id="btnEnable" class="btn" type="button" value="禁用" onclick="goEnable(false)"/>
|
|
|
|
+
|
|
|
|
+ <input id="btnRelease" class="btn" type="button" value="回收" onclick="goRelease()"/>
|
|
|
|
+
|
|
|
|
+ <input id="btnTaskCount" class="btn" type="button" value="设置评卷数" onclick="goTaskCount()"/>
|
|
|
|
+ <c:if test="${web_user.schoolAdmin==true }">
|
|
|
|
+
|
|
|
|
+ <input id="btnResetPassword" class="btn" type="button" value="重置密码" onclick="goResetPassword()"/>
|
|
|
|
+ </c:if>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</form>
|
|
<tags:message content="${message}"/>
|
|
<tags:message content="${message}"/>
|
|
@@ -302,29 +319,33 @@
|
|
</td>
|
|
</td>
|
|
<td>${marker.enable eq true ? "启用" : "禁用"}</td>
|
|
<td>${marker.enable eq true ? "启用" : "禁用"}</td>
|
|
<td>${marker.markedCount}
|
|
<td>${marker.markedCount}
|
|
- <c:if test="${marker.reseting==true}">
|
|
|
|
|
|
+ <c:if test="${marker.reseting==true}">
|
|
正在重置
|
|
正在重置
|
|
</c:if>
|
|
</c:if>
|
|
<c:if test="${fnx:hasPrivilegeCode(role_privilege_codes, 'exam_mark-marker-reset') && marker.reseting==false}">
|
|
<c:if test="${fnx:hasPrivilegeCode(role_privilege_codes, 'exam_mark-marker-reset') && marker.reseting==false}">
|
|
- <a href="javascript:void(0)" class="reset-button" data-code="${marker.subjectCode}" data-number="${marker.groupNumber}" data-progress="${marker.group.percent}" data-id="${marker.id}">重置</a>
|
|
|
|
|
|
+ <a href="javascript:void(0)" class="reset-button" data-code="${marker.subjectCode}" data-number="${marker.groupNumber}" data-progress="${marker.group.percent}" data-id="${marker.id}">重置</a>
|
|
</c:if>
|
|
</c:if>
|
|
</td>
|
|
</td>
|
|
<td>${marker.currentCount}</td>
|
|
<td>${marker.currentCount}</td>
|
|
<td>${marker.topCount}</td>
|
|
<td>${marker.topCount}</td>
|
|
- <td><c:if test="${marker.classCount != 0}"><a href="${ctx}/admin/exam/marker/class/${marker.id}">${marker.classCount}</a></c:if>
|
|
|
|
- <c:if test="${marker.classCount == 0}">0</c:if>
|
|
|
|
|
|
+ <td><c:if test="${marker.classCount != 0}"><a
|
|
|
|
+ href="${ctx}/admin/exam/marker/class/${marker.id}">${marker.classCount}</a></c:if>
|
|
|
|
+ <c:if test="${marker.classCount == 0}">0</c:if>
|
|
</td>
|
|
</td>
|
|
<td>
|
|
<td>
|
|
<c:if test="${web_user.schoolAdmin==true && marker.reseting==false}">
|
|
<c:if test="${web_user.schoolAdmin==true && marker.reseting==false}">
|
|
<c:if test="${marker.enable==true}">
|
|
<c:if test="${marker.enable==true}">
|
|
- <a href="javascript:void(0)" class="toggle-button" data-id="${marker.id}" data-value="false">禁用</a>
|
|
|
|
|
|
+ <a href="javascript:void(0)" class="toggle-button" data-id="${marker.id}"
|
|
|
|
+ data-value="false">禁用</a>
|
|
</c:if>
|
|
</c:if>
|
|
<c:if test="${marker.enable==false}">
|
|
<c:if test="${marker.enable==false}">
|
|
- <a href="javascript:void(0)" class="toggle-button" data-id="${marker.id}" data-value="true">启用</a>
|
|
|
|
|
|
+ <a href="javascript:void(0)" class="toggle-button" data-id="${marker.id}"
|
|
|
|
+ data-value="true">启用</a>
|
|
</c:if>
|
|
</c:if>
|
|
<a href="${ctx}/admin/exam/marker/delete?markerId=${marker.id}">解绑</a>
|
|
<a href="${ctx}/admin/exam/marker/delete?markerId=${marker.id}">解绑</a>
|
|
<a href="javascript:void(0)" class="release-button" data-id="${marker.id}">回收</a>
|
|
<a href="javascript:void(0)" class="release-button" data-id="${marker.id}">回收</a>
|
|
- <a href="javascript:void(0)" class="task-button" data-id="${marker.id}" onclick="showTaskWin('${marker.id}');">设置评卷数</a>
|
|
|
|
|
|
+ <a href="javascript:void(0)" class="task-button" data-id="${marker.id}"
|
|
|
|
+ onclick="showTaskWin('${marker.id}');">设置评卷数</a>
|
|
<a href="javascript:void(0)" class="reSetPassword-button" data-id="${marker.id}"
|
|
<a href="javascript:void(0)" class="reSetPassword-button" data-id="${marker.id}"
|
|
onclick="reSetPassword('${marker.id}');">重置密码</a>
|
|
onclick="reSetPassword('${marker.id}');">重置密码</a>
|
|
</c:if>
|
|
</c:if>
|
|
@@ -337,7 +358,8 @@
|
|
<div class="task-header">
|
|
<div class="task-header">
|
|
<p class="title">设置任务数</p>
|
|
<p class="title">设置任务数</p>
|
|
<p class="image-close"><img src="${ctxStatic}/mark-new/images/images-close.png"/></p></div>
|
|
<p class="image-close"><img src="${ctxStatic}/mark-new/images/images-close.png"/></p></div>
|
|
- <div class="task-content"><input type="text" class="task-count" placeholder="请输入任务数"/><i class="wrong"></i></div>
|
|
|
|
|
|
+ <div class="task-content"><input type="text" class="task-count" placeholder="请输入任务数"/><i class="wrong"></i>
|
|
|
|
+ </div>
|
|
<a href="#" class="btn btn-small btn-info task-btn">确定</a>
|
|
<a href="#" class="btn btn-small btn-info task-btn">确定</a>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
@@ -345,15 +367,16 @@
|
|
<div class="password-header">
|
|
<div class="password-header">
|
|
<p class="title">重置密码</p>
|
|
<p class="title">重置密码</p>
|
|
<p class="image-close password-close"><img src="${ctxStatic}/mark-new/images/images-close.png"/></p></div>
|
|
<p class="image-close password-close"><img src="${ctxStatic}/mark-new/images/images-close.png"/></p></div>
|
|
- <div class="password-content"><input type="text" class="password-value" placeholder="请输入新的密码"/><i class="passwordWrong"></i></div>
|
|
|
|
|
|
+ <div class="password-content"><input type="text" class="password-value" placeholder="请输入新的密码"/><i
|
|
|
|
+ class="passwordWrong"></i></div>
|
|
<a href="#" class="btn btn-small btn-info password-btn">确定</a>
|
|
<a href="#" class="btn btn-small btn-info password-btn">确定</a>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div id="delete-modal">
|
|
<div id="delete-modal">
|
|
- <div id="deleteDiv" class="my-form form-horizontal">
|
|
|
|
|
|
+ <div id="deleteDiv" class="my-form form-horizontal">
|
|
<div class="my-form-head">
|
|
<div class="my-form-head">
|
|
<div class="title-box">
|
|
<div class="title-box">
|
|
- <img src="${ctxStatic}/images/dialog_warning_icon.png" class="warning-icon" />
|
|
|
|
|
|
+ <img src="${ctxStatic}/images/dialog_warning_icon.png" class="warning-icon"/>
|
|
<span class="title2"></span>
|
|
<span class="title2"></span>
|
|
</div>
|
|
</div>
|
|
<img src="${ctxStatic}/images/dialog_close_icon.png" class="close-icon" onclick="deleteDivHide()"/>
|
|
<img src="${ctxStatic}/images/dialog_close_icon.png" class="close-icon" onclick="deleteDivHide()"/>
|
|
@@ -427,90 +450,94 @@
|
|
top.$('.jbox-body .jbox-icon').css('top', '55px');
|
|
top.$('.jbox-body .jbox-icon').css('top', '55px');
|
|
});
|
|
});
|
|
$('.reset-button').click(function () {
|
|
$('.reset-button').click(function () {
|
|
- var deleteCheck = '${deleteCheck}';
|
|
|
|
- var id = $(this).attr('data-id');
|
|
|
|
- var subjectCode = $(this).attr('data-code');
|
|
|
|
- var groupNumber = $(this).attr('data-number');
|
|
|
|
- var progress = $(this).attr('data-progress');
|
|
|
|
- if(deleteCheck=='false'){
|
|
|
|
- deleteDivHide();
|
|
|
|
- if (!confirm("确定要重置改评卷员吗?")) {
|
|
|
|
- return;
|
|
|
|
- }
|
|
|
|
- $.post('${ctx}/admin/exam/marker/reset', {id: id}, function (result) {
|
|
|
|
- if (result.success == true) {
|
|
|
|
- alert('重置成功');
|
|
|
|
- $("#searchForm").submit();
|
|
|
|
- } else {
|
|
|
|
- alert(result.message);
|
|
|
|
- }
|
|
|
|
- });
|
|
|
|
- return;
|
|
|
|
- }
|
|
|
|
- dialogObj = createDialog();
|
|
|
|
- dialogObj.initDialog({ progress: progress, subjectCode: subjectCode, groupNumber: groupNumber }, function (initParams,deleteCode) {
|
|
|
|
- //这个回调方法里写进度小余10%的业务分支
|
|
|
|
- deleteDivHide();
|
|
|
|
- if(deleteCode!=null && deleteCode!=''){
|
|
|
|
- $.post('${ctx}/admin/exam/marker/reset', {id: id,deleteCode:deleteCode}, function (result) {
|
|
|
|
- if (result.success == true) {
|
|
|
|
- alert('重置成功');
|
|
|
|
- $("#searchForm").submit();
|
|
|
|
- } else {
|
|
|
|
- alert(result.message);
|
|
|
|
- }
|
|
|
|
- });
|
|
|
|
- return;
|
|
|
|
- }else{
|
|
|
|
- $.post('${ctx}/admin/exam/marker/reset', {id: id}, function (result) {
|
|
|
|
- if (result.success == true) {
|
|
|
|
- alert('重置成功');
|
|
|
|
- $("#searchForm").submit();
|
|
|
|
- } else {
|
|
|
|
- alert(result.message);
|
|
|
|
- }
|
|
|
|
- });
|
|
|
|
- return;
|
|
|
|
- }
|
|
|
|
- })
|
|
|
|
|
|
+ var deleteCheck = '${deleteCheck}';
|
|
|
|
+ var id = $(this).attr('data-id');
|
|
|
|
+ var subjectCode = $(this).attr('data-code');
|
|
|
|
+ var groupNumber = $(this).attr('data-number');
|
|
|
|
+ var progress = $(this).attr('data-progress');
|
|
|
|
+ if (deleteCheck == 'false') {
|
|
|
|
+ deleteDivHide();
|
|
|
|
+ if (!confirm("确定要重置改评卷员吗?")) {
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
|
|
+ $.post('${ctx}/admin/exam/marker/reset', {id: id}, function (result) {
|
|
|
|
+ if (result.success == true) {
|
|
|
|
+ alert('重置成功');
|
|
|
|
+ $("#searchForm").submit();
|
|
|
|
+ } else {
|
|
|
|
+ alert(result.message);
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
|
|
+ dialogObj = createDialog();
|
|
|
|
+ dialogObj.initDialog({
|
|
|
|
+ progress: progress,
|
|
|
|
+ subjectCode: subjectCode,
|
|
|
|
+ groupNumber: groupNumber
|
|
|
|
+ }, function (initParams, deleteCode) {
|
|
|
|
+ //这个回调方法里写进度小余10%的业务分支
|
|
|
|
+ deleteDivHide();
|
|
|
|
+ if (deleteCode != null && deleteCode != '') {
|
|
|
|
+ $.post('${ctx}/admin/exam/marker/reset', {id: id, deleteCode: deleteCode}, function (result) {
|
|
|
|
+ if (result.success == true) {
|
|
|
|
+ alert('重置成功');
|
|
|
|
+ $("#searchForm").submit();
|
|
|
|
+ } else {
|
|
|
|
+ alert(result.message);
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ return;
|
|
|
|
+ } else {
|
|
|
|
+ $.post('${ctx}/admin/exam/marker/reset', {id: id}, function (result) {
|
|
|
|
+ if (result.success == true) {
|
|
|
|
+ alert('重置成功');
|
|
|
|
+ $("#searchForm").submit();
|
|
|
|
+ } else {
|
|
|
|
+ alert(result.message);
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
|
|
+ })
|
|
});
|
|
});
|
|
$('.toggle-button').click(function () {
|
|
$('.toggle-button').click(function () {
|
|
var id = $(this).attr('data-id');
|
|
var id = $(this).attr('data-id');
|
|
var enable = $(this).attr('data-value');
|
|
var enable = $(this).attr('data-value');
|
|
- var check_list =[];
|
|
|
|
|
|
+ var check_list = [];
|
|
check_list.push(id);
|
|
check_list.push(id);
|
|
$.ajax({
|
|
$.ajax({
|
|
- url:"${ctx}/admin/exam/marker/toggle",
|
|
|
|
- data:{ids: check_list, enable: enable},
|
|
|
|
- traditional:true,
|
|
|
|
- type:"post",
|
|
|
|
- success:function (result) {
|
|
|
|
|
|
+ url: "${ctx}/admin/exam/marker/toggle",
|
|
|
|
+ data: {ids: check_list, enable: enable},
|
|
|
|
+ traditional: true,
|
|
|
|
+ type: "post",
|
|
|
|
+ success: function (result) {
|
|
if (result.success == true) {
|
|
if (result.success == true) {
|
|
alert('修改成功');
|
|
alert('修改成功');
|
|
$("#searchForm").submit();
|
|
$("#searchForm").submit();
|
|
} else {
|
|
} else {
|
|
alert(result.message);
|
|
alert(result.message);
|
|
}
|
|
}
|
|
- }
|
|
|
|
|
|
+ }
|
|
});
|
|
});
|
|
});
|
|
});
|
|
$('.release-button').click(function () {
|
|
$('.release-button').click(function () {
|
|
var id = $(this).attr('data-id');
|
|
var id = $(this).attr('data-id');
|
|
- var check_list =[];
|
|
|
|
|
|
+ var check_list = [];
|
|
check_list.push(id);
|
|
check_list.push(id);
|
|
$.ajax({
|
|
$.ajax({
|
|
- url:"${ctx}/admin/exam/marker/release",
|
|
|
|
- data:{ids: check_list},
|
|
|
|
- traditional:true,
|
|
|
|
- type:"post",
|
|
|
|
- success:function (result) {
|
|
|
|
|
|
+ url: "${ctx}/admin/exam/marker/release",
|
|
|
|
+ data: {ids: check_list},
|
|
|
|
+ traditional: true,
|
|
|
|
+ type: "post",
|
|
|
|
+ success: function (result) {
|
|
if (result.success == true) {
|
|
if (result.success == true) {
|
|
alert('回收成功');
|
|
alert('回收成功');
|
|
$("#searchForm").submit();
|
|
$("#searchForm").submit();
|
|
} else {
|
|
} else {
|
|
alert(result.message);
|
|
alert(result.message);
|
|
}
|
|
}
|
|
- }
|
|
|
|
|
|
+ }
|
|
});
|
|
});
|
|
});
|
|
});
|
|
$('#subject-select').change(function () {
|
|
$('#subject-select').change(function () {
|
|
@@ -556,7 +583,7 @@
|
|
$('.task-count').val('');
|
|
$('.task-count').val('');
|
|
$('.taskWindow').show();
|
|
$('.taskWindow').show();
|
|
$('#cover').show();
|
|
$('#cover').show();
|
|
- check_list =[];
|
|
|
|
|
|
+ check_list = [];
|
|
check_list.push(obj);
|
|
check_list.push(obj);
|
|
}
|
|
}
|
|
|
|
|
|
@@ -565,7 +592,7 @@
|
|
$('.password-value').val('');
|
|
$('.password-value').val('');
|
|
$('.reSetPasswordWin').show();
|
|
$('.reSetPasswordWin').show();
|
|
$('#cover').show();
|
|
$('#cover').show();
|
|
- check_list =[];
|
|
|
|
|
|
+ check_list = [];
|
|
check_list.push(obj);
|
|
check_list.push(obj);
|
|
}
|
|
}
|
|
|
|
|
|
@@ -577,12 +604,13 @@
|
|
$('.reSetPasswordWin').hide();
|
|
$('.reSetPasswordWin').hide();
|
|
$('#cover').hide();
|
|
$('#cover').hide();
|
|
});
|
|
});
|
|
|
|
+
|
|
function goTaskCount() {
|
|
function goTaskCount() {
|
|
- check_list = [];
|
|
|
|
- $("input[name='ids']:checked").each(function(){
|
|
|
|
- check_list.push($(this).val())
|
|
|
|
- })
|
|
|
|
- if(check_list.length==0) {
|
|
|
|
|
|
+ check_list = [];
|
|
|
|
+ $("input[name='ids']:checked").each(function () {
|
|
|
|
+ check_list.push($(this).val())
|
|
|
|
+ })
|
|
|
|
+ if (check_list.length == 0) {
|
|
alert('请选择');
|
|
alert('请选择');
|
|
return false;
|
|
return false;
|
|
}
|
|
}
|
|
@@ -592,6 +620,7 @@
|
|
$('#cover').show();
|
|
$('#cover').show();
|
|
return false;
|
|
return false;
|
|
}
|
|
}
|
|
|
|
+
|
|
$('.task-btn').click(function () {
|
|
$('.task-btn').click(function () {
|
|
var taskCount = $('.task-count').val();
|
|
var taskCount = $('.task-count').val();
|
|
var wrongMessage = $('.wrong');
|
|
var wrongMessage = $('.wrong');
|
|
@@ -610,36 +639,38 @@
|
|
}
|
|
}
|
|
}
|
|
}
|
|
$.ajax({
|
|
$.ajax({
|
|
- url:"${ctx}/admin/exam/marker/setTaskCount",
|
|
|
|
- data:{ids: check_list, taskCount: taskCount},
|
|
|
|
- traditional:true,
|
|
|
|
- type:"post",
|
|
|
|
- success:function (result) {
|
|
|
|
|
|
+ url: "${ctx}/admin/exam/marker/setTaskCount",
|
|
|
|
+ data: {ids: check_list, taskCount: taskCount},
|
|
|
|
+ traditional: true,
|
|
|
|
+ type: "post",
|
|
|
|
+ success: function (result) {
|
|
if (result.success == true) {
|
|
if (result.success == true) {
|
|
alert('设置成功');
|
|
alert('设置成功');
|
|
$("#searchForm").submit();
|
|
$("#searchForm").submit();
|
|
} else {
|
|
} else {
|
|
alert(result.message);
|
|
alert(result.message);
|
|
}
|
|
}
|
|
- $('.taskWindow').hide();
|
|
|
|
- }
|
|
|
|
|
|
+ $('.taskWindow').hide();
|
|
|
|
+ }
|
|
});
|
|
});
|
|
});
|
|
});
|
|
|
|
+
|
|
function goResetPassword() {
|
|
function goResetPassword() {
|
|
- check_list = [];
|
|
|
|
- $("input[name='ids']:checked").each(function(){
|
|
|
|
- check_list.push($(this).val())
|
|
|
|
- })
|
|
|
|
- if(check_list.length==0) {
|
|
|
|
|
|
+ check_list = [];
|
|
|
|
+ $("input[name='ids']:checked").each(function () {
|
|
|
|
+ check_list.push($(this).val())
|
|
|
|
+ })
|
|
|
|
+ if (check_list.length == 0) {
|
|
alert('请选择');
|
|
alert('请选择');
|
|
return false;
|
|
return false;
|
|
}
|
|
}
|
|
- $('.passwordWrong').html('');
|
|
|
|
|
|
+ $('.passwordWrong').html('');
|
|
$('.password-value').val('');
|
|
$('.password-value').val('');
|
|
$('.reSetPasswordWin').show();
|
|
$('.reSetPasswordWin').show();
|
|
$('#cover').show();
|
|
$('#cover').show();
|
|
return false;
|
|
return false;
|
|
}
|
|
}
|
|
|
|
+
|
|
$('.password-btn').click(function () {
|
|
$('.password-btn').click(function () {
|
|
var password = $('.password-value').val();
|
|
var password = $('.password-value').val();
|
|
var wrongMessage = $('.passwordWrong');
|
|
var wrongMessage = $('.passwordWrong');
|
|
@@ -652,11 +683,11 @@
|
|
return false;
|
|
return false;
|
|
}
|
|
}
|
|
$.ajax({
|
|
$.ajax({
|
|
- url:"${ctx}/admin/exam/marker/reSetPassword",
|
|
|
|
- data:{ids: check_list, password: password},
|
|
|
|
- traditional:true,
|
|
|
|
- type:"post",
|
|
|
|
- success:function (result) {
|
|
|
|
|
|
+ url: "${ctx}/admin/exam/marker/reSetPassword",
|
|
|
|
+ data: {ids: check_list, password: password},
|
|
|
|
+ traditional: true,
|
|
|
|
+ type: "post",
|
|
|
|
+ success: function (result) {
|
|
if (result.success == true) {
|
|
if (result.success == true) {
|
|
alert('修改成功');
|
|
alert('修改成功');
|
|
$("#searchForm").submit();
|
|
$("#searchForm").submit();
|
|
@@ -664,7 +695,7 @@
|
|
alert(result.message);
|
|
alert(result.message);
|
|
}
|
|
}
|
|
$('.reSetPasswordWin').hide();
|
|
$('.reSetPasswordWin').hide();
|
|
- }
|
|
|
|
|
|
+ }
|
|
});
|
|
});
|
|
});
|
|
});
|
|
$('#save-button').click(function () {
|
|
$('#save-button').click(function () {
|
|
@@ -678,167 +709,171 @@
|
|
return true;
|
|
return true;
|
|
});
|
|
});
|
|
$('#group-select').change(function () {
|
|
$('#group-select').change(function () {
|
|
- var groupNumber = $('#group-select').val();
|
|
|
|
- if(groupNumber==''){
|
|
|
|
- $('#save-button').hide();
|
|
|
|
- }else{
|
|
|
|
- $('#save-button').show();
|
|
|
|
- }
|
|
|
|
|
|
+ var groupNumber = $('#group-select').val();
|
|
|
|
+ if (groupNumber == '') {
|
|
|
|
+ $('#save-button').hide();
|
|
|
|
+ } else {
|
|
|
|
+ $('#save-button').show();
|
|
|
|
+ }
|
|
});
|
|
});
|
|
$("#ids").change(function () {
|
|
$("#ids").change(function () {
|
|
if ($("#ids").is(':checked')) {
|
|
if ($("#ids").is(':checked')) {
|
|
$(".ids").attr("checked", true);
|
|
$(".ids").attr("checked", true);
|
|
} else {
|
|
} else {
|
|
- $(".ids").attr("checked", false);
|
|
|
|
|
|
+ $(".ids").attr("checked", false);
|
|
}
|
|
}
|
|
});
|
|
});
|
|
-
|
|
|
|
|
|
+
|
|
$(".ids").change(function () {
|
|
$(".ids").change(function () {
|
|
- var all = true;
|
|
|
|
- $("input[name='ids']").each(function(){
|
|
|
|
- if(!$(this).is(':checked')){
|
|
|
|
- all = false;
|
|
|
|
- }
|
|
|
|
- })
|
|
|
|
- $("#ids").attr("checked", all);
|
|
|
|
|
|
+ var all = true;
|
|
|
|
+ $("input[name='ids']").each(function () {
|
|
|
|
+ if (!$(this).is(':checked')) {
|
|
|
|
+ all = false;
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ $("#ids").attr("checked", all);
|
|
});
|
|
});
|
|
|
|
+
|
|
function goEnable(enable) {
|
|
function goEnable(enable) {
|
|
- var check_list = []
|
|
|
|
- $("input[name='ids']:checked").each(function(){
|
|
|
|
- check_list.push($(this).val())
|
|
|
|
- })
|
|
|
|
- if(check_list.length==0) {
|
|
|
|
|
|
+ var check_list = []
|
|
|
|
+ $("input[name='ids']:checked").each(function () {
|
|
|
|
+ check_list.push($(this).val())
|
|
|
|
+ })
|
|
|
|
+ if (check_list.length == 0) {
|
|
alert('请选择');
|
|
alert('请选择');
|
|
return false;
|
|
return false;
|
|
}
|
|
}
|
|
$.ajax({
|
|
$.ajax({
|
|
- url:"${ctx}/admin/exam/marker/toggle",
|
|
|
|
- data:{ids: check_list, enable: enable},
|
|
|
|
- traditional:true,
|
|
|
|
- type:"post",
|
|
|
|
- success:function (result) {
|
|
|
|
|
|
+ url: "${ctx}/admin/exam/marker/toggle",
|
|
|
|
+ data: {ids: check_list, enable: enable},
|
|
|
|
+ traditional: true,
|
|
|
|
+ type: "post",
|
|
|
|
+ success: function (result) {
|
|
if (result.success == true) {
|
|
if (result.success == true) {
|
|
alert('修改成功');
|
|
alert('修改成功');
|
|
$("#searchForm").submit();
|
|
$("#searchForm").submit();
|
|
} else {
|
|
} else {
|
|
alert(result.message);
|
|
alert(result.message);
|
|
}
|
|
}
|
|
- }
|
|
|
|
|
|
+ }
|
|
});
|
|
});
|
|
}
|
|
}
|
|
|
|
+
|
|
function goRelease() {
|
|
function goRelease() {
|
|
- var check_list = []
|
|
|
|
- $("input[name='ids']:checked").each(function(){
|
|
|
|
- check_list.push($(this).val())
|
|
|
|
- })
|
|
|
|
- if(check_list.length==0) {
|
|
|
|
|
|
+ var check_list = []
|
|
|
|
+ $("input[name='ids']:checked").each(function () {
|
|
|
|
+ check_list.push($(this).val())
|
|
|
|
+ })
|
|
|
|
+ if (check_list.length == 0) {
|
|
alert('请选择');
|
|
alert('请选择');
|
|
return false;
|
|
return false;
|
|
}
|
|
}
|
|
$.ajax({
|
|
$.ajax({
|
|
- url:"${ctx}/admin/exam/marker/release",
|
|
|
|
- data:{ids: check_list},
|
|
|
|
- traditional:true,
|
|
|
|
- type:"post",
|
|
|
|
- success:function (result) {
|
|
|
|
|
|
+ url: "${ctx}/admin/exam/marker/release",
|
|
|
|
+ data: {ids: check_list},
|
|
|
|
+ traditional: true,
|
|
|
|
+ type: "post",
|
|
|
|
+ success: function (result) {
|
|
if (result.success == true) {
|
|
if (result.success == true) {
|
|
alert('回收成功');
|
|
alert('回收成功');
|
|
$("#searchForm").submit();
|
|
$("#searchForm").submit();
|
|
} else {
|
|
} else {
|
|
alert(result.message);
|
|
alert(result.message);
|
|
}
|
|
}
|
|
- }
|
|
|
|
|
|
+ }
|
|
});
|
|
});
|
|
}
|
|
}
|
|
</script>
|
|
</script>
|
|
<script>
|
|
<script>
|
|
-function deleteDivHide(){
|
|
|
|
- $('#delete-modal').hide();
|
|
|
|
-}
|
|
|
|
-var dialogObj=null;
|
|
|
|
-function createDialog() {
|
|
|
|
- return {
|
|
|
|
- initParams: {},
|
|
|
|
- setDialogTitle: function (index) {
|
|
|
|
- if (index < 4) {
|
|
|
|
- $('#deleteDiv .title2').html('第' + index + '次警告');
|
|
|
|
- $('.sub-title1,.subjectCode,.groupNumber').show();
|
|
|
|
- $('.sub-title2,.authCode').hide();
|
|
|
|
|
|
+ function deleteDivHide() {
|
|
|
|
+ $('#delete-modal').hide();
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ var dialogObj = null;
|
|
|
|
+
|
|
|
|
+ function createDialog() {
|
|
|
|
+ return {
|
|
|
|
+ initParams: {},
|
|
|
|
+ setDialogTitle: function (index) {
|
|
|
|
+ if (index < 4) {
|
|
|
|
+ $('#deleteDiv .title2').html('第' + index + '次警告');
|
|
|
|
+ $('.sub-title1,.subjectCode,.groupNumber').show();
|
|
|
|
+ $('.sub-title2,.authCode').hide();
|
|
|
|
|
|
- } else {
|
|
|
|
- $('#deleteDiv .title').html('分组授权码');
|
|
|
|
- $('.sub-title1,.subjectCode,.groupNumber').hide();
|
|
|
|
- $('.sub-title2,.authCode').show();
|
|
|
|
- }
|
|
|
|
- },
|
|
|
|
- validate: function () {
|
|
|
|
- if (this.warningIndex <= 3) {
|
|
|
|
- var subjectCodeVal = $('.subjectCode input').val();
|
|
|
|
- var groupNumberVal = $('.groupNumber input').val();
|
|
|
|
- $('.subjectCode input+.error-tip').html(!subjectCodeVal?'请输入科目代码':subjectCodeVal != this.initParams.subjectCode?'输入的科目代码不正确':'')
|
|
|
|
- $('.groupNumber input+.error-tip').html(!groupNumberVal?'请输入分组序号':groupNumberVal != this.initParams.groupNumber?'输入的分组序号不正确':'')
|
|
|
|
-
|
|
|
|
- if (!subjectCodeVal || !groupNumberVal || subjectCodeVal != this.initParams.subjectCode || groupNumberVal != this.initParams.groupNumber) {
|
|
|
|
- return;
|
|
|
|
} else {
|
|
} else {
|
|
- this.next();
|
|
|
|
|
|
+ $('#deleteDiv .title').html('分组授权码');
|
|
|
|
+ $('.sub-title1,.subjectCode,.groupNumber').hide();
|
|
|
|
+ $('.sub-title2,.authCode').show();
|
|
}
|
|
}
|
|
- } else if (this.warningIndex == 4) {
|
|
|
|
- var authCodeVal = $('.authCode input').val();
|
|
|
|
- if(!authCodeVal){
|
|
|
|
- $('.authCode input+.error-tip').html('请输入授权码');
|
|
|
|
- return;
|
|
|
|
- }else{
|
|
|
|
- $('.authCode input+.error-tip').html('');
|
|
|
|
- this.next();
|
|
|
|
|
|
+ },
|
|
|
|
+ validate: function () {
|
|
|
|
+ if (this.warningIndex <= 3) {
|
|
|
|
+ var subjectCodeVal = $('.subjectCode input').val();
|
|
|
|
+ var groupNumberVal = $('.groupNumber input').val();
|
|
|
|
+ $('.subjectCode input+.error-tip').html(!subjectCodeVal ? '请输入科目代码' : subjectCodeVal != this.initParams.subjectCode ? '输入的科目代码不正确' : '')
|
|
|
|
+ $('.groupNumber input+.error-tip').html(!groupNumberVal ? '请输入分组序号' : groupNumberVal != this.initParams.groupNumber ? '输入的分组序号不正确' : '')
|
|
|
|
+
|
|
|
|
+ if (!subjectCodeVal || !groupNumberVal || subjectCodeVal != this.initParams.subjectCode || groupNumberVal != this.initParams.groupNumber) {
|
|
|
|
+ return;
|
|
|
|
+ } else {
|
|
|
|
+ this.next();
|
|
|
|
+ }
|
|
|
|
+ } else if (this.warningIndex == 4) {
|
|
|
|
+ var authCodeVal = $('.authCode input').val();
|
|
|
|
+ if (!authCodeVal) {
|
|
|
|
+ $('.authCode input+.error-tip').html('请输入授权码');
|
|
|
|
+ return;
|
|
|
|
+ } else {
|
|
|
|
+ $('.authCode input+.error-tip').html('');
|
|
|
|
+ this.next();
|
|
|
|
+ }
|
|
}
|
|
}
|
|
- }
|
|
|
|
|
|
|
|
- },
|
|
|
|
- next() {
|
|
|
|
- if (this.warningIndex == 4) {
|
|
|
|
- this.callback(this.initParams,$('.authCode input').val());
|
|
|
|
- } else if (this.times <= 3 && this.times == this.warningIndex) {
|
|
|
|
- this.callback(this.initParams);
|
|
|
|
- } else {
|
|
|
|
- $('.subjectCode input+.error-tip').html('');
|
|
|
|
- $('.subjectCode input,.groupNumber input').val('')
|
|
|
|
- $('.groupNumber input+.error-tip').html('');
|
|
|
|
- this.warningIndex++;
|
|
|
|
- $('#deleteDiv').removeClass('animate__animated animate__fadeIn')
|
|
|
|
- setTimeout(function(){
|
|
|
|
- $('#deleteDiv').addClass('animate__animated animate__fadeIn')
|
|
|
|
- },0)
|
|
|
|
|
|
+ },
|
|
|
|
+ next() {
|
|
|
|
+ if (this.warningIndex == 4) {
|
|
|
|
+ this.callback(this.initParams, $('.authCode input').val());
|
|
|
|
+ } else if (this.times <= 3 && this.times == this.warningIndex) {
|
|
|
|
+ this.callback(this.initParams);
|
|
|
|
+ } else {
|
|
|
|
+ $('.subjectCode input+.error-tip').html('');
|
|
|
|
+ $('.subjectCode input,.groupNumber input').val('')
|
|
|
|
+ $('.groupNumber input+.error-tip').html('');
|
|
|
|
+ this.warningIndex++;
|
|
|
|
+ $('#deleteDiv').removeClass('animate__animated animate__fadeIn')
|
|
|
|
+ setTimeout(function () {
|
|
|
|
+ $('#deleteDiv').addClass('animate__animated animate__fadeIn')
|
|
|
|
+ }, 0)
|
|
|
|
+ this.setDialogTitle(this.warningIndex);
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ warningIndex: 1,//当前正在进行的第几次输入
|
|
|
|
+ times: 0,//需要重复输入的次数
|
|
|
|
+ callback: null,
|
|
|
|
+ initDialog: function (initParams, callBack) {
|
|
|
|
+ this.initParams = initParams;
|
|
|
|
+ var progress = initParams.progress;
|
|
|
|
+ if (callBack) {
|
|
|
|
+ this.callback = callBack;
|
|
|
|
+ if (progress <= 10) {
|
|
|
|
+ callBack(initParams);
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ this.times = progress <= 80 ? 2 : progress >= 80 && progress < 100 ? 3 : 4;
|
|
|
|
+ this.warningIndex = 1;
|
|
|
|
+ $('#delete-modal').show();
|
|
this.setDialogTitle(this.warningIndex);
|
|
this.setDialogTitle(this.warningIndex);
|
|
- }
|
|
|
|
- },
|
|
|
|
- warningIndex: 1,//当前正在进行的第几次输入
|
|
|
|
- times: 0,//需要重复输入的次数
|
|
|
|
- callback:null,
|
|
|
|
- initDialog: function (initParams, callBack) {
|
|
|
|
- this.initParams = initParams;
|
|
|
|
- var progress = initParams.progress;
|
|
|
|
- if(callBack){
|
|
|
|
- this.callback = callBack;
|
|
|
|
- if (progress <= 10) {
|
|
|
|
- callBack(initParams);
|
|
|
|
- return;
|
|
|
|
|
|
+ },
|
|
|
|
+ submit: function (index) {
|
|
|
|
+ console.log('你最开始传入的基础参数initParams为:', this.initParams);
|
|
|
|
+ if (this.warningIndex == 4) {
|
|
|
|
+ console.log('你输入的授权码为:' + $('.authCode input').val())
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- this.times = progress <= 80 ? 2 : progress >= 80 && progress < 100 ? 3 : 4;
|
|
|
|
- this.warningIndex = 1;
|
|
|
|
- $('#delete-modal').show();
|
|
|
|
- this.setDialogTitle(this.warningIndex);
|
|
|
|
- },
|
|
|
|
- submit: function (index) {
|
|
|
|
- console.log('你最开始传入的基础参数initParams为:',this.initParams);
|
|
|
|
- if(this.warningIndex==4){
|
|
|
|
- console.log('你输入的授权码为:'+$('.authCode input').val())
|
|
|
|
- }
|
|
|
|
}
|
|
}
|
|
|
|
+
|
|
}
|
|
}
|
|
-
|
|
|
|
-}
|
|
|
|
</script>
|
|
</script>
|
|
</body>
|
|
</body>
|
|
</html>
|
|
</html>
|