From 7306feb6ef771bce42a9df846284ad6f57efb45c Mon Sep 17 00:00:00 2001 From: hewenqiang <1527468660@qq.com> Date: 星期四, 20 一月 2022 15:24:38 +0800 Subject: [PATCH] fix 修改用户信息校验方法。 1. 校验用户名称是否唯一采用baseMapper.exists()方法判断是否存在。 2. 校验手机号码和校验email是否唯一,当存在userId时,sql查询条件才加上不等于当前userId。 --- ruoyi-ui/src/views/tool/gen/importTable.vue | 9 +++++++-- 1 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ruoyi-ui/src/views/tool/gen/importTable.vue b/ruoyi-ui/src/views/tool/gen/importTable.vue index 56b2c0c..068755f 100644 --- a/ruoyi-ui/src/views/tool/gen/importTable.vue +++ b/ruoyi-ui/src/views/tool/gen/importTable.vue @@ -104,8 +104,13 @@ }, /** 瀵煎叆鎸夐挳鎿嶄綔 */ handleImportTable() { - importTable({ tables: this.tables.join(",") }).then(res => { - this.msgSuccess(res.msg); + const tableNames = this.tables.join(","); + if (tableNames == "") { + this.$modal.msgError("璇烽�夋嫨瑕佸鍏ョ殑琛�"); + return; + } + importTable({ tables: tableNames }).then(res => { + this.$modal.msgSuccess(res.msg); if (res.code === 200) { this.visible = false; this.$emit("ok"); -- Gitblit v1.9.3