修正无法修改租户的问题
This commit is contained in:
parent
cc4d3a8ebd
commit
3f81766dd7
@ -67,7 +67,7 @@
|
|||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column width="150" label="操作" align="center" fixed="right" class-name="small-padding fixed-width">
|
<el-table-column width="150" label="操作" align="center" fixed="right" class-name="small-padding fixed-width">
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<el-tooltip content="修改" placement="top">
|
<el-tooltip v-if="scope.row.tenantId != 0" content="修改" placement="top">
|
||||||
<el-button v-hasPermi="['system:tenant:edit']" link type="primary" icon="Edit" @click="handleUpdate(scope.row)"></el-button>
|
<el-button v-hasPermi="['system:tenant:edit']" link type="primary" icon="Edit" @click="handleUpdate(scope.row)"></el-button>
|
||||||
</el-tooltip>
|
</el-tooltip>
|
||||||
<el-tooltip content="同步套餐" placement="top">
|
<el-tooltip content="同步套餐" placement="top">
|
||||||
@ -287,10 +287,14 @@ const handleUpdate = async (row?: TenantVO) => {
|
|||||||
reset();
|
reset();
|
||||||
await getTenantPackage();
|
await getTenantPackage();
|
||||||
const _tenantId = row?.tenantId || ids.value[0];
|
const _tenantId = row?.tenantId || ids.value[0];
|
||||||
const res = await getTenant(_tenantId);
|
if (_tenantId != undefined) {
|
||||||
Object.assign(form.value, res.data);
|
const res = await getTenant(_tenantId);
|
||||||
dialog.visible = true;
|
Object.assign(form.value, res.data);
|
||||||
dialog.title = '修改租户';
|
dialog.visible = true;
|
||||||
|
dialog.title = '修改租户';
|
||||||
|
} else {
|
||||||
|
proxy?.$modal.alertWarning('请您先点击选中要修改的记录,再进行修改');
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
/** 提交按钮 */
|
/** 提交按钮 */
|
||||||
|
Loading…
Reference in New Issue
Block a user