Commit b60115a6 authored by Huang's avatar Huang
Browse files

no commit message

parent bc194671
...@@ -30,18 +30,17 @@ $("#btnExport").click(function(){ ...@@ -30,18 +30,17 @@ $("#btnExport").click(function(){
$("#btnImport").click(function(){ $("#btnImport").click(function(){
if($(this).data("events")["click"]){return;} if($(this).data("events")["click"]){return;}
var url=$(this).attr("url"); var url=$(this).attr("url");
var importBoxHtml=$("#importBox").html(); layer.open({
$("#importBox").remove();
top.layer.open({
type: 1, type: 1,
area: [500, 300], area: [500, 300],
title:"导入数据", title:"导入数据",
content:importBoxHtml, content:$("#importBox").html(),
btn: ['下载模板','确定', '关闭'], btn: ['下载模板','确定', '关闭'],
btn1: function(index, layero){ btn1: function(index, layero){
window.location.href=url+'/template'; window.location.href=url+'/template';
}, },
btn2: function(index, layero){ btn2: function(index, layero){
$("#importBox").remove();
$("#importForm").submit(); $("#importForm").submit();
//top.layer.close(index); //top.layer.close(index);
}, },
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment