|
@@ -284,7 +284,6 @@ layui.use('layer', function() {
|
|
|
content: $(".addUserOut"),
|
|
|
success: function() {
|
|
|
$('.clsBtn,.cancel').click(function() {
|
|
|
- //alert(1)
|
|
|
layer.close(layerCreateIndex);
|
|
|
})
|
|
|
}
|
|
@@ -343,7 +342,6 @@ layui.use('layer', function() {
|
|
|
content: $(".editUserOut"),
|
|
|
success: function() {
|
|
|
$('.clsBtn,.cancel').click(function() {
|
|
|
- //alert(1)
|
|
|
layer.close(layerUpdateIndex);
|
|
|
})
|
|
|
}
|
|
@@ -352,7 +350,6 @@ layui.use('layer', function() {
|
|
|
})
|
|
|
//删除信息
|
|
|
$('.delete').click(function() {
|
|
|
- alert(1)
|
|
|
if (!$('.pure-table tr').has('.checked').length) {
|
|
|
layer.msg('请选择一条需要删除的信息!', { icon: 5 });
|
|
|
} else {
|
|
@@ -578,12 +575,16 @@ function linkDep(element) {
|
|
|
}
|
|
|
|
|
|
// 导出 start
|
|
|
-$('.export').click(getDataExport)
|
|
|
+$('.export').click(function() {
|
|
|
+ getDataExport()
|
|
|
+ // getDataExport(getSearchParamObj(), 1)
|
|
|
+})
|
|
|
+
|
|
|
|
|
|
-function getDataExport() {
|
|
|
+function getDataExport(queryParam = {}) {
|
|
|
// 输出base64编码
|
|
|
const base64 = s => window.btoa(unescape(encodeURIComponent(s)));
|
|
|
- ajaxRequest(USER_EXPORT, "POST", {}, function(result) {
|
|
|
+ ajaxRequest(USER_EXPORT, "POST", queryParam, function(result) {
|
|
|
let data = result.data;
|
|
|
let newData = [];
|
|
|
data.forEach(function(item, index) {
|