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