修改bug 2月5日

This commit is contained in:
tczjx58520 2020-02-05 21:46:12 +08:00
parent 49eecf3a56
commit 343674297a

View file

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