mirror of https://gitee.com/y_project/RuoYi.git
fix:修复optgroup标签多选后值转json后丢失的问题
parent
81ec67d4ea
commit
1166be1ea0
|
@ -1353,7 +1353,11 @@
|
|||
formToJSON: function(formId) {
|
||||
var json = {};
|
||||
$.each($("#" + formId).serializeArray(), function(i, field) {
|
||||
if(json[field.name]) {
|
||||
json[field.name] += ("," + field.value);
|
||||
} else {
|
||||
json[field.name] = field.value;
|
||||
}
|
||||
});
|
||||
return json;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue