oa多选 ht出差报销确认

master
lion 5 months ago
parent 005fcabdf6
commit aca0bad87a

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

@ -20,7 +20,7 @@
:row-config="{ isHover: true }"
:header-cell-style="{ 'white-space': 'wrap' }"
:print-config="{}"
:export-config="{}"
:export-config="{type:'xlsx',isColgroup:true}"
:column-config="{ resizable: true }"
:data="tableData.admins">
<vxe-column type="seq" width="50" align="center" fixed="left"></vxe-column>

Loading…
Cancel
Save