Browse Source

!153 支持表格导入模板的弹窗表单加入其它输入控件
Merge pull request !153 from ฅ(̳••̳)ฅ大步/master

若依 5 years ago
parent
commit
e1e494de33
1 changed files with 3 additions and 3 deletions
  1. 3 3
      ruoyi-admin/src/main/resources/static/ruoyi/js/ry-ui.js

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

@@ -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,