|
|
|
@ -100,6 +100,13 @@ |
|
|
|
|
<el-table-column prop="phone" label="手机号" align="center" width="120"></el-table-column> |
|
|
|
|
<el-table-column prop="partnerClassificationName" label="团队名称" align="center" min-width="200" show-overflow-tooltip></el-table-column> |
|
|
|
|
<el-table-column prop="roleName" label="授权角色" align="center" min-width="200" show-overflow-tooltip></el-table-column> |
|
|
|
|
<el-table-column label="操作" align="center" width="300"> |
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
<el-button type="text" v-auth="'/system:后台账号:重置密码'" @click="resetPassword(scope.row)">重置密码</el-button> |
|
|
|
|
<el-button type="text" v-auth="'/system:后台账号:删除'" @click="delStaff(scope.row)">删除</el-button> |
|
|
|
|
<el-button type="text" v-auth="'/system:后台账号:删除'" @click="remove(scope.row)">移除</el-button> |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
</el-table> |
|
|
|
|
<div class="pagination"> |
|
|
|
|
<el-pagination background @current-change="currentChange" :current-page="page" layout="total, prev, pager, next" :total="total"></el-pagination> |
|
|
|
@ -419,6 +426,37 @@ export default { |
|
|
|
|
this.page = 1 |
|
|
|
|
this.getList() |
|
|
|
|
}, |
|
|
|
|
// 删除 |
|
|
|
|
del(row) { |
|
|
|
|
this.$confirm("确定要删除吗?", "提示", { |
|
|
|
|
type: "warning" |
|
|
|
|
}).then(() => { |
|
|
|
|
this.$post(`${this.api.delPartnerAccount}?accountIds=${row.accountId}`).then(res => { |
|
|
|
|
util.successMsg("删除成功") |
|
|
|
|
this.getList() |
|
|
|
|
}).catch(res => {}) |
|
|
|
|
}).catch(() => {}) |
|
|
|
|
}, |
|
|
|
|
// 移除 |
|
|
|
|
remove(row) { |
|
|
|
|
this.$confirm("确定要移除吗?", "提示", { |
|
|
|
|
type: "warning" |
|
|
|
|
}).then(() => { |
|
|
|
|
this.$post(`${this.api.delPartnerAccount}?accountIds=${row.accountId}`).then(res => { |
|
|
|
|
util.successMsg("移除成功") |
|
|
|
|
this.getList() |
|
|
|
|
}).catch(res => {}) |
|
|
|
|
}).catch(() => {}) |
|
|
|
|
}, |
|
|
|
|
// 重置密码 |
|
|
|
|
resetPassword(row) { |
|
|
|
|
const newPwd = Setting.initialPassword |
|
|
|
|
this.$confirm(`重置后的密码为:${newPwd},确定重置?`, "提示", { type: "warning" }).then(() => { |
|
|
|
|
this.$get(`${this.api.resetPwd}?userId=${row.userId}&newPwd=${newPwd}`).then(res => { |
|
|
|
|
util.successMsg("重置成功") |
|
|
|
|
}).catch(res => {}) |
|
|
|
|
}).catch(() => {}) |
|
|
|
|
}, |
|
|
|
|
// 添加 |
|
|
|
|
add() { |
|
|
|
|
const curNode = this.$refs.orgTree.getCurrentNode() |
|
|
|
|