From 5ac6e88906f6ff74f06f323857defab8effd1e9a Mon Sep 17 00:00:00 2001 From: Rain_ <904416525@qq.com> Date: Thu, 15 May 2025 16:27:47 +0800 Subject: [PATCH] =?UTF-8?q?flx:=E6=99=AE=E9=80=9A=E5=8A=A8=E7=81=AB?= =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=88=A4=E6=96=AD=E4=B8=8D=E6=98=AF=E6=95=B0?= =?UTF-8?q?=E7=BB=84=E7=9A=84=E6=83=85=E5=86=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../operationManage/fireWorks.vue | 26 ++++++++++++++++--- 1 file changed, 22 insertions(+), 4 deletions(-) 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'],