zlyx
2023-02-17 70b8340a5f58f3416da3e3fbedd162a948283bb1
fix 修正 tenantId 为空导致租户状态修改失败问题 ;
已修改2个文件
5 ■■■■■ 文件已修改
ruoyi-ui/src/api/system/tenant.js 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ruoyi-ui/src/views/system/tenant/index.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
ruoyi-ui/src/api/system/tenant.js
@@ -36,9 +36,10 @@
}
// 租户状态修改
export function changeTenantStatus(id, status) {
export function changeTenantStatus(id, tenantId, status) {
  const data = {
    id,
    tenantId,
    status
  }
  return request({
ruoyi-ui/src/views/system/tenant/index.vue
@@ -291,7 +291,7 @@
    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() {