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
35
36
37
38
39
40
41
42
43
<!doctype html>
<html class="no-js">
<head>
<meta charset="utf-8">
<title>批量导入</title>
[#include "/business/pages/include/static.html" /]
</head>
<body>
<form id="uploadForm" action="${base}/business/pages/cmdb/propform/doUploadBatchCiInfo.html" method="post" enctype="multipart/form-data">
    <table class="table_basic_info" style="width:100%;height:100%;">
        <tr>
            <td>
                <input type="hidden" name="cate" value="${RequestParameters.cate}">
                <input type="hidden" name="flowId" value="${RequestParameters.flowId}">
                <input type="hidden" name="proId" value="${RequestParameters.proId}">
                <div class="file-box">
                    请选择文件:
                    <input type="text" name="" id="textfield" class="txt">
                    <input type="button" name="" id="" class="btn" value="浏览">
                    <input type="file" name="file" id="file" class="file" size="28" onchange="document.getElementById('textfield').value=this.value"/>
                </div>
                
            </td>
        </tr>
    </table>
</form>    
</body>
<script type="text/javascript">
function onDialogBtnClick(btnID, dialogID, config){
    if(btnID){
        if($.util.isEmpty($("#file").val())){
            window.top.popupTips('请选择文件');
            return ;
        }
        document.getElementById("uploadForm").target = window.top.openDialog("0","批量导入",
                             {},
                             {"width":40,"height":40,"noclose":true},
                             [{btnId:"tipBtnSure", btnName:"确定", btnStyle:"bluebtn"}]);
        $("#uploadForm").submit();
    }
}
</script>
</html>