mirror of https://gitee.com/y_project/RuoYi.git
update ruoyi-admin/src/main/resources/static/ruoyi/js/ry-ui.js.
支持导入模板的表单可以添加除了file、updateSupport之外的输入控件。pull/153/head
parent
c6bf712de4
commit
3988b12e72
|
@ -400,9 +400,9 @@ var table = {
|
||||||
}
|
}
|
||||||
var index = layer.load(2, {shade: false});
|
var index = layer.load(2, {shade: false});
|
||||||
$.modal.disable();
|
$.modal.disable();
|
||||||
var formData = new FormData();
|
var formData = new FormData(layero.find('form')[0]);
|
||||||
formData.append("file", layero.find('#file')[0].files[0]);
|
//formData.append("file", layero.find('#file')[0].files[0]);
|
||||||
formData.append("updateSupport", $("input[name='updateSupport']").is(':checked'));
|
//formData.append("updateSupport", $("input[name='updateSupport']").is(':checked'));
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: table.options.importUrl,
|
url: table.options.importUrl,
|
||||||
data: formData,
|
data: formData,
|
||||||
|
|
Loading…
Reference in New Issue