黄海 1 year ago
commit 167e84d377

@ -103,7 +103,7 @@
class="woo-theme-color-none">下载文档</a></span>
{{# } else { }}
<span class="woo-tool-span woo-tool-text-span" lay-event="download"><a
class="woo-theme-color" >下载文档</a></span>
class="woo-theme-color">下载文档</a></span>
{{# } }}
<i class="woo-tool-text-delimiter"></i>
@ -112,7 +112,7 @@
class="woo-theme-color-none">预览文档</a></span>
{{# } else { }}
<span class="woo-tool-span woo-tool-text-span" lay-event="preview"><a
class="woo-theme-color" >预览文档</a></span>
class="woo-theme-color">预览文档</a></span>
{{# } }}
<i class="woo-tool-text-delimiter"></i>
@ -124,12 +124,11 @@
<script src="../../../component/pear/pear.js"></script>
<script>
layui.use(['table', 'form', 'jquery', 'common', 'laytpl'], function () {
layui.use(['table', 'form', 'jquery', 'common'], function () {
var table = layui.table;
var form = layui.form;
var $ = layui.jquery;
var common = layui.common;
var laytpl = layui.laytpl;
var common = layui.common;
var upload = layui.upload;
tableRender();
@ -321,8 +320,6 @@
window.open('/QingLong/dataShare/previewXlsx?system_id=' + obj.data.system_id, '_blank');
}
window.edit = function (obj) {
layer.open({
type: 2,
@ -333,11 +330,6 @@
});
}
window.refresh = function () {
}
window.remove = function (obj) {
layer.confirm('确定要删除该系统吗?', {
icon: 3,
@ -371,53 +363,12 @@
}
})
});
}
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);

Loading…
Cancel
Save