添加导入数据弹出窗体自定义宽高

pull/220/head
RuoYi 2020-09-29 17:48:37 +08:00
parent 03c952d819
commit 74445e76c3
1 changed files with 4 additions and 2 deletions

View File

@ -383,12 +383,14 @@ var table = {
}); });
}, },
// 导入数据 // 导入数据
importExcel: function(formId) { importExcel: function(formId, width, height) {
table.set(); table.set();
var currentId = $.common.isEmpty(formId) ? 'importTpl' : formId; var currentId = $.common.isEmpty(formId) ? 'importTpl' : formId;
var _width = $.common.isEmpty(width) ? "400" : width;
var _height = $.common.isEmpty(height) ? "230" : height;
layer.open({ layer.open({
type: 1, type: 1,
area: ['400px', '230px'], area: [_width + 'px', _height + 'px'],
fix: false, fix: false,
//不固定 //不固定
maxmin: true, maxmin: true,