|
|
@ -151,6 +151,8 @@ |
|
|
|
<el-table-column label="操作" align="center" class-name="small-padding fixed-width"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
|
|
|
|
<el-button size="medium" type="text" @click="handleDowngradeToMerchant(scope.row)" v-if="scope.row.platformRole=='acceptor'">降级为商家</el-button> |
|
|
|
|
|
|
|
<template v-if="scope.row.userRole=='store'&&scope.row.authLevel=='4'"> |
|
|
|
<el-button size="medium" type="text" @click="handleCreate(scope.row)" v-if="scope.row.platformRole!='acceptor'">置为承兑商</el-button> |
|
|
|
</template> |
|
|
@ -194,7 +196,7 @@ |
|
|
|
</template> |
|
|
|
|
|
|
|
<script> |
|
|
|
import { listUserCustomer, getUserCustomer,upgradeLevel, delUserCustomer, addUserCustomer, updateUserCustomer, exportUserCustomer, changeUserStatus } from "@/api/user/userCustomer"; |
|
|
|
import { listUserCustomer, getUserCustomer,upgradeLevel, delUserCustomer, downgradeToMerchant, addUserCustomer, updateUserCustomer, exportUserCustomer, changeUserStatus } from "@/api/user/userCustomer"; |
|
|
|
|
|
|
|
export default { |
|
|
|
name: "UserCustomer", |
|
|
@ -455,6 +457,20 @@ export default { |
|
|
|
this.getList(); |
|
|
|
this.msgSuccess("操作成功"); |
|
|
|
}) |
|
|
|
}, |
|
|
|
/** 降级为商家 */ |
|
|
|
handleDowngradeToMerchant(row) { |
|
|
|
const userIds = row.userId || this.ids; |
|
|
|
this.$confirm('是否确认将个人用户编号为"' + userIds + '"的数据项降级为商家?', "警告", { |
|
|
|
confirmButtonText: "确定", |
|
|
|
cancelButtonText: "取消", |
|
|
|
type: "warning" |
|
|
|
}).then(function () { |
|
|
|
return downgradeToMerchant(userIds); |
|
|
|
}).then(() => { |
|
|
|
this.getList(); |
|
|
|
this.msgSuccess("操作成功"); |
|
|
|
}) |
|
|
|
}, |
|
|
|
/** 导出按钮操作 */ |
|
|
|
handleExport() { |
|
|
|