diff --git a/src/views/projectFront/operationManage/fireWorks.vue b/src/views/projectFront/operationManage/fireWorks.vue index b5a7b398..fd734be2 100644 --- a/src/views/projectFront/operationManage/fireWorks.vue +++ b/src/views/projectFront/operationManage/fireWorks.vue @@ -664,7 +664,12 @@ - + @@ -687,7 +692,12 @@ - + @@ -1491,7 +1501,11 @@ export default { console.log(1111, newVal); if (this.isAdd == 2 && newVal == this.oldcardForm.level) { if (this.oldcardForm.level == 4) { - const tableList2 = JSON.parse(this.oldcardForm.specialOperatorIdentificationNumber).reduce((prev, item) => { + const tableList2 = ( + JSON.parse(this.oldcardForm.specialOperatorIdentificationNumber) instanceof Array + ? JSON.parse(this.oldcardForm.specialOperatorIdentificationNumber) + : [] + ).reduce((prev, item) => { prev.push({ id: 'id-' + Math.random().toString(36).substr(2, 9), specialOperationStaff: item['field2567362300101'] instanceof Array ? item['field2567362300101'][0] : item['field2567362300101'], @@ -2667,7 +2681,11 @@ export default { if (res.result) { console.log(res.result, 1); if (res.result.level == 4) { - const tableList2 = JSON.parse(res.result.specialOperatorIdentificationNumber).reduce((prev, item) => { + const tableList2 = ( + JSON.parse(res.result.specialOperatorIdentificationNumber) instanceof Array + ? JSON.parse(res.result.specialOperatorIdentificationNumber) + : [] + ).reduce((prev, item) => { prev.push({ id: 'id-' + Math.random().toString(36).substr(2, 9), specialOperationStaff: item['field2567362300101'] instanceof Array ? item['field2567362300101'][0] : item['field2567362300101'],