This commit is contained in:
Taric Xin
2021-12-21 15:47:49 +08:00
parent d8b068229c
commit 3dae93db94
4 changed files with 21 additions and 21 deletions

View File

@ -69,8 +69,8 @@ export class FreightComponentsUserDetailComponent implements OnInit {
nzTitle: status === 1 ? '确定启用该用户吗?' : '确定冻结该用户吗?',
nzContent:
status === 1
? '用后,该用户将被限制使用,不限于访问受限、无法发布货源等,请谨慎操作'
: '用后,该用户将恢复正常使用功能,请再次确认',
? '用后,该用户将恢复正常使用功能,请再次确认'
: '用后,该用户将被限制使用,不限于访问受限、无法发布货源等,请谨慎操作',
nzOnOk: () => {
this.service
.request(this.service.$api_lock_or_free_user, {

View File

@ -68,12 +68,14 @@ export class FreightComponentsUserComponent implements OnInit {
this.service.msgSrv.error('手机格式错误');
return false;
}
this.service.request(this.service.$api_add_user_salesman, { userId: item.userId, mobile: this.promotersTelephone }).subscribe(res => {
if (res) {
this.service.msgSrv.success(item?.promotersTelephone ? '添加推广员成功' : '修改推广员成功');
}
this.st.load();
});
this.service
.request(this.service.$api_add_user_salesman, { userId: item.userId, mobile: this.promotersTelephone })
.subscribe(res => {
if (res) {
this.service.msgSrv.success(item?.promotersTelephone ? '添加推广员成功' : '修改推广员成功');
}
this.st.load();
});
return;
}
});
@ -84,13 +86,14 @@ export class FreightComponentsUserComponent implements OnInit {
nzTitle: status === 1 ? '确定启用该用户吗?' : '确定冻结该用户吗?',
nzContent:
status === 1
? '用后,该用户将被限制使用,不限于访问受限、无法发布货源等,请谨慎操作'
: '用后,该用户将恢复正常使用功能,请再次确认',
? '用后,该用户将恢复正常使用功能,请再次确认'
: '用后,该用户将被限制使用,不限于访问受限、无法发布货源等,请谨慎操作',
nzOnOk: () => {
this.service
.request(this.service.$api_lock_app_user, {
.request(this.service.$api_lock_or_free_user, {
appUserId,
freezeOrResume: !!!status
freezeOrResume: !!!status,
pageName: '货主员工列表'
})
.subscribe(res => {
if (res) {
@ -229,12 +232,12 @@ export class FreightComponentsUserComponent implements OnInit {
{
text: '冻结',
iif: item => item.stateLocked === 0,
click: (item: any) => this.userAction(0, [Number(item.appUserId)])
click: (item: any) => this.userAction(0, [item.appUserId])
},
{
text: '启用',
iif: item => item.stateLocked === 1,
click: (item: any) => this.userAction(1, [Number(item.appUserId)])
click: (item: any) => this.userAction(1, [item.appUserId])
}
]
}