|
|
|
@ -844,12 +844,14 @@ export default function formBuilder(
|
|
|
|
?.split(/,|\|/)
|
|
|
|
?.split(/,|\|/)
|
|
|
|
.map((i) => ((isNaN(Number(i)) || !i) ? i : Number(i)))
|
|
|
|
.map((i) => ((isNaN(Number(i)) || !i) ? i : Number(i)))
|
|
|
|
: [];
|
|
|
|
: [];
|
|
|
|
|
|
|
|
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
res =
|
|
|
|
res =
|
|
|
|
(isNaN(Number(target[info.name])) || !target[info.name])
|
|
|
|
(isNaN(Number(target[info.name])) || !target[info.name])
|
|
|
|
? target[info.name]
|
|
|
|
? target[info.name]
|
|
|
|
: Number(target[info.name]);
|
|
|
|
: Number(target[info.name]);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
console.log("res2",res)
|
|
|
|
if (res instanceof Array) {
|
|
|
|
if (res instanceof Array) {
|
|
|
|
if (typeof options[0] === "object") {
|
|
|
|
if (typeof options[0] === "object") {
|
|
|
|
return options
|
|
|
|
return options
|
|
|
|
@ -857,7 +859,7 @@ export default function formBuilder(
|
|
|
|
?.map((i) => i.name)
|
|
|
|
?.map((i) => i.name)
|
|
|
|
?.toString();
|
|
|
|
?.toString();
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
return res;
|
|
|
|
return res.join(",");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
if (typeof options[0] === "object") {
|
|
|
|
if (typeof options[0] === "object") {
|
|
|
|
@ -1325,6 +1327,7 @@ export default function formBuilder(
|
|
|
|
? target[info.name]
|
|
|
|
? target[info.name]
|
|
|
|
: Number(target[info.name]);
|
|
|
|
: Number(target[info.name]);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
console.log("res3",res)
|
|
|
|
if (res instanceof Array) {
|
|
|
|
if (res instanceof Array) {
|
|
|
|
if (typeof options[0] === "object") {
|
|
|
|
if (typeof options[0] === "object") {
|
|
|
|
return options
|
|
|
|
return options
|
|
|
|
@ -1725,6 +1728,7 @@ export default function formBuilder(
|
|
|
|
? target[info.name]
|
|
|
|
? target[info.name]
|
|
|
|
: Number(target[info.name]);
|
|
|
|
: Number(target[info.name]);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
console.log("res1",res)
|
|
|
|
if (res instanceof Array) {
|
|
|
|
if (res instanceof Array) {
|
|
|
|
if (typeof options[0] === "object") {
|
|
|
|
if (typeof options[0] === "object") {
|
|
|
|
return options
|
|
|
|
return options
|
|
|
|
|