diff --git a/src/api/business/userRegister.js b/src/api/business/userRegister.js index b1fb1fc..e8c5f54 100755 --- a/src/api/business/userRegister.js +++ b/src/api/business/userRegister.js @@ -69,3 +69,12 @@ export function resetUserPassword(id) { data: id }) } + +// 账号冻结 +export function accountLock(date) { + return request({ + url: '/business/userRegister/accountLock', + method: 'post', + data: date + }) +} diff --git a/src/views/business/userRegister/index.vue b/src/views/business/userRegister/index.vue index b36beb1..b0487ff 100755 --- a/src/views/business/userRegister/index.vue +++ b/src/views/business/userRegister/index.vue @@ -17,16 +17,6 @@ @keyup.enter.native="handleQuery" /> - - - - - - @@ -122,13 +112,13 @@ @@ -349,7 +366,8 @@ import { updateUserRegister, addUserInfo, addUserInfoBus, - resetUserPassword + resetUserPassword, + accountLock } from "@/api/business/userRegister"; export default { @@ -673,7 +691,52 @@ export default { }).finally(() => { this.loading = false; }); + }, + + /** + * 账号冻结 + * @param row + */ + accountLock(row) { + this.$modal.confirm('是否确认对账号"' + row.account + '"进行冻结?').then(() => { + this.loading = true; + return accountLock(row); + }).then(() => { + this.loading = false; + this.getList(); + this.$modal.msgSuccess("冻结成功"); + }).catch(() => { + }).finally(() => { + this.loading = false; + }); + }, + /** + * 账号解冻 + * @param row + */ + accountUnlock(row) { + this.$modal.confirm('是否确认解除账号"' + row.account + '"的冻结?').then(() => { + this.loading = true; + return accountLock(row); + }).then(() => { + this.loading = false; + this.getList(); + this.$modal.msgSuccess("解除冻结成功"); + }).catch(() => { + }).finally(() => { + this.loading = false; + }); } } }; + + diff --git a/src/views/business/userRegister/indexBus.vue b/src/views/business/userRegister/indexBus.vue new file mode 100644 index 0000000..ceff639 --- /dev/null +++ b/src/views/business/userRegister/indexBus.vue @@ -0,0 +1,741 @@ + + + + +