|
@@ -529,7 +529,8 @@ export default {
|
|
|
return status
|
|
|
},
|
|
|
onStaffOperation (type, data) {
|
|
|
- this.$confirm("您确定修改员工状态", "提示", {
|
|
|
+ const tempStatus = type == 'RESET_PASSWORD' ? true : false
|
|
|
+ this.$confirm(`您确定${tempStatus ? '重置密码' : '修改员工状态'}?`, "提示", {
|
|
|
confirmButtonText: "确定",
|
|
|
cancelButtonText: "取消",
|
|
|
type: "warning"
|
|
@@ -548,7 +549,7 @@ export default {
|
|
|
operate: type
|
|
|
}).then(res => {
|
|
|
if (res.code == 200) {
|
|
|
- this.$message.success('更改成功')
|
|
|
+ this.$message.success(tempStatus ? '重置密码成功' : '更改成功')
|
|
|
this.roleStatus = false
|
|
|
this.getList()
|
|
|
} else {
|