修改 冀北 现场问题

This commit is contained in:
GGJ
2024-08-21 16:05:06 +08:00
parent a6ab528220
commit ed4d982cbe
10 changed files with 193 additions and 101 deletions

View File

@@ -219,9 +219,7 @@ const open = async (text: string, id: string, addFlag: boolean) => {
}
form.value.otherReport = []
if (res.data.otherReport != null) {
console.log("🚀 ~ awaitgetTestById ~ form.value:", form.value)
for (let i = 0; i < res.data.otherReport.split(',').length.length; i++) {
for (let i = 0; i < res.data.otherReport.split(',').length - 1; i++) {
form.value.otherReport.push({
name: res.data.otherReport.split(',')[i]
})
@@ -265,7 +263,7 @@ const submitFn = (flag: boolean) => {
if (form.value.otherReport.length > 0) {
form.value.otherReport.forEach((item: any) => {
// + '/supervision/'
subForm.otherReport = subForm.otherReport + item.name + ','
subForm.otherReport = subForm.otherReport + item.name + ','
})
}