|
|
|
@ -53,41 +53,38 @@
|
|
|
|
|
|
|
|
|
|
<div class="layui-card">
|
|
|
|
|
<div class="layui-card-body">
|
|
|
|
|
<table id="data-table"></table>
|
|
|
|
|
<table id="data-table"></table>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<script type="text/html" id="table-toolbar">
|
|
|
|
|
|
|
|
|
|
<button class="pear-btn pear-btn-primary pear-btn-md" lay-event="add">
|
|
|
|
|
<i class="layui-icon layui-icon-add-1"></i>
|
|
|
|
|
新建任务
|
|
|
|
|
</button>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<button class="pear-btn pear-btn-primary pear-btn-md" lay-event="createTask">
|
|
|
|
|
<i class="layui-icon layui-icon-add-1"></i>
|
|
|
|
|
新建任务
|
|
|
|
|
</button>
|
|
|
|
|
|
|
|
|
|
</script>
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<script type="text/html" id="table-bar">
|
|
|
|
|
<button type="button" class="layui-btn layui-btn-sm" title="发布">
|
|
|
|
|
<button type="button" class="layui-btn layui-btn-sm" title="发布" lay-event="publish">
|
|
|
|
|
<i class="layui-icon layui-icon-release"></i>
|
|
|
|
|
</button>
|
|
|
|
|
<button type="button" class="layui-btn layui-btn-sm" title="修改">
|
|
|
|
|
<button type="button" class="layui-btn layui-btn-sm" title="修改" lay-event="update">
|
|
|
|
|
<i class="layui-icon layui-icon-edit"></i>
|
|
|
|
|
</button>
|
|
|
|
|
<button type="button" class="layui-btn layui-btn-sm" title="重命名">
|
|
|
|
|
<button type="button" class="layui-btn layui-btn-sm" title="重命名" lay-event="rename">
|
|
|
|
|
<i class="iconfont icon-zhongmingming"></i>
|
|
|
|
|
</button>
|
|
|
|
|
<button type="button" class="layui-btn layui-btn-sm" title="导出">
|
|
|
|
|
<button type="button" class="layui-btn layui-btn-sm" title="导出" lay-event="export">
|
|
|
|
|
<i class="layui-icon layui-icon-export"></i>
|
|
|
|
|
</button>
|
|
|
|
|
<button type="button" class="layui-btn layui-btn-sm" title="复制">
|
|
|
|
|
<button type="button" class="layui-btn layui-btn-sm" title="复制" lay-event="copy">
|
|
|
|
|
<i class="iconfont icon-fuzhi"></i>
|
|
|
|
|
</button>
|
|
|
|
|
<button type="button" class="layui-btn layui-btn-sm" title="删除">
|
|
|
|
|
<button type="button" class="layui-btn layui-btn-sm" title="删除" lay-event="del">
|
|
|
|
|
<i class="layui-icon layui-icon-delete"></i>
|
|
|
|
|
</button>
|
|
|
|
|
</script>
|
|
|
|
@ -161,22 +158,52 @@
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
table.on('tool(data-table)', function (obj) {
|
|
|
|
|
if (obj.event === 'sub') {
|
|
|
|
|
window.sub(obj);
|
|
|
|
|
} else if (obj.event === 'remove') {
|
|
|
|
|
window.remove(obj);
|
|
|
|
|
} else if (obj.event === 'edit') {
|
|
|
|
|
window.edit(obj);
|
|
|
|
|
if (obj.event === 'publish') {
|
|
|
|
|
window.publish(obj);
|
|
|
|
|
} else if (obj.event === 'update') {
|
|
|
|
|
window.update(obj);
|
|
|
|
|
} else if (obj.event === 'rename') {
|
|
|
|
|
window.rename(obj);
|
|
|
|
|
} else if (obj.event === 'export') {
|
|
|
|
|
window.export(obj);
|
|
|
|
|
} else if (obj.event === 'copy') {
|
|
|
|
|
window.copy(obj);
|
|
|
|
|
} else if (obj.event === 'del') {
|
|
|
|
|
window.del(obj);
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
window.publish = function (obj) {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
window.update = function (obj) {
|
|
|
|
|
window.location = "./fields_set.html?job_id=" + obj.data.job_id;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
window.rename = function (obj) {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
window.export = function (obj) {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
window.copy = function (obj) {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
window.del = function (obj) {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
table.on('toolbar(data-table)', function (obj) {
|
|
|
|
|
if (obj.event === 'add') {
|
|
|
|
|
window.add();
|
|
|
|
|
if (obj.event === 'createTask') {
|
|
|
|
|
window.createTask();
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
window.add = function () {
|
|
|
|
|
window.createTask = function () {
|
|
|
|
|
layer.open({
|
|
|
|
|
type: 2,
|
|
|
|
|
title: '选择填报格式',
|
|
|
|
@ -186,32 +213,7 @@
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
window.sub = function (obj) {
|
|
|
|
|
layer.open({
|
|
|
|
|
type: 2,
|
|
|
|
|
title: '<span style="color: #16BAAA;font-size: 16px">正在为 “' + obj.data.system_name + '” 设置订阅数据关系</span>',
|
|
|
|
|
shadeClose: true,
|
|
|
|
|
shade: false,
|
|
|
|
|
maxmin: false,
|
|
|
|
|
move: false,
|
|
|
|
|
area: ['100%', '100%'],
|
|
|
|
|
content: "./already_sub_system.html?system_id=" + obj.data.system_id
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
window.edit = function (obj) {
|
|
|
|
|
layer.open({
|
|
|
|
|
type: 2,
|
|
|
|
|
title: '编辑',
|
|
|
|
|
shade: 0.1,
|
|
|
|
|
area: ['650px', '320px'],
|
|
|
|
|
content: './update.html?system_id=' + obj.data.system_id
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
window.refresh = function () {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
window.remove = function (obj) {
|
|
|
|
@ -249,51 +251,11 @@
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
window.batchRemove = function (obj) {
|
|
|
|
|
var personIds = common.checkField(obj, 'person_id');
|
|
|
|
|
if (personIds === "") {
|
|
|
|
|
layer.msg("请选择要删除的学生!", {
|
|
|
|
|
icon: 2,
|
|
|
|
|
time: 1500
|
|
|
|
|
});
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
layer.confirm('确定要删除选择的学生吗?', {
|
|
|
|
|
icon: 3,
|
|
|
|
|
title: '提示'
|
|
|
|
|
}, function (index) {
|
|
|
|
|
layer.close(index);
|
|
|
|
|
let loading = layer.load();
|
|
|
|
|
$.ajax({
|
|
|
|
|
url: "/QingLong/student/deleteStudent",
|
|
|
|
|
data: { person_ids: personIds },
|
|
|
|
|
type: 'post',
|
|
|
|
|
success: function (result) {
|
|
|
|
|
layer.close(loading);
|
|
|
|
|
if (result.success) {
|
|
|
|
|
layer.msg('成功删除!', {
|
|
|
|
|
icon: 1,
|
|
|
|
|
time: 1000
|
|
|
|
|
}, function () {
|
|
|
|
|
table.reload('data-table');
|
|
|
|
|
});
|
|
|
|
|
} else {
|
|
|
|
|
layer.msg(result.message, {
|
|
|
|
|
icon: 2,
|
|
|
|
|
time: 1000
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
window.refresh = function (param) {
|
|
|
|
|
table.reload('data-table');
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function GetQueryString(name, istop) {
|
|
|
|
|
var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
|
|
|
|
|
var r = window.location.search.substr(1).match(reg);
|
|
|
|
@ -306,26 +268,8 @@
|
|
|
|
|
|
|
|
|
|
window.openExcelCreatePage = function () {
|
|
|
|
|
window.location = "./upload_excel.html";
|
|
|
|
|
// window.location = "./fields_set.html?job_id=3";
|
|
|
|
|
|
|
|
|
|
// layer.open({
|
|
|
|
|
// type: 2,
|
|
|
|
|
// title: '创建任务',
|
|
|
|
|
// btn: ['按钮1', '按钮2', '按钮3'],
|
|
|
|
|
// shadeClose: true,
|
|
|
|
|
// shade: false,
|
|
|
|
|
// maxmin: false,
|
|
|
|
|
// move: false,
|
|
|
|
|
// area: ['100%', '100%'],
|
|
|
|
|
// content: "./upload_excel.html"
|
|
|
|
|
// });
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
|
</script>
|
|
|
|
|
</body>
|
|
|
|
|