cy
2022-06-21 129904537f66509f97b285e7eb4f42b3dc349dd0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<!doctype html>
<html class="no-js">
<head>
<meta charset="utf-8">
[#include "/business/pages/include/static.html" /]
<title>批量导入</title>
</head>
<body>
<div class="table_basic">
<form id="myform" method="post" enctype="multipart/form-data">
    <table class="table_basic_info" style="width:85%;height:100%;">
        <tr>
            <td colspan="2"><a href="${base}/upload/template/batchTemplate.xls" target="_blank"><font color="red">(点此下载模板文件)</font></a></td>
        </tr>
        <tr>
            <td colspan="2"><input type="file" name="file" value="浏览"/><input id="import" name="import" type="button" value="导入"/></td>
        </tr>
    </table>
</form>    
</div>
<script type="text/javascript">
$(function(){
    $("#import").click(function(){
        var filePath = $("input[name=file]").val();
        if($.util.isEmpty(filePath)){
            window.top.popupTips('请选择文件', 2);
        }else{
            $("#myform").submit();
        }
    });
});
</script>
</body>
</html>