【fix ESLint】src/components/jero/JPopup

This commit is contained in:
zhaoxiao
2023-03-06 09:12:43 +08:00
parent be82db9fa0
commit f0acb2c7bd
+3 -2
View File
@@ -110,6 +110,7 @@ export default {
const { groupId, code, field, orgFields, destFields } = this const { groupId, code, field, orgFields, destFields } = this
return `${groupId}_${code}_${field}_${orgFields}_${destFields}` return `${groupId}_${code}_${field}_${orgFields}_${destFields}`
} }
return null
} }
}, },
watch: { watch: {
@@ -131,7 +132,7 @@ export default {
this.$message.error('popup参数未正确配置!') this.$message.error('popup参数未正确配置!')
this.avalid = false this.avalid = false
} }
if (this.destFields.split(',').length != this.orgFields.split(',').length) { if (this.destFields.split(',').length !== this.orgFields.split(',').length) {
this.$message.error('popup参数未正确配置,原始值和目标值数量不一致!') this.$message.error('popup参数未正确配置,原始值和目标值数量不一致!')
this.avalid = false this.avalid = false
} }
@@ -174,7 +175,7 @@ export default {
for (const rw of rows) { for (const rw of rows) {
let val = rw[orgFieldsArr[i]] let val = rw[orgFieldsArr[i]]
// update--begin--autor:liusq-----date:20210713------for:处理val等于0的情况issues/I3ZL4T------ // update--begin--autor:liusq-----date:20210713------for:处理val等于0的情况issues/I3ZL4T------
if (typeof val === 'undefined' || val == null || val.toString() == '') { if (typeof val === 'undefined' || val == null || val.toString() === '') {
val = '' val = ''
} }
// update--end--autor:liusq-----date:20210713------for:处理val等于0的情况issues/I3ZL4T------ // update--end--autor:liusq-----date:20210713------for:处理val等于0的情况issues/I3ZL4T------