|
@@ -10565,8 +10565,9 @@ define('form',['jquery', 'bootstrap', 'upload', 'validator'], function ($, undef
|
|
|
var query = Fast.api.query(vObjCol.field);
|
|
var query = Fast.api.query(vObjCol.field);
|
|
|
var operate = Fast.api.query(vObjCol.field + "-operate");
|
|
var operate = Fast.api.query(vObjCol.field + "-operate");
|
|
|
|
|
|
|
|
- vObjCol.defaultValue = that.options.renderDefault && query ? query : (typeof vObjCol.defaultValue === 'undefined' ? '' : vObjCol.defaultValue);
|
|
|
|
|
- vObjCol.operate = that.options.renderDefault && operate ? operate : (typeof vObjCol.operate === 'undefined' ? '=' : vObjCol.operate);
|
|
|
|
|
|
|
+ var renderDefault = that.options.renderDefault && (typeof vObjCol.renderDefault == 'undefined' || vObjCol.renderDefault);
|
|
|
|
|
+ vObjCol.defaultValue = renderDefault && query ? query : (typeof vObjCol.defaultValue === 'undefined' ? '' : vObjCol.defaultValue);
|
|
|
|
|
+ vObjCol.operate = renderDefault && operate ? operate : (typeof vObjCol.operate === 'undefined' ? '=' : vObjCol.operate);
|
|
|
ColumnsForSearch.push(vObjCol);
|
|
ColumnsForSearch.push(vObjCol);
|
|
|
|
|
|
|
|
htmlForm.push('<div class="form-group col-xs-12 col-sm-6 col-md-4 col-lg-3">');
|
|
htmlForm.push('<div class="form-group col-xs-12 col-sm-6 col-md-4 col-lg-3">');
|
|
@@ -10834,7 +10835,7 @@ define('form',['jquery', 'bootstrap', 'upload', 'validator'], function ($, undef
|
|
|
} else if (obj.size() > 1) {
|
|
} else if (obj.size() > 1) {
|
|
|
$("form [name='" + $(this).data("field") + "'][value='" + value + "']", that.$commonsearch).prop("checked", true);
|
|
$("form [name='" + $(this).data("field") + "'][value='" + value + "']", that.$commonsearch).prop("checked", true);
|
|
|
} else {
|
|
} else {
|
|
|
- obj.val(value);
|
|
|
|
|
|
|
+ obj.val(value + "");
|
|
|
}
|
|
}
|
|
|
obj.trigger("change");
|
|
obj.trigger("change");
|
|
|
$("form", that.$commonsearch).trigger("submit");
|
|
$("form", that.$commonsearch).trigger("submit");
|
|
@@ -10883,8 +10884,8 @@ define('form',['jquery', 'bootstrap', 'upload', 'validator'], function ($, undef
|
|
|
[value, item, i], value);
|
|
[value, item, i], value);
|
|
|
|
|
|
|
|
if (!($.inArray(key, that.header.fields) !== -1 &&
|
|
if (!($.inArray(key, that.header.fields) !== -1 &&
|
|
|
- (typeof value === 'string' || typeof value === 'number') &&
|
|
|
|
|
- (value + '').toLowerCase().indexOf(fval) !== -1)) {
|
|
|
|
|
|
|
+ (typeof value === 'string' || typeof value === 'number') &&
|
|
|
|
|
+ (value + '').toLowerCase().indexOf(fval) !== -1)) {
|
|
|
return false;
|
|
return false;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|