From c9885ae012d0e51c4354b3cabaee9798a8fcf961 Mon Sep 17 00:00:00 2001 From: 23688nl <329261568@qq.com> Date: Thu, 8 Sep 2022 09:00:33 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=EF=BC=9A=20=E9=A1=B9?= =?UTF-8?q?=E7=9B=AE=E7=AE=A1=E7=90=86-=E9=A1=B9=E7=9B=AE=E4=BF=A1?= =?UTF-8?q?=E6=81=AF-=E7=A7=9F=E6=88=B7=EF=BC=8C=E6=96=B0=E5=A2=9E?= =?UTF-8?q?=E7=A7=9F=E6=88=B7=E6=97=B6=EF=BC=8C=E4=B8=8D=E9=80=89=E6=8B=A9?= =?UTF-8?q?=E7=9B=B4=E6=8E=A5=E7=82=B9=E5=87=BB=E2=80=98=E7=A1=AE=E5=AE=9A?= =?UTF-8?q?=E2=80=99=E6=8C=89=E9=92=AE=EF=BC=8C=E9=A1=B5=E9=9D=A2=E6=8A=A5?= =?UTF-8?q?sql=E9=94=99=E8=AF=AF=20=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/iot/project/profileV2/EObjectTenant.vue | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/src/views/iot/project/profileV2/EObjectTenant.vue b/src/views/iot/project/profileV2/EObjectTenant.vue index 2ec8928b..e7b9d17d 100644 --- a/src/views/iot/project/profileV2/EObjectTenant.vue +++ b/src/views/iot/project/profileV2/EObjectTenant.vue @@ -354,11 +354,15 @@ export default { }, /** 提交按钮 */ submitForm() { - addProject_tenant(this.form).then(response => { - this.msgSuccess("新增成功"); - this.selectTableShow = false; - this.getList(); - }); + if ((this.form.tenantId !== null && this.form.tenantId !==undefined) && (this.form.projectId !== null && this.form.projectId !==undefined)) { + addProject_tenant(this.form).then(response => { + this.msgSuccess("新增成功"); + this.selectTableShow = false; + this.getList(); + }); + } else { + this.$message.error('没有选择任何数据!'); + } }, /** 删除按钮操作 */ handleDelete(row) {