deviceIdMatch.html
1.54 KB
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
44
45
46
47
48
49
50
<!DOCTYPE html>
<html >
<head>
<meta charset="UTF-8">
<title>Title</title>
<script src="/union/js/include.js"></script>
<script src="/union/js/ajaxfileupload.js"></script>
</head>
<body>
<table style="width: 100%;padding: 30px 30px 0px 30px">
<tbody>
<tr>
<td style="width:200px;">上传文件:</td>
<td>
<div id="batchImportDiv"></div>
</td>
</tr>
</tbody>
</table>
<div id="matchDiv" style="padding:30px;"></div>
</body>
<script type="text/javascript">
$(function () {
$("#batchImportDiv").fileUpload({
text: "请选择文件", //按钮文字
uploadInputName: "file", //上传文件的控件名称
url: contextPath + "/batch/import", //提交到后端的url
queryParams: {
type: "deviceIdMatchImport"
}, //提交到后端额外参数
showFileName: false, //上传成功后,是否显示文件名
onLoadSuccess: function (fileName, data) {
$.messager.show({
title: "提示",
msg: "匹配完成",
height: 250
});
var match = data.data;
var output = "匹配的内容</br>" ;
for(var i=0;i<match.length;i++){
output += match[i]+"</br>";
}
$("#matchDiv").append(output);
}
});
});
</script>
</html>