批量审核

This commit is contained in:
wangshiming
2022-01-18 16:55:18 +08:00
parent bcad306ae5
commit ae8d1eef2a
28 changed files with 4 additions and 444 deletions

View File

@ -135,19 +135,7 @@ export class AccountComponentsCenterComponent implements OnInit {
}
getInfo() {
this.service.http.post(this.service.$api_get_current_user_info).subscribe((res) => {
console.log(res)
this.infoData = res.data;
// this.infoData.avatar = [
// {
// uid: -1,
// name: 'LOGO',
// status: 'done',
// url: res.data.avatar,
// response: {
// url: res.data.avatar,
// },
// },
// ];
});
}

View File

@ -39,7 +39,6 @@ export class AccountComponentsEditNameComponent implements OnInit, AfterViewInit
}
ngOnInit() {
console.log(this.i)
this.codeTips = '为了账户安全,需您的手机验证(' + this.i?.phone + '';
this.formData.oldName = this.i?.phone;
this.initSF();
@ -140,7 +139,6 @@ export class AccountComponentsEditNameComponent implements OnInit, AfterViewInit
// phoneNumber: phone
};
this.service.request(this.service.$api_get_current_user_smVerification, params, 'POST', true, 'FORM').subscribe((res) => {
console.log(res);
// code==503046 弹出网易盾
if (res && res.code === '1') {
this.service.msgSrv.success('发送成功');
@ -158,7 +156,6 @@ export class AccountComponentsEditNameComponent implements OnInit, AfterViewInit
phoneNumber: this.sfView.value.phone
};
this.service.request(this.service.$api_get_getSMVerificationCode, params, 'POST', true, 'FORM').subscribe((res) => {
console.log(res);
// code==503046 弹出网易盾
if (res && res.code === '1') {
this.service.msgSrv.success('发送成功');
@ -210,27 +207,22 @@ export class AccountComponentsEditNameComponent implements OnInit, AfterViewInit
this.modal.destroy();
}
submitForm() {
console.log(this.sf.value, 'this.sf.value');
const params = {
smsVerifyCode: this.sf.value.smsVerifyCode,
};
this.service.http.post(this.service.$api_get_verifyPhone, params).subscribe((res) => {
console.log(res, 'submitForm');
if (res.success) {
this.service.msgSrv.success(res.msg);
// this.modal.close(true);
this.voucher = res.data.voucher
this.isVisibleView = true
} else {
this.service.msgSrv.warning(res.msg);
}
});
}
handleCancel(type: string) {
if(type === '1') {
console.log(type)
this.isVisibleView = false
} else if(type === '2') {
console.log(type)
@ -242,18 +234,14 @@ export class AccountComponentsEditNameComponent implements OnInit, AfterViewInit
}
handleNew() {
console.log(this.voucher)
const params = {
voucher: this.voucher,
...this.sfView.value,
}
this.service.http.post(this.service.$api_set_voucherUpdatePhone, params).subscribe((res) => {
console.log(res);
if (res.success) {
this.service.msgSrv.success(res.msg);
this.isVisibleOk = true;
} else {
this.service.msgSrv.warning(res.msg);
}
});
}

View File

@ -1,7 +1,7 @@
/*
* @Author: your name
* @Date: 2021-11-29 13:50:46
* @LastEditTime: 2022-01-18 16:34:46
* @LastEditTime: 2022-01-18 16:37:42
* @LastEditors: Please set LastEditors
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @FilePath: \tms-obc-web\src\app\routes\account\components\edit\edit.component.ts
@ -57,7 +57,6 @@ export class AccountComponentsCenterEditComponent implements OnInit {
ngOnInit() {
this.initForm();
console.log(this.record.phone)
}
initForm () {
this.validateForm = this.fb.group({
@ -77,7 +76,6 @@ export class AccountComponentsCenterEditComponent implements OnInit {
}
getCaptcha(e: MouseEvent): void {
this.service.request(this.service.$api_get_current_user_smVerification).subscribe(res => {
console.log(res);
// code==503046 弹出网易盾
if (res && res.code === '1') {
this.service.msgSrv.success('发送成功');
@ -93,13 +91,9 @@ export class AccountComponentsCenterEditComponent implements OnInit {
this.service.msgSrv.warning('必填项为空或格式错误,请检查!')
return;
}
console.log(this.validateForm)
console.log(this.validateForm.value)
const params = {
...this.validateForm.value
};
console.log(params)
this.service.request(this.service.$api_set_phoneUpdatePassword, params).subscribe((res) => {
if (res) {
this.service.msgSrv.success('修改密码成功!');