diff --git a/ruoyi-ui/src/api/system/tenant.js b/ruoyi-ui/src/api/system/tenant.js index 76ca9ff91..bb8ebfa00 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 699078617..5f137d2d6 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() {