管理端 商户管理启用禁用

feature/mall_product
Jruome 2023-06-12 17:18:00 +08:00
parent 31646ba705
commit 6d1d588882
1 changed files with 4 additions and 4 deletions

View File

@ -93,7 +93,7 @@
<el-button size="mini" type="text" icon="el-icon-d-arrow-right">更多</el-button>
<el-dropdown-menu slot="dropdown">
<el-dropdown-item command="handleDisabled" size="mini" type="text" icon="el-icon-video-pause"
v-hasPermi="['system:tenant:disable']">禁用</el-dropdown-item>
v-hasPermi="['system:tenant:disable']">{{scope.row.status?'启用':'禁用'}}</el-dropdown-item>
<el-dropdown-item command="handleCommission" size="mini" type="text" icon="el-icon-set-up"
v-hasPermi="['system:tenant:commission']">提成设置</el-dropdown-item>
<el-dropdown-item command="handleNotice" size="mini" type="text" icon="el-icon-chat-round"
@ -429,11 +429,11 @@ export default {
/** 删除按钮操作 */
handleDisabled(row) {
const id = row.id;
this.$modal.confirm('是否确认删除店铺编号为"' + id + '"的数据项?').then(function () {
return deleteTenant(id);
this.$modal.confirm(`是否确认${row.status?'启用':'禁用'}店铺编号为${id}的数据项?`).then(function () {
return updateTenant({...row,status: row.status?0:1})
}).then(() => {
this.getList();
this.$modal.msgSuccess('删除成功');
this.$modal.msgSuccess(`${row.status?'启用':'禁用'}成功`);
}).catch(() => {
});
},