From f0acb2c7bd58f6ee49476754d8d39deda3f77297 Mon Sep 17 00:00:00 2001 From: zhaoxiao Date: Mon, 6 Mar 2023 09:12:43 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90fix=20ESLint=E3=80=91src/components/je?= =?UTF-8?q?ro/JPopup?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jero-web/src/components/jero/JPopup.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/jero-web/src/components/jero/JPopup.vue b/jero-web/src/components/jero/JPopup.vue index 5de73a5b..39e1360d 100644 --- a/jero-web/src/components/jero/JPopup.vue +++ b/jero-web/src/components/jero/JPopup.vue @@ -110,6 +110,7 @@ export default { const { groupId, code, field, orgFields, destFields } = this return `${groupId}_${code}_${field}_${orgFields}_${destFields}` } + return null } }, watch: { @@ -131,7 +132,7 @@ export default { this.$message.error('popup参数未正确配置!') 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.avalid = false } @@ -174,7 +175,7 @@ export default { for (const rw of rows) { let val = rw[orgFieldsArr[i]] // 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 = '' } // update--end--autor:liusq-----date:20210713------for:处理val等于0的情况issues/I3ZL4T------