diff --git a/src/api/app-user.js b/src/api/app-user.js
index 656e7a3..1734ad6 100644
--- a/src/api/app-user.js
+++ b/src/api/app-user.js
@@ -161,6 +161,15 @@ export function updateLevelScore(data) {
});
}
+// 重置密码
+export function resetPassword(data) {
+ return request({
+ url: "/user/auth/type/account/resetPassword",
+ method: "post",
+ data
+ });
+}
+
// 用户积分
export function getUserLevel(id) {
return request({
diff --git a/src/views/user/user-table/index.vue b/src/views/user/user-table/index.vue
index 648c1c5..fd08f0c 100644
--- a/src/views/user/user-table/index.vue
+++ b/src/views/user/user-table/index.vue
@@ -518,6 +518,13 @@
@click.native="handleBankCard(scope.row)"
>银行卡
+
+
+ 重置密码
@@ -677,6 +684,29 @@
:user-id="clickUserId"
@close="diamondSalaryDialogVisible = false"
/>
+
+
+
+
+ 取消
+ 同意
+
+
@@ -705,7 +735,7 @@ import { genders, userTypes } from "@/constant/user";
import { pickerOptions } from "@/constant/el-const";
import { registerOrigins, originPlatforms } from "@/constant/origin";
-import { getUserTable } from "@/api/app-user";
+import { getUserTable, resetPassword } from "@/api/app-user";
import { getCountryAlls } from "@/api/sys";
import Pagination from "@/components/Pagination";
@@ -761,6 +791,7 @@ export default {
showAllCondition: false,
permissionValidationLoading: true,
bankCardVisible: false,
+ passwordVisible: false,
userAuthFormVisible: false,
pickerOptions,
thisRow: {},
@@ -1014,6 +1045,25 @@ export default {
this.thisRow = item;
this.bankCardVisible = true;
},
+ // 打开重置密码弹窗
+ handlePassword(item) {
+ this.thisRow = item;
+ this.passwordVisible = true;
+ },
+
+ // 重置密码
+ confirmResetPassword() {
+ resetPassword({
+ userId: this.thisRow.userProfile.id
+ })
+ .then(res => {
+ this.$opsMessage.success();
+ this.passwordVisible = false;
+ })
+ .catch(er => {
+ this.$opsMessage.fail();
+ });
+ },
// 添加充值记录
addOtherRecharge(item) {