55 lines
1.5 KiB
Plaintext
55 lines
1.5 KiB
Plaintext
<%@ page contentType="text/html;charset=UTF-8" %>
|
|
<%@ include file="/webpage/include/taglib.jsp" %>
|
|
<html>
|
|
<head>
|
|
<title>导入基础数据</title>
|
|
<meta name="decorator" content="default"/>
|
|
<style type="text/css">
|
|
#oneTable {
|
|
margin-top: 5%;
|
|
margin-left: 35%;
|
|
}
|
|
|
|
#uploadHistoricalTrack {
|
|
width: 200px;
|
|
height: 70px;
|
|
font-size: larger;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<table id="oneTable">
|
|
<tr>
|
|
<td>
|
|
<button type="button" class="layui-btn" id="uploadHistoricalTrack">
|
|
<i class="layui-icon"></i>基础数据导入
|
|
</button>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<script src="${ctxStatic}/layui-v2.4.5/layui/layui.js"></script>
|
|
<script>
|
|
layui.use('upload', function () {
|
|
var upload = layui.upload;
|
|
var planId = "${planId}";
|
|
var uploadInst = upload.render({
|
|
elem: '#uploadHistoricalTrack'
|
|
, accept:'file'
|
|
,acceptMime: '.xlsx,.xls'
|
|
,exts:'xlsx|xls'
|
|
, url: '${ctx}/assessment/plan/importexecutebasicdata?planId='+planId
|
|
, done: function (res) {
|
|
if(res === 200){
|
|
top.layer.alert("上传成功!")
|
|
}else if(res === 500){
|
|
top.layer.alert("上传失败!")
|
|
}
|
|
}
|
|
, error: function () {
|
|
|
|
}
|
|
});
|
|
});
|
|
</script>
|
|
</body>
|
|
</html> |