Skip to content

Commit f817260

Browse files
committed
添加导出询问确认
1 parent 5b10930 commit f817260

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

resources/views/admin/user_member/index.blade.php

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,14 @@ class="layui-icon"></i> 搜 索
169169
}, TABLE_RESIZE_TIME)
170170
break;
171171
case 'export_data':
172-
window.open('/admin/' + MODULE_NAME + '/export?searchParams=' + searchParams);
172+
layer.msg('确认导出当前查询的所有记录?', {
173+
time: 15000,
174+
btn: ['导出', '取消'],
175+
yes: function (index) {
176+
layer.close(index)
177+
window.open('/admin/' + MODULE_NAME + '/export?searchParams=' + searchParams);
178+
}
179+
});
173180
break;
174181
case 'LAYTABLE_TIPS':
175182
top.layer_module_tips(MODULE_NAME)

0 commit comments

Comments
 (0)