fix 修正 tenantId 为空导致租户状态修改失败问题 ;

This commit is contained in:
zlyx 2023-02-17 18:04:01 +08:00
parent 80aa636348
commit 70b8340a5f
2 changed files with 3 additions and 2 deletions

View File

@ -36,9 +36,10 @@ export function updateTenant(data) {
} }
// 租户状态修改 // 租户状态修改
export function changeTenantStatus(id, status) { export function changeTenantStatus(id, tenantId, status) {
const data = { const data = {
id, id,
tenantId,
status status
} }
return request({ return request({

View File

@ -291,7 +291,7 @@ export default {
handleStatusChange(row) { handleStatusChange(row) {
let text = row.status === "0" ? "启用" : "停用"; let text = row.status === "0" ? "启用" : "停用";
this.$modal.confirm('确认要"' + text + '""' + row.companyName + '"租户吗?').then(function() { this.$modal.confirm('确认要"' + text + '""' + row.companyName + '"租户吗?').then(function() {
return changeTenantStatus(row.id, row.status); return changeTenantStatus(row.id, row.tenantId, row.status);
}).then(() => { }).then(() => {
this.$modal.msgSuccess(text + "成功"); this.$modal.msgSuccess(text + "成功");
}).catch(function() { }).catch(function() {