Commit 3988b12e by ฅ(̳••̳)ฅ大步 Committed by Gitee

update ruoyi-admin/src/main/resources/static/ruoyi/js/ry-ui.js.

支持导入模板的表单可以添加除了file、updateSupport之外的输入控件。
parent c6bf712d
......@@ -400,9 +400,9 @@ var table = {
}
var index = layer.load(2, {shade: false});
$.modal.disable();
var formData = new FormData();
formData.append("file", layero.find('#file')[0].files[0]);
formData.append("updateSupport", $("input[name='updateSupport']").is(':checked'));
var formData = new FormData(layero.find('form')[0]);
//formData.append("file", layero.find('#file')[0].files[0]);
//formData.append("updateSupport", $("input[name='updateSupport']").is(':checked'));
$.ajax({
url: table.options.importUrl,
data: formData,
......
Markdown is supported
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