oa多选 ht出差报销确认

master
lion 5 months ago
parent 005fcabdf6
commit aca0bad87a

@ -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

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

Loading…
Cancel
Save