mirror of https://gitee.com/karson/fastadmin.git
新增fieldlist组件忽略原始数据配置
parent
fea713785b
commit
db505ee6bd
|
|
@ -674,7 +674,9 @@ define(['jquery', 'bootstrap', 'upload', 'validator', 'validator-lang'], functio
|
||||||
Fast.api.ajax({
|
Fast.api.ajax({
|
||||||
type: type,
|
type: type,
|
||||||
url: url,
|
url: url,
|
||||||
data: form.serialize() + (Object.keys(params).length > 0 ? '&' + $.param(params) : ''),
|
data: form.find('input, select, textarea, keygen') // 找到所有可序列化的元素
|
||||||
|
.not('.fieldlist[data-ignoreorigin="true"] [fieldlist-item] *') // 排除掉 fieldlist 中的元素
|
||||||
|
.serialize() + (Object.keys(params).length > 0 ? '&' + $.param(params) : ''),
|
||||||
dataType: 'json',
|
dataType: 'json',
|
||||||
complete: function (xhr) {
|
complete: function (xhr) {
|
||||||
var token = xhr.getResponseHeader('__token__');
|
var token = xhr.getResponseHeader('__token__');
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue