mirror of
				https://github.com/dromara/RuoYi-Vue-Plus.git
				synced 2025-11-04 16:23:42 +08:00 
			
		
		
		
	fix 修正 tenantId 为空导致租户状态修改失败问题 ;
This commit is contained in:
		@@ -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({
 | 
			
		||||
 
 | 
			
		||||
@@ -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() {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user