From 343674297abbfdf1b8cd136aadc8a051a3c4843c Mon Sep 17 00:00:00 2001 From: tczjx58520 <2283600185@qq.com> Date: Wed, 5 Feb 2020 21:46:12 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9bug=202=E6=9C=885=E6=97=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/SalePlan/components/MyDialog.vue | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/src/views/SalePlan/components/MyDialog.vue b/src/views/SalePlan/components/MyDialog.vue index 66dfe4ed..9d8d33bf 100644 --- a/src/views/SalePlan/components/MyDialog.vue +++ b/src/views/SalePlan/components/MyDialog.vue @@ -513,8 +513,10 @@ export default { }, // 判断计划类别 jungleAddress(row, val) { - if (val === '7') { - row.address = '' + if (val !== '7') { + delete row.address + } else if (val !== '1') { + delete row.typeId } }, repositoryname(val) { @@ -1001,6 +1003,15 @@ export default { } const parms2 = JSON.stringify(EnterDetail) const Data = this.personalForm + for (let i = 0; i < EnterDetail.length; i++) { + for (const key in EnterDetail[i]) { + console.log('key===============>', EnterDetail[i][key]) + if (EnterDetail[i][key] === '' || EnterDetail[i][key] === undefined || EnterDetail[i][key] === null) { + console.log('执行') + delete EnterDetail[i][key] + } + } + } for (const key in Data) { if (Data[key] === '' || Data[key] === undefined || Data[key] === null) { delete Data[key]