|
|
|
@ -717,22 +717,10 @@ class FormFields {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
get() {
|
|
|
|
|
let obj = {},
|
|
|
|
|
current = this.ctrl.getCurrent();
|
|
|
|
|
if (!current)
|
|
|
|
|
return obj;
|
|
|
|
|
|
|
|
|
|
let obj = {};
|
|
|
|
|
document.querySelectorAll(this.children).forEach(input => {
|
|
|
|
|
let field = input.getAttribute("data-map");
|
|
|
|
|
if (!field) return;
|
|
|
|
|
|
|
|
|
|
let property = input.name || input.id,
|
|
|
|
|
value = input.value;
|
|
|
|
|
|
|
|
|
|
value = current[field];
|
|
|
|
|
obj[property] = value;
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
|
|
let property = input.name || input.id;
|
|
|
|
|
let value = input.value;
|
|
|
|
|
if ("radio" == input.type) {
|
|
|
|
|
if (input.checked)
|
|
|
|
|
obj[property] = value;
|
|
|
|
|