<!DOCTYPE html>
|
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
|
<head>
|
<th:block th:include="include :: header('批量导入测试人员名单列表')"/>
|
<th:block th:include="include :: summernote-css" />
|
</head>
|
<body class="gray-bg">
|
<div class="container-div">
|
<div class="row">
|
<div class="col-sm-12 search-collapse">
|
<form id="formId">
|
<div class="select-list">
|
<ul>
|
<!-- <li>-->
|
<!-- <p>[[#{jsp.testPackage.firstName}]]</p>-->
|
<!-- <input type="text" name="firstName"/>-->
|
<!-- </li>-->
|
<!-- <li>-->
|
<!-- <p>[[#{jsp.testPackage.lastName}]]</p>-->
|
<!-- <input type="text" name="lastName"/>-->
|
<!-- </li>-->
|
<li>
|
<p>[[#{jsp.testPackage.name}]]</p>
|
<input type="text" name="memberName" th:value="${memberNameSend}"/>
|
</li>
|
<li>
|
<p>[[#{jsp.testPackage.email}]]</p>
|
<input type="text" name="memberEmail" th:value="${memberEmailSend}"/>
|
</li>
|
<li>
|
<p>[[#{jsp.system.user.profile.003}]]:</p>
|
<input type="text" name="memberPhone" th:value="${memberPhoneSend}"/>
|
</li>
|
<li>
|
<p>[[#{testPackage.TestPassword}]]:</p>
|
<input type="text" name="token" th:value="${tokenSend}"/>
|
</li>
|
<!-- <li>-->
|
<!-- <p>[[#{basis.state}]]:</p>-->
|
<!-- <select name="status" th:with="type=${@dict.getType('test_member_status')}">-->
|
<!-- <option value="">All</option>-->
|
<!-- <option th:each="dict : ${type}" th:text="${dict.dictLabel}"-->
|
<!-- th:value="${dict.dictValue}"></option>-->
|
<!-- </select>-->
|
<!-- </li>-->
|
<li>
|
<a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i
|
class="fa fa-search"></i> [[#{basis.search}]]</a>
|
<a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i
|
class="fa fa-refresh"></i> [[#{basis.reset}]]</a>
|
</li>
|
</ul>
|
</div>
|
</form>
|
</div>
|
|
<!-- <div class="btn-group-sm" id="toolbar" role="group">-->
|
<!-- <a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="exam:testMember:export">-->
|
<!-- <i class="fa fa-download"></i> [[#{basis.export}]]-->
|
<!-- </a>-->
|
<!-- </div>-->
|
<div class="col-sm-12 select-table table-striped">
|
<table id="bootstrap-table" data-mobile-responsive="true"></table>
|
</div>
|
|
</div>
|
</div>
|
|
<th:block th:include="include :: footer"/>
|
<th:block th:include="include :: summernote-js" />
|
<script th:inline="javascript">
|
var editFlag = [[${@permission.hasPermi('exam:testMember:edit')}]];
|
var viewTestProgress = [[${@permission.hasPermi('exam:viewTestProgress:edit')}]];
|
var removeFlag = [[${@permission.hasPermi('exam:testMember:remove')}]];
|
var prefix = ctx + "exam/testMember";
|
var prefix_report = ctx + "exam/report";
|
var sms_type = [[${@dict.getType('sms_type')}]];
|
var email_status = [[${@dict.getType('email_status')}]];
|
var test_member_status = [[${@dict.getType('test_member_status')}]];
|
var testId = [[${testpkg.id}]]
|
|
$(function () {
|
var options = {
|
url: prefix + "/queryList",
|
createUrl: prefix + "/add/" + $("#testId").val(),
|
updateUrl: prefix + "/edit/{id}",
|
removeUrl: prefix + "/remove",
|
exportUrl: prefix + "/export",
|
importUrl: prefix + "/importData/" + $("#testId").val(),
|
importTemplateUrl: prefix + "/importTemplate",
|
modalName: [[#{jsp.exam.test_package.032}]],
|
columns: [{
|
checkbox: true
|
},
|
{
|
field: 'memberId',
|
title: [[#{jsp.exam.test_package.033}]],
|
visible: false
|
},
|
{
|
field: 'memberName',
|
title: [[#{jsp.exam.report.008}]]
|
},
|
{
|
field: 'memberDept',
|
title: [[#{jsp.system.dept.002}]]
|
},
|
{
|
field: 'memberEmail',
|
title: [[#{jsp.system.user.profile.005}]]
|
},
|
{
|
field: 'memberPhone',
|
title: [[#{jsp.system.user.profile.003}]]
|
},
|
{
|
field: 'testName',
|
title: [[#{jsp.testPackage}]]
|
},
|
{
|
field: 'userName',
|
title: [[#{jsp.exam.info.affiliates}]]
|
},
|
{
|
field: 'reportAddress',
|
title: [[#{report.situation}]],
|
visible: false
|
},
|
{
|
field: 'reportId',
|
title: [[#{jsp.exam.report.013}]],
|
visible: false
|
},
|
{
|
field: 'sendHrEmail',
|
title: [[#{mail.to.hr}]],
|
formatter: function(value, row, index) {
|
if (value=='1') {
|
return [[#{dict.ic138}]];
|
} else {
|
return [[#{dict.ic1388}]];
|
}
|
}
|
},
|
{
|
field: 'testId',
|
title: [[#{jsp.exam.report.014}]],
|
visible: false
|
},
|
{
|
field: 'startTime',
|
title: [[#{jsp.exam.test_package.startTime}]],
|
visible: false
|
},
|
{
|
field: 'endTime',
|
title: [[#{jsp.exam.test_package.endTime}]],
|
visible: false
|
},
|
{
|
field: 'smsStatus',
|
title: [[#{jsp.exam.test_package.035}]],
|
formatter: function(value, row, index) {
|
return $.table.selectDictLabel(sms_type, value);
|
}
|
},
|
{
|
field: 'smsTime',
|
title: [[#{jsp.exam.test_package.036}]],
|
visible: false
|
},
|
{
|
field: 'emailStatus',
|
title: [[#{jsp.exam.test_package.037}]],
|
formatter: function(value, row, index) {
|
return $.table.selectDictLabel(email_status, value);
|
},
|
visible: false
|
},
|
{
|
field: 'emailTime',
|
title: [[#{jsp.exam.test_package.038}]],
|
visible: false
|
},
|
// {
|
// field: 'status',
|
// title: [[#{basis.state}]],
|
// formatter: function(value, row, index) {
|
// return $.table.selectDictLabel(test_member_status, value);
|
// }
|
// },
|
{
|
field: 'remark',
|
title: [[#{basis.remark}]]
|
}
|
,
|
{
|
title: [[#{basis.operate}]],
|
align: 'center',
|
formatter: function (value, row, index) {
|
var actions = [];
|
actions.push('<a class="btn btn-success btn-xs ' + viewTestProgress + '" href="javascript:void(0)" onclick="openTestDetail(\'' + row.token + '\')"><i class="fa fa-edit"></i>[[#{jsp.exam.test_package.testinfo}]]</a> ');
|
if(row.reportId!=null) {
|
actions.push('<a class="btn btn-warning btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="exportSendedReportExcel(\'' + row.reportId + '\')"><i class="fa fa-edit"></i>[[#{report.download}]]</a> ');
|
}
|
return actions.join('');
|
}
|
}
|
]
|
};
|
$.table.init(options);
|
});
|
|
// 查看测试进度
|
function openTestDetail(token) {
|
var url = '/exam/entTestDetail/testDetail/' + token;
|
$.modal.openTab([[#{jsp.exam.test_package.testinfo}]], url);
|
}
|
|
function exportSendedReportExcel(ids) {
|
$.modal.loading([[#{jsp.exam.report.003}]]);
|
$.post(prefix_report + "/exportSendedReport/" + ids, "", function (result) {
|
if (result.code == web_status.SUCCESS) {
|
window.location.href = ctx + "common/download?fileName=" + encodeURI(result.msg) + "&delete=" + true;
|
} else if (result.code == web_status.WARNING) {
|
$.modal.alertWarning(result.msg)
|
} else {
|
$.modal.alertError(result.msg);
|
}
|
$.modal.closeLoading();
|
});
|
}
|
|
function opensendlog() {
|
var url = '/exam/sendtask';
|
$.modal.openTab([[#{menu.exam.send.view}]], url);
|
}
|
|
//发送邀请邮件
|
function sendEmail() {
|
var rows = $.table.selectColumns("memberId");
|
if (rows.length == 0) {
|
$.modal.alertWarning([[#{jsp.exam.test_package.039}]]);
|
return;
|
}
|
$.modal.confirm("确认要发送选中的" + rows.length + "条数据吗?", function () {
|
var url = prefix + '/send/sendEmail/' + rows + "/" + testId;
|
$.modal.open('发送邀请邮件(人数:'+ rows.length + ')',url);
|
});
|
}
|
|
//发送邀请短信
|
function sendSms() {
|
var rows = $.table.selectColumns("memberId");
|
if (rows.length == 0) {
|
$.modal.alertWarning([[#{jsp.exam.test_package.11111}]]);
|
return;
|
}
|
$.modal.confirm("确认要发送选中的" + rows.length + "条数据吗?", function () {
|
var url = prefix + '/send/sendSms/' + rows + "/" + testId;
|
$.modal.open('发送邀请短信(人数:'+ rows.length + ')',url);
|
});
|
}
|
|
</script>
|
</body>
|
<!-- 导入区域 -->
|
<script id="importTpl" type="text/template">
|
<form enctype="multipart/form-data" class="mt20 mb10">
|
<div class="col-xs-offset-1">
|
<input type="file" id="file" name="file"/>
|
<div class="mt10 pt5">
|
<!--<input type="checkbox" id="updateSupport" name="updateSupport" title="如果登录账户已经存在,更新这条数据。"> 是否更新已经存在的用户数据 -->
|
<a onclick="$.table.importTemplate()" class="btn btn-default btn-xs"><i
|
class="fa fa-file-excel-o"></i> [[#{download.template}]]</a>
|
</div>
|
<font color="red" class="pull-left mt10">
|
[[#{prompt.information}]]
|
</font>
|
</div>
|
</form>
|
</script>
|
</html>
|