From 70b8340a5f58f3416da3e3fbedd162a948283bb1 Mon Sep 17 00:00:00 2001 From: zlyx <1242874891@qq.com> Date: Fri, 17 Feb 2023 18:04:01 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E4=BF=AE=E6=AD=A3=20tenantId=20=E4=B8=BA?= =?UTF-8?q?=E7=A9=BA=E5=AF=BC=E8=87=B4=E7=A7=9F=E6=88=B7=E7=8A=B6=E6=80=81?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=A4=B1=E8=B4=A5=E9=97=AE=E9=A2=98=20;?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ruoyi-ui/src/api/system/tenant.js | 3 ++- ruoyi-ui/src/views/system/tenant/index.vue | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/ruoyi-ui/src/api/system/tenant.js b/ruoyi-ui/src/api/system/tenant.js index 76ca9ff9..bb8ebfa0 100644 --- a/ruoyi-ui/src/api/system/tenant.js +++ b/ruoyi-ui/src/api/system/tenant.js @@ -36,9 +36,10 @@ export function updateTenant(data) { } // 租户状态修改 -export function changeTenantStatus(id, status) { +export function changeTenantStatus(id, tenantId, status) { const data = { id, + tenantId, status } return request({ diff --git a/ruoyi-ui/src/views/system/tenant/index.vue b/ruoyi-ui/src/views/system/tenant/index.vue index 69907861..5f137d2d 100644 --- a/ruoyi-ui/src/views/system/tenant/index.vue +++ b/ruoyi-ui/src/views/system/tenant/index.vue @@ -291,7 +291,7 @@ export default { handleStatusChange(row) { let text = row.status === "0" ? "启用" : "停用"; this.$modal.confirm('确认要"' + text + '""' + row.companyName + '"租户吗?').then(function() { - return changeTenantStatus(row.id, row.status); + return changeTenantStatus(row.id, row.tenantId, row.status); }).then(() => { this.$modal.msgSuccess(text + "成功"); }).catch(function() {