管理端 商户管理启用禁用
parent
31646ba705
commit
6d1d588882
|
@ -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(() => {
|
||||
});
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue