|
@@ -1,13 +1,14 @@
|
|
|
<%@ tag language="java" pageEncoding="UTF-8"%>
|
|
|
<%@ include file="/webpage/include/taglib.jsp"%>
|
|
|
<%@ attribute name="url" type="java.lang.String" required="true"%>
|
|
|
+<%@ attribute name="companyType" type="java.lang.String" required="true"%>
|
|
|
<%-- 使用方法: 1.将本tag写在查询的form之前;2.传入controller的url --%>
|
|
|
<button id="btnImport" class="layui-btn layui-btn-sm layui-bg-blue" data-toggle="tooltip" data-placement="left" title="导入">
|
|
|
<%-- <i class="fa fa-folder-open-o"></i>--%>
|
|
|
导入
|
|
|
</button>
|
|
|
<div id="importBox" class="hide">
|
|
|
- <form id="importForm" action="${url}" method="post" enctype="multipart/form-data"
|
|
|
+ <form id="importForm" action="${url}?companyType=${companyType}" method="post" enctype="multipart/form-data"
|
|
|
style="padding-left:20px;text-align:center;" onsubmit="loading('正在导入,请稍等...');"><br/>
|
|
|
<input id="uploadFile" name="file" type="file" style="width:330px"/>导入文件不能超过5M,仅允许导入“xls”或“xlsx”格式文件!<br/>
|
|
|
|
|
@@ -25,7 +26,7 @@ $(document).ready(function() {
|
|
|
content:$("#importBox").html() ,
|
|
|
btn: ['下载模板','确定', '关闭'],
|
|
|
btn1: function(index, layero){
|
|
|
- window.location.href='${url}';
|
|
|
+ window.location.href='${url}/template?companyType=${companyType}';
|
|
|
},
|
|
|
btn2: function(index, layero){
|
|
|
var inputForm =top.$("#importForm");
|