Compare commits

...

2 Commits

Author SHA1 Message Date
Jruome 6d1d588882 管理端 商户管理启用禁用 2023-06-12 17:18:00 +08:00
Jruome 31646ba705 管理端 会员充值增加销售金额字段 2023-06-12 17:01:51 +08:00
2 changed files with 5 additions and 4 deletions

View File

@ -49,6 +49,7 @@
<span v-if="scope.row.nickname!=='' && scope.row.nickname!==null">-{{ scope.row.nickname }}</span>
</template>
</el-table-column>
<el-table-column label="销售金额" align="center" prop="payPrice" />
<el-table-column label="提成金额" align="center" prop="commissionPrice" />
<el-table-column label="商铺名称" align="center" prop="tenantName" />
<el-table-column label="支付方式" align="center" prop="payType" >

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(() => {
});
},